/* ==========================================================================
   MUHAMMAD ANSAR — PERSONAL PROFESSIONAL PORTFOLIO
   Design System: Nexum Red & White Corporate Executive Theme
   Palette: Crisp Studio White #FAFAFA, Dark Graphite #0F172A, Nexum Crimson Red #A61C1C, Burgundy #800000
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES / DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surface Tiers */
  --bg-base: #FAFAFA;
  --bg-surface-secondary: #F8FAFC;
  --bg-surface-card: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-dark: #0F172A;

  /* Primary Accent Colors — Nexum Red & White Corporate Theme */
  --accent-primary: #A61C1C;        /* Nexum Crimson Red */
  --accent-secondary: #800000;      /* Deep Burgundy / Crimson */
  --accent-red: #A61C1C;            /* Nexum Crimson Red */

  --accent-dim: rgba(166, 28, 28, 0.08);
  --accent-glow: rgba(166, 28, 28, 0.22);
  --border-accent: rgba(166, 28, 28, 0.35);
  --border-subtle: #E2E8F0;
  --border-card: #E2E8F0;

  /* Typography Text Colors */
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #F8FAFC;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout Spacing */
  --section-gap: 90px;
  --container-max: 1280px;
  --container-pad: 24px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-modern: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-modern);
  --transition-normal: 0.35s var(--ease-modern);
  --transition-slow: 0.6s var(--ease-modern);

  /* Elevation Shadows */
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 40px -10px rgba(166, 28, 28, 0.18), 0 8px 20px -4px rgba(15, 23, 42, 0.08);
  --shadow-glass: 0 20px 50px rgba(15, 23, 42, 0.1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-body);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  background-color: var(--bg-base);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface-secondary);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Typography Base Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-dark) 20%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Section Wrapper */
section {
  position: relative;
  z-index: 1;
  padding: var(--section-gap) 0;
}

/* Background Technical Blueprint Grid Overlay */
.tech-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(166, 28, 28, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(166, 28, 28, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Section Header Component */
.section-header {
  margin-bottom: 50px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
}
.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
}
.section-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   3. BACKGROUND CANVAS
   -------------------------------------------------------------------------- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* --------------------------------------------------------------------------
   4. STICKY LIGHT NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 22px 0;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo span.badge {
  font-family: var(--font-body);
  font-size: 0.68rem;
  padding: 4px 10px;
  background: var(--accent-primary);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  position: absolute;
  transition: all var(--transition-normal);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

/* Mobile Menu Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: #FFFFFF;
  border-left: 1px solid var(--border-subtle);
  z-index: 1001;
  padding: 100px 30px 40px;
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
}
.mobile-drawer.open {
  right: 0;
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav-link.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION WITH CORPORATE GLASS BACKGROUND OVERLAY
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  background: 
    linear-gradient(135deg, rgba(250, 250, 250, 0.94) 0%, rgba(248, 250, 252, 0.90) 100%),
    url('../assets/images/corporate-bg-hero.jpg') center/cover no-repeat;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: center;
}
.hero-content {
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero-eyebrow .line {
  width: 36px;
  height: 2px;
  background: var(--accent-primary);
}

/* Multi-line Hero Headline */
.hero-headline {
  font-size: clamp(2.8rem, 4.8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 26px;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}
.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-body);
  max-width: 620px;
  margin-bottom: 40px;
  border-left: 3px solid var(--accent-primary);
  padding-left: 20px;
  line-height: 1.7;
}
.hero-subtitle strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* Buttons System */
.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  min-height: 50px;
}
.btn-primary {
  background: var(--accent-primary);
  color: #FFFFFF;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 10px 25px -5px rgba(166, 28, 28, 0.35);
}
.btn-primary:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  transform: translateY(-3px);
  box-shadow: 0 14px 35px -5px rgba(166, 28, 28, 0.45);
}
.btn-secondary {
  background: #FFFFFF;
  color: var(--text-dark);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}
.btn-secondary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
}

/* Hero Portrait Light Glass Card */
.hero-portrait-wrapper {
  position: relative;
  z-index: 2;
}
.portrait-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}
.portrait-image-holder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-surface-secondary);
}
.portrait-image-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--transition-slow);
}
.portrait-card:hover .portrait-image-holder img {
  transform: scale(1.03);
}

