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

/* -----------------------------------------------------
   CSS Variables
   ----------------------------------------------------- */
:root {
  /* Brand Colors */
  --purple-primary: #C47AB7;
  --purple-dark: #9B5E91;
  --purple-light: #E5B8DD;
  --purple-glow: rgba(196, 122, 183, 0.4);

  /* Background Colors */
  --bg-deep: #0A0A0F;
  --bg-card: #111118;
  --bg-elevated: #18181F;
  --bg-surface: #1F1F28;

  /* Text Colors */
  --text-primary: #FAFAFA;
  --text-secondary: #A8A8B3;
  --text-muted: #6B6B78;

  /* Accent Colors */
  --accent-cyan: #5EEAD4;
  --accent-gold: #F59E0B;
  --success: #22C55E;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(196, 122, 183, 0.3);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-glow: 0 0 60px rgba(196, 122, 183, 0.15);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --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);
}

/* -----------------------------------------------------
   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; }

/* -----------------------------------------------------
   Background Orbs & Effects
   ----------------------------------------------------- */

/* Cursor Glow */
.cursor-glow {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 122, 183, 0.15), transparent 70%);
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  display: none;
  mix-blend-mode: screen;
}

@media (min-width: 1024px) {
  .cursor-glow {
    display: block;
  }
}

/* Background Orbs */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: float 15s infinite ease-in-out;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple-primary), transparent);
  top: 10%;
  right: -150px;
  animation-duration: 20s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-cyan), transparent);
  top: 40%;
  left: -100px;
  animation-delay: -7s;
  animation-duration: 18s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--purple-dark), transparent);
  top: 70%;
  right: 10%;
  animation-delay: -12s;
  animation-duration: 22s;
}

.orb-4 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 122, 183, 0.6), transparent);
  bottom: 15%;
  left: 15%;
  animation-delay: -5s;
  animation-duration: 25s;
}

.orb-5 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.4), transparent);
  bottom: 5%;
  right: -100px;
  animation-delay: -15s;
  animation-duration: 19s;
}

/* Enhanced float animation for orbs */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -40px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 30px) scale(0.95);
  }
  75% {
    transform: translate(40px, 20px) scale(1.02);
  }
}

/* -----------------------------------------------------
   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: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.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(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
}

.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: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 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: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 122, 183, 0.1);
  border-radius: var(--radius-sm);
  font-size: 18px;
  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;
  gap: 16px;
}

.hero-visual {
  perspective: 1000px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(17, 17, 24, 0.9), rgba(31, 31, 40, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(20px);
  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;
}

.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: 6px;
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 100px;
  font-size: 12px;
  color: var(--success);
}

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

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 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: scale(1.02);
}

.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: linear-gradient(180deg, var(--bg-deep), var(--bg-card), var(--bg-deep));
}

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

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-primary), var(--accent-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(196, 122, 183, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

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

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

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 122, 183, 0.1);
  border-radius: var(--radius-md);
  font-size: 28px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(196, 122, 183, 0.2);
}

.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;
  grid-auto-rows: auto;
}

.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.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-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.video-info {
  padding: 20px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

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

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

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

.video-card.featured .video-wrapper {
  padding-bottom: 56.25%; /* Keep 16:9 for featured too */
}

.video-card.featured .video-info {
  padding: 28px;
}

.video-card.featured .video-title {
  font-size: 20px;
}

.video-card.featured .video-desc {
  font-size: 15px;
}

/* Square videos (bottom row) */
.video-card:nth-child(4) .video-wrapper,
.video-card:nth-child(5) .video-wrapper,
.video-card:nth-child(6) .video-wrapper {
  padding-bottom: 100%; /* 1:1 aspect ratio for square videos */
}

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

/* -----------------------------------------------------
   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;
}

.founder-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.founder-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.founder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Secular One', sans-serif;
  font-size: 32px;
  color: white;
  transition: all 0.4s ease;
}

.founder-card:hover .founder-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(196, 122, 183, 0.4);
}

.founder-info h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.founder-role {
  font-size: 14px;
  color: var(--purple-primary);
}

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

.founder-bio p {
  margin-bottom: 16px;
}

.founder-bio p:last-child {
  margin-bottom: 0;
}

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

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.value-icon {
  font-size: 32px;
  margin-bottom: 16px;
  transition: all 0.4s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.2);
}

.value-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* -----------------------------------------------------
   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 {
    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,
  .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;
  }
}
