/* --- CUSTOM PROPERTIES & DESIGN SYSTEM --- */
:root {
  /* Colors */
  --bg-main: #060814;
  --bg-surface: #0b0f1e;
  --bg-surface-elevated: #12182c;
  --bg-surface-glow: rgba(16, 185, 129, 0.03);
  
  --border-light: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(16, 185, 129, 0.2);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #94a3b8;
  
  /* Brand Accents */
  --color-green: #10b981;       /* E-com growth / Delivered orders */
  --color-green-glow: rgba(16, 185, 129, 0.35);
  
  --color-meta: #1877f2;        /* Meta Ads Blue */
  --color-meta-glow: rgba(24, 119, 242, 0.35);
  
  --color-tiktok-cyan: #00f2fe; /* TikTok Cyan */
  --color-tiktok-pink: #fe0979; /* TikTok Pink */
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Shadow & Glow */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.25);
  --glow-meta: 0 0 20px rgba(24, 119, 242, 0.25);
  --glow-tiktok: 0 0 25px rgba(0, 242, 254, 0.2);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- RESET & GLOBAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
}

/* Background Gradients & Glows */
body::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-meta-glow) 0%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, select, textarea {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-meta), var(--color-green));
}

p {
  color: var(--text-secondary);
}

.text-gradient-growth {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-platforms {
  background: linear-gradient(90deg, #1877f2 0%, #00f2fe 50%, #fe0979 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-main);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- UTILITIES & LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

.glass-panel {
  background: rgba(11, 15, 30, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-green) 0%, #059669 100%);
  color: #000;
  box-shadow: var(--glow-green);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(6, 8, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
}

.logo {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-green);
  text-shadow: var(--glow-green);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-green);
  border-radius: 1px;
  box-shadow: var(--glow-green);
}

/* Specialize button inside nav links to avoid specificity overrides */
.nav-links a.btn {
  color: #000;
}

.nav-links a.btn:hover,
.nav-links a.btn.active {
  color: #000;
}

.nav-links a.btn::after {
  display: none;
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  z-index: 1001;
}

.mobile-toggle:hover,
.mobile-toggle:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  outline: none;
}

/* Navigation mobile overlay backdrop */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 9, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  position: relative;
  overflow: hidden;
}

