/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colors */
  --bg-primary: #050a08;
  --bg-secondary: #0a1510;
  --bg-card: rgba(16, 32, 24, 0.6);
  --bg-glass: rgba(16, 40, 28, 0.35);
  --border-glass: rgba(34, 197, 94, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --green-primary: #22c55e;
  --green-light: #4ade80;
  --green-glow: rgba(34, 197, 94, 0.4);
  --green-dark: #166534;
  --green-muted: #15803d;

  --text-primary: #f0fdf4;
  --text-secondary: #a3a3a3;
  --text-muted: #6b7280;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-max: 1200px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: 0.6s var(--ease-out-expo);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--green-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green-primary);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--green-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-family: var(--font-accent);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-primary);
  animation: pulse-text 1.5s ease-in-out infinite;
}

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

@keyframes pulse-text {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s ease-out;
}

.bg-glow--1 {
  background: var(--green-primary);
  top: -200px;
  right: -200px;
}

.bg-glow--2 {
  background: #059669;
  bottom: 30%;
  left: -300px;
  opacity: 0.08;
}

/* Floating particles */
.particles-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--green-primary);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  padding: 10px 24px;
  background: rgba(5, 10, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-primary), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.nav-btn:hover {
  border-color: var(--green-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

.nav-btn:hover::before {
  opacity: 0.1;
}

.nav-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--green-primary);
  position: relative;
  z-index: 1;
}

.nav-btn span {
  position: relative;
  z-index: 1;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  perspective: 1200px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.hero-left {
  transform: translateZ(0);
}

.hero-title-small {
  font-family: var(--font-accent);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero-role {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.8vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text-primary), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.7s forwards;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-avatar-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  perspective: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-glow {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 60%;
  background: radial-gradient(ellipse, var(--green-glow), transparent 70%);
  filter: blur(45px);
  z-index: 0;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.85; transform: translateX(-50%) scale(1.1); }
}

.hero-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(34, 197, 94, 0.2));
  opacity: 0;
  transform: scale(0.9) translateY(30px);
  animation: heroReveal 1.2s var(--ease-out-expo) 0.3s forwards;
  transition: transform 0.4s var(--ease-out-expo), filter 0.4s ease;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-name {
  margin-top: -50px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-name-sub {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 1s forwards;
}

.hero-name-main {
  font-family: var(--font-heading);
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 0.9;
  background: linear-gradient(180deg, var(--text-primary) 40%, rgba(240, 253, 244, 0.2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out-expo) 1.1s forwards;
}

.hero-right {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.9s forwards;
}

.hero-bio {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 280px;
  text-align: justify;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BRAND LOGOS
   ============================================ */
.brands {
  padding: 40px 0 60px;
  overflow: hidden;
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: scroll-brands 25s linear infinite;
  width: max-content;
}

.brands-track:hover {
  animation-play-state: paused;
}

.brand-item {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
  user-select: none;
}

.brand-item:hover {
  color: var(--green-primary);
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-primary);
  opacity: 0.5;
}

@keyframes scroll-brands {
  to { transform: translateX(-50%); }
}

/* ============================================
   SECTION REVEAL (3D Scroll)
   ============================================ */
.reveal-section {
  opacity: 0;
  transform: perspective(1200px) rotateX(8deg) translateY(80px) scale(0.95);
  transition: all 1s var(--ease-out-expo);
  transform-origin: center top;
  will-change: transform, opacity;
}

.reveal-section.visible {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
}

/* Stagger children */
.reveal-section .stagger-child {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s var(--ease-out-expo);
}

.reveal-section.visible .stagger-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section.visible .stagger-child:nth-child(1) { transition-delay: 0.1s; }
.reveal-section.visible .stagger-child:nth-child(2) { transition-delay: 0.2s; }
.reveal-section.visible .stagger-child:nth-child(3) { transition-delay: 0.3s; }
.reveal-section.visible .stagger-child:nth-child(4) { transition-delay: 0.4s; }
.reveal-section.visible .stagger-child:nth-child(5) { transition-delay: 0.5s; }
.reveal-section.visible .stagger-child:nth-child(6) { transition-delay: 0.6s; }

/* ============================================
   ABOUT / TAGLINE SECTION
   ============================================ */
.tagline {
  padding: var(--section-padding) 0;
}

.tagline-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
  margin-bottom: 48px;
}

.tagline-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 800px;
}

