/* ==========================================================================
   Harisankar PP - Personal Portfolio Design System & Stylesheet
   Modern CSS with CSS Variables, Fluid Typography & Glassmorphism
   ========================================================================== */

/* --- Custom Properties & Theme Tokens --- */
:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #0a0c14;
  --bg-secondary: #111422;
  --bg-surface: #171b2d;
  --bg-surface-elevated: #1f253d;
  --bg-glass: rgba(17, 20, 34, 0.75);
  --bg-glass-card: rgba(23, 27, 45, 0.65);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(251, 32, 86, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.04);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0c14;
  
  /* Brand Accents - Rich Darker Red */
  --accent: #b91c1c;
  --accent-light: #dc2626;
  --accent-dark: #7f1d1d;
  --accent-glow: rgba(185, 28, 28, 0.4);
  --accent-gradient: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  --accent-secondary: #6366f1;
  --accent-secondary-glow: rgba(99, 102, 241, 0.25);
  --accent-emerald: #10b981;
  
  /* Shadows & Depth */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px var(--accent-glow);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-heading: 'Outfit', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1200px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-card: rgba(255, 255, 255, 0.9);
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(40, 116, 240, 0.45);
  --border-subtle: rgba(0, 0, 0, 0.04);
  
  --text-primary: #000000;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  /* Flipkart Blue Color Combo for Light Theme / On White */
  --accent: #2874f0;
  --accent-light: #4c8df5;
  --accent-dark: #1259c7;
  --accent-glow: rgba(40, 116, 240, 0.35);
  --accent-gradient: linear-gradient(135deg, #2874f0 0%, #1259c7 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(40, 116, 240, 0.25);
}

/* --- Global Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

[data-theme="light"] {
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Glow Gradients */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  transition: opacity var(--transition-normal);
}

[data-theme="light"] .glow-orb {
  opacity: 0.12;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #b91c1c 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.glow-orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: 40%;
  left: -150px;
}

.glow-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  bottom: 5%;
  right: 10%;
}

/* --- Base Container & Typography --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

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

/* Buttons & Chips */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #991b1b 0%, #6f1313 100%);
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.45);
  color: #ffffff;
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #2874f0 0%, #1259c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(40, 116, 240, 0.35);
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #1b64da 0%, #0a46ab 100%);
  box-shadow: 0 8px 24px rgba(40, 116, 240, 0.5);
  color: #ffffff;
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .btn-outline {
  background: #ffffff;
  color: #2874f0;
  border-color: rgba(40, 116, 240, 0.35);
  font-weight: 600;
}

[data-theme="light"] .btn-outline:hover {
  background: #2874f0;
  color: #ffffff;
  border-color: #2874f0;
  box-shadow: 0 4px 16px rgba(40, 116, 240, 0.35);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(185, 28, 28, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(185, 28, 28, 0.25);
}

.badge-live {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-header .section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-header .section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header .section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Header & Navigation Bar --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.brand-logo .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo:hover .logo-mark {
  transform: scale(1.05);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.brand-logo span.accent {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* Mobile Menu Hamburger */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle-btn svg {
  width: 26px;
  height: 26px;
}

/* --- Hero Scroll-Controlled Section --- */
.hero-scroll-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-primary);
}

.hero-scroll-pin {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dbd4cb; /* Neutral tone matching footage wall */
}

.hero-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Vignette & Soft Gradient Feathering at edges */
.hero-canvas-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 35% 54%, transparent 48%, rgba(10, 12, 20, 0.45) 75%, var(--bg-primary) 100%);
  transition: background var(--transition-normal);
}

[data-theme="light"] .hero-canvas-overlay {
  background: radial-gradient(circle at 35% 54%, transparent 58%, rgba(248, 250, 252, 0.4) 82%, var(--bg-primary) 100%);
}

/* Hero Content Wrapper & Accessible Selectable Text */
.hero-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-text-content {
  pointer-events: auto;
  max-width: 540px;
  margin-left: auto;
  margin-right: 0;
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  transform-origin: center top;
  will-change: transform, opacity;
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="light"] .hero-text-content {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

.hero-text-content .hero-seo-title {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  display: block;
}

.hero-text-content .hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--text-primary);
  display: inline-block;
}

