/* ==========================================================================
   NOVA REEL — Portfolio Stylesheet
   Design tokens live at the top as CSS variables. Change these first if you
   want to retheme the whole site.
   ========================================================================== */

:root {
  /* Color */
  --bg-deep:      #0A0C10;
  --bg-panel:     rgba(255, 255, 255, 0.045);
  --bg-panel-2:   rgba(255, 255, 255, 0.07);
  --border-soft:  rgba(255, 255, 255, 0.09);
  --text-main:    #F3F4F7;
  --text-muted:   #9296A3;
  --accent-violet:#6C63FF;
  --accent-teal:  #35E0C9;
  --accent-grad:  linear-gradient(135deg, var(--accent-violet), var(--accent-teal));

  /* Type */
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ SHARED UTILITIES ============ */
.glass {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent-teal);
  margin-bottom: 0.75rem;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
}
.section-title.center { text-align: center; margin-bottom: 2.5rem; }

.accent-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.btn-primary {
  background: var(--accent-grad);
  color: #06070A;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(108, 99, 255, 0.35); }

.btn-ghost {
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  background: var(--bg-panel);
}
.btn-ghost:hover { border-color: var(--accent-teal); }

section { padding: 7rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }

/* ============ SCROLL PLAYHEAD ============ */
.playhead-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
  z-index: 1000;
}
.playhead-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-grad);
  transition: width 0.1s linear;
}
.playhead-code {
  position: fixed;
  top: 8px; right: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  z-index: 1000;
}

/* ============ NAV ============ */
.nav-wrap { position: fixed; top: 18px; left: 0; right: 0; z-index: 900; padding: 0 1.5rem; }
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.logo span { color: var(--accent-teal); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-main); }
.nav-cta {
  color: var(--text-main) !important;
  border: 1px solid var(--border-soft);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-main); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 6rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  min-height: 90vh;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 30% 30%, black, transparent);
  z-index: -2;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: -1;
}
.shape-a { width: 340px; height: 340px; background: var(--accent-violet); top: -60px; left: -80px; }
.shape-b { width: 280px; height: 280px; background: var(--accent-teal); bottom: -40px; right: 10%; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1.3rem;
}

.hero-sub { color: var(--text-muted); max-width: 46ch; margin-bottom: 2rem; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-frame { overflow: hidden; }
.hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-r { background: #FF6161; }
.dot-y { background: #FFD166; }
.dot-g { background: #35E0C9; }
.hero-frame-label { margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }

.hero-frame-body {
  height: 320px;
  background: linear-gradient(135deg, rgba(108,99,255,0.25), rgba(53,224,201,0.15));
  position: relative;
	margin-top: -0px;
}
.hero-frame-ticks {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--border-soft) 0 1px, transparent 1px 12px);
}

/* ============ ABOUT ============ */
.about-card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  padding: 2.8rem;
  align-items: center;
}
.about-copy p { color: var(--text-muted); margin: 1.1rem 0 1.8rem; max-width: 56ch; }
.about-stats { display: flex; gap: 2.2rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--accent-teal); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

.portrait-frame { aspect-ratio: 3/4; overflow: hidden; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ============ SHOWREEL ============ */
.reel-frame { padding: 1.2rem; }
.reel-video { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/9; background: #000; }
.reel-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(10,12,16,0.55);
  backdrop-filter: blur(6px);
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
	}
.reel-frame + .reel-frame {
  margin-top: 2rem;
}
.reel-scrub { display: flex; align-items: center; gap: 1rem; padding: 1rem 0.4rem 0.2rem; }
.reel-time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.reel-bar { flex: 1; height: 4px; background: var(--border-soft); border-radius: 999px; overflow: hidden; }
.reel-bar-fill { width: 34%; height: 100%; background: var(--accent-grad); }

/* ============ WORK GRID ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card { padding: 1.3rem; transition: transform 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-6px); border-color: var(--accent-teal); }

.card-thumb {
  height: 170px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background-size: cover;
}
.thumb-1 { background: linear-gradient(135deg,#6C63FF,#2E2A66); }
.thumb-2 { background: linear-gradient(135deg,#35E0C9,#12706A); }
.thumb-3 { background: linear-gradient(135deg,#FF9F6C,#7A3A22); }
.thumb-4 { background: linear-gradient(135deg,#6C63FF,#35E0C9); }
.thumb-5 { background: linear-gradient(135deg,#3A6FF8,#122A66); }
.thumb-6 { background: linear-gradient(135deg,#8C63FF,#2A1A66); }

.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.card-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent-teal);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.card-code { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.card-title { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.4rem; }
.card-desc { color: var(--text-muted); font-size: 0.9rem; }

/* ============ TOOLKIT / TRACKS ============ */
.tracks { display: flex; flex-direction: column; gap: 1rem; }
.track {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 1.2rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}
.track-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.track-lane { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.clip {
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
}

/* ============ CONTACT / FOOTER ============ */
.contact { padding-bottom: 4rem; }
.contact-card { text-align: center; padding: 4rem 2rem; }
.contact-sub { color: var(--text-muted); margin: 1rem 0 2rem; }
.contact-socials { display: flex; justify-content: center; gap: 1.6rem; margin: 2.2rem 0 1.5rem; }
.contact-socials a { font-size: 0.9rem; color: var(--text-muted); }
.contact-socials a:hover { color: var(--accent-teal); }
.contact-copy { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 8rem; }
  .about-card { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .track { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-deep);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-top: 0.6rem;
    display: none;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .work-grid { grid-template-columns: 1fr; }
  section { padding: 4.5rem 1.2rem; }
}

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}
.reel-video iframe{
width: 100%;
height: 100%;
border: 0;
display: block;}

/* ============ LIGHTBOX ============ */


.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 10, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--accent-teal); }

.card-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.card-thumb:hover { opacity: 0.85; }
