/* =====================================================
   YALLA DIGITAL - Main Stylesheet
   ===================================================== */

/* -----------------------------------------------------
   CSS Variables
   ----------------------------------------------------- */
:root {
  /* Brand Colors - Neon Purple / Dark Theme */
  --purple-primary: #C47AB7;
  --purple-hover: #D892CB;
  --purple-dark: #9B5E91;
  --purple-glow: rgba(196, 122, 183, 0.4);
  --purple-neon: #E08CD4;

  /* Background Colors */
  --bg-deep: #050505;
  /* Deepest Black */
  --bg-body: #0A0A0F;
  /* Main Background */
  --bg-card: rgba(17, 17, 24, 0.7);
  /* Glassy Card */
  --bg-surface: #12121A;
  --bg-overlay: rgba(5, 5, 8, 0.85);

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  /* Zin-400 equivalent */
  --text-muted: #71717A;
  /* Zinc-500 equivalent */
  --text-highlight: #F4F4F5;

  /* Accent Colors */
  --accent-cyan: #5EEAD4;
  --accent-green: #4ADE80;
  --accent-glow: rgba(94, 234, 212, 0.3);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(196, 122, 183, 0.25);

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(196, 122, 183, 0.15);
  --shadow-neon: 0 0 15px rgba(196, 122, 183, 0.3), 0 0 30px rgba(196, 122, 183, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-width: 1280px;
  --header-height: 80px;
}

/* -----------------------------------------------------
   Reset & Base
   ----------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Heebo', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple-primary), var(--purple-dark));
  border-radius: 10px;
}

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

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -----------------------------------------------------
   Keyframe Animations
   ----------------------------------------------------- */

/* Reveal animations */
@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(80px) rotateX(10deg);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

@keyframes revealLeft {
  0% {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealRight {
  0% {
    opacity: 0;
    transform: translateX(-100px) scale(0.9);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealScale {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
    filter: blur(15px);
  }

  60% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes revealRotate {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateY(-15deg) translateX(50px);
  }

  100% {
    opacity: 1;
    transform: perspective(1000px) rotateY(0) translateX(0);
  }
}

@keyframes clipReveal {
  0% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    opacity: 0;
  }

  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Continuous animations */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-8px) rotate(1deg);
  }

  75% {
    transform: translateY(-4px) rotate(-1deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes slideInfinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(196, 122, 183, 0.3), 0 0 40px rgba(196, 122, 183, 0.1);
  }

  50% {
    box-shadow: 0 0 30px rgba(196, 122, 183, 0.5), 0 0 60px rgba(196, 122, 183, 0.2);
  }
}

@keyframes borderGlow {

  0%,
  100% {
    border-color: rgba(196, 122, 183, 0.3);
  }

  50% {
    border-color: rgba(196, 122, 183, 0.6);
  }
}

@keyframes morphBlob {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

/* Button ripple effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Magnetic pull effect */
@keyframes magneticReturn {
  0% {
    transform: translate(var(--magnetic-x), var(--magnetic-y));
  }

  100% {
    transform: translate(0, 0);
  }
}

/* -----------------------------------------------------
   Scroll Animation Classes
   ----------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  will-change: transform, opacity, filter;
}

.animate-on-scroll.visible {
  animation-fill-mode: forwards;
}

/* Different animation types */
.anim-reveal-up.visible {
  animation: revealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-reveal-left.visible {
  animation: revealLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-reveal-right.visible {
  animation: revealRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-reveal-scale.visible {
  animation: revealScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.anim-reveal-rotate.visible {
  animation: revealRotate 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-clip-reveal.visible {
  animation: clipReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger delays */
.stagger-1 {
  animation-delay: 0.1s !important;
}

.stagger-2 {
  animation-delay: 0.2s !important;
}

.stagger-3 {
  animation-delay: 0.3s !important;
}

.stagger-4 {
  animation-delay: 0.4s !important;
}

.stagger-5 {
  animation-delay: 0.5s !important;
}

.stagger-6 {
  animation-delay: 0.6s !important;
}

/* -----------------------------------------------------
   Header
   ----------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-smooth);
}

header.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: 'Secular One', sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.logo-main .purple {
  color: var(--purple-primary);
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-primary), var(--accent-cyan));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover {
  color: var(--text-primary);
}

nav a:hover::before {
  width: 60%;
}

nav a.active {
  color: var(--purple-primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* -----------------------------------------------------
   Buttons with Advanced Hover Effects
   ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Ripple container */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(196, 122, 183, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-cyan), var(--purple-primary));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 70%);
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 10px 30px rgba(196, 122, 183, 0.4),
    0 0 40px rgba(196, 122, 183, 0.2);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover::after {
  transform: translateX(100%) rotate(45deg);
}

.btn-primary:active {
  transform: translateY(-2px) scale(0.98);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 122, 183, 0.1), rgba(94, 234, 212, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
}

.btn-outline::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--purple-primary), var(--accent-cyan));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -2;
}

.btn-outline:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(196, 122, 183, 0.2);
}

.btn-outline:hover::before {
  opacity: 1;
}

.btn-outline:hover::after {
  opacity: 1;
}

/* Large Button */
.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* Magnetic button effect handled by JS */
.btn-magnetic {
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* -----------------------------------------------------
   Hero Section
   ----------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Video Background */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 10, 15, 0.6) 0%,
      rgba(10, 10, 15, 0.8) 50%,
      rgba(10, 10, 15, 0.95) 100%);
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
  z-index: 1;
  animation: morphBlob 8s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.15), transparent 70%);
  z-index: 1;
  animation: morphBlob 10s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(196, 122, 183, 0.1);
  border: 1px solid rgba(196, 122, 183, 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--purple-light);
  margin-bottom: 24px;
  animation: borderGlow 3s ease-in-out infinite;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: 'Secular One', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-title .text-reveal {
  display: inline-block;
  overflow: hidden;
}