.hero-desc-1 {
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-desc-2 {
  font-size: clamp(0.92rem, 1.25vw, 1.02rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-text-content .hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-wheel {
  width: 3px;
  height: 7px;
  background-color: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Mobile & Portrait Responsive Layout */
@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .hero-poster {
    object-position: center 60px;
  }

  .hero-canvas-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 12, 20, 0.35) 0%,
      transparent 10%,
      transparent 36%,
      rgba(10, 12, 20, 0.72) 56%,
      var(--bg-primary) 100%
    );
  }

  [data-theme="light"] .hero-canvas-overlay {
    background: linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.35) 0%,
      transparent 10%,
      transparent 36%,
      rgba(248, 250, 252, 0.75) 56%,
      var(--bg-primary) 100%
    );
  }

  .hero-content-wrapper {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }
  
  .hero-text-content {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 1.25rem 1.15rem;
    border-radius: var(--radius-md);
    background: rgba(10, 12, 20, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }

  [data-theme="light"] .hero-text-content {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  }
  
  .hero-text-content .hero-seo-title {
    font-size: 0.82rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
  }

  .hero-text-content .hero-title {
    font-size: 1.65rem;
    line-height: 1.18;
    margin-bottom: 0.45rem;
    word-break: break-word;
  }
  
  .hero-desc-1 {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 0.45rem;
  }

  .hero-desc-2 {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.85rem;
  }
  
  .hero-text-content .hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    width: 100%;
  }
  
  .hero-text-content .hero-cta-group .btn {
    white-space: normal;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    min-height: 38px;
    text-align: center;
  }

  .hero-text-content .hero-cta-group .btn-primary {
    width: 100%;
    flex: 1 1 100%;
  }

  .hero-text-content .hero-cta-group .btn-outline {
    flex: 1 1 calc(50% - 0.25rem);
  }
  
  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  .hero-content-wrapper {
    bottom: 0.85rem;
    padding: 0 0.75rem;
  }

  .hero-text-content {
    padding: 1.1rem 0.95rem;
  }

  .hero-text-content .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
  }

  .hero-desc-1 {
    font-size: 0.82rem;
    line-height: 1.42;
    margin-bottom: 0.35rem;
  }

  .hero-desc-2 {
    font-size: 0.78rem;
    line-height: 1.38;
    margin-bottom: 0.75rem;
  }

  .hero-text-content .hero-cta-group .btn {
    font-size: 0.78rem;
    padding: 0.5rem 0.65rem;
    min-height: 36px;
    gap: 0.35rem;
  }
}

@media (max-width: 360px) {
  .hero-content-wrapper {
    bottom: 0.5rem;
    padding: 0 0.5rem;
  }

  .hero-text-content {
    padding: 0.95rem 0.8rem;
  }

  .hero-text-content .hero-title {
    font-size: 1.35rem;
  }

  .hero-desc-1 {
    font-size: 0.78rem;
  }

  .hero-desc-2 {
    font-size: 0.74rem;
  }
}

/* Reduced Motion Mode */
.reduced-motion .hero-scroll-pin {
  height: auto !important;
  min-height: 85vh;
  padding: 4rem 0;
  position: static !important;
}

.reduced-motion .hero-canvas {
  display: none !important;
}

.reduced-motion .hero-poster {
  position: relative !important;
  height: 420px !important;
  display: block !important;
  opacity: 1 !important;
}

.reduced-motion .hero-text-content {
  transform: none !important;
  opacity: 1 !important;
}


/* --- Stats / Impact Metric Bar --- */
.stats-section {
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-glass-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- About Section --- */
.about-section {
  padding: 5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(10, 12, 20, 0.96) 0%, rgba(10, 12, 20, 0.75) 60%, transparent 100%);
  color: #ffffff;
}

.about-card-overlay h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  margin-bottom: 0.2rem;
}

