/* =============================================
   DESIGN SYSTEM & TOKENS
   ============================================= */
:root {
  /* Color Palette – Pristine Ultra-High Readability Light Theme */
  --bg-primary:     #f4f7fc;
  --bg-secondary:   #e2e8f0;
  --bg-card:        #ffffff;
  --bg-card-hover:  #ffffff;

  --accent-primary: #1d4ed8;
  --accent-secondary: #0d9488;
  --accent-tertiary: #4c1d95;
  --accent-warm:    #b91c1c;

  --text-primary:   #020617;
  --text-secondary: #0f172a;
  --text-muted:     #334155;

  --border-subtle:  rgba(15, 23, 42, 0.16);
  --border-glow:    rgba(29, 78, 216, 0.5);

  --glass-bg:       rgba(255, 255, 255, 0.98);
  --glass-border:   rgba(15, 23, 42, 0.18);

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #1d4ed8 0%, #4c1d95 100%);
  --grad-secondary: linear-gradient(135deg, #0d9488 0%, #1d4ed8 100%);
  --grad-text:      linear-gradient(135deg, #1d4ed8 0%, #0d9488 60%, #4c1d95 100%);
  --grad-hero:      linear-gradient(180deg, #f4f7fc 0%, #e2e8f0 60%, #f4f7fc 100%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-gap: clamp(5rem, 10vw, 9rem);
  --container:   1340px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-card: 0 6px 28px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 30px rgba(29, 78, 216, 0.16);
  --shadow-btn:  0 4px 22px rgba(29, 78, 216, 0.35);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.18s;
  --duration-normal: 0.3s;
  --duration-slow: 0.55s;

  --font-scale: 1;
}

/* ── Dark Mode Overrides (Optional User Selection) ──── */
[data-theme="dark"] {
  --bg-primary:     #060c1a;
  --bg-secondary:   #0a1428;
  --bg-card:        rgba(15, 25, 50, 0.7);
  --bg-card-hover:  rgba(20, 35, 65, 0.9);

  --accent-primary: #4f9bff;
  --accent-secondary: #00d4aa;
  --accent-tertiary: #7c5cfc;
  --accent-warm:    #ff6b6b;

  --text-primary:   #f0f4ff;
  --text-secondary: #8899bb;
  --text-muted:     #55688a;

  --border-subtle:  rgba(79, 155, 255, 0.12);
  --border-glow:    rgba(79, 155, 255, 0.35);

  --glass-bg:       rgba(10, 20, 45, 0.65);
  --glass-border:   rgba(79, 155, 255, 0.18);

  --shadow-card: 0 4px 32px rgba(0,0,0,0.45), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 40px rgba(79, 155, 255, 0.18);
  --grad-primary:   linear-gradient(135deg, #4f9bff 0%, #7c5cfc 100%);
  --grad-secondary: linear-gradient(135deg, #00d4aa 0%, #4f9bff 100%);
  --grad-text:      linear-gradient(135deg, #4f9bff, #00d4aa 60%, #7c5cfc);
  --grad-hero:      linear-gradient(180deg, #060c1a 0%, #091223 60%, #060c1a 100%);
}

/* Light mode specific component tweaks for crisp navigation & soft contrast */
[data-theme="light"] .nav {
  background: rgba(248, 250, 252, 0.88);
  border-bottom-color: rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
  border-bottom-color: rgba(37, 99, 235, 0.18);
}

[data-theme="light"] .nav__logo {
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .nav__link {
  color: #334155;
}

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .nav__hamburger span {
  background: #0f172a;
}

[data-theme="light"] .nav__mobile {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(37, 99, 235, 0.15);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .nav__mobile-link {
  color: #1e293b;
}

[data-theme="light"] .nav__mobile-link:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .hero__grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .hero__client-tag {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.12);
  color: #334155;
}

[data-theme="light"] .btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-glow);
  color: var(--accent-primary);
}

[data-theme="light"] .btn--glass {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

[data-theme="light"] .cta__inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(237, 242, 247, 0.9) 100%);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .cta__bg {
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
}

/* ── High Contrast Mode ──────────────────── */
[data-contrast="high"] {
  --bg-primary:     #000000 !important;
  --bg-secondary:   #050505 !important;
  --bg-card:        #111111 !important;
  --bg-card-hover:  #222222 !important;

  --text-primary:   #ffffff !important;
  --text-secondary: #ffff00 !important; /* Vivid high contrast yellow */
  --text-muted:     #00ffff !important; /* Vivid cyan */

  --accent-primary: #ffff00 !important;
  --accent-secondary:#00ffff !important;
  --border-subtle:  #ffffff !important;
  --border-glow:    #ffff00 !important;
}

[data-theme="light"][data-contrast="high"] {
  --bg-primary:     #ffffff !important;
  --bg-secondary:   #f0f0f0 !important;
  --bg-card:        #ffffff !important;
  --bg-card-hover:  #f8f8f8 !important;

  --text-primary:   #000000 !important;
  --text-secondary: #000088 !important;
  --text-muted:     #005500 !important;

  --accent-primary: #0000ee !important;
  --border-subtle:  #000000 !important;
  --border-glow:    #0000ee !important;
}

/* ── Legible Font Mode ───────────────────── */
[data-font="legible"] {
  --font-sans: 'Arial', 'Helvetica Neue', sans-serif !important;
  letter-spacing: 0.03em !important;
  word-spacing: 0.08em !important;
}

/* ── Paused Animations Mode ──────────────── */
[data-motion="paused"] *,
[data-motion="paused"] *::before,
[data-motion="paused"] *::after {
  animation-play-state: paused !important;
  transition-duration: 0.01s !important;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 10px; }

/* =============================================
   UTILITY
   ============================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-out),
              background var(--duration-normal);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover { box-shadow: 0 8px 32px rgba(79, 155, 255, 0.55); }

.btn--secondary {
  background: transparent;
  border: 1.5px solid var(--border-glow);
  color: var(--accent-primary);
}

.btn--secondary:hover {
  background: rgba(79, 155, 255, 0.1);
  border-color: var(--accent-primary);
}

.btn--resume {
  background: linear-gradient(135deg, #00d4aa, #00b894);
  border: none;
  color: #0a0f1e;
  font-weight: 700;
}

.btn--resume:hover {
  background: linear-gradient(135deg, #00e6b8, #00c9a0);
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.4);
  transform: translateY(-2px);
}

/* WhatsApp button — give the icon a green tint */
#hero-whatsapp-btn svg,
#cta-whatsapp-btn svg {
  color: #25D366;
}

.btn--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--glass-border);
  color: var(--text-primary);
}

.btn--glass:hover {
  background: rgba(79, 155, 255, 0.12);
  border-color: var(--accent-primary);
}

.btn--lg {
  padding: 0.95rem 2rem;
  font-size: 0.95rem;
}

/* =============================================
   TAGS / PILLS
   ============================================= */
.tag {
  display: inline-block;
  padding: 0.38rem 0.9rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(29, 78, 216, 0.1);
  border: 1.5px solid rgba(29, 78, 216, 0.3);
  color: #1e40af;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

.tag:hover { background: rgba(29, 78, 216, 0.2); }

.tag--ai   { background: rgba(13, 148, 136, 0.12); border-color: rgba(13, 148, 136, 0.35); color: #0f766e; }
.tag--tech { background: rgba(76, 29, 149, 0.12); border-color: rgba(76, 29, 149, 0.35); color: #4c1d95; }
.tag--tools{ background: rgba(185, 28, 28, 0.12); border-color: rgba(185, 28, 28, 0.35); color: #b91c1c; }
.tag--sm   { padding: 0.3rem 0.8rem; font-size: 0.8rem; }

/* =============================================
   SECTIONS COMMON
   ============================================= */
.section {
  padding-block: var(--section-gap);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--duration-normal), backdrop-filter var(--duration-normal), box-shadow var(--duration-normal);
}

.nav.scrolled {
  background: rgba(6, 12, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.1rem clamp(1.25rem, 5vw, 3rem);
}

.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast);
}

.nav__logo:hover {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: var(--shadow-btn);
}

.nav__logo-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.nav__link:hover, .nav__link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav__cta {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast);
  white-space: nowrap;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 155, 255, 0.4);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: auto;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal), opacity var(--duration-fast);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 12, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6rem 2rem 2rem;
  z-index: 999;
  flex-direction: column;
  animation: fadeIn 0.25s var(--ease-out);
}

.nav__mobile.open { display: flex; }

.nav__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav__mobile-link {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.nav__mobile-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav__mobile-cta {
  display: block;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 1.25rem 4rem;
  overflow: hidden;
  perspective: 1000px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 155, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 155, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 40%, transparent 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero__orb--1 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(79, 155, 255, 0.18) 0%, transparent 70%);
  animation-duration: 10s;
}

.hero__orb--2 {
  width: clamp(200px, 30vw, 450px);
  height: clamp(200px, 30vw, 450px);
  top: 20%;
  right: -5%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.15) 0%, transparent 70%);
  animation-duration: 14s;
  animation-delay: -4s;
}

