/* Fonts loaded via <link> in HTML for best performance */

/* Custom Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: transform 0.1s ease-out, background-color 0.3s ease;
}

.custom-cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  position: fixed;
  top: -10px;
  left: -10px;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease-out;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20000;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(20px);
}

:root {
  --bg-color: #f8faf7; 
  --text-color: #1a1a1a;
  --accent-color: #025035; 
  --secondary-color: #00357a; 
  --primary-green: #008f5d; 
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
  --glass-bg: rgba(248, 250, 247, 0.8);
  --glass-border: rgba(2, 80, 53, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

video, .parallax-bg {
  background: #ffffff;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-green), var(--accent-color));
  z-index: 10001;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 100px;
  border: 3px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* Enhanced Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

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

.text-huge {
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.text-h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

.text-h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.text-body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.85); /* Darkened for better readability */
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-4 { gap: 2rem; }
.gap-8 { gap: 4rem; }

/* Components */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.logo-text-split {
  display: inline-flex;
  gap: 0.25em;
  white-space: nowrap;
}

.logo-text-split .word-green {
  color: var(--accent-color);
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff; /* White "border" effect */
}

.logo-text-split .word-chilly {
  color: var(--secondary-color);
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #3b4d2a;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--accent-color);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.2rem;
  border-radius: 100px;
  background-color: var(--accent-color);
  color: var(--bg-color);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(26, 93, 59, 0.15);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  pointer-events: none;
}

.btn:hover::after {
  left: 100%;
}

.btn:hover {
  transform: translateY(-5px) scale(1.02);
  background-color: var(--secondary-color);
  box-shadow: 0 15px 40px rgba(45, 43, 92, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  border-color: var(--secondary-color);
  box-shadow: 0 10px 30px rgba(45, 43, 92, 0.2);
}

/* Placeholders */
.placeholder {
  background: linear-gradient(145deg, var(--placeholder-bg), #111);
  border: 1px solid var(--placeholder-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666;
  font-weight: 400;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
  transform-style: preserve-3d;
}

.placeholder::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2.5s infinite linear;
  transform: skewX(-20deg);
}

@keyframes shimmer {
  0% { transform: translateX(-150%) skewX(-20deg); }
  100% { transform: translateX(150%) skewX(-20deg); }
}

.placeholder-img {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.placeholder-video {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 400px;
}

.placeholder-square {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  aspect-ratio: 1/1;
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
.marquee-content span {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  text-transform: uppercase;
  color: #000;
  opacity: 0.2; /* Subtler marquee for premium look */
  margin: 0 3rem;
  letter-spacing: 0.1em;
  font-family: var(--font-heading);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 3D specific placeholders */
.cube-placeholder {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, var(--primary-green), #2a3d1c);
  border: 1px solid var(--accent-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), inset 0 2px 10px rgba(255,255,255,0.1);
  transform-style: preserve-3d;
}

.hero-3d-wrapper {
  perspective: 1000px;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.float-1 { position: absolute; top: 20%; left: 15%; }
.float-2 { position: absolute; bottom: 30%; right: 15%; width: 140px; height: 140px;}
.float-3 { position: absolute; top: 60%; left: 25%; width: 60px; height: 60px; filter: blur(2px);}

/* ================================
   OLD HERO (kept for other pages)
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 140px;
  position: relative;
  overflow: hidden;
}

/* ================================
   TICKER STRIP
   ================================ */
.hero-ticker {
  position: fixed;
  top: 73px;
  left: 0;
  width: 100%;
  z-index: 99;
  background: var(--hero-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  padding: 0.55rem 0;
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(201, 232, 97, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 1.2rem;
}

.ticker-dot {
  color: rgba(201, 232, 97, 0.4) !important;
  padding: 0 !important;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================
   HERO V2
   ================================ */
.hero-v2 {
  min-height: 100vh;
  padding-top: 120px; /* nav + ticker */
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-v2-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hero-dark) 0%, var(--hero-mid) 50%, var(--hero-light) 100%);
  z-index: 0;
}

.hero-v2-dot-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.05;
  z-index: 1;
}

.hero-v2-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ---- LEFT TEXT ---- */
.hero-v2-left {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201, 232, 97, 0.12);
  border: 1px solid rgba(201, 232, 97, 0.3);
  color: var(--primary-green);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  width: fit-content;
  backdrop-filter: blur(8px);
}

.hero-v2-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}

.hero-v2-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.85); /* Brightened for better readability on dark bg */
  max-width: 480px;
  margin: 0;
}

.hero-v2-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: var(--primary-green);
  color: var(--hero-dark);
  box-shadow: 0 8px 28px rgba(201, 232, 97, 0.3);
}

.hero-btn-primary:hover {
  background: #d4ef6a;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(201, 232, 97, 0.4);
}

.hero-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: none;
}

