/* ==========================================================================
   MANISH JADHAV PORTFOLIO — MODERN CINEMATIC DESIGN SYSTEM
   ========================================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-black: #000000;
  --bg-deep: #050505;
  --bg-surface: #0e0e12;
  --bg-surface-hover: #16161c;
  --red-primary: #E6121D;
  --red-glow: rgba(230, 18, 29, 0.45);
  --red-light: #ff333a;
  --text-white: #ffffff;
  --text-muted: #a3a3a8;
  --text-dim: #66666e;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.1);
  --font-display: 'Bebas Neue', 'Anton', sans-serif;
  --font-script: 'Caveat', 'Dancing Script', cursive;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-black);
  overflow-x: hidden;
  color: var(--text-white);
  position: relative;
}

/* Subtle Film Grain */
.cinematic-grain::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
  background: #25252b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-primary);
}

/* Font helpers */
.font-script {
  font-family: var(--font-script);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
  pointer-events: none;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-track {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(230, 18, 29, 0.2);
}
.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red-primary), var(--red-light));
  box-shadow: 0 0 10px rgba(230, 18, 29, 0.9);
  transition: width 0.15s ease-out;
}

/* ==========================================================================
   LIQUID OVERLAY CANVAS (Smoked-Glass Refractive Membrane)
   ========================================================================== */
.liquid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}
.liquid-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}
#liquid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  mix-blend-mode: screen;
}
.liquid-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   SITE HEADER (FIXED TOP NAVIGATION)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}
.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}
.brand-badge {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  user-select: none;
  gap: 2px;
}
.badge-primary {
  color: var(--red-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(230, 18, 29, 0.5);
}
.badge-secondary {
  color: #e5e5ea;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}
.status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  user-select: none;
}
.pulse-container {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-ring {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
}
.status-text {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}
@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ==========================================================================
   HERO SCROLL SEQUENCE (STICKY PINNED CANVAS + DYNAMIC HERO OVERLAY)
   ========================================================================== */
.hero-track {
  height: 320vh; /* Long luxury scroll travel for buttery frame scrubbing */
  position: relative;
  width: 100%;
  background: var(--bg-black);
}

.hero-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-black);
}

.animation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  background-color: var(--bg-black);
}

/* Ambient contrast vignettes */
.hero-vignette-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35vh;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.hero-vignette-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Hero Content Overlay (3D spatial entrance & exit) */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px 48px 36px;
  opacity: 0;
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  pointer-events: none;
}
.hero-content.visible {
  opacity: 1;
  pointer-events: auto;
}

.hero-stagger-item {
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.hero-container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1.05fr;
  align-items: center;
  margin: auto 0;
  padding: 24px 0 12px;
}

/* Left Hero Column */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
  max-width: 480px;
}

.hero-greeting {
  padding-left: 4px;
  margin-bottom: -10px;
  user-select: none;
}
.hero-greeting .font-script {
  font-size: clamp(34px, 3.8vw, 46px);
  color: #ffffff;
  display: inline-block;
  transform: rotate(-6deg);
  transform-origin: bottom left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-name {
  user-select: none;
  margin: 0;
}
.hero-name h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.86;
  font-size: clamp(64px, 8.2vw, 120px);
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}

.hero-role {
  margin-top: 18px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--red-primary);
  letter-spacing: 0.09em;
  font-size: clamp(15px, 1.4vw, 21px);
  text-shadow: 0 0 14px var(--red-glow);
}