/* Cyber grid background layer */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  mask-image: radial-gradient(circle, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-green);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background-color: var(--color-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 1.5rem;
  text-align: left;
  border-left: 2px solid var(--color-green);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.stat-number {
  font-family: var(--font-headings);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  display: block;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Custom interactive graphic in hero right side */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-globe {
  width: min(75%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  position: relative;
  animation: rotate 40s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.orbit-1 {
  width: 90%;
  aspect-ratio: 1;
  animation: rotate 60s linear infinite reverse;
}

.orbit-2 {
  width: 100%;
  aspect-ratio: 1;
  animation: rotate 80s linear infinite;
}

.visual-node {
  position: absolute;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

.node-meta {
  top: 15%;
  right: 0;
  border-left: 2px solid var(--color-meta);
  animation-delay: 0s;
}

.node-tiktok {
  bottom: 25%;
  left: 0;
  border-left: 2px solid var(--color-tiktok-cyan);
  animation-delay: 1.5s;
}

.node-morocco {
  top: 50%;
  right: 0;
  border-left: 2px solid var(--color-green);
  animation-delay: 3s;
}

.node-mena {
  bottom: 5%;
  right: 5%;
  border-left: 2px solid var(--color-green);
  animation-delay: 4.5s;
}

/* --- CHANNELS & SKILLS --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-card {
  padding: 3rem 2.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.skill-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
}

.skill-card:hover .skill-icon-wrap {
  transform: scale(1.08);
}

.skill-card.meta-focus {
  border-bottom: 3px solid var(--color-meta);
}
.skill-card.meta-focus:hover {
  box-shadow: 0 10px 30px -10px rgba(24, 119, 242, 0.15);
  border-color: rgba(24, 119, 242, 0.4);
}

.skill-card.tiktok-focus {
  border-bottom: 3px solid var(--color-tiktok-cyan);
}
.skill-card.tiktok-focus:hover {
  box-shadow: 0 10px 30px -10px rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.4);
}

.skill-card.data-focus {
  border-bottom: 3px solid var(--color-green);
}
.skill-card.data-focus:hover {
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.skill-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.skill-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* --- FOOTER --- */
footer {
  background-color: #030409;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--color-green);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  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);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .stats-grid {
    max-width: 720px;
    margin: 0 auto;
  }
  
  .hero-visual {
    display: none; /* Hide advanced orbits on tablet/mobile for visual clarity */
  }
  
  .calc-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .calc-results {
    border-left: 1px solid var(--border-light);
    border-top: 3px solid var(--color-green);
    padding: 2.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-graphic {
    max-width: 380px;
    margin: 0 auto;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 5rem 0;
  }

  header {
    background: rgba(6, 8, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.5rem 0;
  }

  header .container {
    padding: 0.5rem 1.25rem;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(11, 15, 30, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    padding: 3rem 1.5rem;
  }
  
  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.15rem;
    font-family: var(--font-headings);
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .nav-links a.active::after {
    bottom: auto;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 2px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-sliders, .calc-results, .contact-info-panel {
    padding: 2rem;
  }

  .contact-links-panel {
    padding: 1.5rem 0;
  }

  .win-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  /* GPU lag reduction for smoother scrolling on mobile */
  .glass-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(11, 15, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .contact-link-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(11, 15, 30, 0.8) !important;
  }

  /* Footer wrapping fix to prevent text cuts */
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    padding: 0 1rem;
  }
}

@media (max-width: 580px) {
  .timeline-meta {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  
  .timeline-date {
    margin-top: 0.15rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  section {
    padding: 4rem 0;
  }

  .logo {
    font-size: 1.25rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .calc-sliders, .calc-results, .contact-info-panel {
    padding: 1.5rem 1.25rem;
  }

  .contact-links-panel {
    padding: 1rem 0;
  }

  .win-content {
    padding: 1.5rem 1.25rem;
  }
  
  .calculator-summary-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .summary-value {
    font-size: 1.5rem;
  }
  
  .contact-link-card {
    padding: 1.25rem 1.25rem;
    gap: 1rem;
  }
  
  .link-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  
  .link-icon-wrap svg {
    width: 20px;
    height: 20px;
  }
  
  .link-details h4 {
    font-size: 1.05rem;
  }
  
  .link-details p {
    font-size: 0.75rem;
  }
  
  .link-details .link-number {
    font-size: 0.85rem;
  }
  
  .link-arrow {
    display: none;
  }
}

/* ==========================================================================
   RECENT CAMPAIGN WINS SECTION STYLING
   ========================================================================== */
.wins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.win-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  height: 100%;
}

.win-image-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  background: #000;
  cursor: pointer;
}

.win-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.win-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 20, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.win-image-wrap:hover .win-screenshot {
  transform: scale(1.04);
}

.win-image-wrap:hover .win-image-overlay {
  opacity: 1;
}

.win-image-overlay svg {
  color: var(--color-green);
  filter: var(--glow-green);
}

.win-image-overlay span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.win-content {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.win-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(24, 119, 242, 0.2);
  background: rgba(24, 119, 242, 0.08);
  color: var(--color-meta);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.win-card:hover .win-badge {
  box-shadow: 0 0 10px rgba(24, 119, 242, 0.08);
}

.win-timeframe {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.25rem;
  width: fit-content;
}

.win-timeframe svg {
  color: var(--color-green);
  flex-shrink: 0;
}

.win-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.win-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.win-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  margin-top: auto;
}

.win-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.win-stat-val {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.win-stat-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   INTERACTIVE PORTFOLIO LIGHTBOX STYLING
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(3, 4, 9, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem 1rem;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: var(--text-primary);
}

.lightbox-content {
  width: 95%;
  max-width: 900px;
  max-height: 70vh;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.lightbox-modal[open] .lightbox-content {
  animation: zoom-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--text-secondary);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
}

.lightbox-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-caption {
  margin: 1.5rem auto 0 auto;
  display: block;
  width: 90%;
  max-width: 700px;
  text-align: center;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  font-size: 1rem;
  font-family: var(--font-headings);
  font-weight: 600;
}

@keyframes zoom-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   RECENT WINS MOBILE RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .wins-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .win-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  
  .win-image-wrap {
    height: 200px;
  }
  
  .win-content {
    padding: 1.5rem 1.25rem;
  }
  
  .win-content h3 {
    font-size: 1.25rem;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 32px;
  }
}



/* Evidence notes, keyboard navigation, and responsive refinements. */
.hero-content, .hero-visual { min-width: 0; }
.hero-visual { min-height: 420px; }
.stats-context { margin-top: 2rem; margin-bottom: 1rem; font-size: .875rem; }
.stats-note, .proof-note, .calculator-note { font-size: .875rem; line-height: 1.7; color: var(--text-secondary); }
.stats-note { margin-top: 1rem; }
.stats-note a { text-decoration: underline; text-underline-offset: 3px; }
.stat-number { font-size: clamp(1.5rem, 2.5vw, 2.4rem); white-space: nowrap; }
.proof-note { max-width: 740px; margin: -2rem auto 2rem; text-align: center; }
.calculator-note { margin-bottom: 1.5rem; }
section[id] { scroll-margin-top: 100px; }
.win-image-wrap { display: block; width: 100%; border: 0; padding: 0; background: var(--bg-surface); cursor: pointer; color: var(--text-primary); font: inherit; }
.lightbox-modal[open] { display: flex; }
.lightbox-modal::backdrop { background: rgba(3, 4, 9, .95); }
.lightbox-close { font-family: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--color-tiktok-cyan); outline-offset: 4px; }
.skip-link { position: fixed; top: 1rem; left: 1rem; padding: .75rem 1rem; z-index: 100002; background: var(--bg-surface); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 1024px) {
  .mobile-toggle { display: flex; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100dvh; background: var(--bg-surface); flex-direction: column; justify-content: center; gap: 2rem; padding: 4rem 1.5rem; z-index: 999; visibility: hidden; }
  .nav-links.active { right: 0; visibility: visible; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: .75rem; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: .65rem; }
  .funnel-stage { flex-wrap: wrap; gap: .5rem; }
  .contact-link-card { min-width: 0; }
  .link-details { min-width: 0; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Give the documented metrics their own full-width row below the hero. */
.hero-grid { row-gap: 2.5rem; }
.hero-metrics { grid-column: 1 / -1; min-width: 0; }
.hero-metrics .stats-context { margin-top: 0; }
.hero-ctas { margin-bottom: 0; flex-wrap: wrap; }
.hero-visual { align-self: start; margin-top: 3rem; }
@media (max-width: 1024px) {
  .hero-metrics .stats-grid { max-width: none; }
}
@media (max-width: 768px) {
  .hero-metrics .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .hero-metrics .stats-grid { gap: 1rem; }
  .hero-metrics .stat-number { font-size: clamp(1.25rem, 5.5vw, 1.6rem); }
}

@media (max-width: 360px) {
  .hero-metrics .stats-grid { grid-template-columns: 1fr; }
}

/* Evidence-led portfolio: keep the existing dark palette and typography. */
section { padding: 4.5rem 0; }
.hero { min-height: auto; padding-top: 8rem; padding-bottom: 4rem; }
.hero h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.hero-description { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.75rem; }
.hero-availability { margin-top: 1rem; font-size: .875rem; }
.hero-visual { margin-top: 1rem; min-height: 380px; }
.hero-grid { row-gap: 2rem; }
.results-heading { text-align: left; font-size: 1.4rem; margin-bottom: .75rem; }
.results-heading::after { display: none; }
.stat-card { padding: 1.25rem; }
.stat-number { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.stat-label { font-size: .8rem; line-height: 1.5; }
.stats-note { font-size: .875rem; }
h2 { margin-bottom: 2rem; }
.section-intro { max-width: 700px; text-align: center; margin: -1rem auto 2rem; }
.case-context { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.case-context h3, .case-role h3 { margin-bottom: .75rem; }
.wins-grid { gap: 1.5rem; }
.win-content { padding: 1.5rem; }
.win-content h3 { font-size: 1.4rem; }
.win-badge { color: #7db5ff; }
.win-timeframe { margin-top: .75rem; margin-bottom: .75rem; }
.report-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: .75rem; }
.report-metrics strong { display: block; font-family: var(--font-headings); font-size: 1.7rem; color: var(--text-primary); white-space: nowrap; }
.report-metrics span { color: var(--text-secondary); font-size: .875rem; }
.win-image-wrap { height: auto; background: #e9eef3; }
.win-screenshot { display: block; width: 100%; height: auto; object-fit: contain; }
.win-image-wrap:hover .win-screenshot { transform: none; }
.win-card figure { margin-top: auto; }
figcaption { padding: 1rem 1.5rem; color: var(--text-secondary); font-size: .875rem; }
figcaption a, .contact-link, .email-address { text-decoration: underline; text-underline-offset: 4px; }
.proof-open { color: var(--color-green); background: transparent; padding: .75rem 1.5rem; text-align: left; border: 0; font: inherit; cursor: pointer; min-height: 44px; }
.evidence-note { margin: 1.5rem 0; color: var(--text-secondary); font-size: .875rem; }
.case-role { padding: 1.5rem; }
.source-note { margin-top: .75rem; font-size: .875rem; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.skill-card { padding: 1.75rem; }
.skill-card p { margin-bottom: 1.25rem; }
.eyebrow { display: block; color: var(--color-green); font-size: .8rem; font-weight: 600; letter-spacing: .06em; margin-bottom: .75rem; }
.skill-tag { font-size: .8rem; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; }
.process-grid h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.about-layout { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: center; }
.about-profile { text-align: center; }
.about-profile img { display: block; width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.about-profile p { margin-top: .5rem; font-size: .9rem; }
.about-layout h2 { text-align: left; }
.about-layout h2::after { left: 0; transform: none; }
.about-layout p + p { margin-top: 1rem; }
.collaboration { padding: 1.75rem; margin-top: 2rem; }
.collaboration h3 { margin-bottom: .75rem; }
.collaboration .skill-tags { margin-top: 1.25rem; }
.contact-simple { padding: 2.5rem; text-align: center; max-width: 950px; margin: auto; }
.contact-simple p { max-width: 650px; margin: 0 auto 1.5rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.contact-link { min-height: 44px; display: inline-flex; align-items: center; padding: .5rem; }
.email-address { display: inline-block; min-height: 44px; padding: .5rem; overflow-wrap: anywhere; }
.nav-links { gap: 1.75rem; }
.nav-links a.btn { padding: .65rem 1.1rem; font-size: .875rem; }
.proof-controls { display: flex; gap: 1rem; align-items: center; margin: 0 3rem 1rem; }
.proof-controls .btn { min-height: 44px; width: auto; padding: .5rem 1rem; }
.proof-viewport { width: 95%; max-width: 1200px; max-height: 65dvh; overflow: auto; border-radius: 12px; }
.lightbox-modal .lightbox-content { display: block; width: 100%; max-width: none; max-height: none; border: 0; border-radius: 0; transform: none; animation: none; }
.lightbox-modal.is-zoomed .lightbox-content { width: auto; min-width: 100%; }
.lightbox-caption { font-size: .95rem; margin-top: 1rem; }
.lightbox-modal { height: 100dvh; }
@media (max-width: 1024px) {
  .wins-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { overflow-y: auto; justify-content: flex-start; padding: 5rem 1.5rem 2rem; gap: 1rem; }
  .nav-links a { min-height: 44px; flex-shrink: 0; display: flex; align-items: center; }
  .process-grid { gap: 1.25rem; }
}
@media (max-width: 768px) {
  section { padding: 3rem 0; }
  .hero { padding-top: 7rem; padding-bottom: 3rem; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); }
  .hero-description { font-size: 1rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-grid { gap: 1.75rem; }
  .results-heading { text-align: center; }
  .case-context, .wins-grid, .platform-grid, .process-grid, .about-layout { grid-template-columns: 1fr; }
  .case-context { gap: 1.25rem; }
  .process-grid article { border-left: 2px solid var(--color-green); padding-left: 1.25rem; }
  .about-layout { gap: 1.75rem; }
  .about-layout h2 { text-align: center; }
  .about-layout h2::after { left: 50%; transform: translateX(-50%); }
  .contact-simple { padding: 1.5rem; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; }
  .proof-controls { margin: 2.5rem 0 1rem; flex-wrap: wrap; justify-content: center; }
  .proof-viewport { max-height: 60dvh; }
}
@media (max-width: 480px) {
  .stat-label { font-size: .75rem; }
  .stat-card { padding: .75rem; }
  .stat-number { font-size: clamp(1.25rem, 5.5vw, 1.6rem); }
  .report-metrics strong { font-size: 1.5rem; }
  .report-metrics span { font-size: .8rem; }
  .skill-card, .collaboration { padding: 1.25rem; }
}

/* Secondary CV details stay below the documented campaign experience. */
.supporting-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.supporting-skills .eyebrow { color: var(--text-secondary); }
.background-details { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); }
.background-details article { min-width: 0; }
.background-details h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.background-details p, .background-details li { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; }
.background-details ul { padding-left: 1.1rem; margin-bottom: .75rem; }
.background-details li + li { margin-top: .4rem; }
@media (max-width: 768px) {
  .supporting-skills, .background-details { grid-template-columns: 1fr; }
  .background-details { gap: 1.5rem; }
}