.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* ---- STAT PILLS ---- */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.hero-stat-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-green);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(201, 232, 97, 0.8);
}

/* ---- RIGHT PHONE MOCKUP ---- */
.hero-v2-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-wrapper {
  position: relative;
  width: 240px;
  animation: phoneFloat 5s ease-in-out infinite alternate;
}

@keyframes phoneFloat {
  0%   { transform: translateY(0px) rotate(-1deg); }
  100% { transform: translateY(-18px) rotate(1deg); }
}

.phone-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,232,97,0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 420px;
  background: #0a1a0f;
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.5),
    0 0 0 1px rgba(201,232,97,0.08),
    inset 0 1px 0 rgba(255,255,255,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 60px;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 0 0 10px 10px;
  margin: 8px auto 0;
  flex-shrink: 0;
}

.reel-screen {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #071208 0%, #0d2b1a 40%, #183d26 100%);
  overflow: hidden;
}

.reel-overlay-top {
  padding: 10px 12px 0;
}

.reel-brand-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-color));
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.reel-username {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.reel-type {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

.reel-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(13,43,26,0.6) 100%);
}

.reel-play-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(201,232,97,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,232,97,0.1);
  backdrop-filter: blur(4px);
}

.reel-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.reel-stats {
  display: flex;
  justify-content: space-around;
  padding: 10px 8px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.reel-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.reel-stat-item span {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ---- FLOAT CARDS ---- */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 8px 14px;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.float-card-icon {
  font-size: 18px;
  line-height: 1;
}

.float-card-val {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.float-card-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}

.float-card-a {
  top: 40px;
  right: -60px;
  animation: floatCardA 4s ease-in-out infinite alternate;
}

.float-card-b {
  bottom: 60px;
  left: -60px;
  animation: floatCardB 5s ease-in-out infinite alternate;
}

@keyframes floatCardA {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

@keyframes floatCardB {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(8px); }
}

/* ================================
   HERO V2 RESPONSIVE MOBILE
   ================================ */

.hero .container {
  position: relative;
  z-index: 10;
  transform-style: preserve-3d;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.6;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 32px;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  cursor: pointer;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.1),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(61, 179, 97, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

.card:hover {
  transform: translateY(-15px) rotateX(2deg) rotateY(-2deg);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(61, 179, 97, 0.4);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(61, 179, 97, 0.1);
}

.service-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: translateZ(20px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
}

.card:hover .service-image-wrapper {
  transform: translateZ(50px) scale(1.05);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
  background: #ffffff;
}

.card:hover .service-image {
  transform: scale(1.1);
}

.card-content {
  transform: translateZ(10px);
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: var(--primary-green);
}

.card-number {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  opacity: 0.05;
  color: var(--accent-color);
  transition: all 0.5s ease;
}

.card:hover .card-number {
  opacity: 0.15;
  transform: translateY(-5px);
  color: var(--primary-green);
}

.footer {
  border-top: none;
  background-color: var(--accent-color); /* Dark Olive Green Background */
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  color: var(--bg-color);
}

.footer h1, .footer h2, .footer h3, .footer h4 {
  color: var(--primary-green); /* Lime green headings in footer */
}

.footer p, .footer span, .footer a {
  color: var(--bg-color); /* Light beige text in footer */
}

.footer .btn {
  border: 1px solid #1a1a1a;
  background-color: var(--accent-color); /* Ensure contrast */
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: rgba(244, 241, 234, 0.7);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #ffffff; /* White icons for maximum visibility */
}

.social-icon:hover {
  background: var(--primary-green);
  color: var(--accent-color);
  transform: translateY(-3px);
  border-color: var(--primary-green);
}

/* Utility Animations for GSAP Targets */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

@media (max-width: 1024px) {
  .container {
    padding: 0 5%;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .text-huge {
    font-size: clamp(3rem, 7vw, 5rem);
  }
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .nav-logo {
    font-size: 1.1rem !important;
    gap: 0.8rem !important;
  }
  .nav-logo img {
    width: 60px !important;
    height: 60px !important;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 99;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important;
  }
  
  .nav-links.nav-open {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.8rem;
    letter-spacing: 0.15em;
  }

  .mobile-menu-btn {
    display: flex !important;
  }

  .nav-cta {
    display: flex !important;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }

  .section {
    padding: 4rem 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .hero {
    padding-top: 140px;
    padding-bottom: 4rem;
    text-align: center;
  }

  .hero .flex {
    justify-content: center;
  }
  
  .text-huge {
    font-size: 3rem;
    line-height: 1.1;
  }

  /* Hero v2 Mobile */
  .hero-ticker {
    top: 68px;
  }

  .hero-v2 {
    padding-top: 140px;
    padding-bottom: 4rem;
    align-items: flex-start;
  }

  .hero-v2-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-v2-left {
    gap: 1.4rem;
    text-align: center;
    align-items: center;
  }

  .hero-v2-headline {
    font-size: 36px;
  }

  .hero-v2-sub {
    font-size: 16px;
  }

  .hero-v2-right {
    justify-content: center;
  }

  .phone-mockup-wrapper {
    width: 220px;
  }

  .phone-frame {
    width: 170px;
    height: 320px;
    border-radius: 28px;
  }

  .float-card-a {
    right: -10px;
    top: 10px;
  }

  .float-card-b {
    left: -10px;
    bottom: 30px;
  }

  .hero-stats {
    gap: 0.5rem;
  }

  /* Mobile Service Card Adjustments */
  .card {
    padding: 2rem 1.5rem;
    gap: 1rem;
    border-radius: 24px;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .card-number {
    font-size: 2.5rem;
    top: 1rem;
    right: 1.5rem;
  }

  .service-image-wrapper {
    margin-bottom: 1rem;
  }

  .text-h2 {
    font-size: 1.8rem;
  }

  .text-huge {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 6%;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-v2-headline {
    font-size: 32px;
  }

  .btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.8rem;
    width: 100%;
  }

  .hero-v2-ctas {
    flex-direction: column;
    width: 100%;
  }

  .card {
    padding: 1.8rem 1.2rem;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  z-index: 101;
  padding: 0.5rem;
}

/* Hero Cinematic Background */
#hero-gradient-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-color);
  opacity: 1; /* Override default hero-bg opacity */
}

.gradient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: floatBg 20s infinite alternate ease-in-out;
}

.shape-1 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%);
  top: -20%; left: -10%;
  opacity: 0.4;
  animation-duration: 25s;
}

.shape-2 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  bottom: -10%; right: -10%;
  opacity: 0.3;
  animation-duration: 30s;
}

.shape-3 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
  top: 40%; left: 40%;
  opacity: 0.5;
  animation-duration: 20s;
}

@keyframes floatBg {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Glass Orbs / 3D floating elements */
.glass-orb {
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 232, 97, 0.25), rgba(2, 80, 53, 0.1));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(201, 232, 97, 0.4);
  box-shadow: 
    0 8px 32px rgba(2, 80, 53, 0.1), 
    inset 0 2px 15px rgba(255, 255, 255, 0.6),
    inset 0 -2px 10px rgba(201, 232, 97, 0.2);
  position: absolute;
}