.hero-copy {
  margin-top: 16px;
  color: #d4d4dc;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.6;
  max-width: 380px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-ctas {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-primary {
  background: var(--red-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 0 24px rgba(230, 18, 29, 0.4);
}
.btn-primary:hover {
  background: #ff2531;
  box-shadow: 0 0 32px rgba(230, 18, 29, 0.7);
  transform: translateY(-2px);
}
.btn-secondary {
  background: rgba(18, 18, 24, 0.85);
  color: #d4d4dc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(30, 30, 40, 0.95);
  color: #ffffff;
  border-color: rgba(230, 18, 29, 0.7);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 11px;
}
.icon-arrow, .icon-arrow-down {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.btn:hover .icon-arrow {
  transform: translateX(4px);
}
.btn:hover .icon-arrow-down {
  transform: translateY(3px);
}

/* Center Clearance Space */
.hero-center-clearance {
  pointer-events: none;
  height: 100%;
}

/* Right Hero Column */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 10;
}

.quote-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
}
.sparkle-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(230, 18, 29, 0.7);
  background: rgba(60, 4, 8, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(230, 18, 29, 0.35);
}
.sparkle-star {
  width: 18px;
  height: 18px;
  color: var(--red-primary);
  filter: drop-shadow(0 0 8px rgba(230, 18, 29, 0.9));
  animation: subtle-sparkle 3.5s ease-in-out infinite;
}
@keyframes subtle-sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.18) rotate(45deg); opacity: 1; filter: drop-shadow(0 0 10px #ff2531); }
}
.quote-text {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Stats Stack */
.stats-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 250px;
  gap: 14px;
}
.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--red-primary);
  font-size: clamp(44px, 4.4vw, 68px);
  line-height: 0.9;
  text-shadow: 0 0 16px var(--red-glow);
}
.stat-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #e5e5ec;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.25;
}
.stat-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Tools Line */
.tools-line {
  text-align: center;
  padding: 12px 0 8px;
  user-select: none;
}
.tools-line span {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #888894;
  text-transform: uppercase;
}

/* Hero Footer Bar */
.hero-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}
.footer-link-left, .footer-link-right {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}
.footer-link-left:hover {
  color: var(--red-primary);
}
.footer-link-right {
  color: #a0a0ab;
}
.footer-link-right:hover {
  color: #ffffff;
}
.footer-rule {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 32px;
}
.icon-chevron, .icon-arrow-sm {
  width: 14px;
  height: 14px;
  color: var(--red-primary);
  transition: transform 0.2s ease;
}
.footer-link-left:hover .icon-chevron {
  transform: translateY(2px);
}
.footer-link-right:hover .icon-arrow-sm {
  transform: translateX(3px);
}

/* Hero Scroll Down Cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 8;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hero-scroll-cue span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #888894;
  text-transform: uppercase;
}
.cue-mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.cue-wheel {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--red-primary);
  box-shadow: 0 0 6px var(--red-primary);
  animation: scroll-wheel 1.8s infinite;
}
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ==========================================================================
   SECTIONS COMMON STYLES & 3D MOTION SYSTEM
   ========================================================================== */
.section {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-black);
  padding: 120px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.section-container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
}

/* Unified Section Motion Engine (Matched In-Point Starting Line) */
.motion-reveal,
.motion-stage-reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  will-change: transform, opacity;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* In-View State: Crisp, grounded, perfectly stable */
.motion-reveal.is-in-view,
.motion-stage-reveal.is-in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Subtle Text Stagger Hierarchy from Matched Starting Line */
.motion-stagger-1 {
  transition-delay: 0.04s;
}
.motion-stagger-2 {
  transition-delay: 0.12s;
}
.motion-stagger-3 {
  transition-delay: 0.20s;
}
.motion-stagger-4 {
  transition-delay: 0.28s;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-tag {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--red-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 7vw, 100px);
  letter-spacing: -0.01em;
  line-height: 0.92;
  color: #ffffff;
  text-transform: uppercase;
}
.section-subtitle {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a0a0ab;
  font-weight: 700;
}
.section-subtitle .highlight {
  color: var(--red-primary);
}
.section-subtitle .dot {
  margin: 0 8px;
}
.section-description {
  margin-top: 14px;
  color: #a0a0ab;
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.section-cue {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}
.cue-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #888894;
  text-decoration: none;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.cue-link:hover {
  color: var(--red-primary);
}
.cue-icon {
  width: 16px;
  height: 16px;
  color: var(--red-primary);
  transition: transform 0.2s ease;
}
.cue-link:hover .cue-icon {
  transform: translateY(4px);
}

/* ==========================================================================
   PAGE 3: SHOWREEL SECTION (16:9 PLAYER)
   ========================================================================== */
.showreel-frame {
  position: relative;
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #09090c;
  border: 1px solid rgba(230, 18, 29, 0.4);
  box-shadow: 0 25px 80px -10px rgba(230, 18, 29, 0.35), 0 0 35px 2px rgba(230, 18, 29, 0.15);
  cursor: pointer;
}
.showreel-iframe,
.showreel-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  display: block;
}
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
  z-index: 2;
}
.video-poster.hidden {
  opacity: 0;
  pointer-events: none;
}
.video-element {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-badges {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.badge-live, .badge-resolution {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-primary);
  animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 8;
  transition: opacity 0.3s ease;
}
.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.btn-play-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--red-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(230, 18, 29, 0.8);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn-play-circle:hover {
  transform: scale(1.12);
  background: #ff2531;
}
.icon-play {
  width: 32px;
  height: 32px;
  transform: translateX(2px);
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.video-controls.autohide {
  opacity: 0;
  pointer-events: none;
}
.showreel-frame:hover .video-controls {
  opacity: 1;
  pointer-events: auto;
}
.scrubber-bar {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  transition: height 0.15s ease;
}
.scrubber-bar:hover {
  height: 8px;
}
.scrubber-fill {
  height: 100%;
  width: 0%;
  background: var(--red-primary);
  box-shadow: 0 0 10px rgba(230, 18, 29, 0.9);
  border-radius: 3px;
  transition: width 0.1s linear;
}
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: monospace;
  font-size: 12px;
}
.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ctrl-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  transition: opacity 0.2s ease;
}
.ctrl-btn:hover {
  opacity: 0.8;
}
.ctrl-icon {
  width: 18px;
  height: 18px;
}
.ctrl-label {
  font-size: 11px;
  color: #a0a0ab;
}
.time-display {
  color: #a0a0ab;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PAGE 4: SHORT-FORM VIDEOS SHOWCASE (3D DEPTH OVERLAPPING CAROUSEL)
   ========================================================================== */
.reels-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1240px;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto 20px;
  perspective: 1200px;
  transform-style: preserve-3d;
  overflow: visible;
}