.hero__orb--3 {
  width: clamp(150px, 20vw, 320px);
  height: clamp(150px, 20vw, 320px);
  bottom: 10%;
  left: 30%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%);
  animation-duration: 12s;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.03); }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  animation: fadeSlideDown 0.8s var(--ease-out) 0.2s both;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.2);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(0, 212, 170, 0.05); }
}

.hero__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.35s both;
}

.hero__name-line { color: var(--text-primary); }
.hero__name-line--accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  animation: fadeSlideUp 0.9s var(--ease-out) 0.5s both;
}

.hero__subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 540px;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.6s both;
}

.hero__clients {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.7s both;
}

.hero__clients-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero__clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.hero__client-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.2rem;
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.hero__client-tag img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.8s both;
}

.hero__social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.9s both;
}

.hero__social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.hero__social-link:hover { color: var(--accent-primary); }
.hero__location { cursor: default; }

/* Hero Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  width: 100%;
  max-width: 700px;
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 1s var(--ease-out) 1s both;
  box-shadow: var(--shadow-card);
}

.hero__stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero__stat-num {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero__stat-plus {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hero__stat:first-child .hero__stat-num,
.hero__stat:first-child .hero__stat-plus { display: flex; align-items: flex-start; }

/* Inline stat num + plus */
.hero__stat { flex-direction: column; }
.hero__stat-row { display: flex; align-items: flex-start; }

