/* ═══════════════════════════════════════════════════
   ANANTHU NAIR | Portfolio
   Palette: near-black + light blue accent
   ═══════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  /* Backgrounds */
  --bg-base:    #0d0d0d;   /* site background */
  --bg-section: #111111;   /* alternate sections */
  --bg-card:    #161616;   /* cards / panels */
  --bg-line:    rgba(255,255,255,0.07); /* subtle dividers */

  /* Blue accent */
  --blue:       #7dd3fc;   /* sky-300 | light, clean */
  --blue-dim:   rgba(125, 211, 252, 0.12);
  --blue-glow:  rgba(125, 211, 252, 0.25);

  /* Text */
  --text-1: #f0f0f0;
  --text-2: #a0a0a0;
  --text-3: #606060;

  /* Misc */
  --radius: 6px;
  --transition: 0.25s ease;
  --container: 1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }


/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}


/* ════════════════════════════════════════════════════
   NAV BAR
   ════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Start fully transparent; JS adds .nav-scrolled */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    backdrop-filter 0.4s ease;
}

/* Scrolled state — glassmorphism */
.site-nav.nav-scrolled {
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--bg-line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo mark */
.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bg-line);
  transition: transform var(--transition), border-color var(--transition);
}

.nav-logo:hover .nav-avatar {
  transform: scale(1.05);
  border-color: var(--blue-glow);
}

/* Link list */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: var(--text-1);
  background: rgba(255,255,255,0.04);
}
.nav-link:hover::after,
.nav-link.nav-active::after { width: calc(100% - 28px); }
.nav-link.nav-active { color: var(--blue); }

/* ── Mobile hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.25s ease;
}
.nav-hamburger:hover span { background: var(--blue); }

/* Open state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile breakpoint ── */
@media (max-width: 640px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-line);
    /* hidden off-screen */
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius);
  }
}


/* ════════════════════════════════════════════════════
   1. HERO
   ════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: grayscale(30%);
  transform: scale(1.04); /* slight oversize to avoid edge flicker */
}

/* Dark gradient scrim — heavier at bottom to blend into next section */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(13,13,13,0.55) 0%,
      rgba(13,13,13,0.3)  40%,
      rgba(13,13,13,0.75) 75%,
      rgba(13,13,13,1)    100%
    );
}

/* Name + title */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7.5rem);
  letter-spacing: -0.02em;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(0.875rem, 2vw, 1.0625rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0.9;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  transition: color var(--transition);
  cursor: pointer;
}
.scroll-indicator:hover { color: var(--blue); }

.scroll-label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: -6px;
}
.scroll-chevrons svg {
  width: 20px;
  height: 20px;
  animation: chevron-bounce 1.8s ease-in-out infinite;
}
.scroll-chevrons svg:first-child { opacity: 0.35; animation-delay: 0s; }
.scroll-chevrons svg:last-child  { opacity: 0.75; animation-delay: 0.18s; }

@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}


/* ════════════════════════════════════════════════════
   Section shared styles
   ════════════════════════════════════════════════════ */
.section-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 48px;
}


/* ════════════════════════════════════════════════════
   2. REEL
   ════════════════════════════════════════════════════ */
.reel-section {
  padding: 96px 0 100px;
  background: var(--bg-base);
  border-top: 1px solid var(--bg-line);
}

/* ── Video Embeds ── */
.video-gap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px var(--bg-line),
    0 28px 70px rgba(0,0,0,0.7),
    0 0 0 0 transparent;
}


/* ════════════════════════════════════════════════════
   3. ABOUT
   ════════════════════════════════════════════════════ */
.about-section {
  padding: 100px 0;
  background: var(--bg-section);
  border-top: 1px solid var(--bg-line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}

/* Bio */
.bio-lead {
  font-size: 1.0625rem;
  color: var(--text-1);
  line-height: 1.8;
  margin-bottom: 32px;
}
.bio-lead strong { color: var(--blue); font-weight: 600; }

.bio-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}
.bio-facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.55;
}
.fact-icon {
  color: var(--blue);
  font-size: 0.75rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Studios */
.studios-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.logos-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-card {
  background: #1a1a1a;
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: border-color var(--transition), background var(--transition);
}
.logo-card:hover {
  border-color: rgba(125,211,252,0.3);
  background: #202020;
}

.studio-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.logo-card:hover .studio-logo { opacity: 1; }

/* Stats column */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--bg-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-block:first-child { padding-top: 0; }
.stat-block:last-child  { border-bottom: none; }

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.75rem;
  color: var(--text-1);
  line-height: 1;
}
.stat-plus {
  font-size: 1.5rem;
  color: var(--blue);
  vertical-align: top;
  line-height: 1.25;
}

.stat-desc {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.5;
}


/* ════════════════════════════════════════════════════
   4. CONTACT
   ════════════════════════════════════════════════════ */
.contact-section {
  padding: 100px 0;
  background: var(--bg-base);
  border-top: 1px solid var(--bg-line);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-3);
  margin-top: -28px; /* pull up under heading */
}
.contact-location svg {
  width: 16px; height: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  cursor: pointer;
}
.contact-item:hover {
  border-color: rgba(125,211,252,0.3);
  background: #1b1b1b;
  transform: translateY(-2px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--blue-dim);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.contact-item:hover .contact-icon { background: var(--blue-glow); }

.contact-icon svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.contact-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-type {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-value {
  font-size: 0.9375rem;
  color: var(--text-1);
}

.contact-arrow {
  font-size: 1rem;
  color: var(--text-3);
  transition: color var(--transition), transform var(--transition);
}
.contact-item:hover .contact-arrow {
  color: var(--blue);
  transform: translate(2px, -2px);
}


/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--bg-line);
  background: var(--bg-base);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-1);
  letter-spacing: 0.01em;
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-3);
}


/* ════════════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: none; }


/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .about-grid    { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-location { margin-top: -12px; }
}

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