.reels-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 18, 29, 0.16) 0%, rgba(180, 10, 20, 0.05) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 55;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}
.carousel-arrow:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  box-shadow: 0 0 24px rgba(230, 18, 29, 0.6);
  transform: translateY(-50%) scale(1.1);
}
.carousel-arrow svg {
  width: 18px;
  height: 18px;
}
.arrow-left { left: 16px; }
.arrow-right { right: 16px; }

.reels-track {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  z-index: 10;
  overflow: visible;
}

.reel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  user-select: none;
  will-change: transform, opacity, filter, box-shadow;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}
.reel-card.center {
  border-color: rgba(230, 18, 29, 0.85);
  box-shadow: 0 25px 70px rgba(230, 18, 29, 0.4), 0 0 35px rgba(230, 18, 29, 0.25);
  cursor: pointer;
}
.reel-card:not(.center):hover {
  opacity: 0.9 !important;
  filter: brightness(0.85) !important;
}

.reel-video,
.reel-video-container,
.reel-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 18px;
}
.reel-iframe {
  pointer-events: none;
}
.reel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}
.reel-card.playing .reel-poster {
  opacity: 0;
}

.reel-overlay-bottom {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 18px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 5;
  pointer-events: none;
}
.reel-title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.15;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 0;
}

.reel-play-indicator {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.reel-play-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}
.reel-play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(230, 18, 29, 0.8);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(230, 18, 29, 0.5);
  transition: transform 0.2s ease;
}
.reel-play-circle:hover {
  transform: scale(1.1);
}
.reel-play-circle svg {
  width: 24px;
  height: 24px;
  transform: translateX(2px);
}

.reel-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 15;
  pointer-events: none;
}
.reel-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red-primary);
  box-shadow: 0 0 8px rgba(230, 18, 29, 0.9);
  transition: width 0.15s linear;
}

.reels-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dot-btn.active {
  background: var(--red-primary);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px var(--red-primary);
}

.btn-sound-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-sound-pill:hover {
  background: rgba(230, 18, 29, 0.2);
  border-color: var(--red-primary);
}

/* ==========================================================================
   PAGE 5: LONG-FORM VIDEOS (SCROLL-DRIVEN 3D EXPANDING CAROUSEL)
   ========================================================================== */
.longform-track {
  position: relative;
  width: 100%;
  height: 420vh; /* Smooth, luxurious scroll travel across 6 videos */
  background: var(--bg-black);
  z-index: 20;
}

