/* ========================================
   KAUSTHUB LATNE — VIDEO EDITOR PORTFOLIO
   Cinematic Dark Theme
   ======================================== */

/* ==================== VARIABLES ==================== */
:root {
  --bg-dark: #06060a;
  --bg-surface: #0c0c12;
  --bg-card: #111119;
  --bg-elevated: #16161f;
  --bg-glass: rgba(255, 255, 255, 0.025);
  --bg-glass-hover: rgba(255, 255, 255, 0.05);

  --text-primary: #eeeef2;
  --text-secondary: #8888a0;
  --text-muted: #55556a;

  --accent: #48cae4;
  --accent-bright: #76d7eb;
  --accent-glow: rgba(72, 202, 228, 0.35);
  --accent-subtle: rgba(72, 202, 228, 0.08);

  --gold: #2f97ab;
  --gold-glow: rgba(47, 151, 171, 0.3);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(72, 202, 228, 0.3);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Bebas Neue', 'Inter', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --section-gap: 100px;
  --container-max: 1200px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ==================== RESET ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, iframe { max-width: 100%; display: block; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--accent); color: #fff; }

.mono { font-family: var(--font-mono); }

/* ==================== FILM GRAIN ==================== */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
  background-repeat: repeat;
}

/* ==================== CUSTOM CURSOR ==================== */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s;
  mix-blend-mode: difference;
}

.cursor.hover {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(72, 202, 228, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s;
}

/* ==================== LOADER ==================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0%, var(--accent) 12%, transparent 26%, transparent 74%, var(--accent) 88%, transparent 100%);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  animation: loader-glow-spin 5s linear infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes loader-glow-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.loader__cinema {
  position: relative;
  text-align: center;
  width: 280px;
}

.loader__bars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 30px;
  height: 40px;
  align-items: flex-end;
}

.loader__bar {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: loader-bar 1s ease-in-out infinite;
}

.loader__bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.loader__bar:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.loader__bar:nth-child(3) { height: 30px; animation-delay: 0.2s; }
.loader__bar:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.loader__bar:nth-child(5) { height: 10px; animation-delay: 0.4s; }

@keyframes loader-bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(2.5); }
}

.loader__name {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 6px;
  color: var(--text-primary);
}

.loader__logo-img {
  display: block;
  max-width: 160px;
  margin: 0 auto 10px;
}

.loader__role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-top: 6px;
}

.loader__progress {
  margin-top: 30px;
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader__progress-bar {
  position: relative;
  height: 100%;
  width: 0;
  background: var(--accent);
  overflow: hidden;
  animation: loader-progress 1.8s ease-in-out forwards;
}

.loader__progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: loader-shimmer 1s linear infinite;
}

@keyframes loader-progress {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes loader-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(6, 6, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__logo-mark {
  width: 38px;
  height: 38px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo-img {
  width: 200px;
  height: 50px;
  object-fit: contain;
}

.nav__logo-k {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  z-index: 1;
}

.nav__logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transform: rotate(-6deg);
}

.nav__logo-dot {
  display: none;
}

.nav__logo-info {
  display: flex;
  flex-direction: column;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 2px;
  line-height: 1;
}

.nav__logo-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  line-height: 1;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  gap: 4px;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
  letter-spacing: 0.5px;
}

.nav__link-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav__link.active .nav__link-num,
.nav__link:hover .nav__link-num {
  color: var(--accent);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__cta {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  transition: all 0.25s var(--ease);
  box-shadow: 0 2px 12px var(--accent-glow);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 26px;
  padding: 4px 0;
}

.nav__toggle-line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav__toggle.active .nav__toggle-line:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav__toggle.active .nav__toggle-line:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--ghost {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-subtle);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn--shake {
  animation: btn-shake 0.4s ease-in-out;
}

@keyframes btn-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* Animated success checkmark (contact form) */
.check-draw {
  overflow: visible;
  vertical-align: middle;
  flex-shrink: 0;
}

.check-draw__circle {
  stroke: #fff;
  stroke-width: 3;
  stroke-dasharray: 146;
  stroke-dashoffset: 146;
  animation: check-draw-circle 0.5s ease-out forwards;
}

.check-draw__check {
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: check-draw-mark 0.3s 0.45s ease-out forwards;
}

@keyframes check-draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes check-draw-mark {
  to { stroke-dashoffset: 0; }
}

/* ==================== SECTION COMMON ==================== */
.section__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
}

.section__header {
  margin-bottom: 60px;
}

.section__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.section__line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 2px;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 480px;
  margin-top: 16px;
  line-height: 1.7;
}

.accent-text {
  color: var(--accent);
}