.hero-title .text-reveal span {
  display: inline-block;
}

.hero-title .gradient {
  background: linear-gradient(135deg, var(--purple-primary), var(--accent-cyan), var(--purple-primary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.hero-feature:hover {
  color: var(--text-primary);
  transform: translateX(-5px);
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 122, 183, 0.1);
  border: 1px solid rgba(196, 122, 183, 0.1);
  border-radius: var(--radius-sm);
  font-size: 20px;
  color: var(--purple-neon);
  transition: all 0.3s ease;
}

.hero-feature:hover .hero-feature-icon {
  background: rgba(196, 122, 183, 0.2);
  transform: scale(1.1);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-visual {
  perspective: 1000px;
}

.hero-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  width: 100%;
  max-width: 900px;
  margin: 20px auto 0;
}

.hero-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow:
    var(--shadow-card),
    0 0 60px rgba(196, 122, 183, 0.2);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hero-card-title {
  font-size: 14px;
  font-weight: 600;
}

.hero-card-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-green);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.1);
}

.hero-card-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-green);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-stat {
  background: rgba(10, 10, 15, 0.6);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.hero-stat:hover {
  border-color: var(--purple-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  background: rgba(196, 122, 183, 0.05);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero-stat-value {
  font-size: 24px;
  font-weight: 700;
}

.hero-stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--success);
  margin-top: 4px;
}

/* -----------------------------------------------------
   Logo Carousel
   ----------------------------------------------------- */
#logos {
  padding: 60px 0;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(196, 122, 183, 0.03), transparent);
}

.logos-title {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}

.logos-track {
  display: flex;
  animation: slideInfinite 30s linear infinite;
}

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

.logos-slide {
  display: flex;
  gap: 60px;
  padding: 0 30px;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 120px;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all var(--transition-smooth);
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.logo-item span {
  font-family: 'Secular One', sans-serif;
  font-size: 20px;
  color: var(--text-secondary);
}

/* -----------------------------------------------------
   Section Styles
   ----------------------------------------------------- */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.section-kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--purple-primary);
  border-radius: 2px;
}

