/* ============================================================
   EKTA SACHAN — PORTFOLIO
   style.css
   Sci-Fi / HUD Aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500&family=Share+Tech+Mono&display=swap');

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

:root {
  --bg: #020408;
  --bg2: #050c14;
  --bg3: #080f1a;
  --neon: #00d4ff;
  --neon2: #0099cc;
  --neon-dim: rgba(0, 212, 255, 0.15);
  --accent: #e8d5b0;
  --accent2: #c9a96e;
  --text: #c8dde8;
  --muted: #4a6878;
  --border: rgba(0, 212, 255, 0.12);
  --glow: 0 0 8px rgba(0, 212, 255, 0.6), 0 0 20px rgba(0, 212, 255, 0.3);
  --glow-sm: 0 0 4px rgba(0, 212, 255, 0.5), 0 0 10px rgba(0, 212, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── SCANLINE OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.015) 2px,
    rgba(0, 212, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
  animation: scanMove 8s linear infinite;
}

/* ── HUD GRID BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--neon);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: var(--glow);
  transition: width 0.2s, height 0.2s;
}

#cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--neon);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, opacity 0.25s;
  opacity: 0.4;
  box-shadow: var(--glow-sm);
}

body.hovering #cursor {
  width: 5px;
  height: 5px;
}

body.hovering #cursor-ring {
  width: 52px;
  height: 52px;
  opacity: 0.2;
}

/* ── LIGHTBOX ── */
#video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 4, 8, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

#video-lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--neon);
  box-shadow: var(--glow), inset 0 0 40px rgba(0, 212, 255, 0.05);
}

/* Corner accents on lightbox */
.lightbox-inner::before,
.lightbox-inner::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--neon);
  border-style: solid;
  z-index: 2;
}

.lightbox-inner::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.lightbox-inner::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.lightbox-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: var(--glow-sm);
}

.lightbox-close:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: var(--glow);
}

.lightbox-close svg {
  width: 10px;
  height: 10px;
}

.lightbox-label {
  position: absolute;
  top: -44px;
  left: 0;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--neon);
  text-shadow: var(--glow-sm);
}

/* ── 3D DICE INTRO ── */
#dice-intro-stage {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  perspective: 1400px;
  perspective-origin: center center;
  opacity: 1;
  transition: opacity 0.45s ease;
}

/* 
  SPOTLIGHTS
  Important: The final aiming is handled by JS.
  Do not add fixed .found transforms here.
*/
.dice-spotlight {
  position: absolute;
  top: 0;
  width: 170px;
  height: 110vh;
  opacity: 0;
  filter: blur(7px);
  pointer-events: none;
  mix-blend-mode: screen;
  transform-origin: 50% 0%;
  transition: transform 0.8s ease, opacity 0.8s ease, filter 0.8s ease;
}

.dice-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.14) 18%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
}

/* Beam origins */
.dice-spotlight-left {
  left: 70px;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
}

.dice-spotlight-right {
  right: 70px;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
}

/* Searching state while dice is falling */
#dice-intro-stage.searching .dice-spotlight {
  opacity: 0.2;
}

#dice-intro-stage.searching .dice-spotlight-left {
  animation: diceSearchLeft 0.75s ease-in-out 2 alternate;
}

#dice-intro-stage.searching .dice-spotlight-right {
  animation: diceSearchRight 0.75s ease-in-out 2 alternate;
}

/* Found state: JS rotates the beam exactly toward the dice */
#dice-intro-stage.found .dice-spotlight {
  opacity: 0.28;
  filter: blur(6px);
  animation: none;
}

/* Platform only implied by light */
#dice-floor-glow {
  position: absolute;
  left: 52%;
  bottom: 15vh;
  width: 230px;
  height: 64px;
  transform: translateX(-50%);
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.05) 42%,
    transparent 74%
  );
  filter: blur(14px);
  transition: opacity 0.55s ease;
}