/* ==================== REVEAL ANIMATION ==================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg-dark) 100%);
  z-index: 2;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(72, 202, 228, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(47, 151, 171, 0.04) 0%, transparent 40%);
  z-index: 0;
}

/* Aurora ambient glow */
.hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  will-change: transform;
}

/* Paused once the hero scrolls out of view — no point animating an invisible layer */
.hero.is-offscreen .hero__aurora,
.hero.is-offscreen .hero__particle,
.contact.is-offscreen .hero__particle {
  animation-play-state: paused;
}

.hero__aurora--1 {
  width: 480px;
  height: 480px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(72, 202, 228, 0.28) 0%, transparent 70%);
  animation: aurora-float-1 16s ease-in-out infinite;
}

.hero__aurora--2 {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(47, 151, 171, 0.22) 0%, transparent 70%);
  animation: aurora-float-2 20s ease-in-out infinite;
}

@keyframes aurora-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.15); }
}

@keyframes aurora-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
}

/* Floating particles */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero__particle {
  position: absolute;
  bottom: -12px;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  opacity: 0;
  animation: particle-float var(--duration, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes particle-float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.7; }
  92% { opacity: 0.35; }
  100% { transform: translateY(-640px) translateX(var(--drift, 20px)); opacity: 0; }
}

/* Timecode */
.hero__timecode {
  position: absolute;
  top: 100px;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero__timecode-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
}

.rec-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 5;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.hero__tag-line {
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  margin-bottom: 28px;
}

.hero__title-line {
  display: block;
  font-family: var(--font-display);
  font-stretch: condensed;
  letter-spacing: 1px;
  line-height: 0.92;
}

.hero__title-line--1 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  color: var(--text-secondary);
}

.hero__title-line--2 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  color: var(--text-primary);
}

.hero__title-line--3 {
  font-size: clamp(3.2rem, 7.4vw, 6.6rem);
  color: var(--accent);
  -webkit-text-stroke: 1px var(--accent);
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero__desc strong {
  color: var(--text-primary);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Filmstrip */
.hero__filmstrip {
  position: relative;
}

.filmstrip {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s var(--ease);
}

.filmstrip:hover {
  transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
}

.filmstrip__frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  background: #000;
}

.filmstrip__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(72, 202, 228, 0.1);
  border-radius: var(--radius-md);
  z-index: 1;
  pointer-events: none;
}

.filmstrip__frame iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.filmstrip__frame .yt-thumb {
  display: block;
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.filmstrip__frame .yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}

.filmstrip__frame .yt-thumb:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.filmstrip__frame .yt-thumb .yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 20px var(--accent-glow);
}

.filmstrip__frame .yt-thumb .yt-play i {
  color: #fff;
  font-size: 0.8rem;
  margin-left: 2px;
}

.filmstrip__frame .yt-thumb:hover .yt-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Local video frame (e.g. podcast trailer preview) */
.filmstrip__frame--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}

.filmstrip__frame--video:hover video {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.filmstrip__frame--video .yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 20px var(--accent-glow);
}

.filmstrip__frame--video .yt-play i {
  color: #fff;
  font-size: 0.8rem;
  margin-left: 2px;
}

.filmstrip__frame--video:hover .yt-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
}

.hero__scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--text-muted);
  border-radius: 10px;
  position: relative;
}

.hero__scroll-dot {
  width: 3px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: 0.3; }
}

/* Side Social */
.hero__side-info {
  position: absolute;
  left: 30px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.hero__social {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}

.hero__social:hover {
  color: var(--accent);
  transform: scale(1.2);
}

.hero__side-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

/* ==================== SHOWREEL ==================== */
.showreel {
  padding: var(--section-gap) 0;
  background: var(--bg-surface);
  position: relative;
}

.showreel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.showreel__player {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.showreel__screen {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.showreel__letterbox {
  height: 30px;
  background: #000;
  position: relative;
  z-index: 2;
}

.showreel__video {
  position: relative;
  padding-top: 56.25%;
}

.showreel__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.showreel__video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* YouTube Embed (click to play with thumbnail) */
.yt-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}

.yt-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.yt-embed:hover img {
  transform: scale(1.05);
  filter: brightness(0.5);
}

.showreel__local-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.showreel__video:hover .local-video-play {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(72, 202, 228, 0.2);
}

.local-video-play.is-playing {
  display: none;
}

.yt-embed__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 80px;
  height: 80px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.35s var(--ease-spring);
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(72, 202, 228, 0.15);
}

.yt-embed__play i {
  color: #fff;
  font-size: 1.6rem;
  margin-left: 4px;
}

.yt-embed:hover .yt-embed__play {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(72, 202, 228, 0.2);
}

.yt-embed__label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
  z-index: 3;
  white-space: nowrap;
}