.tagline-heading .highlight {
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 700px;
}

/* ============================================
   WHAT WE DO / SERVICES (4 Cards Section)
   ============================================ */
.what-we-do {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.what-we-do-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.what-we-do-kicker {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 12px;
}

.what-we-do-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.what-we-do-title .highlight {
  color: var(--green-primary);
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.what-we-do-bar {
  width: 50px;
  height: 3px;
  background: var(--green-primary);
  border-radius: 3px;
  margin: 0 auto 24px;
  box-shadow: 0 0 12px var(--green-glow);
}

.what-we-do-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.what-we-do-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.what-card {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 28, 20, 0.75) 0%, rgba(6, 14, 10, 0.85) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  cursor: default;
}

.what-card-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  opacity: 0.3;
  filter: blur(25px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.what-card:hover .what-card-glow {
  opacity: 0.85;
  transform: translateX(-50%) scale(1.3);
}

.what-card:hover {
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 197, 94, 0.15);
}

.what-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--green-primary);
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-out-expo);
}

.what-card-icon svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px var(--green-glow));
}

.what-card:hover .what-card-icon {
  transform: scale(1.1) translateY(-2px);
}

.what-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.what-card-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* ============================================
   STATS / EXPERIENCE COUNTER SECTION
   ============================================ */
.stats-section {
  padding: clamp(30px, 5vw, 60px) 0;
  position: relative;
  overflow: visible;
}

.stats-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.stats-curve-svg {
  position: absolute;
  top: -25px;
  left: -10%;
  width: 120%;
  height: calc(100% + 50px);
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.45));
  animation: curveGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes curveGlowPulse {
  0% {
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.3));
    opacity: 0.75;
  }
  100% {
    filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.65));
    opacity: 1;
  }
}

.stats-sparkle {
  position: absolute;
  color: var(--green-primary);
  filter: drop-shadow(0 0 8px var(--green-light));
  pointer-events: none;
  z-index: 2;
}

.stats-sparkle--1 {
  top: 10px;
  left: 12%;
  width: 22px;
  height: 22px;
  animation: sparkleTwinkle 3.5s ease-in-out infinite;
}

.stats-sparkle--2 {
  top: -14px;
  right: 18%;
  width: 28px;
  height: 28px;
  color: var(--green-light);
  filter: drop-shadow(0 0 12px var(--green-primary));
  animation: sparkleTwinkle 4s ease-in-out infinite 0.6s;
}

@keyframes sparkleTwinkle {
  0%, 100% {
    transform: scale(0.85) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15) rotate(15deg);
    opacity: 1;
    filter: drop-shadow(0 0 14px var(--green-light));
  }
}

.stats-card {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 28, 20, 0.75) 0%, rgba(6, 14, 10, 0.88) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  padding: 38px 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 40px rgba(34, 197, 94, 0.06);
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  cursor: default;
  z-index: 1;
}

.stats-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 50px rgba(34, 197, 94, 0.15);
}

.stats-card-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.stats-card:hover .stats-card-glow {
  opacity: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  transition: transform 0.3s var(--ease-out-expo);
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-number-wrap {
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.stat-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  display: inline-block;
}

.stat-suffix {
  font-weight: 700;
  color: #ffffff;
  margin-left: 2px;
}

.stat-label {
  font-family: var(--font-body);
  font-size: clamp(12.5px, 1.1vw, 14.5px);
  font-weight: 500;
  color: var(--green-light);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: var(--section-padding) 0;
}

.section-label {
  font-family: var(--font-accent);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.5s var(--ease-out-expo);
  transform-style: preserve-3d;
  perspective: 600px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-4px) rotateX(2deg);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(34, 197, 94, 0.08);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.service-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.service-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.service-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.35s var(--ease-out-expo);
}

.service-card:hover .service-card-arrow {
  transform: scale(1.1) translateX(4px);
  box-shadow: 0 0 20px var(--green-glow);
}

.service-card-arrow svg {
  width: 16px;
  height: 16px;
  fill: var(--bg-primary);
}