.about-card-overlay p {
  font-size: 0.88rem;
  color: #e2e8f0 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-hover);
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(251, 32, 86, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Career Journey Section (Main Highlight) --- */
.career-section {
  padding: 5.5rem 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

.timeline-filter-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.timeline-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timeline-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.timeline-filter-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* Dynamic Career Journey Scroll Loading & Status Badge */
.timeline-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.timeline-status-badge strong {
  color: var(--accent);
  font-weight: 700;
  min-width: 36px;
  display: inline-block;
}

.loading-pulse-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-glow);
}

.loading-pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulseRing 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Timeline Layout & Scroll Loading Track */
.timeline-track {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Base Rail Track */
.timeline-loading-track {
  position: absolute;
  top: 15px;
  bottom: 25px;
  left: 28px;
  width: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .timeline-loading-track {
  background: rgba(0, 0, 0, 0.08);
}

/* Dynamic Animated Loading Progress Bar */
.timeline-loading-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  border-radius: 4px;
  background: linear-gradient(to bottom, #7f1d1d 0%, var(--accent) 55%, var(--accent-light) 100%);
  box-shadow: 0 0 14px var(--accent-glow), 0 0 4px var(--accent);
  transition: height 0.1s ease-out;
  will-change: height;
}

[data-theme="light"] .timeline-loading-progress {
  background: linear-gradient(to bottom, #1259c7 0%, var(--accent) 55%, var(--accent-light) 100%);
  box-shadow: 0 0 14px rgba(40, 116, 240, 0.45), 0 0 4px #2874f0;
}

/* Glowing Pulsing Beam at Head of Progress Bar */
.timeline-loading-beam {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 16px 4px var(--accent-glow), 0 0 6px #ffffff;
  animation: beamPulse 1.4s infinite ease-in-out;
  z-index: 2;
}

[data-theme="light"] .timeline-loading-beam {
  border-color: #2874f0;
  box-shadow: 0 0 16px 4px rgba(40, 116, 240, 0.5), 0 0 6px #ffffff;
}

@keyframes beamPulse {
  0%, 100% {
    transform: translateX(-50%) scale(0.9);
    box-shadow: 0 0 10px 2px var(--accent-glow), 0 0 4px #ffffff;
  }
  50% {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 20px 6px var(--accent-glow), 0 0 10px #ffffff;
  }
}

/* Timeline Item - Scroll Entrance & Active Illuminations */
.timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 2.75rem;
  opacity: 0.6;
  transform: translateY(14px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.is-reached,
.timeline-item:hover {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.hidden {
  display: none;
}

/* Timeline Node */
.timeline-node {
  position: absolute;
  left: 18px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .timeline-node {
  border-color: rgba(0, 0, 0, 0.2);
  background: #ffffff;
}

.timeline-node::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: transparent;
  transition: all 0.35s ease;
}

/* When reached by scroll progress bar */
.timeline-item.is-reached .timeline-node {
  border-color: var(--accent);
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.2), 0 0 16px var(--accent-glow);
  transform: scale(1.15);
}

.timeline-item.is-reached .timeline-node::after {
  background-color: var(--accent);
}

.timeline-item:hover .timeline-node {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(185, 28, 28, 0.25), 0 0 20px var(--accent-glow);
}

.timeline-item.current-role.is-reached .timeline-node {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.2), 0 0 18px rgba(16, 185, 129, 0.6);
}

.timeline-item.current-role.is-reached .timeline-node::after {
  background-color: var(--accent-emerald);
}

.timeline-item.edu-item.is-reached .timeline-node {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 0 16px var(--accent-secondary-glow);
}

.timeline-item.edu-item.is-reached .timeline-node::after {
  background-color: var(--accent-secondary);
}

/* Timeline Card with Glassmorphism and Top Glow Sheen */
.timeline-card {
  position: relative;
  background: var(--bg-glass-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* Glowing top sheen line */
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(99, 102, 241, 0.3) 50%, transparent 100%);
  opacity: 0.25;
  transition: opacity 0.35s ease;
}

.timeline-item.is-reached .timeline-card::before {
  opacity: 0.85;
}

.timeline-card:hover {
  transform: translateX(8px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md), 0 0 25px rgba(185, 28, 28, 0.15);
}

.timeline-item.current-role .timeline-card {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, var(--bg-glass-card) 100%);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.08);
}

.timeline-item.current-role .timeline-card::before {
  background: linear-gradient(90deg, var(--accent-emerald) 0%, rgba(16, 185, 129, 0.4) 60%, transparent 100%);
  opacity: 0.9;
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.timeline-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.timeline-type {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.timeline-org {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.timeline-bullets {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--text-primary);
  font-weight: 700;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.timeline-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* --- Services Section --- */
.services-section {
  padding: 5.5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md), 0 0 25px rgba(251, 32, 86, 0.15);
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(251, 32, 86, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(251, 32, 86, 0.2);
  transition: transform var(--transition-fast);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-gradient);
  color: #ffffff;
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.service-features li svg {
  width: 15px;
  height: 15px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* --- Skills & Tools Section --- */
.skills-section {
  padding: 5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.skill-category-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.skill-pill:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* --- Download CV Callout Banner --- */
.cv-banner-section {
  padding: 2.5rem 0;
}

.cv-banner-card {
  background: linear-gradient(135deg, rgba(251, 32, 86, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%), var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cv-banner-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cv-banner-content h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cv-banner-content p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.cv-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* --- Contact Section --- */
.contact-section {
  padding: 5.5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.contact-info-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(251, 32, 86, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-info-text p, .contact-info-text a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-info-text a:hover {
  color: var(--accent);
}

.social-links-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-form-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 32, 86, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-success-alert {
  display: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
}

.back-to-top-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Areas of Specialized Expertise - Interactive Grid & Motion Effects
   ========================================================================== */
.expertise-section {
  padding: 5.5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
  position: relative;
}

/* Strategic Principle Callout Banner */
.expertise-principle-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2.25rem;
  margin-bottom: 2.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.expertise-principle-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
}

.expertise-principle-banner:hover {
  border-color: var(--border-color-hover);
}

.principle-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.principle-text p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 680px;
}

.principle-rule-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(185, 28, 28, 0.12);
  border: 1px solid rgba(185, 28, 28, 0.3);
  color: var(--text-primary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .principle-rule-pill {
  background: rgba(40, 116, 240, 0.08);
  border-color: rgba(40, 116, 240, 0.25);
  color: #000000;
  box-shadow: 0 4px 14px rgba(40, 116, 240, 0.1);
}

.principle-rule-pill strong {
  color: var(--accent);
}

/* 6-Card Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Expertise Card with 3D Float, Sheen, and Ambient Glow */
.expertise-card {
  position: relative;
  background: var(--bg-glass-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  overflow: hidden;
}

/* Radiant top gradient sheen */
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(99, 102, 241, 0.4) 60%, transparent 100%);
  opacity: 0.35;
  transition: opacity 0.35s ease, height 0.35s ease;
}

.expertise-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
}

.expertise-card:hover::before {
  opacity: 1;
  height: 3px;
}

/* Card Header & Icon Box */
.expertise-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.expertise-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(185, 28, 28, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(185, 28, 28, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="light"] .expertise-icon-box {
  background: rgba(40, 116, 240, 0.1);
  color: #2874f0;
  border-color: rgba(40, 116, 240, 0.25);
}

.expertise-card:hover .expertise-icon-box {
  transform: scale(1.12) rotate(6deg);
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.expertise-icon-box svg {
  width: 26px;
  height: 26px;
}

.expertise-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.2rem;
}

.expertise-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.expertise-card-desc {
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Core Topic Tags in Card */
.expertise-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.expertise-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.expertise-card:hover .expertise-pill:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
  background: var(--bg-surface);
}

[data-theme="light"] .expertise-card:hover .expertise-pill:hover {
  color: #1259c7;
  border-color: #2874f0;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-location-tag {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skills-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .cv-banner-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mobile-toggle-btn {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-actions .btn {
    display: none;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-principle-banner {
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-item::after {
    display: none !important;
  }
  
  .timeline-loading-track {
    left: 20px;
    width: 3px;
  }
  
  .timeline-item {
    padding-left: 54px;
    margin-bottom: 2.25rem;
  }
  
  .timeline-node {
    left: 9px;
    width: 22px;
    height: 22px;
  }
  
  .timeline-card {
    padding: 1.35rem 1.25rem;
  }
  
  .floating-badge-top {
    right: 0;
  }
  
  .floating-badge-bottom {
    left: 0;
  }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