/* Storyboard Layout - Myyuno Style */
.storyboard-container {
    position: relative;
    width: 100%;
    /* The height determines how long the user scrolls to get through the story */
    height: 500vh;
    background: var(--bg-color);
}

.story-pinned-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* 3D Focal Element */
.focal-3d-wrapper {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.focal-orb {
    position: absolute;
    border-radius: 50%;
    /* True Cinematic Glass Gradient */
    background: linear-gradient(135deg, rgba(201, 232, 97, 0.45), rgba(0, 143, 93, 0.25));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 40px 100px rgba(2, 80, 53, 0.2), 
        inset 0 15px 40px rgba(255, 255, 255, 0.95),
        inset 0 -15px 40px rgba(0, 143, 93, 0.6);
    will-change: transform, opacity, filter;
}

.main-orb {
    width: 350px;
    height: 350px;
    z-index: 2;
}

.orbit-orb-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 20%;
    z-index: 1;
}

.orbit-orb-2 {
    width: 180px;
    height: 180px;
    bottom: 15%;
    right: 25%;
    z-index: 3;
}

/* Scenes Stacked on Top */
.scene-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    z-index: 10;
    opacity: 0; /* Hidden by default, animated by GSAP */
    visibility: hidden; /* Prevent interaction when hidden */
}