#dice-intro-stage.searching #dice-floor-glow {
  opacity: 0.1;
}

#dice-intro-stage.found #dice-floor-glow {
  opacity: 0.22;
}

/* Neon dice shadow — only below dice */
#dice-shadow {
  position: absolute;
  left: 52%;
  bottom: 15.9vh;
  width: 92px;
  height: 26px;
  transform: translateX(-50%) scale(0.2);
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 212, 255, 0.46) 0%,
    rgba(0, 212, 255, 0.2) 42%,
    rgba(0, 212, 255, 0.06) 66%,
    transparent 100%
  );
  filter: blur(12px);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

/* Dice wrapper */
#dice-wrapper {
  position: absolute;
  left: 52%;
  top: -180px;
  width: 92px;
  height: 92px;
  transform: translateX(-50%);
  transform-style: preserve-3d;
  opacity: 0;
}

#dice-cube {
  position: relative;
  width: 92px;
  height: 92px;
  transform-style: preserve-3d;
  transform: rotateX(-26deg) rotateY(38deg) rotateZ(0deg);
}

/* 3D line-drawn dice faces */
.dice-face {
  position: absolute;
  width: 92px;
  height: 92px;
  border: 2px solid var(--neon);
  background: rgba(0, 0, 0, 0.96);
  box-shadow:
    inset 0 0 10px rgba(0, 212, 255, 0.08),
    0 0 14px rgba(0, 212, 255, 0.25);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.dice-front {
  transform: translateZ(46px);
}

.dice-back {
  transform: rotateY(180deg) translateZ(46px);
}

.dice-right {
  transform: rotateY(90deg) translateZ(46px);
}

.dice-left {
  transform: rotateY(-90deg) translateZ(46px);
}

.dice-top {
  transform: rotateX(90deg) translateZ(46px);
}

.dice-bottom {
  transform: rotateX(-90deg) translateZ(46px);
}

/* Pips */
.dice-pip {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow:
    0 0 8px rgba(0, 212, 255, 0.85),
    0 0 14px rgba(0, 212, 255, 0.45);
}

.p-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.p-tl {
  top: 18px;
  left: 18px;
}

.p-tr {
  top: 18px;
  right: 18px;
}

.p-ml {
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
}

.p-mr {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.p-bl {
  bottom: 18px;
  left: 18px;
}

.p-br {
  bottom: 18px;
  right: 18px;
}

@keyframes diceSearchLeft {
  0% {
    transform: rotate(12deg) translateX(-2vw);
  }

  50% {
    transform: rotate(34deg) translateX(4vw);
  }

  100% {
    transform: rotate(18deg) translateX(0);
  }
}

@keyframes diceSearchRight {
  0% {
    transform: rotate(-12deg) translateX(2vw);
  }

  50% {
    transform: rotate(-34deg) translateX(-4vw);
  }

  100% {
    transform: rotate(-18deg) translateX(0);
  }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: linear-gradient(to bottom, rgba(2, 4, 8, 0.98) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0, 212, 255, 0.06);
}

nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.2;
}

.nav-logo {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--neon);
  text-shadow: var(--glow-sm);
}

.nav-logo::before {
  content: '[ ';
  color: rgba(0, 212, 255, 0.4);
}

.nav-logo::after {
  content: ' ]';
  color: rgba(0, 212, 255, 0.4);
}

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

.nav-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.nav-links a::before {
  content: '//';
  color: rgba(0, 212, 255, 0.3);
  margin-right: 4px;
  font-size: 9px;
}

.nav-links a:hover {
  color: var(--neon);
  text-shadow: var(--glow-sm);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 60% 50%, rgba(0, 50, 80, 0.25) 0%, transparent 70%);
}

/* HUD corner brackets */
#hero::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 48px;
  width: 60px;
  height: 60px;
  border-top: 1px solid var(--neon);
  border-left: 1px solid var(--neon);
  opacity: 0.4;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 60px;
  right: 48px;
  width: 60px;
  height: 60px;
  border-bottom: 1px solid var(--neon);
  border-right: 1px solid var(--neon);
  opacity: 0.4;
}

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