.yt-embed.playing {
  display: none;
}

/* Timeline Decoration */
.showreel__timeline {
  padding: 12px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  position: relative;
}

.showreel__timeline-track {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
  height: 14px;
}

.showreel__timeline-clip {
  border-radius: 2px;
  min-width: 20px;
}

.showreel__timeline-clip--1 { background: rgba(72, 202, 228, 0.4); flex: 3; }
.showreel__timeline-clip--2 { background: rgba(72, 202, 228, 0.3); flex: 2; }
.showreel__timeline-clip--3 { background: rgba(72, 202, 228, 0.5); flex: 4; }
.showreel__timeline-clip--4 { background: rgba(72, 202, 228, 0.25); flex: 1.5; }
.showreel__timeline-clip--5 { background: rgba(72, 202, 228, 0.35); flex: 3; }

.showreel__timeline-clip--a1 { background: rgba(47, 151, 171, 0.3); flex: 5; }
.showreel__timeline-clip--a2 { background: rgba(47, 151, 171, 0.2); flex: 4; }
.showreel__timeline-clip--a3 { background: rgba(47, 151, 171, 0.35); flex: 6; }

.showreel__playhead {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #fff;
  left: 35%;
  z-index: 2;
  animation: playhead-move 8s linear infinite;
}

.showreel__playhead::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -3px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 1px;
  transform: rotate(45deg);
}

@keyframes playhead-move {
  0% { left: 5%; }
  100% { left: 95%; }
}

/* ==================== ABOUT ==================== */
.about {
  padding: var(--section-gap) 0;
  position: relative;
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about__photo {
  margin-top: -60px;
}

.about__photo-frame {
  position: relative;
  aspect-ratio: 3/4.5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  background: transparent;
}

.about__photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.about__photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: contrast(1.05);
  transition: filter 0.5s var(--ease);
}

.about__photo-frame:hover .about__photo-img {
  filter: contrast(1.1) brightness(1.05);
}

.about__photo-placeholder i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.4;
}

.about__photo-label {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.about__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__text--lead {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.about__text--lead strong {
  color: var(--accent-bright);
}

.about__text strong {
  color: var(--text-primary);
}

/* Stats */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  padding: 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.about__stat {
  text-align: center;
}

.about__stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 2px;
}

.about__stat-plus {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.about__stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* Services */
.about__services {
  margin-top: 36px;
}

.about__services-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.about__services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease);
}

.service-chip:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-subtle);
}

.service-chip i {
  font-size: 0.75rem;
  color: var(--accent);
}

/* ==================== TOOLS ==================== */
.tools {
  padding: var(--section-gap) 0;
  background: var(--bg-surface);
  position: relative;
}

.tools::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 44px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.tool-card--featured {
  border-color: var(--border-accent);
}

.tool-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(72, 202, 228, 0.08);
}

.tool-card__glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(72, 202, 228, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.tool-card__icon {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 24px;
  height: 52px;
  display: flex;
  align-items: center;
}

.tool-card__icon img {
  width: 52px;
  height: 52px;
}

.tool-card__icon-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
  color: var(--accent);
}

.tool-card__name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tool-card__level {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-card__bar {
  margin-top: auto;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.tool-card__bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width 1.2s var(--ease-out);
}



/* ==================== WORK / PROJECTS ==================== */
.work {
  padding: var(--section-gap) 0;
  position: relative;
}

.work__filter {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease);
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-btn__count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  line-height: 1;
}

.filter-btn.active .filter-btn__count {
  background: rgba(255, 255, 255, 0.2);
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Project Card */
.project {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.project:hover {
  border-color: var(--border-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project:nth-child(even) {
  direction: rtl;
}

.project:nth-child(even) > * {
  direction: ltr;
}

.project.hidden {
  display: none;
}

.project__video {
  position: relative;
  background: #000;
}

.project__video iframe,
.project__video .yt-embed {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.project__video::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.project__local-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.project__video:hover .project__local-play {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(72, 202, 228, 0.2);
}

.project__overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  pointer-events: none;
}

.project__number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 2px;
}

.project__info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project__cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.project__divider {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.project__tools-used {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.project__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.project__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  transition: all 0.25s var(--ease);
  letter-spacing: 0.5px;
}

.project__link:hover {
  gap: 14px;
  color: var(--accent-bright);
}

/* Drive CTA */
.work__drive {
  margin-top: 48px;
}

.work__drive-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-md);
}

.work__drive-inner > i {
  font-size: 2rem;
  color: var(--gold);
  flex-shrink: 0;
}

.work__drive-inner h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.work__drive-inner p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.work__drive-inner .btn {
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==================== GALLERY / DRIVE PORTFOLIO ==================== */
.gallery {
  padding: var(--section-gap) 0;
  background: var(--bg-dark);
}

/* Gallery Accordion */
.gallery__accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery__accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.gallery__accordion-item.open {
  border-color: var(--border-accent);
}

.gallery__accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text-primary);
}

.gallery__accordion-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1.5px;
}