.hero__stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite, fadeSlideUp 1s var(--ease-out) 1.2s both;
  transition: color var(--duration-fast);
}

.hero__scroll:hover { color: var(--accent-primary); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about__card-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__avatar-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.about__avatar {
  position: relative;
  width: 115px;
  height: 115px;
  flex-shrink: 0;
}

.about__avatar-photo {
  width: 115px;
  height: 115px;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about__avatar-initials {
  width: 115px;
  height: 115px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.about__avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-md) + 4px);
  border: 2px solid transparent;
  background: var(--grad-primary) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.about__avatar-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.about__avatar-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.about__badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about__badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}

.about__badge-item:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.about__badge-item svg { color: var(--accent-primary); flex-shrink: 0; }

.about__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.about__text strong { color: var(--text-primary); font-weight: 600; }

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.about__highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.about__highlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.5);
}

/* =============================================
   EXPERTISE SECTION
   ============================================= */
.expertise {
  background: var(--bg-primary);
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-bottom: 3rem;
}

.expertise__card {
  padding: 1.25rem 1.25rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: border-color var(--duration-normal), transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal);
  cursor: default;
}

.expertise__card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.expertise__card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(79, 155, 255, 0.1);
  border: 1px solid rgba(79, 155, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 0.85rem;
  transition: background var(--duration-fast), box-shadow var(--duration-fast);
}

.expertise__card:hover .expertise__card-icon {
  background: rgba(79, 155, 255, 0.18);
  box-shadow: 0 0 20px rgba(79, 155, 255, 0.2);
}

.expertise__card-icon--ai  { background: rgba(0, 212, 170, 0.1); border-color: rgba(0, 212, 170, 0.2); color: var(--accent-secondary); }
.expertise__card-icon--tech{ background: rgba(124, 92, 252, 0.1); border-color: rgba(124, 92, 252, 0.2); color: var(--accent-tertiary); }
.expertise__card-icon--tools{ background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.2); color: var(--accent-warm); }

.expertise__card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.expertise__card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.expertise__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.expertise__tags .tag {
  padding: 0.22rem 0.6rem;
  font-size: 0.74rem;
}

/* Domains */
.domains {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.domains__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
}

.domains__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.domain-pill {
  padding: 0.35rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
  cursor: default;
}

.domain-pill:hover {
  background: rgba(79, 155, 255, 0.1);
  border-color: rgba(79, 155, 255, 0.3);
  color: var(--accent-primary);
}