/* Hero elements hidden until dice lands */
.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-cta,
.hero-scroll-hint {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-eyebrow.revealed {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.hero-title.revealed {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.hero-subtitle.revealed {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.hero-cta.revealed {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.hero-scroll-hint.revealed {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.6s;
}

.hero-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--neon);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '▶';
  font-size: 8px;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 900;
  line-height: 0.92;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.hero-title span {
  color: var(--neon);
  text-shadow: var(--glow);
}

/* Flicker on the main title word */
.site-name {
  font-family: 'Orbitron', monospace;
  animation: nameFlicker 8s ease-in-out infinite;
}

.hero-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 460px;
  margin-top: 28px;
  letter-spacing: 0.05em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding: 12px 28px;
  border: 1px solid var(--neon);
  background: transparent;
  color: var(--neon);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: var(--glow-sm);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.hero-cta:hover {
  background: rgba(0, 212, 255, 0.08);
  box-shadow: var(--glow);
}

.hero-cta-arrow {
  transition: transform 0.3s;
}

.hero-cta:hover .hero-cta-arrow {
  transform: translateX(6px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-hint span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--neon), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  box-shadow: 0 0 4px var(--neon);
}

/* ── SECTIONS COMMON ── */
section {
  position: relative;
  z-index: 2;
}

.section-header {
  padding: 0 48px;
  margin-bottom: 60px;
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.section-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--neon);
  letter-spacing: 0.2em;
  text-shadow: var(--glow-sm);
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.section-line {
  flex: 1;
  height: 1px;
  margin-left: 12px;
  background: linear-gradient(90deg, var(--neon), transparent);
  opacity: 0.3;
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  margin: 60px 0;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.02), transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 48px;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: var(--glow-sm);
}

/* ── FEATURED GRID ── */
#featured {
  padding: 120px 0 80px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0 48px;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
  aspect-ratio: 4 / 3;
  cursor: none;
  border: 1px solid rgba(0, 212, 255, 0.08);
  transition: border-color 0.4s;
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, transparent 50%);
  transition: opacity 0.4s;
}

.work-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
}

.work-card:hover::before {
  opacity: 2;
}

.work-card.large {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.work-card.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* HUD corner brackets on each card */
.work-card .corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--neon);
  border-style: solid;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s;
}

.work-card:hover .corner {
  opacity: 1;
}