.gallery__accordion-header-left i {
  color: var(--accent);
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.gallery__accordion-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.gallery__accordion-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.gallery__accordion-chevron {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}

.gallery__accordion-header:hover .gallery__accordion-chevron {
  color: var(--accent);
}

.gallery__accordion-item.open .gallery__accordion-chevron {
  color: var(--accent);
  transform: rotate(180deg);
}

.gallery__accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.gallery__accordion-item.open .gallery__accordion-panel {
  max-height: 2600px;
}

.gallery__accordion-panel-inner {
  padding: 4px 26px 26px;
}

.gallery__cat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Sub-sections inside a combined accordion category (e.g. YouTube Content) */
.gallery__subsection-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.gallery__subsection-title i {
  color: var(--accent);
  font-size: 0.85rem;
}

.gallery__subsection-title--spaced {
  margin-top: 40px;
}

/* YouTube reel cards inside a reels grid (used alongside local <video> reels) */
.gallery__reel--youtube .yt-embed {
  position: relative;
  top: auto;
  left: auto;
  aspect-ratio: 16/9;
}

/* Gallery Thumbnail Grid */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__grid--posters {
  grid-template-columns: repeat(3, 1fr);
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: var(--bg-card);
}

.gallery__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-elevated) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer-sweep 1.6s ease-in-out infinite;
}

.gallery__item.is-loaded::before {
  display: none;
}

@keyframes shimmer-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}

.gallery__item img[loading="lazy"] {
  opacity: 0;
}

.gallery__item img.loaded {
  opacity: 1;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 10, 0.92) 0%, rgba(6, 6, 10, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__item-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gallery__item-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 4px;
}

.gallery__item-overlay p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Hide thumbnail name in Thumbnail Design section only */
[data-gallery-cat="thumbnail"] .gallery__item-overlay h4 {
  display: none;
}

.gallery__item--portrait {
  aspect-ratio: 3/4;
}

.gallery__item--poster {
  aspect-ratio: 2/3;
}

/* Video Reels */
.gallery__reels {
  margin-bottom: 60px;
}

.gallery__reels-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery__reels-title i {
  color: var(--accent);
  font-size: 1rem;
}

.gallery__reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery__reel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
}

.gallery__reel video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #000;
}

.gallery__reel:hover video {
  filter: brightness(1.1);
}

.gallery__reel-media {
  position: relative;
}

.gallery__reel-media::before,
.gallery__reel-media::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.gallery__reel:hover .gallery__reel-media::before,
.gallery__reel:hover .gallery__reel-media::after {
  animation: sonar-pulse 1.6s ease-out infinite;
}

.gallery__reel:hover .gallery__reel-media::after {
  animation-delay: 0.5s;
}

@keyframes sonar-pulse {
  0% { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

.gallery__reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%) scale(0.7);
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  opacity: 0;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 0 20px var(--accent-glow);
  pointer-events: none;
  z-index: 2;
}

.gallery__reel-play i {
  margin-left: 2px;
}

.gallery__reel:hover .gallery__reel-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery__reel-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.gallery__reel-info .mono {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Vertical Shorts & Reels (9:16 preview) */
.gallery__reels-grid--vertical {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.gallery__reel--vertical {
  border-color: var(--border-accent);
}

.gallery__reel--vertical video {
  aspect-ratio: 9/16;
  object-fit: cover;
}

.gallery__reel--vertical::before {
  content: '\f3cd';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  pointer-events: none;
}

/* Branding / Logo Showcase */
.gallery__branding {
  margin-bottom: 60px;
}

.gallery__grid--branding {
  grid-template-columns: repeat(2, 1fr);
}

/* ==================== PROCESS ==================== */
.process {
  padding: var(--section-gap) 0;
  background: var(--bg-surface);
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.process__timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.process__step {
  flex: 1;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.35s var(--ease);
}

.process__step:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.process__step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.process__step:hover .process__step-num {
  opacity: 1;
}

.process__step-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.process__step-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.process__connector {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.process__connector::before {
  content: '';
  width: 100%;
  height: 1px;
  background: var(--border);
}

.process__connector::after {
  content: '';
  position: absolute;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
}

/* ==================== CONTACT ==================== */
.contact {
  padding: var(--section-gap) 0;
  position: relative;
}

.contact .section__container {
  position: relative;
  z-index: 1;
}

.contact__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.contact__desc {
  text-align: justify;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 380px;
}

.contact__details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}

.contact__detail:hover {
  border-color: var(--border-accent);
}

.contact__detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact__detail-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact__detail-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.contact__detail-value--green {
  color: #22c55e;
}

.contact__socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.contact__social {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}

.contact__social:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Contact Form */
.contact__form {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form__group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form__group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(72, 202, 228, 0.08);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--text-muted);
}

.form__note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.footer__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color 0.25s;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__credit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer__credit strong {
  color: var(--accent);
  font-weight: 600;
}

.footer__heart {
  color: var(--accent);
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-4px);
}

.back-to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.back-to-top__ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
}