.scene-content {
    position: relative;
    z-index: 11;
    width: 100%;
    max-width: 1200px;
}

/* Case Study Stacking Cards */
.case-cards-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1500px;
}

.case-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform-origin: top center;
    will-change: transform, opacity;
}

.case-card h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.case-card p {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.7);
    font-family: var(--font-body);
}

.card-1 { z-index: 3; }
.card-2 { z-index: 2; }
.card-3 { z-index: 1; }

/* Scene Specific Adjustments (since we removed backgrounds from scenes to make them transparent) */
.scene-1 {
    opacity: 1; /* First scene is visible initially */
    visibility: visible;
}

.scene-2 .text-huge {
    color: var(--secondary-color);
}

.scene-4 {
    text-align: left;
}

.font-accent {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.brand-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.reveal-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.highlight {
    color: var(--primary-green);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--primary-green);
    opacity: 0.2;
    z-index: -1;
}

.story-video {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    aspect-ratio: 16/9;
    object-fit: cover;
}

.method-visual {
    padding: 2rem;
}

@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .scene-4 { text-align: center; }
    .main-orb { width: 250px; height: 250px; }
}

/* Work Card Stacking Effect */
.work-cards-container {
    position: relative;
    padding-bottom: 10vh;
}

.work-card {
    position: sticky;
    top: 130px;
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 32px;
    box-shadow: 0 -15px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    transform-origin: top center;
    z-index: 1;
    height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.work-card .grid-2 {
    height: 100%;
    align-items: center;
}

.work-card-media {
    height: 100%;
    max-height: calc(100vh - 240px);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--glass-border);
    background: #000;
}

.work-card-media.vertical-media {
    aspect-ratio: 9/16;
    width: auto;
    margin: 0 auto;
}

.work-card-media video, 
.work-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

img[src="logo.png"] {
    mix-blend-mode: multiply;
}

.work-card-content {
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    padding-right: 1rem;
}

@media (max-width: 900px) {
    .work-card {
        padding: 1.5rem;
        top: 100px;
        height: auto;
        min-height: calc(100vh - 140px);
        overflow: visible;
    }
    .work-card-media {
        max-height: 40vh;
    }
    .work-card-content {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

/* Custom Cursor Text */
.custom-cursor {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cursor-text {
    font-family: var(--font-heading);
    font-size: 3.5px;
    font-weight: 900;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    letter-spacing: 0.1em;
}

/* Page Transition Layer */
.page-transition-layer {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--accent-color);
    z-index: 99999;
    pointer-events: none;
}
