/* ============================================
   THE KAFILA MEDIA HOUSE — Deep Violet & Navy Theme
   ============================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  --bg-primary:    #070b18;
  --bg-secondary:  #0d1226;
  --bg-card:       #111827;
  --bg-card-hover: #162038;
  --bg-card-accent:#1a1a3e;

  --violet-deep:   #3b0764;
  --violet-mid:    #5b21b6;
  --violet-bright: #7c3aed;
  --violet-light:  #a78bfa;
  --violet-glow:   rgba(124, 58, 237, 0.18);

  --navy-deep:     #0a1628;
  --navy-mid:      #0f2044;
  --navy-bright:   #1e3a6e;
  --navy-accent:   #2563eb;
  --navy-light:    #5b9cf6;

  --gradient-hero: linear-gradient(135deg, #070b18 0%, #0d1226 50%, #0a0a2e 100%);
  --gradient-card: linear-gradient(135deg, #111827 0%, #1a1a3e 100%);
  --gradient-accent: linear-gradient(135deg, #3b0764 0%, #1e3a6e 100%);
  --gradient-violet: linear-gradient(135deg, #5b21b6 0%, #2563eb 100%);
  --gradient-glow:  radial-gradient(ellipse at center, rgba(124,58,237,0.25) 0%, transparent 70%);

  --text-primary:  #f0f4ff;
  --text-secondary:#a0aec0;
  --text-muted:    #4a5568;
  --text-accent:   #a78bfa;

  --border-subtle: rgba(124, 58, 237, 0.15);
  --border-card:   rgba(255, 255, 255, 0.06);
  --border-accent: rgba(124, 58, 237, 0.4);

  --nav-bg:        rgba(7, 11, 24, 0.75);
  --nav-border:    rgba(124, 58, 237, 0.2);

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.7s cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-italic:  'Playfair Display', serif;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Optimize for touch on mobile */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Mobile font size optimization */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
    line-height: 1.6;
  }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   AI-ONLY: Visually hidden — readable by crawlers & screen readers,
   invisible to sighted users. Zero layout impact.
   ============================================ */
.ai-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--violet-mid); border-radius: 4px; }

/* ============================================
   NOISE TEXTURE OVERLAY (subtle grain)
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

/* ---- PROGRESS BAR ---- */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient-violet);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================
   3D BACKGROUND CANVAS
   ============================================ */
#bg-3d-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.25; /* Subtle as requested */
}


/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: 100%;
  max-width: 100%;
  z-index: 500;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  padding: 10px 40px;
  box-shadow: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.is-scrolled {
  top: 20px;
  width: 75%;
  max-width: 1100px;
  background: rgba(10, 8, 28, 0.65);
  backdrop-filter: blur(28px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 0 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(124, 58, 237, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(124, 58, 237, 0.15);
}

.nav-inner {
  display: grid;
  /* 3-col: left group | brand (auto, centered) | right group */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 62px;
  gap: 0;
}

/* Left group: location + home/work links */
.nav-left-group {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
}

/* Right group: results/about links */
.nav-right-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-location {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nav-links-left,
.nav-links-right {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(160, 174, 192, 0.8);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--violet-bright), var(--navy-accent));
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.15;
  color: var(--text-primary);
  transition: color var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
  padding: 6px 20px;
  /* subtle brand pill inside the nav */
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nav-brand:hover {
  color: var(--violet-light);
  background: rgba(124, 58, 237, 0.14);
}

/* ============================================
   HERO SECTION — Cinematic, no box
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 32px 20px;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(91,33,182,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(37,99,235,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(59,7,100,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #070b18 0%, #0a0d20 60%, #07091a 100%);
  z-index: 0;
}

.hero-bg-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-p {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  will-change: transform, opacity;
}


/* ============================================
   3D FLOATING BACKGROUND ANIMATIONS
   ============================================ */
@keyframes float-3d-orb-1 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.05;
  }
  25% {
    transform: translate3d(20px, -30px, 40px) scale(1.1);
    opacity: 0.1;
  }
  50% {
    transform: translate3d(-20px, 40px, -30px) scale(0.95);
    opacity: 0.08;
  }
  75% {
    transform: translate3d(30px, -20px, 20px) scale(1.05);
    opacity: 0.1;
  }
}

@keyframes float-3d-orb-2 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.04;
  }
  25% {
    transform: translate3d(-30px, 40px, -50px) scale(1.15);
    opacity: 0.08;
  }
  50% {
    transform: translate3d(40px, -30px, 30px) scale(0.9);
    opacity: 0.06;
  }
  75% {
    transform: translate3d(-25px, 20px, -40px) scale(1.08);
    opacity: 0.08;
  }
}

@keyframes gradient-shift-3d {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

@keyframes bg-pulse-subtle {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.05);
  }
}

/* ============================================
   MOBILE HERO 3D BACKGROUND ENHANCEMENTS
   ============================================ */
@media (max-width: 768px) {
  .hero-bg-gradient {
    background:
      radial-gradient(ellipse 70% 80% at 50% 50%, rgba(91,33,182,0.1) 0%, transparent 65%),
      radial-gradient(ellipse 60% 60% at 50% 50%, rgba(37,99,235,0.08) 0%, transparent 70%),
      linear-gradient(180deg, #070b18 0%, #0a0d20 50%, #07091a 100%);
    animation: bg-pulse-subtle 8s ease-in-out infinite;
  }
}

/* Ambient glow orbs — soft and atmospheric */
.hero-ambient-left {
  position: absolute;
  width: 500px; height: 500px;
  top: 10%; left: -100px;
  background: radial-gradient(circle, rgba(91,33,182,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 12s ease-in-out infinite alternate;
}
.hero-ambient-right {
  position: absolute;
  width: 400px; height: 400px;
  bottom: 10%; right: -80px;
  background: radial-gradient(circle, rgba(37,99,235,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 10s ease-in-out infinite alternate-reverse;
}
@keyframes ambientDrift {
  from { transform: translateY(0px) scale(1); }
  to   { transform: translateY(-30px) scale(1.1); }
}

/* Subtle dot-grid background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124,58,237,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .hero::before {
    background: 
      radial-gradient(circle 120px at 15% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
      radial-gradient(circle 100px at 85% 70%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
      radial-gradient(circle 80px at 50% 85%, rgba(91, 33, 182, 0.05) 0%, transparent 50%),
      radial-gradient(rgba(124,58,237,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 35px 35px;
    opacity: 0.9;
    animation: gradient-shift-3d 20s ease-in-out infinite;
  }
}

@media (max-width: 480px) {
  .hero::before {
    background-size: 100% 100%, 100% 100%, 100% 100%, 30px 30px;
    opacity: 0.8;
  }
}
/* Override old orb pseudo-elements */
.hero::after  { display: none; }

@media (max-width: 768px) {
  .hero::after {
    display: block;
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.12), transparent 70%);
    top: 10%;
    right: -50px;
    z-index: 0;
    animation: float-3d-orb-1 16s ease-in-out infinite;
    pointer-events: none;
    filter: blur(40px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

/* ============================================
   HERO PARTICLE SPHERE
   ============================================ */
.hero-particle-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  z-index: 1; /* Below hero-content */
  pointer-events: none;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.sphere-particle {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  color: var(--violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  transition: color 0.3s ease;
  opacity: 0;
}

.sphere-particle svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.4));
}

/* Eyebrow line */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(167, 139, 250, 0.7);
  margin-bottom: 28px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeUp 0.7s 0.3s ease forwards;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--violet-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(124,58,237,0.8);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.eyebrow-divider {
  color: rgba(124,58,237,0.4);
  font-size: 14px;
  line-height: 1;
}

/* Hero Image replacing text — amazing luxury animations & glassmorphism */
.hero-title-img-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  box-shadow: 
    0 24px 50px rgba(0, 0, 0, 0.4), 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(124, 58, 237, 0.1);
  animation: fadeUpPop 1.2s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatGlass 7s ease-in-out infinite alternate;
  opacity: 0;
  z-index: 10; /* Keep above sphere but without breaking background context */
  transform: translateY(40px) scale(0.9);
  margin-bottom: 10px;
}

.hero-title-img {
  max-width: 100%;
  height: auto;
  width: min(80vw, 550px);
  filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.35));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.hero-title-img-container:hover .hero-title-img {
  transform: scale(1.04) translateY(-4px);
  filter: drop-shadow(0 15px 40px rgba(124, 58, 237, 0.65));
}

@keyframes fadeUpPop {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatGlass {
  0% { transform: translateY(0) rotateX(0deg); }
  100% { transform: translateY(-12px) rotateX(2deg); }
}

/* Tagline row with lines either side */
.hero-tagline-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 20px;
  width: 100%;
  max-width: 680px;
  opacity: 0;
  animation: fadeIn 0.8s 0.85s ease forwards;
}
.hero-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.35), transparent);
}
.hero-tagline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(167,139,250,0.8);
  white-space: nowrap;
  text-transform: uppercase;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Description paragraph */