.work-card .corner.tl {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.work-card .corner.tr {
  top: 8px;
  right: 8px;
  border-width: 1px 1px 0 0;
}

.work-card .corner.bl {
  bottom: 8px;
  left: 8px;
  border-width: 0 0 1px 1px;
}

.work-card .corner.br {
  bottom: 8px;
  right: 8px;
  border-width: 0 1px 1px 0;
}

.card-bg {
  position: absolute;
  inset: -10%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .card-bg {
  transform: scale(1.08);
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .card-img {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 4, 8, 0.9) 0%, rgba(2, 4, 8, 0.1) 50%, transparent 100%);
  z-index: 1;
  transition: opacity 0.4s;
}

.work-card:hover .card-overlay {
  opacity: 0.6;
}

/* Card gradient backgrounds */
.card-bg-serum {
  background: radial-gradient(ellipse at 50% 50%, #1a050a 0%, #3a0820 50%, #8b1a2e 100%);
}

.card-bg-tribe {
  background: radial-gradient(ellipse at 40% 60%, #020a04 0%, #041a08 40%, #0a3d10 100%);
}

.card-bg-mars {
  background: radial-gradient(ellipse at 60% 40%, #150202 0%, #2d0505 40%, #6b0f0f 100%);
}

.card-bg-car1 {
  background: radial-gradient(ellipse at 30% 70%, #020208 0%, #050514 40%, #0f0f3d 100%);
}

.card-bg-car2 {
  background: radial-gradient(ellipse at 70% 30%, #020802 0%, #041404 40%, #083d08 100%);
}

.card-bg-interior {
  background: radial-gradient(ellipse at 50% 60%, #080602 0%, #1a140a 50%, #3d2e0a 100%);
}

.card-tag {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 3px 8px;
  margin-bottom: 8px;
  background: rgba(0, 212, 255, 0.05);
}

.card-name {
  font-family: 'Orbitron', monospace;
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.card-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.05em;
}

.card-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(8px, -8px);
  transition: opacity 0.3s, transform 0.3s;
  color: var(--neon);
  font-size: 14px;
  background: rgba(0, 212, 255, 0.05);
}

.work-card:hover .card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* Play overlay for video cards */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(2, 4, 8, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
  gap: 14px;
  pointer-events: none;
}

.work-card.clickable:hover .card-hover-overlay {
  opacity: 1;
}

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--glow-sm);
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--neon);
  margin-left: 3px;
}

.work-card.clickable:hover .play-btn {
  background: rgba(0, 212, 255, 0.1);
  transform: scale(1.1);
  box-shadow: var(--glow);
}

.hover-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--neon);
  text-transform: uppercase;
  text-shadow: var(--glow-sm);
}

/* Popup for non-video cards */
.card-popup {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(2, 4, 8, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.work-card:not(.clickable):hover .card-popup {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.popup-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  background: rgba(0, 212, 255, 0.05);
  box-shadow: var(--glow-sm);
}

.popup-title {
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.popup-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
  font-family: 'Share Tech Mono', monospace;
}

.popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.05);
  color: var(--neon);
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  text-decoration: none;
  box-shadow: var(--glow-sm);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

/* ── SHORT CUTS ── */
#shorts {
  padding: 100px 0 80px;
}

.shorts-row {
  display: flex;
  gap: 2px;
  padding: 0 48px;
  align-items: flex-start;
}

.short-card {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  cursor: none;
  background: var(--bg3);
  transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 212, 255, 0.06);
}

.short-card:hover {
  flex: 2.2;
  border-color: rgba(0, 212, 255, 0.25);
}

.short-card-inner {
  height: 520px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.short-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 4, 8, 0.95) 0%, transparent 60%);
  z-index: 1;
}

.short-bg-car1 {
  background: radial-gradient(ellipse at 30% 70%, #020208 0%, #050514 40%, #1a1a6b 100%);
}

.short-bg-car2 {
  background: radial-gradient(ellipse at 70% 30%, #020802 0%, #051405 40%, #0d4a0d 100%);
}

.short-bg-interior {
  background: radial-gradient(ellipse at 50% 60%, #080602 0%, #1a140a 50%, #4a3a0a 100%);
}

.short-info {
  position: relative;
  z-index: 2;
}

.short-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
  text-shadow: var(--glow-sm);
}

.short-name {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  transition: transform 0.3s;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.short-card:hover .short-tag {
  opacity: 1;
  transform: translateY(0);
}

.short-card:hover .short-name {
  transform: translateY(-4px);
}

.short-popup {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(2, 4, 8, 0.93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  padding: 20px;
  text-align: center;
}

.short-card:hover .short-popup {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

/* ── PERSONAL EXPERIMENTS ── */
#personal {
  padding: 100px 0 80px;
}

.personal-desc {
  padding: 0 48px;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 56px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.05em;
}

.personal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0 48px;
}

.personal-card {
  position: relative;
  overflow: hidden;
  cursor: none;
  aspect-ratio: 3 / 4;
  background: var(--bg3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 212, 255, 0.06);
}

.personal-card:hover {
  transform: translateY(-8px);
  z-index: 2;
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.05);
}

.personal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 4, 8, 0.9) 0%, transparent 60%);
  z-index: 1;
}