.longform-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-black);
}

.longform-container {
  max-width: 1440px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 80px 32px 30px;
  position: relative;
  z-index: 10;
}

.longform-header {
  text-align: center;
  margin-bottom: 10px;
  z-index: 20;
}

.longform-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 1380px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.longform-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 780px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(230, 18, 29, 0.18) 0%, rgba(180, 10, 20, 0.05) 50%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s ease-out;
}

.longform-stage {
  position: relative;
  width: 100%;
  height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  z-index: 10;
}

/* Individual Expanding Cards (Matching Reference Layout) */
.lf-card {
  position: absolute;
  height: 480px;
  border-radius: 26px;
  overflow: hidden;
  background: #0a0a0f;
  cursor: pointer;
  user-select: none;
  transform-style: preserve-3d;
  transform-origin: center center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lf-card.is-active-center {
  border-color: rgba(230, 18, 29, 0.85);
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.9), 0 0 35px rgba(230, 18, 29, 0.3);
}

.lf-card-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.lf-video,
.lf-video-container,
.lf-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: inherit;
}
.lf-iframe {
  pointer-events: none;
}

.lf-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.lf-card.playing .lf-poster {
  opacity: 0;
}

.lf-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 45%, transparent 70%);
  pointer-events: none;
  z-index: 5;
}

.lf-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lf-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lf-card-tag {
  color: var(--red-primary);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(230, 18, 29, 0.4);
}

.lf-card-client {
  color: #a0a0ab;
}

.lf-card-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.05;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 2px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.lf-card-runtime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 11px;
  color: #a0a0ab;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.icon-clock {
  width: 13px;
  height: 13px;
  color: var(--red-primary);
}

.lf-card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.lf-card-sound-pill {
  pointer-events: auto !important;
  position: relative;
  z-index: 15;
  padding: 5px 12px;
  font-size: 10px;
}

/* Centered Navigation Arrows & Dots (Matching Reference) */
.longform-nav-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  z-index: 25;
}

.longform-controls-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .longform-controls-row {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .lf-card-bottom-row {
    gap: 8px;
    flex-wrap: wrap;
  }
}

.longform-arrows {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lf-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.lf-nav-btn:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  box-shadow: 0 0 20px rgba(230, 18, 29, 0.6);
  transform: scale(1.08);
}

.lf-nav-btn svg {
  width: 18px;
  height: 18px;
}

.lf-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lf-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--red-primary);
  box-shadow: 0 0 10px var(--red-primary);
}

.longform-cue {
  margin-top: 8px;
  margin-bottom: 0;
  z-index: 20;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .longform-stage {
    height: 430px;
  }
  .lf-card {
    height: 420px;
    border-radius: 22px;
  }
  .longform-container {
    padding: 70px 24px 24px;
  }
}

@media (max-width: 768px) {
  .longform-stage {
    height: 370px;
  }
  .lf-card {
    height: 360px;
    border-radius: 18px;
  }
  .longform-container {
    padding: 60px 16px 20px;
  }
  .lf-card-content {
    padding: 18px 16px 14px;
  }
  .lf-card-title {
    font-size: 22px;
  }
}

/* ==========================================================================
   PAGE 6: FINAL CONTACT SECTION
   ========================================================================= */
.contact-section {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: 100vh;
  background: var(--bg-black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 48px 48px;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.contact-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}
.contact-inner {
  max-width: 1100px;
  width: 100%;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
}

.contact-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 13px;
  color: var(--red-primary);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 700;
}
.tag-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-primary);
  animation: ping 2s infinite;
}

.contact-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 8.5vw, 120px);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.headline-white {
  display: block;
  color: #ffffff;
}
.headline-red {
  display: block;
  color: var(--red-primary);
  text-shadow: 0 0 35px rgba(230, 18, 29, 0.4);
}

.contact-sub {
  color: #a0a0ab;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 44px;
}