.hero-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: rgba(160, 174, 192, 0.75);
  max-width: 480px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.8s 1.0s ease forwards;
}

/* CTA buttons row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s ease forwards;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  color: rgba(167,139,250,0.8);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.btn-ghost:hover { 
  color: var(--text-primary); 
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .btn-ghost:active {
    animation: jello-horizontal 0.6s ease-in-out;
  }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px; right: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: fadeIn 1s 1.8s ease forwards;
}
.hero-scroll-hint span {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid rgba(124,58,237,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--violet-light);
  border-radius: 2px;
  animation: scrollAnim 1.8s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================
   JELLO HORIZONTAL ANIMATION
   ============================================ */
@-webkit-keyframes jello-horizontal {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
  30% {
    -webkit-transform: scale3d(1.12, 0.88, 1);
            transform: scale3d(1.12, 0.88, 1);
  }
  40% {
    -webkit-transform: scale3d(0.88, 1.12, 1);
            transform: scale3d(0.88, 1.12, 1);
  }
  50% {
    -webkit-transform: scale3d(1.08, 0.92, 1);
            transform: scale3d(1.08, 0.92, 1);
  }
  65% {
    -webkit-transform: scale3d(0.98, 1.02, 1);
            transform: scale3d(0.98, 1.02, 1);
  }
  75% {
    -webkit-transform: scale3d(1.02, 0.98, 1);
            transform: scale3d(1.02, 0.98, 1);
  }
  100% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
}
@keyframes jello-horizontal {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
  30% {
    -webkit-transform: scale3d(1.12, 0.88, 1);
            transform: scale3d(1.12, 0.88, 1);
  }
  40% {
    -webkit-transform: scale3d(0.88, 1.12, 1);
            transform: scale3d(0.88, 1.12, 1);
  }
  50% {
    -webkit-transform: scale3d(1.08, 0.92, 1);
            transform: scale3d(1.08, 0.92, 1);
  }
  65% {
    -webkit-transform: scale3d(0.98, 1.02, 1);
            transform: scale3d(0.98, 1.02, 1);
  }
  75% {
    -webkit-transform: scale3d(1.02, 0.98, 1);
            transform: scale3d(1.02, 0.98, 1);
  }
  100% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
}
.jello-horizontal {
	-webkit-animation: jello-horizontal 0.9s both;
	        animation: jello-horizontal 0.9s both;
}

/* ============================================
   3D CAROUSEL ANIMATION FOR MOBILE
   ============================================ */
@keyframes carousel-rotate-3d {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    opacity: 0.3;
  }
  25% {
    opacity: 0.5;
  }
  50% {
    transform: rotateX(360deg) rotateY(180deg) rotateZ(45deg);
    opacity: 0.7;
  }
  75% {
    opacity: 0.5;
  }
  100% {
    transform: rotateX(720deg) rotateY(360deg) rotateZ(360deg);
    opacity: 0.3;
  }
}

@keyframes carousel-float {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

@keyframes carousel-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3), 0 0 40px rgba(37, 99, 235, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6), 0 0 80px rgba(37, 99, 235, 0.3);
  }
}

/* Button jello animation with 3 second interval (0.6s animation + 2.4s pause) */
@keyframes jello-button-interval {
  0%, 100% {
    transform: scale3d(1, 1, 1);
  }
  5% {
    transform: scale3d(1.12, 0.88, 1);
  }
  7% {
    transform: scale3d(0.88, 1.12, 1);
  }
  10% {
    transform: scale3d(1.08, 0.92, 1);
  }
  13% {
    transform: scale3d(0.98, 1.02, 1);
  }
  15% {
    transform: scale3d(1.02, 0.98, 1);
  }
  20%, 100% {
    transform: scale3d(1, 1, 1);
  }
}

/* ============================================
   ANIMATIONS — GLOBAL
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   MOBILE-SPECIFIC ANIMATIONS
   ============================================ */
