/* ══════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════ */
:root {
  --bg:        #0a0a0c;
  --bg-2:      #111114;
  --bg-3:      #18181d;
  --surface:   #1e1e25;
  --border:    rgba(255,255,255,0.07);
  --accent:    #c8ff00;        /* neon lime — change freely */
  --accent-2:  #6c63ff;        /* purple for secondary glow */
  --text:      #f0f0f2;
  --text-muted:#8a8a9a;
  --font:      'Inter', sans-serif;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --nav-h:     70px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section { padding: 120px 0; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

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

/* ══════════════════════════════════════════
   SCROLL-REVEAL ANIMATION
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.18s; }
.reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal:nth-child(5) { transition-delay: 0.34s; }
.reveal:nth-child(6) { transition-delay: 0.42s; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 700 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(10,10,12,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-top: var(--nav-h);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.mobile-link {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--text); }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), opacity 0.2s;
  cursor: pointer;
  border: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

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

/* hero-video removed — showreel has its own section */

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(200,255,0,0.06) 0%, transparent 70%);
}

/* Animated gradient fallback (when no video) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(108,99,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(200,255,0,0.12) 0%, transparent 60%),
    var(--bg);
  animation: bgPulse 8s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-name span {
  color: var(--accent);
}

.hero-skills {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.hero-seek {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue span {
  display: block;
  width: 1.5px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollLine 2s ease-in-out infinite;
  margin: auto;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════════════════
   SHOWREEL SECTION
══════════════════════════════════════════ */
.showreel-section {
  background: var(--bg-2);
  text-align: center;
}

.showreel-player {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(200,255,0,0.05);
  background: #000;
  /* Responsive 16:9 aspect ratio */
  aspect-ratio: 16 / 9;
}

.showreel-video,
.showreel-iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: none;
}

/* Subtle glow ring animation on the player */
.showreel-player::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, rgba(200,255,0,0.15), transparent 50%, rgba(108,99,255,0.1));
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.about-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(200,255,0,0.06) 0%, transparent 70%);
}

.camera-icon {
  width: 56px;
  color: rgba(255,255,255,0.2);
}
.camera-icon svg { width: 100%; }

.placeholder-label {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.5;
}

/* actual photo override */
.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(200,255,0,0.18) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* .about-text — no additional styles needed */

.about-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-body strong { color: var(--text); font-weight: 600; }

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.skills-chips span {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.skills-chips span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════════════════
   PORTFOLIO — MONTAGE & CADRAGE
══════════════════════════════════════════ */
.portfolio { background: var(--bg); }

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

.project-card {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,255,0,0.12);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
}

.card-thumb.no-thumb {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-3) 100%);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s ease;
}
.project-card:hover .card-thumb img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
}
.project-card:hover .card-play { background: rgba(0,0,0,0.2); }

.card-play svg {
  width: 52px;
  height: 52px;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  filter: drop-shadow(0 2px 12px rgba(200,255,0,0.5));
}
.project-card:hover .card-play svg {
  opacity: 1;
  transform: scale(1);
}

/* Empty thumbnail fallback gradient */
.card-thumb.no-thumb::before {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.1);
}

.card-info {
  padding: 18px 20px 22px;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ══════════════════════════════════════════
   PORTFOLIO — MOTION DESIGN (masonry-style)
══════════════════════════════════════════ */
.motion { background: var(--bg-2); }

.motion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
}

.motion-card { border-radius: var(--radius); overflow: hidden; cursor: pointer; }

.motion-card--wide { grid-column: span 2; }
.motion-card--tall { grid-row: span 2; }

.motion-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.motion-still,
.motion-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motion-still {
  transition: opacity 0.4s ease;
  z-index: 1;
}
.motion-card:hover .motion-still { opacity: 0; }

.motion-video {
  z-index: 0;
  opacity: 1;
}

/* empty state */
.motion-thumb.no-thumb {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-3) 100%);
}

.motion-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 40px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.motion-card:hover .motion-label {
  opacity: 1;
  transform: translateY(0);
}
.motion-label span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

/* ══════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.lightbox-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.lightbox-yt-btn:hover { color: #fff; }
.lightbox-yt-btn svg { width: 18px; height: 18px; }

.lightbox-close {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
  flex-shrink: 0;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close svg { width: 16px; height: 16px; }

.lightbox-content {
  width: min(960px, 100%);
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  transform: scale(0.92);
  transition: transform 0.4s var(--ease);
}
.lightbox.open .lightbox-content { transform: scale(1); }

.lightbox-content iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

/* Error panel — shown when YouTube blocks embedding */
.lightbox-error {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--bg-3);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }

.footer-available {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* .footer-contact — no additional styles needed */

.footer-tagline {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-email {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 4px;
}

.social-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .motion-grid { grid-template-columns: repeat(2, 1fr); }
  .motion-card--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }

  .hero-name { font-size: clamp(2.8rem, 13vw, 5rem); }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-wrap { max-width: 320px; margin: auto; }

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

  .motion-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .motion-card--wide { grid-column: span 1; }
  .motion-card--tall { grid-row: span 1; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .section { padding: 80px 0; }
  .btn { padding: 12px 24px; font-size: 0.88rem; }
}