/* =============================================
   EXPERIENCE / TIMELINE
   ============================================= */
.experience {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 0.4rem;
}

.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--bg-secondary);
  flex-shrink: 0;
  z-index: 1;
  transition: background var(--duration-fast), box-shadow var(--duration-fast);
}

.timeline__dot--current {
  background: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(79, 155, 255, 0.2), 0 0 16px rgba(79, 155, 255, 0.4);
}

.timeline__item:hover .timeline__dot {
  background: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(79, 155, 255, 0.15);
}

.timeline__line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, var(--border-glow), var(--border-subtle));
  margin-top: 0.5rem;
  border-radius: 2px;
}

.timeline__content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
}

.timeline__content:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}

.timeline__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.timeline__current-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline__role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.timeline__company {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-top: 0.25rem;
}

.timeline__location { color: var(--text-muted); font-weight: 400; }

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.35rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.timeline__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  list-style: none;
}

.timeline__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.timeline__bullets li::before {
  content: '▸';
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 0.05em;
}

.timeline__bullets li strong { color: var(--text-primary); font-weight: 600; }

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

/* =============================================
   EDUCATION SECTION
   ============================================= */
.education {
  background: var(--bg-primary);
}

.edu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.edu__card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-normal), transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal);
}

.edu__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--grad-primary);
  border-radius: 0 2px 2px 0;
}

.edu__card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.edu__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(79, 155, 255, 0.1);
  border: 1px solid rgba(79, 155, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.edu__degree {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.edu__institution {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.edu__year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-style: normal;
  margin-top: 0.5rem;
  display: block;
}

.edu__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
}

/* Certifications */
.certs { }
.certs__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.certs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.cert__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast) var(--ease-spring);
}

.cert__item:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.cert__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu__logo-img,
.cert__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

.cert__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cert__issuer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* =============================================
   ACHIEVEMENTS
   ============================================= */
.achievements {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.achievements__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.achievement__card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: border-color var(--duration-normal), transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal);
}

.achievement__card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.achievement__card--highlight {
  border-color: rgba(79, 155, 255, 0.25);
  background: linear-gradient(135deg, rgba(79, 155, 255, 0.06) 0%, rgba(124, 92, 252, 0.04) 100%);
}

.achievement__card--highlight:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-card), 0 0 40px rgba(79, 155, 255, 0.12);
}

.achievement__icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.achievement__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 4px;
}

.achievement__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.achievement__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.achievement__desc strong { color: var(--text-primary); font-weight: 600; }

.achievement__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.achievement__logo-tag {
  padding: 0.25rem 0.65rem;
  background: rgba(79, 155, 255, 0.12);
  border: 1px solid rgba(79, 155, 255, 0.25);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.04em;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--bg-primary);
  padding-bottom: calc(var(--section-gap) + 2rem);
}

.cta__inner {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glow);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
}

.cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(79, 155, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(124, 92, 252, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta__label { position: relative; z-index: 1; }

.cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta__subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
}

.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  background: var(--bg-primary);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 1.25rem;
}

.footer__link {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer__link:hover { color: var(--accent-primary); }

/* =============================================
   SECTION SUBTITLE
   ============================================= */
.section__subtitle {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

/* Wide card spans full row */
.project__card--wide {
  grid-column: 1 / -1;
}

.project__card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--duration-normal), transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal);
  position: relative;
  overflow: hidden;
}

.project__card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out);
}

.project__card:hover::after { transform: scaleX(1); }

.project__card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.project__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow var(--duration-fast);
}

.project__icon--health  { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.2); color: var(--accent-warm); }
.project__icon--sports  { background: rgba(0, 212, 170, 0.1);   border: 1px solid rgba(0, 212, 170, 0.2);   color: var(--accent-secondary); }
.project__icon--saas    { background: rgba(124, 92, 252, 0.1);  border: 1px solid rgba(124, 92, 252, 0.2);  color: var(--accent-tertiary); }
.project__icon--research{ background: rgba(79, 155, 255, 0.1);  border: 1px solid rgba(79, 155, 255, 0.2);  color: var(--accent-primary); }
.project__icon--ar      {
  background: linear-gradient(135deg, rgba(79, 155, 255, 0.1), rgba(124, 92, 252, 0.1));
  border: 1px solid rgba(124, 92, 252, 0.2);
  color: var(--accent-tertiary);
}