@media (max-width: 768px) {
  /* Optimize scroll reveals for mobile - faster animations */
  .reveal,
  .reveal-left,
  .reveal-right {
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  /* Scroll-based fade-in for mobile */
  .reveal.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    animation: mobileScrollFadeIn 0.5s ease-out forwards;
  }
  
  @keyframes mobileScrollFadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Section headings - scale in on scroll */
  .section-heading {
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .section-heading.visible {
    animation: mobileHeadingScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  
  @keyframes mobileHeadingScale {
    from {
      opacity: 0;
      transform: scale(0.95) translateY(20px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  /* Card animations - stagger on scroll */
  .work-card,
  .film-card,
  .reel-card,
  .service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .work-card.visible,
  .film-card.visible,
  .reel-card.visible,
  .service-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Button tap feedback */
  .btn-primary,
  .btn-ghost,
  .btn-outline {
    transition: all 0.15s ease;
  }
  
  .btn-primary:active {
    background: linear-gradient(135deg, #4a1d7d 0%, #1a5f99 100%);
    opacity: 0.85;
  }
  
  .btn-ghost:active {
    background: rgba(255, 255, 255, 0.12);
    opacity: 0.8;
  }
  
  .btn-outline:active {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--violet-bright);
  }
  
  /* Touch-friendly spacing for interactive elements */
  a, button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* Faster animations on small screens to avoid jank */
  .reveal,
  .reveal-left,
  .reveal-right {
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  /* Staggered reveals are faster */
  .section-heading {
    animation-duration: 0.4s;
  }
  
  .work-card,
  .film-card,
  .reel-card,
  .service-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
  font-family: var(--font-body);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}
.section-heading em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 600;
  color: var(--violet-light);
}

/* ============================================
   FEATURED WORK (HOME)
   ============================================ */
.featured-work {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-medium);
  aspect-ratio: 9/16;
}
.work-card:hover { transform: translateY(-6px) scale(1.01); }
.work-card:hover .card-overlay { opacity: 1; }

.work-card-img {
  position: relative;
  width: 100%; height: 100%;
}

.card-placeholder {
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
}
.cp1 { background: linear-gradient(160deg, #1e0a3e 0%, #0d1226 60%, #1a2040 100%); }
.cp2 { background: linear-gradient(160deg, #0a0f2e 0%, #1a0a3e 50%, #0d1226 100%); }
.cp3 { background: linear-gradient(160deg, #0a1628 0%, #1e0a3e 60%, #0d1226 100%); }
.cp4 { background: linear-gradient(160deg, #1a2040 0%, #0a0f2e 50%, #1e0a3e 100%); }

/* subtle decorative content inside placeholders */
.cp1::after { content: '🎬'; font-size: 48px; display: flex; align-items: center; justify-content: center; height: 100%; opacity: 0.15; }
.cp2::after { content: '📷'; font-size: 48px; display: flex; align-items: center; justify-content: center; height: 100%; opacity: 0.15; }
.cp3::after { content: '🎥'; font-size: 48px; display: flex; align-items: center; justify-content: center; height: 100%; opacity: 0.15; }
.cp4::after { content: '🏆'; font-size: 48px; display: flex; align-items: center; justify-content: center; height: 100%; opacity: 0.15; }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59,7,100,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition-medium);
  border-radius: var(--radius-lg);
}

.card-handle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ============================================
   MOBILE CARD REDESIGN
   ============================================ */
@media (max-width: 768px) {
  .work-card {
    position: relative;
    overflow: hidden;
  }
  
  /* Mobile card overlay - cleaner design */
  .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 40%, rgba(59,7,100,0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 16px;
    opacity: 1;
    border-radius: var(--radius-lg);
    z-index: 2;
  }
  
  /* Mobile card handle - centered text layout */
  .card-handle {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    text-align: center;
  }
  
  /* Hide avatar on mobile */
  .handle-avatar {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 30%, rgba(59,7,100,0.98) 100%);
    padding: 14px;
  }
  
  .card-handle {
    gap: 6px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 25%, rgba(59,7,100,1) 100%);
    padding: 12px;
    justify-content: center;
  }
  
  .card-handle {
    gap: 4px;
    font-size: 11px;
    width: 100%;
  }
}

.handle-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(167,139,250,0.5);
}
.av1 { background: linear-gradient(135deg, #5b21b6, #2563eb); }
.av2 { background: linear-gradient(135deg, #2563eb, #5b21b6); }
.av3 { background: linear-gradient(135deg, #3b0764, #5b21b6); }
.av4 { background: linear-gradient(135deg, #1e3a6e, #3b0764); }

.view-all-wrap {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gradient-violet);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 50px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  box-shadow: 0 4px 24px rgba(124,58,237,0.35);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(124,58,237,0.55);
  opacity: 0.92;
}

@media (max-width: 768px) {
  .btn-primary:active {
    animation: jello-horizontal 0.6s ease-in-out;
  }
}

.btn-outline {
  display: inline-block;
  padding: 13px 36px;
  border: 1.5px solid var(--border-accent);
  color: var(--violet-light);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 50px;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.btn-outline:hover {
  background: rgba(124,58,237,0.12);
  border-color: var(--violet-bright);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ============================================
   NAV SECTION (Home footer navigation block)
   ============================================ */
.nav-section {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 80px 24px;
  background: var(--bg-secondary);
}

.nav-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 40px;
}

.nav-section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-section-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.nav-section-link {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.nav-section-link:hover { color: var(--violet-light); }

.nav-section-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.social-link:hover { color: var(--violet-light); }
.social-link svg { flex-shrink: 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-primary);
  padding: 60px 24px 36px;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 100px);
  letter-spacing: 0.05em;
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  line-height: 1;
}

.footer-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-card);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}
.footer-socials a:hover { color: var(--violet-light); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(91,33,182,0.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.page-hero-content { position: relative; z-index: 2; }

.page-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 600;
  color: var(--violet-light);
}

.page-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================
   WORK PAGE — FILMS GRID
   ============================================ */
.work-films-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.films-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.film-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
  z-index: 1;
  transform-style: preserve-3d;
}
.films-grid:hover .film-card:not(:hover) {
  opacity: 0.4;
  filter: grayscale(80%) blur(2px);
  transform: scale(0.95);
}
.film-card:hover { 
  transform: scale(1.03) translateY(-10px); 
  z-index: 20; 
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); 
}
.film-card:hover .film-overlay { opacity: 1; }

.film-card-large {
  grid-column: span 1;
  aspect-ratio: 16/9;
}
.film-card-tall {
  aspect-ratio: 4/5;
}
.films-grid .film-card-tall:nth-child(3) { grid-column: 1; grid-row: 2; }
.films-grid .film-card-tall:nth-child(4) { grid-column: 2; grid-row: 2 / span 2; aspect-ratio: 4/6; }
.films-grid .film-card-tall:nth-child(5) { grid-column: 1; grid-row: 3; }

.film-img {
  width: 100%; height: 100%;
  transition: transform var(--transition-slow);
  position: relative;
  z-index: 1;
}
.fi1 { background: linear-gradient(135deg, #0a0f2e 0%, #1e0a3e 50%, #1a2040 100%); }
.fi2 { background: linear-gradient(135deg, #1a2040 0%, #0a0f2e 60%, #1e0a3e 100%); }
.fi3 { background: linear-gradient(160deg, #0a1628 0%, #1e0a3e 100%); }
.fi4 { background: linear-gradient(160deg, #1a0a3e 0%, #0d1226 100%); }
.fi5 { background: linear-gradient(160deg, #0a0f2e 0%, #1a2040 100%); }

/* Decorative text (Large Name before burn in) */
.film-img::after {
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  letter-spacing: 0.1em;
  font-size: clamp(36px, 6vw, 90px);
  color: rgba(255, 255, 255, 0.15);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  inset: 0;
  z-index: 1;
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}
.fi1::after { content: 'TRUE ENERGY'; font-size: clamp(24px, 5vw, 60px); line-height: 1.1; text-align: center; padding: 20px;}
.fi2::after { content: 'KOSMO'; }
.fi3::after { content: 'JEMS'; }
.fi4::after { content: 'SILVANA'; }
.fi5::after { content: 'RAUDAT'; font-size: clamp(36px, 6vw, 90px); padding: 0; text-align: left; }

.film-card:hover .film-img::after {
  opacity: 0;
  filter: blur(20px) brightness(3);
  transform: scale(1.1);
}

/* Decorative content inside film placeholders (Logos with burn animation) */
.film-img::before {
  content: '';
  background-size: 55%;
  background-position: center 35%;
  background-repeat: no-repeat;
  display: block;
  opacity: 0;
  filter: blur(20px) brightness(3);
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
  position: absolute;
  inset: 0;
  z-index: 2;
}
.fi1::before { background-image: url('media/trueenergysystemandtransmissionlogo.png'); background-origin: content-box; }
.fi2::before { background-image: url('media/kosmochemlogo.png'); background-origin: content-box; }
.fi3::before { background-image: url('media/jemshandmadelogo.jpeg'); background-origin: content-box; }
.fi4::before { background-image: url('media/silvanalogo.png'); background-origin: content-box; }
.fi5::before { background-image: url('media/raudat solutions logo Final 1.png'); background-origin: content-box; }

.film-card:hover .film-img::before {
  opacity: 0.5;
  filter: blur(0) brightness(1) drop-shadow(0 0 20px rgba(124, 58, 237, 0.4));
  transform: scale(1);
}

.client-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(220, 224, 232, 0.9);
  margin-top: 12px;
  opacity: 0;
  filter: blur(10px) brightness(2.5);
  transform: translateY(15px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.1s;
}
.film-card:hover .client-desc {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: translateY(0) scale(1);
}

.film-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59,7,100,0.95) 0%, rgba(14,26,64,0.6) 40%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: 10;
}

/* Mobile: Always show film overlay */
@media (max-width: 768px) {
  .film-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(59,7,100,0.98) 0%, rgba(14,26,64,0.75) 35%, transparent 100%);
    padding: 16px;
    align-items: flex-end;
  }
  
  .film-title {
    font-size: clamp(14px, 3vw, 24px);
    margin-bottom: 3px;
  }
  
  .film-sub {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  
  .client-desc {
    font-size: 11px;
    line-height: 1.4;
  }
}

@media (max-width: 640px) {
  .film-overlay {
    padding: 14px;
    background: linear-gradient(to top, rgba(59,7,100,1) 0%, rgba(14,26,64,0.8) 30%, transparent 100%);
  }
  
  .film-title {
    font-size: clamp(12px, 2.5vw, 18px);
    margin-bottom: 2px;
  }
  
  .film-sub {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .client-desc {
    font-size: 10px;
    display: none;
  }
}

@media (max-width: 480px) {
  .film-overlay {
    padding: 12px;
  }
  
  .film-title {
    font-size: clamp(11px, 2vw, 14px);
    letter-spacing: 0.03em;
  }
  
  .film-sub {
    font-size: 10px;
    line-height: 1.3;
  }
}

.film-info { }
.film-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 36px);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.film-sub {
  font-size: 13px;
  color: var(--violet-light);
}
.film-sub em {
  font-family: var(--font-italic);
  font-style: italic;
}

/* ============================================
   INSTAGRAM REELS SECTION
   ============================================ */
.reels-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.reels-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.reels-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 35s linear infinite;
  padding: 30px 0;
  perspective: 1000px; /* Enable 3D transitions */
}

.reels-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

.reel-card {
  flex: 0 0 clamp(220px, 20vw, 270px);
  cursor: pointer;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, filter 0.4s ease;
  transform-style: preserve-3d;
}

.reels-track:hover .reel-card:not(:hover):not(.active) {
  opacity: 0.4;
  filter: grayscale(70%) blur(1px);
  transform: scale(0.93) translateZ(-50px);
}

.reel-inner {
  aspect-ratio: 9/16;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
}

.reel-card:hover .reel-inner,
.reel-card.active .reel-inner {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Landscape Video Adjustments */
.reel-landscape .reel-video {
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background: #000;
}

/* Overlays styling */
.reel-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.4) 0%, 
    rgba(0, 0, 0, 0) 25%, 
    rgba(0, 0, 0, 0) 70%, 
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  pointer-events: none; /* Let clicks pass to play/pause */
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 16px;
  z-index: 5;
}

.reel-card:hover .reel-overlay,
.reel-card.active .reel-overlay {
  opacity: 1;
}

/* User header info overlay */
.reel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-10px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-card:hover .reel-header,
.reel-card.active .reel-header {
  transform: translateY(0);
}

.reel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reel-user {
  display: flex;
  flex-direction: column;
}

.reel-username {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.reel-tag {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  margin-top: 1px;
}

/* Vertical metrics overlays on the right */
.reel-actions {
  position: absolute;
  right: 12px;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  z-index: 6;
  pointer-events: auto; /* Enable clicks */
  transform: translateX(15px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.reel-card:hover .reel-actions,
.reel-card.active .reel-actions {
  transform: translateX(0);
  opacity: 1;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.action-btn svg {
  width: 22px;
  height: 22px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease, color 0.2s ease;
}

.action-btn:hover svg {
  transform: scale(1.2);
  color: var(--violet-light);
}

.action-label {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
}

/* Mute button on the bottom left */
.reel-volume-btn {
  position: absolute;
  left: 12px;
  bottom: 84px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  pointer-events: auto; /* Enable clicks */
  transform: translateY(15px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background 0.2s ease;
}

.reel-volume-btn svg {
  width: 15px;
  height: 15px;
  color: #fff;
}

.reel-card:hover .reel-volume-btn,
.reel-card.active .reel-volume-btn {
  transform: translateY(0);
  opacity: 1;
}

.reel-volume-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Caption text at bottom */
.reel-caption-container {
  width: calc(100% - 10px);
  margin-top: auto;
  transform: translateY(15px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.reel-card:hover .reel-caption-container,
.reel-card.active .reel-caption-container {
  transform: translateY(0);
  opacity: 1;
}

.reel-caption-text {
  font-size: 11.5px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Static Display Label under card */
.reel-handle-display {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: opacity 0.3s ease;
}

.reel-card:hover .reel-handle-display,
.reel-card.active .reel-handle-display {
  opacity: 0;
}

/* DESKTOP HOVER AND ROTATION EFFECTS */
.reel-card:hover {
  transform: scale(1.08) translateY(-10px) rotateY(-5deg);
  z-index: 50;
}

/* SPECIAL LANDSCAPE ROTATION CARD */
.reel-card.reel-landscape {
  transform-origin: center center;
}

.reel-card.reel-landscape:hover,
.reel-card.reel-landscape.active {
  transform: rotate(90deg) scale(1.22);
  z-index: 100;
}

/* Beautiful horizontal scale and cancel out rotation relative to rotated card container */
.reel-card.reel-landscape:hover .reel-video,
.reel-card.reel-landscape.active .reel-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 177.77% !important;
  height: 56.25% !important;
  object-fit: cover;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .reels-track {
    animation-duration: 25s; /* Slightly faster scroll on mobile */
  }
  
  /* Tap to activate sizing and orientation */
  .reel-card.active {
    transform: scale(1.1) translateY(-5px);
    z-index: 40;
  }
  
  /* Override landscape rotation and keep it portrait on mobile view */
  .reel-card.reel-landscape:hover,
  .reel-card.reel-landscape.active {
    transform: scale(1.1) translateY(-5px) !important;
    z-index: 40 !important;
  }
  
  /* Robust fit for landscape video in all states on mobile (prevents stretching and centers it perfectly with high specificity) */
  .reel-card.reel-landscape .reel-video,
  .reel-card.reel-landscape:hover .reel-video,
  .reel-card.reel-landscape.active .reel-video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100% !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
    object-fit: contain !important;
  }
}

/* ============================================
   RESULTS PAGE
   ============================================ */
.results-section {
  padding: 60px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.client-case {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-subtle);
}
.client-case:last-child { border-bottom: none; }

.client-left { display: flex; flex-direction: column; gap: 16px; }

.client-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
}
.cp-abdu    { background: linear-gradient(160deg, #1e0a3e 0%, #0d1226 100%); }
.cp-hussain { background: linear-gradient(160deg, #0a1628 0%, #1e0a3e 100%); }
.cp-prosports { background: linear-gradient(160deg, #1a2040 0%, #3b0764 100%); }

.client-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.client-role {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0.5;
}

.stat-icon {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.stat-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.stat-value {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-unit {
  font-size: 11px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.responsibilities-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
}

.resp-heading {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.resp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resp-tag {
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border-accent);
  color: var(--violet-light);
  background: rgba(124,58,237,0.08);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.resp-tag:hover {
  background: rgba(124,58,237,0.2);
  color: var(--text-primary);
}

.results-cta {
  text-align: center;
  padding: 80px 24px 120px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-heading {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-heading em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--violet-light);
}
.cta-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-bento {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}

.bento-photo {
  position: sticky;
  top: 100px;
}

.about-photo-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #1e0a3e 0%, #0d1226 50%, #1a2040 100%);
  position: relative;
}
.about-photo-placeholder::after {
  content: '📸';
  font-size: 64px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0.12;
}

.bento-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition-fast);
}
.bento-card:hover { border-color: var(--border-accent); }

.about-name {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.about-aka-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.aka-badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.aka-cycle {
  font-size: 17px;
  font-weight: 600;
  color: var(--violet-light);
}
.aka-text {
  display: inline-block;
  transition: opacity 0.4s ease;
}

.about-bio-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.bento-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bento-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.bento-skills {
  background: linear-gradient(135deg, #1a0a3e 0%, #0d1226 100%);
  border-color: rgba(91,33,182,0.3);
}

.skills-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.skills-icon {
  width: 36px; height: 36px;
  background: rgba(124,58,237,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-light);
}

.skills-list, .achievements-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.skills-list li, .achievements-list li {
  padding: 4px 0;
  border-bottom: 1px solid var(--border-card);
  transition: color var(--transition-fast);
}
.skills-list li:hover, .achievements-list li:hover { color: var(--text-primary); }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--transition-medium);
}
.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(59,7,100,0.4);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  background: rgba(124,58,237,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-light);
  margin-bottom: 20px;
  transition: background var(--transition-fast);
  position: relative;
  z-index: 1;
}
.service-card:hover .service-icon { background: rgba(124,58,237,0.25); }

.service-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.service-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.service-stats {
  list-style: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  z-index: 1;
}
.service-stats li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color var(--transition-fast);
}
.service-stats li strong {
  color: var(--violet-light);
  font-weight: 700;
}
.service-card:hover .service-stats li {
  color: var(--text-secondary);
}

/* ============================================
   TOOLS MARQUEE
   ============================================ */
.tools-section {
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}
.tools-section .section-heading {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.tools-marquee-wrapper {
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.tools-marquee {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 20s linear infinite;
  padding: 8px 0;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tools-marquee:hover { animation-play-state: paused; }

.tool-item {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.tool-item:hover { color: var(--violet-light); }

.tool-sep {
  color: var(--violet-mid);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* ============================================
   ABOUT CTA
   ============================================ */
.about-cta {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(91,33,182,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.about-cta-inner { position: relative; z-index: 1; }
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CURSOR GLOW EFFECT
   ============================================ */
#cursor-glow {
  width: 300px; height: 300px;
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

/* Hide cursor glow on mobile devices */
@media (max-width: 768px) {
  #cursor-glow {
    display: none;
  }
  
  /* ============================================
     MOBILE HERO REDESIGN — 3D Carousel Background
     ============================================ */
  .hero {
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  
  /* Hide desktop ambient orbs and particle sphere */
  .hero-ambient-left,
  .hero-ambient-right {
    display: none;
  }
  
  /* Redesigned particle sphere for mobile — 3D Carousel */
  .hero-particle-sphere {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -35%) !important;
    z-index: 0;
    pointer-events: none;
    perspective: 1200px;
    opacity: 1;
  }
  
  /* Create carousel orbs */
  .hero-particle-sphere::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(124, 58, 237, 0.5);
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: carousel-rotate-3d 12s linear infinite;
    box-shadow: inset 0 0 40px rgba(124, 58, 237, 0.2),
                0 0 30px rgba(124, 58, 237, 0.35);
    opacity: 0.8;
  }
  
  .hero-particle-sphere::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    border: 1.5px dashed rgba(37, 99, 235, 0.45);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: carousel-rotate-3d 18s linear infinite reverse;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.25);
    opacity: 0.7;
  }
  
  /* Add floating center orb */
  .sphere-particle {
    position: absolute !important;
    width: 0;
    height: 0;
  }
  
  .sphere-particle:nth-child(1) {
    width: 70px;
    height: 70px;
    margin: -35px 0 0 -35px;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(124, 58, 237, 0.6), rgba(37, 99, 235, 0.25));
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.6), 
                0 0 50px rgba(124, 58, 237, 0.4),
                0 0 80px rgba(37, 99, 235, 0.25),
                inset 0 0 30px rgba(124, 58, 237, 0.3);
    animation: carousel-float 4.5s ease-in-out infinite, carousel-glow-pulse 2.5s ease-in-out infinite;
    opacity: 0.95 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(167, 139, 250, 0.9);
    font-size: 32px;
  }
  
  .sphere-particle:nth-child(2),
  .sphere-particle:nth-child(3),
  .sphere-particle:nth-child(n+4) {
    display: none;
  }
  
  /* Mobile hero content spacing */
  .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  /* Make eyebrow more compact but spacious */
  .hero-eyebrow {
    font-size: 9px;
    padding: 10px 16px;
    margin-bottom: 24px;
    gap: 8px;
    letter-spacing: 0.15em;
  }
  
  /* Title container - more spacious */
  .hero-title-img-container {
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }
  
  .hero-title-img {
    width: min(85vw, 300px);
  }
  
  /* Tagline - more spacious */
  .hero-tagline-row {
    gap: 16px;
    margin: 28px 0 24px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-divider-line {
    display: none;
  }
  
  .hero-tagline {
    font-size: 11px;
    padding: 10px 20px;
    letter-spacing: 0.12em;
  }
  
  /* CTA buttons - spacious and jello animation */
  .hero-cta-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 32px;
    padding: 0 16px;
    justify-content: center;
    align-items: center;
  }
  
  .btn-primary,
  .btn-ghost {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 180px;
    padding: 14px 12px;
    font-size: 12px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: jello-button-interval 3s ease-in-out infinite;
  }
  
  .btn-primary {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
  }
  
  .btn-primary:active,
  .btn-ghost:active {
    animation: jello-horizontal 0.6s ease-in-out;
  }
  
  /* Hide scroll hint on mobile */
  .hero-scroll-hint {
    display: none;
  }
  
  /* Hide particle sphere on mobile */
  .hero-particle-sphere {
    display: none !important;
  }
}

/* ============================================
   SMALL MOBILE HERO (max-width: 600px)
   ============================================ */
@media (max-width: 600px) {
  .hero {
    padding: 0;
  }
  
  .hero-particle-sphere {
    width: 240px;
    height: 240px;
    transform: translate(-50%, -30%) !important;
  }
  
  .hero-eyebrow {
    font-size: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
    gap: 6px;
  }
  
  .hero-title-img-container {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 20px;
  }
  
  .hero-title-img {
    width: min(80vw, 240px);
  }
  
  .hero-tagline-row {
    margin: 20px 0 20px;
    gap: 12px;
  }
  
  .hero-tagline {
    font-size: 10px;
    padding: 8px 16px;
  }
  
  .hero-cta-row {
    gap: 10px;
    max-width: 100%;
    margin-top: 24px;
    padding: 0 12px;
  }
  
  .btn-primary,
  .btn-ghost {
    padding: 14px 16px;
    font-size: 12px;
    border-radius: 14px;
  }
}

/* ============================================
   EXTRA SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero {
    padding: 0;
  }
  
  .hero-particle-sphere {
    width: 200px;
    height: 200px;
    transform: translate(-50%, -28%) !important;
  }
  
  .hero-particle-sphere::before {
    border-width: 1.5px;
  }
  
  .hero-particle-sphere::after {
    border-width: 1.5px;
  }
  
  .hero-eyebrow {
    font-size: 7px;
    padding: 6px 10px;
    margin-bottom: 12px;
    gap: 5px;
    letter-spacing: 0.1em;
  }
  
  .hero-title-img-container {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .hero-title-img {
    width: min(75vw, 200px);
  }
  
  .hero-tagline-row {
    margin: 16px 0 16px;
    gap: 10px;
  }
  
  .hero-tagline {
    font-size: 9px;
    padding: 6px 12px;
    white-space: normal;
  }
  
  .hero-cta-row {
    gap: 10px;
    max-width: 100%;
    margin-top: 18px;
    padding: 0 12px;
  }
  
  .btn-primary,
  .btn-ghost {
    padding: 12px 16px;
    font-size: 12px;
    border-radius: 14px;
    flex: 1;
  }
}

/* ============================================
   LOADER
   ============================================ */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-brand {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.1em;
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loader-bar-wrap {
  width: 160px; height: 2px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: var(--gradient-violet);
  border-radius: 2px;
  animation: loaderAnim 1.2s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes loaderAnim {
  0%   { width: 0%; }
  100% { width: 100%; }
}

/* ============================================
   SERVICES HERO — categories over animated video bg
   ============================================ */
.services-hero {
  position: relative;
  display: block;
  padding: 20px 0 0 0;
}

/* ─── Animated cinematic "video" background ─── */
.svc-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.svc-bg-layer {
  position: absolute;
  inset: 0;
}

/* Layer 1 — deep shifting gradient (main "footage" feel) */
.svc-bg-1 {
  background:
    radial-gradient(ellipse 120% 80% at 60% 40%, rgba(59,7,100,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 80% 100% at 10% 80%, rgba(14,26,80,0.5) 0%, transparent 60%),
    linear-gradient(160deg, #050814 0%, #0b0d22 40%, #07091c 100%);
  animation: bgShift1 14s ease-in-out infinite alternate;
}
@keyframes bgShift1 {
  0%   { opacity: 1; filter: brightness(1); }
  50%  { opacity: 0.85; filter: brightness(1.1); }
  100% { opacity: 1; filter: brightness(0.95); }
}

/* Layer 2 — slow sweeping light beam */
.svc-bg-2 {
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(91,33,182,0.06) 42%,
    rgba(124,58,237,0.04) 46%,
    transparent 50%
  );
  animation: beamSweep 8s ease-in-out infinite alternate;
}
@keyframes beamSweep {
  0%   { transform: translateX(-30%) rotate(-5deg); opacity: 0.5; }
  100% { transform: translateX(30%) rotate(5deg);  opacity: 1; }
}

/* Layer 3 — subtle colour pulse from bottom */
.svc-bg-3 {
  background: radial-gradient(ellipse 90% 50% at 50% 110%, rgba(37,99,235,0.18) 0%, transparent 60%);
  animation: bgPulse3 10s ease-in-out infinite alternate-reverse;
}
@keyframes bgPulse3 {
  0%   { opacity: 0.4; transform: scaleX(0.9); }
  100% { opacity: 1;   transform: scaleX(1.1); }
}

/* Film-grain scanlines */
.svc-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
}

/* Edge vignette */
.svc-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 50%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

/* ─── Floating particles ─── */
.svc-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.svc-particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(167,139,250,0.6);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-20px) translateX(var(--dx, 20px)); opacity: 0; }
}

/* ─── Content container ─── */
.svc-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  text-align: center;
  margin: 0 auto;
}

.svc-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(167,139,250,0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.svc-eyebrow::before,
.svc-eyebrow::after {
  content: '';
  width: 40px; height: 1px;
  background: rgba(124,58,237,0.4);
}

.svc-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  color: var(--text-primary);
}
.svc-heading em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--violet-light);
}

.svc-scroll-container {
  height: 600vh; /* 6 items * 100vh */
  position: relative;
  width: 100%;
}

.svc-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── MAIN VIEWER (TOP 85%) ─── */
.svc-main-viewer {
  flex: 1; /* Takes up remaining height, roughly 85% */
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 8vh 5vw;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.svc-viewer-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #1e1b4b, #312e81); /* Default fallback */
}
/* Subtle zoom on the background */
.svc-main-viewer:hover .svc-viewer-bg {
  transform: scale(1.03);
}

/* Overlay for text legibility */
.svc-main-viewer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,5,20,0.95) 0%, rgba(7,5,20,0.4) 50%, transparent 100%);
  z-index: 1;
}

.svc-viewer-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.svc-viewer-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--violet-light);
  padding: 6px 16px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 30px;
  background: rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.svc-viewer-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

.svc-viewer-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 600px;
}

/* ─── BURN ANIMATION ─── */
.svc-main-viewer.burning .svc-viewer-bg,
.svc-main-viewer.burning .svc-viewer-content {
  animation: burnTransition 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes burnTransition {
  0% {
    filter: url(#burn-filter) brightness(1) contrast(1);
    opacity: 1;
  }
  50% {
    filter: url(#burn-filter) brightness(2) contrast(1.5) hue-rotate(-20deg);
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    filter: url(#burn-filter) brightness(1) contrast(1);
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── HORIZONTAL TRACK (BOTTOM 15%) ─── */
.svc-horizontal-track {
  height: 15vh;
  min-height: 120px;
  background: rgba(7, 5, 20, 0.95);
  display: flex;
  align-items: center;
  padding: 0 5vw;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.svc-horizontal-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.svc-track-inner {
  display: flex;
  gap: 20px;
  min-width: min-content;
}

.svc-track-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  opacity: 0.5;
}

.svc-track-item:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.8;
}

.svc-track-item.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.5);
  opacity: 1;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.svc-track-icon {
  width: 40px;
  height: 40px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-light);
}

.svc-track-icon svg {
  width: 20px;
  height: 20px;
}

.svc-track-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── BACK TO TOP BUTTON ─── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 50%;
  color: var(--violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(124, 58, 237, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

/* ============================================
   BURGER MENU & MOBILE OVERLAY
   ============================================ */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 600;
}
.burger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-menu.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 24, 0.95);
  backdrop-filter: blur(20px);
  z-index: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-close-btn {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mobile-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.3s ease;
}
.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.active .mobile-link:nth-child(1) { transition: opacity 0.4s 0.1s, transform 0.4s 0.1s, color 0.3s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition: opacity 0.4s 0.2s, transform 0.4s 0.2s, color 0.3s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition: opacity 0.4s 0.3s, transform 0.4s 0.3s, color 0.3s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition: opacity 0.4s 0.4s, transform 0.4s 0.4s, color 0.3s; }
.mobile-link:hover { color: var(--violet-light); }


/* ============================================
   RESPONSIVE — TABLET & DESKTOP
   ============================================ */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .films-grid { grid-template-columns: 1fr; }
  .film-card-large { aspect-ratio: 16/7; }
  .films-grid .film-card-tall:nth-child(3),
  .films-grid .film-card-tall:nth-child(4),
  .films-grid .film-card-tall:nth-child(5) { grid-column: 1; grid-row: auto; aspect-ratio: 16/9; }
  .about-bento { grid-template-columns: 1fr; }
  .bento-photo { position: static; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reels-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-section-inner { grid-template-columns: 1fr; gap: 24px; }
  .client-case { grid-template-columns: 1fr; }
  /* Services hero */
  .svc-split-layout {
    grid-template-columns: 1fr;
  }
  .svc-sticky-panel {
    position: static;
  }
}

/* ============================================
   RESPONSIVE — LARGE TABLETS (768px - 1024px)
   ============================================ */
@media (max-width: 768px) {
  .burger-menu { display: flex; }
  .nav-links-left, .nav-links-right { display: none; }
  .nav-inner {
    display: flex;
    justify-content: space-between;
    height: auto;
    padding: 12px 16px;
    align-items: center;
  }
  .nav-brand { order: 0; font-size: 12px; }
  .nav-left-group, .nav-right-group { width: auto; gap: 0; margin: 0; display: flex; }
  
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .bento-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .reels-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar { width: calc(100% - 24px); padding: 0; border-radius: 20px; }
  .hero-title { font-size: clamp(40px, 12vw, 80px); }
  .films-grid { grid-template-columns: 1fr; }
  .sphere-particle { width: 24px; height: 24px; margin-top: -12px; margin-left: -12px; }
  .hero { padding: 0; }
  .nav-location { display: none; }
  
  /* Tablet: Better spacing */
  .featured-work { padding: 60px 24px; }
  .hero-eyebrow { font-size: 9px; padding: 8px 16px; margin-bottom: 20px; }
  .hero-title-img { width: min(85vw, 400px); }
  .hero-cta-row { gap: 12px; }
  .btn-primary, .btn-ghost { font-size: 13px; padding: 12px 28px; }
  .section-heading { font-size: clamp(32px, 4vw, 48px); margin-bottom: 40px; }
  
  /* Disable desktop animations on tablet/mobile */
  .hero-title-img-container:hover .hero-title-img {
    transform: none;
    filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.35));
  }
}

/* ============================================
   RESPONSIVE — MOBILE (up to 768px)
   ============================================ */
@media (max-width: 640px) {
  /* Disable desktop-only animations completely */
  .work-card:hover { transform: none; }
  .btn-primary:hover, .btn-ghost:hover, .btn-outline:hover { transform: none; }
  
  /* Hero optimizations */
  .hero { 
    padding: 0;
    min-height: 100vh;
  }
  .hero-content { max-width: 100%; }
  
  /* Eyebrow */
  .hero-eyebrow {
    font-size: 8px;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    padding: 6px 12px;
    gap: 6px;
    margin-bottom: 16px;
  }
  .eyebrow-dot { width: 4px; height: 4px; }
  .eyebrow-divider { font-size: 12px; }
  
  /* Title image */
  .hero-title-img-container {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 8px;
    max-width: 90vw;
    animation: fadeUpPop 1.2s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero-title-img { 
    width: min(80vw, 300px);
    filter: none;
  }
  .hero-title-img-container:hover .hero-title-img {
    transform: none;
    filter: none;
  }
  
  /* Tagline */
  .hero-tagline-row {
    gap: 12px;
    margin: 16px 0 16px;
    flex-direction: column;
  }
  .hero-divider-line { display: none; }
  .hero-tagline { 
    font-size: 11px;
    padding: 8px 16px;
    width: 100%;
    text-align: center;
  }
  
  /* Description */
  .hero-desc {
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
    margin: 12px auto 0;
  }
  
  /* CTA buttons - full width on mobile */
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 24px;
  }
  
  .btn-primary, .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 16px 20px;
    font-size: 14px;
    min-height: 48px;
    display: flex;
    align-items: center;
    /* Mobile tap animation */
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  }
  
  .btn-primary:active { 
    transform: scale(0.98);
    opacity: 0.9;
  }
  .btn-ghost:active { 
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
  }
  
  /* Scroll hint hidden on small mobile */
  .hero-scroll-hint {
    display: none;
  }
  
  /* Typography scaling */
  .section-heading { 
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 28px;
  }
  
  /* Grid adjustments */
  .work-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
  }
  .stats-grid { grid-template-columns: 1fr; }
  .bento-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .reels-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  
  /* Featured work padding */
  .featured-work { 
    padding: 48px 16px;
  }
  
  /* Cards */
  .work-card { aspect-ratio: 2/3; }
  
  /* Nav section */
  .nav-section-inner { 
    grid-template-columns: 1fr; 
    gap: 20px;
    padding: 0;
  }
  .nav-section { padding: 48px 16px; }
  .nav-section-link { 
    font-size: 20px;
    color: var(--text-secondary);
  }
  .nav-section-links { gap: 16px; }
  
  /* Navbar */
  .navbar { 
    width: calc(100% - 24px);
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    left: 12px;
    top: 8px;
    transform: none;
  }
  
  .nav-inner {
    grid-template-columns: auto 1fr auto;
    justify-items: center;
    height: auto;
    padding: 0 4px;
  }
  
  .nav-brand {
    order: 1;
    flex: 0 1 auto;
    margin: 0;
    white-space: nowrap;
    font-size: 11px;
  }
  
  .nav-left-group {
    order: 0;
    width: auto;
    justify-content: flex-start;
  }
  
  .nav-right-group {
    order: 2;
    width: auto;
    justify-content: flex-end;
  }
  
  /* Mobile: Logo to the Left */
  .nav-inner {
    grid-template-columns: auto 1fr auto !important;
    justify-items: start;
    gap: 12px;
  }
  
  .nav-brand {
    order: -1 !important;
    text-align: left;
    padding: 6px 12px;
  }

  /* MOBILE SCROLL ANIMATION: ONLY BURGER */
  .navbar.nav-compact {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    left: calc(100% - 40px) !important;
    top: 20px !important;
    transform: translateX(-100%) !important;
    background: rgba(10, 8, 28, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    overflow: hidden;
  }

  .navbar.nav-compact .nav-inner {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 !important;
  }

  .navbar.nav-compact .nav-brand,
  .navbar.nav-compact .nav-left-group {
    display: none !important;
  }

  .navbar.nav-compact .nav-right-group {
    justify-content: center;
    width: 100%;
  }

  .navbar.nav-compact .burger-menu {
    margin: 0;
  }

  
  .navbar.is-scrolled {
    width: calc(100% - 24px);
    top: 8px;
    left: 12px;
    border-radius: 20px;
    background: rgba(10, 8, 28, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
  
  /* Footer */
  .footer { padding: 40px 16px; }
  .footer-bottom { 
    flex-direction: column; 
    gap: 16px; 
    text-align: center;
  }
  .footer-brand { font-size: clamp(16px, 5vw, 24px); }
  .footer-tagline { font-size: 13px; }
  .footer-copy { font-size: 11px; }
  .footer-socials { gap: 12px; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (up to 480px)
   ============================================ */
@media (max-width: 480px) {
  .nav-brand { 
    font-size: 10px; 
    padding: 4px 8px;
    line-height: 1.2;
    text-align: center;
    align-items: center;
  }
  .burger-menu { width: 32px; height: 32px; }
  .burger-menu span { width: 20px; height: 1.5px; }
  
  /* Hero more compact */
  .hero { 
    padding: 0;
    min-height: 100vh;
  }
  
  .hero-eyebrow {
    font-size: 7px;
    padding: 5px 10px;
    margin-bottom: 12px;
    gap: 4px;
    letter-spacing: 0.15em;
  }
  
  .hero-title-img-container {
    padding: 12px;
    margin-bottom: 8px;
  }
  .hero-title-img { 
    width: min(75vw, 220px);
  }
  
  .hero-tagline { 
    font-size: 10px;
    padding: 6px 12px;
    white-space: normal;
  }
  
  .hero-cta-row { margin-top: 18px; }
  .btn-primary, .btn-ghost { 
    padding: 14px 16px;
    font-size: 13px;
    min-height: 44px;
  }
  
  /* Sections */
  .featured-work { padding: 36px 12px; }
  .section-heading { 
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 20px;
  }
  
  /* Work grid single column on very small screens */
  .work-grid { 
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .work-card { aspect-ratio: 3/4; }
  
  /* Reels */
  .reels-grid { grid-template-columns: 1fr; gap: 10px; }
  
  /* Nav section */
  .nav-section { padding: 32px 12px; }
  .nav-section-link { font-size: 18px; }
  .nav-section-links { gap: 12px; }
  
  /* Footer */
  .footer { padding: 32px 12px; }
  .footer-brand { font-size: 18px; }
  .footer-tagline { font-size: 12px; line-height: 1.5; }
  
  /* Mobile menu */
  .mobile-link { 
    font-family: var(--font-display);
    font-size: 48px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .mobile-menu-inner { gap: 32px; padding-top: 40px; }
  .mobile-close-btn { width: 44px; height: 44px; top: 28px; right: 20px; }
  
  /* Back to top button */
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 16px;
  }
}

/* ============================================
   PAGE LOADER — Professional Redesign
   ============================================ */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #05070a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
  visibility: visible;
}

.loader-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 2;
}

.loader-bg-aurora {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.2), rgba(37, 99, 235, 0.1), transparent 60%);
  filter: blur(120px);
  animation: loaderAurora 15s linear infinite;
  opacity: 0.6;
  z-index: 1;
}

@keyframes loaderAurora {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.3); }
  100% { transform: rotate(360deg) scale(1); }
}

.loader-content {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 450px;
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: rgba(10, 12, 18, 0.4);
  backdrop-filter: blur(80px) saturate(200%);
  -webkit-backdrop-filter: blur(80px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  box-shadow: 0 80px 150px rgba(0,0,0,0.8);
  animation: loaderIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes loaderIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); filter: blur(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.loader-context {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.context-loc { font-weight: 700; color: var(--violet-light); }
.context-time { font-family: 'JetBrains Mono', monospace; opacity: 0.5; }

.loader-main {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.loader-brand-minimal {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: 0.15em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.loader-status {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--violet-light);
  font-weight: 700;
  text-transform: uppercase;
}

.loader-subtext {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-family: var(--font-italic);
  min-height: 1.5em;
}

.loader-footer {
  width: 100%;
}

.loader-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.loader-dots span {
  width: 10px;
  height: 10px;
  background: var(--violet-bright);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--violet-bright);
  animation: dotJump 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotJump {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; translateY(-10px); }
}

/* ============================================
   HERO BIFURCATION (Desktop vs Mobile)
   ============================================ */
.hero-desktop {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-mobile {
  display: none;
  width: 100%;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-desktop { display: none; }
  .hero-mobile { display: flex; }
}

/* --- MOBILE HERO STYLES --- */
.hero-mobile .hero-bg-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 7, 100, 0.4), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.3), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.2), transparent 70%);
  filter: blur(80px);
  animation: auroraShift 20s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.2) translate(5%, 5%); }
  100% { transform: scale(1) translate(-5%, -2%); }
}

.hero-mobile .hero-bg-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 0;
  width: 200%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 25vh;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  animation: watermarkScroll 60s linear infinite;
  display: flex;
}

@keyframes watermarkScroll {
  0% { transform: translateY(-50%) translateX(0); }
  100% { transform: translateY(-50%) translateX(-50%); }
}

.hero-glass-card {
  position: relative;
  z-index: 10;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  width: 92%;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-small {
  width: 90px;
  height: auto;
  opacity: 0.9;
  filter: brightness(1.2);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline-minimal {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-mobile .hero-cta-row {
  flex-direction: column;
  width: 100%;
  gap: 12px;
}

.hero-mobile .btn-primary,
.hero-mobile .btn-ghost {
  width: 100%;
}

.glow-btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
}

.glow-btn:hover {
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
  transform: translateY(-2px);
}

/* Floating 3D Shapes */
.hero-3d-assets {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.glass-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.glass-shape.s1 {
  width: 80px; height: 80px;
  top: 15%; left: 10%;
  animation: floatOrb 15s ease-in-out infinite alternate;
}

.glass-shape.s2 {
  width: 100px; height: 100px;
  bottom: 20%; right: 5%;
  animation: floatOrb 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-30px) rotate(15deg); }
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  z-index: 20;
  pointer-events: none;
}