.contact-cta-wrapper {
  margin-bottom: 60px;
}
.btn-start-project {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 44px;
  border-radius: 40px;
  background: var(--red-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 35px rgba(230, 18, 29, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-start-project:hover {
  background: #ff2531;
  box-shadow: 0 0 50px rgba(230, 18, 29, 0.8);
  transform: translateY(-3px) scale(1.03);
}
.icon-send {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}
.btn-start-project:hover .icon-send {
  transform: translateX(4px) translateY(-2px);
}

.identity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
}
.identity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.identity-name {
  color: #ffffff;
}
.identity-sep {
  color: #555560;
}
.identity-email {
  color: #d4d4dc;
  text-decoration: none;
  font-family: monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: none;
  transition: color 0.2s ease;
}
.identity-email:hover {
  color: var(--red-primary);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a0a0ab;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.icon-copy-svg, .icon-check-svg {
  width: 13px;
  height: 13px;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.link-item {
  background: none;
  border: none;
  color: #888894;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.link-item:hover {
  color: #ffffff;
}
.link-icon, .link-ext {
  width: 13px;
  height: 13px;
}
.link-bullet {
  color: #444450;
}

.contact-bottom-bar {
  margin-top: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
}
.btn-back-top {
  background: none;
  border: none;
  color: #888894;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.btn-back-top:hover {
  color: var(--red-primary);
}
.btn-back-top svg {
  width: 14px;
  height: 14px;
}
.copyright-text {
  font-size: 11px;
  color: #555560;
  letter-spacing: 0.15em;
  font-family: monospace;
}

/* ==========================================================================
   RESUME MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(230, 18, 29, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111117;
}
.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-primary);
}
.modal-filename {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
}
.modal-filesize {
  font-family: monospace;
  font-size: 10px;
  color: #888894;
  display: block;
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-modal-dl {
  background: var(--red-primary);
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-modal-dl:hover {
  background: #ff2531;
}
.btn-modal-close {
  background: none;
  border: none;
  color: #888894;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.btn-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.resume-profile {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.resume-role-tag {
  color: var(--red-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.resume-name {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: #ffffff;
  margin-top: 4px;
}
.resume-summary {
  font-size: 13px;
  color: #a0a0ab;
  line-height: 1.6;
  max-width: 460px;
  margin-top: 8px;
}
.resume-meta {
  font-size: 12px;
  color: #888894;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.meta-available {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-weight: 600;
  justify-content: flex-end;
}
.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}
.meta-email {
  color: #d4d4dc;
  font-family: monospace;
}

.resume-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.resume-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
}
.resume-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--red-primary);
  display: block;
}
.resume-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #a0a0ab;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.resume-sec-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.sec-icon {
  width: 14px;
  height: 14px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.skill-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
}
.skill-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  display: block;
}
.skill-desc {
  font-size: 10px;
  color: #888894;
  margin-top: 2px;
  display: block;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.timeline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
}
.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.timeline-date {
  font-size: 11px;
  font-family: monospace;
  color: #888894;
}
.timeline-company {
  font-size: 12px;
  color: var(--red-light);
  margin-top: 4px;
}
.timeline-desc {
  font-size: 12px;
  color: #a0a0ab;
  line-height: 1.5;
  margin-top: 6px;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #111117;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a0a0ab;
  text-decoration: none;
  font-family: monospace;
  font-size: 12px;
  transition: color 0.2s ease;
}
.modal-footer-email:hover {
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-center-clearance {
    display: none;
  }
  .hero-right {
    align-items: flex-start;
  }
  .longform-active-card {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header .header-inner {
    padding: 14px 20px;
  }
  .brand-badge .badge-primary, .brand-badge .badge-secondary {
    font-size: 11px;
  }
  .status-badge .status-text {
    font-size: 11px;
  }
  .section {
    padding: 90px 20px;
  }
  .hero-content {
    padding: 90px 20px 24px;
  }
  .contact-section {
    padding: 90px 20px 32px;
  }
  .contact-bottom-bar {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .resume-profile {
    flex-direction: column;
    text-align: left;
  }
  .resume-meta {
    text-align: left;
    align-items: flex-start;
  }
  .meta-available {
    justify-content: flex-start;
  }
  .reels-carousel-wrapper {
    min-height: 520px;
  }
  .reels-track {
    height: 500px;
  }
  .reel-card {
    width: 220px;
  }
  .carousel-arrow {
    width: 36px;
    height: 36px;
  }
  .arrow-left { left: 8px; }
  .arrow-right { right: 8px; }
}

/* Utility Helpers */
.hidden {
  display: none !important;
}
.text-red {
  color: var(--red-primary) !important;
}
.text-emerald-400 {
  color: #34d399 !important;
}

/* ==========================================================================
   PREMIUM CINEMATIC CUSTOM CURSOR (WHITE DOT + INERTIAL RED RING)
   ========================================================================== */
.cinematic-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 999999;
  display: none;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-cursor.is-visible {
  opacity: 1;
}

/* Precision Center Dot (Immediate tracking) */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 3.5px;
  height: 3.5px;
  background-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 0 1px rgba(0, 0, 0, 0.9);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              box-shadow 0.2s ease,
              opacity 0.2s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Inertial Outer Red Ring (Smooth lag + velocity stretch) */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(230, 18, 29, 0.88);
  background: transparent;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  box-shadow: 0 0 8px rgba(230, 18, 29, 0.22), 0 0 2px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease,
              background-color 0.22s ease,
              box-shadow 0.22s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Subtle Play Cue Icon inside Ring (only shown on play-button hover) */
.cursor-play-icon {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #ffffff;
  margin-left: 2px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- Interactive Hover States ---------------- */

/* VIDEO CARDS: Ring expands slightly with restrained crimson aura */
.cinematic-cursor.is-hover-video .cursor-ring {
  width: 44px;
  height: 44px;
  border-color: rgba(230, 18, 29, 0.95);
  box-shadow: 0 0 18px rgba(230, 18, 29, 0.42), 0 0 3px rgba(0, 0, 0, 0.6);
  background: rgba(230, 18, 29, 0.04);
}
.cinematic-cursor.is-hover-video .cursor-dot {
  background-color: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 1);
}

/* BUTTONS AND LINKS: Ring contracts smoothly around the target */
.cinematic-cursor.is-hover-button .cursor-ring {
  width: 18px;
  height: 18px;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 10px rgba(230, 18, 29, 0.52);
  background: rgba(230, 18, 29, 0.12);
}
.cinematic-cursor.is-hover-button .cursor-dot {
  width: 4px;
  height: 4px;
  background-color: var(--red-primary);
  box-shadow: 0 0 6px rgba(230, 18, 29, 0.85);
}

/* CAROUSEL ARROWS: Slight magnetic attraction and vibrant border */
.cinematic-cursor.is-hover-arrow .cursor-ring {
  width: 32px;
  height: 32px;
  border-color: var(--red-primary);
  box-shadow: 0 0 14px rgba(230, 18, 29, 0.55);
  background: rgba(230, 18, 29, 0.08);
}
.cinematic-cursor.is-hover-arrow .cursor-dot {
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(230, 18, 29, 0.9);
}

/* VIDEO PLAY BUTTONS: Play cue response */
.cinematic-cursor.is-hover-play .cursor-ring {
  width: 36px;
  height: 36px;
  border-color: var(--red-primary);
  box-shadow: 0 0 16px rgba(230, 18, 29, 0.6);
  background: rgba(18, 18, 24, 0.65);
}
.cinematic-cursor.is-hover-play .cursor-play-icon {
  opacity: 1;
  transform: scale(1);
}
.cinematic-cursor.is-hover-play .cursor-dot {
  opacity: 0;
}

/* ---------------- Desktop Media Query & Visibility ---------------- */
@media (hover: hover) and (pointer: fine) {
  body.has-cinematic-cursor {
    cursor: none !important;
  }
  body.has-cinematic-cursor a,
  body.has-cinematic-cursor button,
  body.has-cinematic-cursor [role="button"],
  body.has-cinematic-cursor .reel-card,
  body.has-cinematic-cursor .lf-card,
  body.has-cinematic-cursor .carousel-arrow,
  body.has-cinematic-cursor .lf-nav-btn,
  body.has-cinematic-cursor .dot-btn,
  body.has-cinematic-cursor .lf-dot,
  body.has-cinematic-cursor .cue-link,
  body.has-cinematic-cursor .brand-badge {
    cursor: none !important;
  }
  body.has-cinematic-cursor input,
  body.has-cinematic-cursor textarea {
    cursor: auto !important;
  }
  .cinematic-cursor {
    display: block;
  }
}