/* Personal card backgrounds */
.personal-bg-chess {
  background: radial-gradient(ellipse at 50% 50%, #0a0802 0%, #1e1a04 50%, #3d3408 100%);
}

.personal-bg-mailbox {
  background: radial-gradient(ellipse at 40% 60%, #0a0212 0%, #1e0428 50%, #4a0a6b 100%);
}

.personal-bg-bunny {
  background: radial-gradient(ellipse at 60% 40%, #120208 0%, #280414 50%, #6b0a30 100%);
}

.personal-bg-suzanne {
  background: radial-gradient(ellipse at 50% 50%, #020a14 0%, #041828 50%, #082050 100%);
}

.personal-bg-blocks {
  background: radial-gradient(ellipse at 40% 60%, #100400 0%, #241000 50%, #5a2800 100%);
}

.personal-bg-domino1 {
  background: radial-gradient(ellipse at 60% 40%, #04020e 0%, #0c0624 50%, #1e0e5a 100%);
}

.personal-bg-domino2 {
  background: radial-gradient(ellipse at 50% 60%, #020a04 0%, #041e08 50%, #083d10 100%);
}

.personal-bg-bowling {
  background: radial-gradient(ellipse at 50% 40%, #080202 0%, #180606 50%, #3d0a0a 100%);
}

.personal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  z-index: 2;
}

.personal-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 8px;
  color: var(--neon);
  letter-spacing: 0.2em;
  margin-bottom: 4px;
  text-shadow: var(--glow-sm);
}

.personal-title {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.2;
}

.personal-sub {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

.personal-hover {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(2, 4, 8, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  padding: 18px;
  text-align: center;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.personal-card:hover .personal-hover {
  opacity: 1;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ── */
footer {
  padding: 80px 48px 48px;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  position: relative;
  z-index: 2;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.3;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer-big {
  font-family: 'Orbitron', monospace;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  -webkit-text-stroke: 1px rgba(0, 212, 255, 0.08);
}

.footer-right {
  text-align: right;
}

.footer-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-shadow: var(--glow-sm);
}

.footer-dot {
  width: 6px;
  height: 6px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 6px #00ff88, 0 0 14px rgba(0, 255, 136, 0.4);
}

.footer-email {
  font-family: 'Orbitron', monospace;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon);
  text-decoration: none;
  display: block;
  margin-bottom: 24px;
  transition: text-shadow 0.3s;
  text-shadow: var(--glow-sm);
}

.footer-email:hover {
  text-shadow: var(--glow);
}

.footer-socials {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--muted);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
  background: rgba(0, 212, 255, 0.02);
}

.footer-social-btn:hover {
  color: var(--neon);
  border-color: var(--neon);
  box-shadow: var(--glow-sm);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 212, 255, 0.06);
}

.footer-bottom p {
  font-size: 10px;
  color: rgba(74, 104, 120, 0.5);
  font-family: 'Share Tech Mono', monospace;
}

/* ── KEYFRAME ANIMATIONS ── */
@keyframes scanMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 80px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes nameFlicker {
  0%,
  95%,
  100% {
    opacity: 1;
  }

  96% {
    opacity: 0.85;
  }

  97% {
    opacity: 1;
  }

  98% {
    opacity: 0.7;
  }

  99% {
    opacity: 1;
  }
}
/* Hide/remove spotlight beams completely */
.dice-spotlight,
#spotlight-svg,
.spotlight-beam {
  display: none !important;
}
/* ═══════════════════════════════════════
   FEATURED WORKS MOSAIC LAYOUT
   Exact "Current (broken)" card placement
═══════════════════════════════════════ */

#featured .featured-grid,
#featured .featured-grid.mosaic-layout {
  display: grid !important;

  /* 3 columns like the reference:
     left = Tribe width
     middle = Earpods width
     right = Lipstick width */
  grid-template-columns: 1.08fr 1fr 1.08fr !important;

  /* 3 equal height rows */
  grid-template-rows: repeat(3, 1fr) !important;

  gap: 10px !important;

/* Expand the whole mosaic to fill the page width */
width: calc(100vw - 96px);
max-width: none;
aspect-ratio: 410 / 320;

margin: 0 auto;
padding: 0 !important;
}

/* Reset old card sizing */
#featured .featured-grid .work-card,
#featured .featured-grid.mosaic-layout .work-card {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset !important;
  min-height: 0 !important;
}

/* HEADPHONES — top left, spans first 2 columns */
#featured .featured-grid > .work-card:nth-child(1),
#featured .headphones-card {
  grid-column: 1 / 3 !important;
  grid-row: 1 / 2 !important;
}

/* LIPSTICK — right side, spans top 2 rows */
#featured .featured-grid > .work-card:nth-child(2),
#featured .lipstick-card {
  grid-column: 3 / 4 !important;
  grid-row: 1 / 3 !important;
}

/* THE TRIBE / HAIR MASK — left side, spans bottom 2 rows */
#featured .featured-grid > .work-card:nth-child(3),
#featured .tribe-card {
  grid-column: 1 / 2 !important;
  grid-row: 2 / 4 !important;
}

/* EARPODS — center card */
#featured .featured-grid > .work-card:nth-child(4),
#featured .earpods-card {
  grid-column: 2 / 3 !important;
  grid-row: 2 / 3 !important;
}

/* FACE SERUM — bottom right, spans last 2 columns */
#featured .featured-grid > .work-card:nth-child(5),
#featured .serum-card {
  grid-column: 2 / 4 !important;
  grid-row: 3 / 4 !important;
}