.portrait-credential-badge {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-top: 14px;
}
.portrait-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.portrait-roles {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.portrait-roles strong {
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   6. SKILL STRIP SECTION
   -------------------------------------------------------------------------- */
.skill-strip-section {
  padding: 32px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-card);
}
.skill-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}
.skill-strip-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-right: 1px solid var(--border-subtle);
}
.skill-strip-item:last-child {
  border-right: none;
}
.skill-strip-icon {
  width: 46px;
  height: 46px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.skill-strip-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   7. ABOUT SECTION & 4 PROFILE CARDS
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: start;
}
.about-visual-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.about-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 4/5;
  background: var(--bg-surface-secondary);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-quote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1.4;
  border-left: 3px solid var(--accent-primary);
  padding-left: 14px;
}

/* 4 Profile Cards Grid */
.profile-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.profile-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}
.profile-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.profile-card-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-primary);
  font-weight: 800;
}
.profile-card-icon {
  color: var(--accent-primary);
  font-size: 1.2rem;
}
.profile-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.profile-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. CORE EXPERTISE SECTION (5 Numbered Cards)
   -------------------------------------------------------------------------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.expertise-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}
.expertise-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.expertise-card-top {
  margin-bottom: 24px;
}
.expertise-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.expertise-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}
.expertise-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.3rem;
}
.expertise-title {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.capability-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.capability-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
}
.capability-item::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   9. SERVICES SECTION (10 Service Cards)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}
.service-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.service-icon {
  font-size: 1.8rem;
  color: var(--accent-primary);
  margin-bottom: 16px;
}
.service-title {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. TECHNOLOGIES & TOOLS SECTION
   -------------------------------------------------------------------------- */
.tech-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.tech-badge-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}
.tech-badge-card:hover {
  border-color: var(--accent-primary);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.tech-badge-icon {
  color: var(--accent-primary);
  font-size: 1rem;
}
.tech-badge-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   11. SELECTED PROJECTS & MODAL
   -------------------------------------------------------------------------- */
.project-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.project-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.project-image-box {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface-secondary);
}
.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-image-box img {
  transform: scale(1.05);
}
.project-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  letter-spacing: 0.05em;
}
.project-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.55;
}
.project-link-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-container {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}
.modal-overlay.open .modal-container {
  transform: scale(1);
}
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   12. PROJECT HIGHLIGHTS BANNER
   -------------------------------------------------------------------------- */
.highlights-strip {
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 38px 0;
  box-shadow: var(--shadow-card);
}
.highlights-flex {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}
.highlight-item i {
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   13. PROFESSIONAL JOURNEY (VERTICAL TIMELINE)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--accent-primary);
}
.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 40px;
}
.timeline-node {
  position: absolute;
  left: 15px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 12px rgba(166, 28, 28, 0.4);
}
.timeline-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}
.timeline-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 6px;
}
.timeline-role {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.timeline-org {
  font-size: 0.92rem;
  color: var(--accent-secondary);
  margin-bottom: 12px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. RESEARCH & TRAINING SECTIONS
   -------------------------------------------------------------------------- */
.research-grid, .training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.research-card, .training-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}
.research-card:hover, .training-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* --------------------------------------------------------------------------
   15. INDUSTRIES & WHY WORK WITH ANSAR (WITH CORPORATE OVERLAY)
   -------------------------------------------------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.industry-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}
.industry-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.industry-icon {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 12px;
}
.industry-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

#why-ansar {
  background: 
    linear-gradient(135deg, rgba(248, 250, 252, 0.94) 0%, rgba(250, 250, 250, 0.90) 100%),
    url('../assets/images/corporate-bg-hero.jpg') center/cover no-repeat;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}
.why-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.why-title {
  font-size: 1.15rem;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   16. PERSONAL VALUES
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.value-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 10px;
  text-align: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}
.value-card:hover {
  border-color: var(--accent-primary);
  background: var(--accent-dim);
}
.value-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   17. CONTACT SECTION & FORM
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}
.contact-info-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-card);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.contact-val {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* Form Styles */
.contact-form {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-card);
}
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-dark);
  transition: border-color var(--transition-fast);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-dim);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid #2ecc71;
  color: #27ae60;
}
.form-status.error {
  display: block;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid #e74c3c;
  color: #c0392b;
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-surface-dark);
  color: var(--text-light);
  padding: 50px 0 30px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
}
.footer-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  max-width: 400px;
}
.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94A3B8;
}