.back-to-top__ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 125.6;
  stroke-dashoffset: 125.6;
  transition: stroke-dashoffset 0.1s linear;
}

.back-to-top:hover .back-to-top__ring-progress {
  stroke: #fff;
}

.back-to-top i {
  position: relative;
  z-index: 1;
}

/* ==================== LIGHTBOX / IMAGE MODAL ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s var(--ease);
}

.lightbox.active .lightbox__img {
  transform: scale(1);
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.25s var(--ease);
}

.lightbox__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.25s var(--ease);
}

.lightbox__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

.lightbox__caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  text-align: center;
  z-index: 3;
  white-space: nowrap;
}

.lightbox__counter {
  position: absolute;
  top: 28px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
  z-index: 3;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero__filmstrip {
    display: none;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__photo-frame {
    max-width: 280px;
  }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project:nth-child(even) {
    direction: ltr;
  }

  .process__timeline {
    flex-direction: column;
    gap: 0;
  }

  .process__connector {
    width: auto;
    height: 30px;
    flex-direction: column;
  }

  .process__connector::before {
    width: 1px;
    height: 100%;
  }

  .process__connector::after {
    bottom: 0;
    right: auto;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
    transform: rotate(-45deg);
  }

  .gallery__grid--posters {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 100px;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(6, 6, 10, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 1px solid var(--border);
    padding: 100px 24px 24px;
    gap: 4px;
    transition: right 0.5s var(--ease);
    z-index: 999;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__cta {
    display: none;
  }

  .hero__timecode {
    display: none;
  }

  .hero__side-info {
    display: none;
  }

  .hero__title-line--2,
  .hero__title-line--3 {
    font-size: 3rem;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tools__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tool-card {
    padding: 32px 28px;
  }

  .work__filter {
    gap: 6px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .work__drive-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .work__drive-inner .btn {
    margin-left: 0;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .gallery__grid--posters {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__accordion-header {
    padding: 18px 18px;
  }

  .gallery__accordion-header-left {
    font-size: 1rem;
  }

  .gallery__accordion-panel-inner {
    padding: 4px 18px 18px;
  }

  .gallery__accordion-count {
    display: none;
  }

  .yt-embed__play {
    width: 60px;
    height: 60px;
  }

  .yt-embed__play i {
    font-size: 1.2rem;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 24px;
  }

  .footer__top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer__credit {
    flex-direction: column;
    gap: 4px;
  }

  .cursor, .cursor-follower {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__title-line--1 { font-size: 1.4rem; }
  .hero__title-line--2,
  .hero__title-line--3 { font-size: 2.2rem; }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .tools__grid {
    grid-template-columns: 1fr;
  }

  .section__title {
    font-size: 2.2rem;
  }

  .showreel__letterbox {
    height: 16px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid--branding {
    grid-template-columns: 1fr;
  }

  .gallery__reels-grid {
    grid-template-columns: 1fr;
  }

  .yt-embed__play {
    width: 50px;
    height: 50px;
  }

  .yt-embed__play i {
    font-size: 1rem;
  }

  .yt-embed__label {
    display: none;
  }

  .lightbox__nav { display: none; }
  .lightbox__img { max-width: 96vw; max-height: 80vh; }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  .loader__glow,
  .hero__aurora,
  .hero__particle,
  .gallery__item::before,
  .gallery__reel-media::before,
  .gallery__reel-media::after,
  .loader__progress-bar::after {
    animation: none !important;
  }

  .hero__aurora {
    opacity: 0.3;
  }

  .gallery__item::before {
    background: var(--bg-card);
  }

  * {
    scroll-behavior: auto !important;
  }
}