/* Images fill each mosaic card */
#featured .featured-grid .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Optional: keep overlays neat inside the new mosaic */
#featured .featured-grid .card-overlay,
#featured .featured-grid .card-bg {
  inset: 0;
}

/* Mobile layout */
@media (max-width: 900px) {
  #featured .featured-grid,
  #featured .featured-grid.mosaic-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    width: calc(100vw - 48px);
    aspect-ratio: unset;
    gap: 16px !important;
  }

  #featured .featured-grid > .work-card:nth-child(1),
  #featured .featured-grid > .work-card:nth-child(2),
  #featured .featured-grid > .work-card:nth-child(3),
  #featured .featured-grid > .work-card:nth-child(4),
  #featured .featured-grid > .work-card:nth-child(5),
  #featured .headphones-card,
  #featured .lipstick-card,
  #featured .tribe-card,
  #featured .earpods-card,
  #featured .serum-card {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
    height: 280px !important;
  }
}
/* Remove YouTube Shorts thumbnail pillarboxing on portrait cards */
#featured .featured-grid > .work-card:nth-child(2) .card-img,
#featured .featured-grid > .work-card:nth-child(3) .card-img,
#featured .lipstick-card .card-img,
#featured .tribe-card .card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;

  /* Zooms the YouTube Shorts thumbnail so black side bars disappear */
  transform: scale(1.28) !important;
}

/* Keep hover zoom smooth without re-showing the black bars */
#featured .featured-grid > .work-card:nth-child(2):hover .card-img,
#featured .featured-grid > .work-card:nth-child(3):hover .card-img,
#featured .lipstick-card:hover .card-img,
#featured .tribe-card:hover .card-img {
  transform: scale(1.34) !important;
}

/* ═══════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════ */

#about {
  padding: 120px 48px 100px;
  position: relative;
  z-index: 2;
}

.about-container {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  align-items: flex-start;
}

.about-left {
  flex: 1;
  position: sticky;
  top: 120px;
}

.about-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--neon);
  margin-bottom: 24px;
  text-shadow: var(--glow-sm);
}

.about-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.about-right {
  flex: 1;
  max-width: 620px;
}

.about-right p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    gap: 40px;
  }

  .about-left {
    position: relative;
    top: auto;
  }
}