.section-title {
  font-family: 'Secular One', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* -----------------------------------------------------
   Services Section
   ----------------------------------------------------- */
#services {
  background: var(--bg-deep);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 24px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Bento Spans */
.service-card:nth-child(1) {
  grid-column: span 2;
}

/* Campaigns */
.service-card:nth-child(2) {
  grid-column: span 2;
}

/* Creative */
.service-card:nth-child(3) {
  grid-column: span 4;
}

/* AI Productions - Hero feature */
.service-card:nth-child(4) {
  grid-column: span 2;
}

/* Websites */
.service-card:nth-child(5) {
  grid-column: span 1;
}

/* E-commerce */
.service-card:nth-child(6) {
  grid-column: span 1;
}

/* Software */

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-primary), transparent);
  transform: scaleX(0);
  transition: transform 0.6s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  background: var(--bg-card);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 24px;
  color: var(--purple-primary);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--purple-primary);
  color: white;
  border-color: var(--purple-primary);
  box-shadow: 0 0 20px rgba(196, 122, 183, 0.4);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(196, 122, 183, 0.1), rgba(196, 122, 183, 0.05));
  border: 1px solid rgba(196, 122, 183, 0.1);
  border-radius: var(--radius-md);
  font-size: 32px;
  color: var(--purple-neon);
  margin-bottom: 24px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-icon i {
  filter: drop-shadow(0 0 8px rgba(196, 122, 183, 0.4));
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  transform: scale(1.1) rotate(5deg);
  background: rgba(196, 122, 183, 0.2);
  border-color: var(--purple-primary);
  box-shadow: 0 0 20px rgba(196, 122, 183, 0.3);
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  padding: 6px 12px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.service-card:hover .service-tag {
  border-color: var(--purple-primary);
  color: var(--purple-light);
}

/* -----------------------------------------------------
   Videos Section
   ----------------------------------------------------- */
#videos {
  background: var(--bg-deep);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.videos-grid-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.videos-grid-secondary .video-card {
  aspect-ratio: 1 / 1;
}

.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-card:hover {
  transform: scale(1.03) translateY(-8px);
  border-color: var(--purple-primary);
  box-shadow:
    var(--shadow-glow),
    0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-card.featured {
  /* Removed featured span logic as we now have a uniform grid or we can keep it if needed, but for now we have 6 items */
  grid-column: span 1;
  grid-row: span 1;
}

.video-entry {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-caption {
  padding: 0 4px;
}

.video-caption h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.video-caption p {
  font-size: 14px;
  color: var(--text-secondary);
}

.videos-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.videos-cta .btn i {
  margin-left: 8px;
  font-size: 20px;
  vertical-align: middle;
}

/* -----------------------------------------------------
   About Section
   ----------------------------------------------------- */
#about {
  background: linear-gradient(180deg, var(--bg-deep), rgba(196, 122, 183, 0.03), var(--bg-deep));
}

.about-intro {
  max-width: 900px;
  margin: 0 auto 80px;
  text-align: center;
}

.about-intro-text {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.about-intro-text strong {
  color: var(--text-primary);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

/* Founders Grid - Tech Spec Style */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.founder-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all 0.3s ease;
  position: relative;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--purple-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.founder-card:hover {
  background: var(--bg-card);
  border-color: var(--border-light);
  transform: translateX(4px);
}

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

.founder-header {
  margin-bottom: 0;
  /* Override previous */
  flex-shrink: 0;
}

.founder-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  /* Square avatar for tech look */
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border-subtle);
  font-family: 'Secular One', sans-serif;
  font-size: 24px;
  color: var(--purple-primary);
}

.founder-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: 'Heebo', sans-serif;
  letter-spacing: -0.01em;
}

.founder-role {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
}

.founder-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Values - Tech Cards */
.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.value-card {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: left;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.value-card:hover {
  border-color: var(--purple-primary);
  background: rgba(196, 122, 183, 0.03);
  transform: translateY(-2px);
}

.value-icon {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--purple-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 122, 183, 0.1);
  border-radius: 4px;
}

.value-card:hover .value-icon {
  transform: none;
  background: var(--purple-primary);
  color: white;
}

.value-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.value-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -----------------------------------------------------
   Contact Section
   ----------------------------------------------------- */
#contact {
  background: var(--bg-deep);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Secular One', sans-serif;
  font-size: 32px;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-method:hover {
  border-color: var(--purple-primary);
  background: var(--bg-elevated);
  transform: translateX(-8px);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 122, 183, 0.1);
  border-radius: var(--radius-sm);
  font-size: 22px;
  transition: all 0.3s ease;
}

.contact-method:hover .contact-method-icon {
  background: rgba(196, 122, 183, 0.2);
  transform: scale(1.1);
}

.contact-method-text {
  font-size: 15px;
  color: var(--text-secondary);
}

.contact-method-text strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-intro {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--purple-light);
}

.form-intro-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-section {
  margin-bottom: 28px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-item {
  position: relative;
}

.checkbox-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checkbox-item input:checked+.checkbox-label {
  background: rgba(196, 122, 183, 0.15);
  border-color: var(--purple-primary);
  color: var(--text-primary);
  transform: scale(1.02);
}

.checkbox-label:hover {
  border-color: var(--purple-primary);
  transform: translateY(-2px);
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-item {
  position: relative;
}

.radio-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radio-item input:checked+.radio-label {
  background: rgba(196, 122, 183, 0.1);
  border-color: var(--purple-primary);
  color: var(--text-primary);
}

.radio-label:hover {
  border-color: var(--purple-primary);
  transform: translateX(-4px);
}

.radio-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.radio-item input:checked+.radio-label .radio-dot {
  border-color: var(--purple-primary);
}

.radio-item input:checked+.radio-label .radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--purple-primary);
  border-radius: 50%;
}

/* Conditional Sections */
.conditional-section {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: rgba(10, 10, 15, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.conditional-section.visible {
  display: block;
  animation: revealUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Form Fields */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: span 2;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 3px rgba(196, 122, 183, 0.15);
  transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B6B78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 18px;
  padding-left: 44px;
}

.form-submit {
  margin-top: 24px;
}

.form-submit .btn {
  width: 100%;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* -----------------------------------------------------
   Footer
   ----------------------------------------------------- */
footer {
  padding: 60px 0 30px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
}

.footer-col a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--purple-primary);
  transition: width 0.3s ease;
}

.footer-col a:hover {
  color: var(--purple-primary);
}

.footer-col a:hover::before {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social a:hover {
  border-color: var(--purple-primary);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(196, 122, 183, 0.2);
}

/* -----------------------------------------------------
   Mobile Navigation
   ----------------------------------------------------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.98);
  z-index: 999;
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* -----------------------------------------------------
   Responsive
   ----------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

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

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

  .video-card.featured {
    grid-column: span 2;
    grid-row: span 1;
  }

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

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {

  nav,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .services-grid,
  .videos-grid,
  .videos-grid-secondary,
  .about-values {
    grid-template-columns: 1fr;
  }

  .video-card.featured {
    grid-column: span 1;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: span 1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}