.project__card:hover .project__icon { box-shadow: 0 0 20px rgba(79, 155, 255, 0.2); }

.project__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.project__domain {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
}

.project__domain--health   { background: rgba(255, 107, 107, 0.08); color: var(--accent-warm); border: 1px solid rgba(255, 107, 107, 0.2); }
.project__domain--sports   { background: rgba(0, 212, 170, 0.08);   color: var(--accent-secondary); border: 1px solid rgba(0, 212, 170, 0.2); }
.project__domain--saas     { background: rgba(124, 92, 252, 0.08);  color: var(--accent-tertiary);  border: 1px solid rgba(124, 92, 252, 0.2); }
.project__domain--research { background: rgba(79, 155, 255, 0.08);  color: var(--accent-primary);   border: 1px solid rgba(79, 155, 255, 0.2); }
.project__domain--ar       { background: linear-gradient(90deg, rgba(79, 155, 255, 0.08), rgba(124, 92, 252, 0.08)); color: var(--accent-tertiary); border: 1px solid rgba(124, 92, 252, 0.2); }

.project__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
}

.project__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 6px rgba(0, 212, 170, 0.6);
  animation: pulse 2.5s ease infinite;
}

.project__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.project__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}

.project__desc strong { color: var(--text-primary); font-weight: 600; }

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

.project__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.project__highlights li::before {
  content: '✓';
  color: var(--accent-secondary);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.8rem;
}

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

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-primary);
  transition: color var(--duration-fast), gap var(--duration-fast);
  margin-top: 0.25rem;
  align-self: flex-start;
}

.project__link:hover {
  color: var(--accent-secondary);
  gap: 0.6rem;
}

/* ── Project Sub-badges (compact Wits links) ──── */
.project__sub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project__sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  transition: transform var(--duration-fast), filter var(--duration-fast);
  text-decoration: none;
}

.project__sub-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.project__sub-badge--health {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: var(--accent-warm);
}

.project__sub-badge--edu {
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.22);
  color: var(--accent-secondary);
}

/* ── Brand Logo Wall (AR Card) ──────────── */
.brand__wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand__item {
  flex: 1;
  min-width: 95px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0.75rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--duration-fast) var(--ease-spring), border-color var(--duration-fast), box-shadow var(--duration-fast);
  cursor: default;
}

.brand__item:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.brand__logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
}

.brand__logo-wrap img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand__fallback {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.brand__item > span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

[data-theme="light"] .brand__logo-wrap {
  background: rgba(37, 99, 235, 0.04);
}

/* ── Footer Built-with Line ──────────────── */
.footer__built {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.footer__built strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer__heart {
  font-size: 15px;
  line-height: 1;
  color: #ff6b6b;
  flex-shrink: 0;
  display: inline-block;
  animation: heartbeat 2.5s ease infinite;
  background: none;
  border: none;
  box-shadow: none;
  -webkit-text-fill-color: #ff6b6b;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.2); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.15); }
  56%       { transform: scale(1); }
}
.wits__sub-projects {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 107, 107, 0.04);
  border: 1px solid rgba(255, 107, 107, 0.1);
  border-radius: var(--radius-md);
}

.wits__sub-project {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.wits__sub-project:hover {
  border-color: rgba(255, 107, 107, 0.2);
  background: rgba(255, 107, 107, 0.04);
}

.wits__sub-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.1rem;
}

.wits__sub-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.wits__sub-link-badge a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent-warm);
  padding: 0.15rem 0.5rem;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 100px;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.wits__sub-link-badge a:hover {
  background: rgba(255, 107, 107, 0.18);
  color: #fff;
}

.wits__sub-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.wits__sub-desc em { color: var(--accent-secondary); font-style: normal; font-weight: 600; }

/* ── Tag variants ──────────────── */
.tag--sports { background: rgba(0, 212, 170, 0.1);  border-color: rgba(0, 212, 170, 0.25);   color: var(--accent-secondary); }
.tag--ar     { background: rgba(124, 92, 252, 0.1); border-color: rgba(124, 92, 252, 0.25);  color: var(--accent-tertiary); }

/* ── AR Brands Grid (wide card) ──────────────── */
.ar__brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.ar__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  transition: border-color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast) var(--ease-spring);
}