/* ============================================
   PORTFOLIO POPUP MODAL / LIGHTBOX
   ============================================ */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.portfolio-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 6, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
}

.portfolio-modal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  display: flex;
}

.portfolio-modal-card {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, rgba(14, 30, 22, 0.96) 0%, rgba(6, 14, 10, 0.98) 100%);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(34, 197, 94, 0.15);
  transform: scale(0.92) translateY(24px);
  transition: transform 0.45s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.portfolio-modal.active .portfolio-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 14, 10, 0.7);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-close-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--green-primary);
  color: var(--green-light);
  transform: rotate(90deg);
}

.modal-media-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  background: #030805;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-media-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  opacity: 0.25;
  filter: blur(50px);
  pointer-events: none;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out-expo);
}

.modal-image.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.modal-info {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-info-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-category {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-primary);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.modal-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 16px;
}

.modal-nav-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-nav-btn svg {
  width: 15px;
  height: 15px;
}

.modal-nav-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--green-primary);
  color: var(--green-light);
  transform: translateY(-2px);
}

.modal-counter {
  font-family: var(--font-accent);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.modal-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: #030805;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--green-glow);
  transition: all 0.35s var(--ease-out-expo);
}

.modal-action-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.modal-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45);
  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .portfolio-modal {
    padding: 12px;
  }
  .modal-media-wrapper {
    height: 230px;
  }
  .modal-info {
    padding: 18px;
  }
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-nav-btns {
    justify-content: center;
  }
  .modal-action-btn {
    justify-content: center;
  }
}

/* ============================================
   SKILLS / TOOLS MARQUEE
   ============================================ */
.tools {
  padding: 60px 0;
  overflow: hidden;
}

.tools-row {
  display: flex;
  gap: 16px;
  width: max-content;
  margin-bottom: 16px;
}

.tools-row--1 {
  animation: scroll-tools 20s linear infinite;
}

.tools-row--2 {
  animation: scroll-tools 25s linear infinite reverse;
}

@keyframes scroll-tools {
  to { transform: translateX(-50%); }
}

.tool-tag {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.3s;
  cursor: default;
}

.tool-tag:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--section-padding) 0;
  text-align: center;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-link {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  position: relative;
}

.contact-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--green-primary);
  color: var(--bg-primary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
}

.contact-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.contact-link:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.2);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: fill 0.3s, stroke 0.3s;
}

.contact-link:hover svg {
  fill: var(--green-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.footer-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-accent);
  letter-spacing: 1px;
}

.footer-text .green {
  color: var(--green-primary);
}

/* ============================================
   CURSOR FOLLOWER
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  will-change: left, top;
}

/* ============================================
   3D TILT CARDS
   ============================================ */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card .tilt-inner {
  transform: translateZ(30px);
}

/* ============================================
   PARALLAX DEPTH LAYERS
   ============================================ */
[data-depth] {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-left {
    order: 1;
  }

  .hero-center {
    order: 0;
  }

  .hero-right {
    order: 2;
  }

  .hero-bio {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .hero-avatar-wrapper {
    max-width: 260px;
    margin: 0 auto;
  }

  .what-we-do-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stats-card {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

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

  .nav {
    gap: 8px;
  }

  .nav-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero-name-main {
    font-size: clamp(48px, 15vw, 80px);
  }
}

@media (max-width: 600px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .hero {
    padding-top: 120px;
  }

  .what-we-do-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-card {
    padding: 28px 16px;
    border-radius: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }

  .stat-label {
    font-size: 12px;
    white-space: normal;
  }

  .stats-sparkle--1 {
    left: 4%;
  }

  .stats-sparkle--2 {
    right: 4%;
  }

  .services-grid {
    gap: 12px;
  }

  .service-card {
    padding: 14px 16px;
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================
   SPECIAL ANIMATION CLASSES
   ============================================ */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  animation: textReveal 0.8s var(--ease-out-expo) forwards;
}

@keyframes textReveal {
  to { transform: translateY(0); }
}

/* Magnetic button effect helper */
.magnetic {
  transition: transform 0.3s var(--ease-out-expo);
}

/* Section separator */
.section-sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
  margin: 20px 0;
}