.ar__brand:hover {
  border-color: var(--border-subtle);
  background: rgba(255,255,255,0.04);
  transform: translateY(-3px);
}

.ar__brand-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.ar__brand-logo--marvel   { background: linear-gradient(135deg, #e23636, #a31c1c); }
.ar__brand-logo--uefa     { background: linear-gradient(135deg, #003f8f, #005db3); font-size: 1.4rem; }
.ar__brand-logo--pg       { background: linear-gradient(135deg, #003087, #0047b3); font-size: 0.85rem; }
.ar__brand-logo--nestle   { background: linear-gradient(135deg, #d4292a, #a01e1f); }
.ar__brand-logo--unilever { background: linear-gradient(135deg, #1c4f9c, #2660bc); }
.ar__brand-logo--reliance { background: linear-gradient(135deg, #0a5c36, #0d7a48); }

.ar__brand > span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ar__brand > p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__orb { animation: none; }
  .hero__scroll { animation: none; }
  .hero__badge-dot { animation: none; }
  .about__avatar-ring { animation: none; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================
   RESPONSIVE – TABLET
   ============================================= */
@media (max-width: 1024px) {
  .expertise__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__badges-grid { grid-template-columns: repeat(4, 1fr); }

  .edu__grid { grid-template-columns: 1fr; }

  .projects__grid { grid-template-columns: 1fr; }
  .project__card--wide { grid-column: 1; }

  .ar__brands-grid { grid-template-columns: repeat(2, 1fr); }

  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* =============================================
   RESPONSIVE – MOBILE
   ============================================= */
@media (max-width: 600px) {
  .hero__stats {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem;
    justify-content: center;
  }

  .hero__stat {
    min-width: calc(50% - 0.5rem);
    flex: none;
  }

  .hero__stat-divider { display: none; }

  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  .about__badges-grid { grid-template-columns: 1fr 1fr; }

  .expertise__grid { grid-template-columns: 1fr; }

  .timeline__item { grid-template-columns: 24px 1fr; gap: 1rem; }

  .achievements__grid { grid-template-columns: 1fr; }

  .certs__grid { grid-template-columns: 1fr; }

  .ar__brands-grid { grid-template-columns: 1fr 1fr; }
  .project__header { flex-wrap: wrap; }
  .project__meta { align-items: flex-start; }

  .timeline__header { flex-direction: column; }
  .timeline__date { align-self: flex-start; }

  .cta__actions { flex-direction: column; align-items: center; }
  .cta__actions .btn { width: 100%; max-width: 340px; justify-content: center; }

  .footer__inner { flex-direction: column; text-align: center; }

  .footer__links { justify-content: center; }
}

@media (max-width: 400px) {
  .about__badges-grid { grid-template-columns: 1fr; }
}

/* =============================================
   ACCESSIBILITY & USABILITY WIDGET
   ============================================= */
.a11y-widget {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 9999;
}

.a11y-widget__trigger {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(79, 155, 255, 0.4), 0 0 0 2px rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring), background var(--duration-fast), box-shadow var(--duration-fast);
}

.a11y-widget__trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(79, 155, 255, 0.6), 0 0 0 3px rgba(255,255,255,0.3);
}

.a11y-widget__trigger:focus-visible {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 3px;
}

.a11y-widget__panel {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 290px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.25rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  animation: a11yPopIn 0.25s var(--ease-out);
}

.a11y-widget__panel.open {
  display: flex;
}

@keyframes a11yPopIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.a11y-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
}

.a11y-widget__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.a11y-widget__close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast);
}

.a11y-widget__close:hover {
  color: var(--text-primary);
}

.a11y-widget__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.a11y-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.a11y-group__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.a11y-row {
  display: flex;
  gap: 0.4rem;
}

.a11y-btn {
  flex: 1;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--duration-fast);
}

.a11y-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.a11y-btn--active {
  background: var(--accent-primary) !important;
  color: #fff !important;
  border-color: var(--accent-primary) !important;
}

.a11y-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all var(--duration-fast);
}

.a11y-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.a11y-toggle-btn[aria-pressed="true"] {
  background: rgba(0, 212, 170, 0.15);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.a11y-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.6rem;
  text-align: center;
}

.a11y-reset-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--duration-fast);
}

.a11y-reset-link:hover {
  color: var(--accent-warm);
}
