/* ═══════════════════════════════════════════════════════════════
   DHANANJAY — CINEMATIC VIDEO EDITOR PORTFOLIO
   CSS Design System
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ──────────────────────────────────── */
:root {
  /* Colors */
  --bg:           #060606;
  --bg-2:         #0d0d0d;
  --bg-3:         #111111;
  --bg-card:      #0f0f0f;
  --accent:       #FF6B35;
  --accent-glow:  rgba(255, 107, 53, 0.25);
  --accent-dim:   rgba(255, 107, 53, 0.12);
  --gold:         #FFD700;
  --gold-dim:     rgba(255, 215, 0, 0.15);
  --white:        #FFFFFF;
  --off-white:    #EFEFEF;
  --muted:        #B8B8B8;
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 107, 53, 0.35);

  /* Section backgrounds to allow global canvas to show through */
  --bg-section-1: transparent;
  --bg-section-2: rgba(13, 13, 13, 0.45);

  /* Typography */
  --font-head:    'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad:  clamp(5rem, 10vw, 9rem);
  --container:    1280px;
  --gutter:       clamp(1.25rem, 5vw, 2.5rem);

  /* Transitions */
  --t-fast:       0.18s ease;
  --t-med:        0.35s ease;
  --t-slow:       0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Nav height */
  --nav-h:        72px;

  /* Cursor */
  --cur-dot-size:  6px;
  --cur-ring-size: 36px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  cursor: none;
  overflow-x: hidden;
}

/* Fallback cursor on mobile */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring, #cursor-glow { display: none !important; }
}

::selection { background: var(--accent); color: var(--white); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: none; font-family: inherit; }
ul { list-style: none; }

/* ─── CUSTOM SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ─── NOISE OVERLAY ─────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: noiseAnim 0.15s steps(2) infinite;
}

@keyframes noiseAnim {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%,-1%); }
  50%  { transform: translate(1%,2%); }
  75%  { transform: translate(-1%,1%); }
  100% { transform: translate(2%,-2%); }
}

/* ─── MAGNETIC CURSOR & GLOW ─────────────────────────────────── */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, rgba(255, 107, 53, 0.03) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999998 !important;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.3s, background 0.3s;
}
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: var(--cur-dot-size);
  height: var(--cur-dot-size);
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999 !important;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.2s, height 0.2s, background 0.2s, border-radius 0.2s;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: var(--cur-ring-size);
  height: var(--cur-ring-size);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999 !important;
  transform: translate(-50%, -50%);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

#cursor-label {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--white);
  opacity: 0;
  user-select: none;
  transition: opacity 0.2s;
  text-align: center;
  line-height: 1;
  z-index: 9999999 !important;
}

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── TYPOGRAPHY HELPERS ─────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.7;
}

.accent-italic {
  font-style: italic;
  color: var(--accent);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .section-tag { justify-content: center; }
.section-header .section-sub { margin: 0 auto; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: box-shadow var(--t-med), transform var(--t-fast);
}
.btn-primary:hover {
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--off-white);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-nav {
  background: var(--accent);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  font-size: 0.78rem;
  border-radius: 2px;
}
.btn-nav:hover { background: #e55a26; }

.btn-full { width: 100%; justify-content: center; }

.btn-spinner {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── NAVIGATION ─────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background var(--t-med), backdrop-filter var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}

#main-nav.scrolled {
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  height: 30px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ─── MACBOOK FLOATING DOCK ──────────────────────────────────── */
#mac-dock {
  position: fixed;
  z-index: 1000;
  display: flex;
  pointer-events: none;
  transition: bottom var(--t-med) ease, left var(--t-med) ease, right var(--t-med) ease, top var(--t-med) ease, transform var(--t-med) ease;
}

/* Position: Bottom (Default) */
#mac-dock.dock-pos-bottom {
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
  align-items: flex-end;
}

/* Position: Left */
#mac-dock.dock-pos-left {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: flex-start;
}

/* Position: Right */
#mac-dock.dock-pos-right {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: flex-end;
}

.dock-container {
  display: flex;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(10, 10, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 
              0 0 0 1px rgba(255, 255, 255, 0.03),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  pointer-events: auto;
}

#mac-dock.dock-pos-bottom .dock-container {
  flex-direction: row;
  align-items: flex-end;
  transform-origin: bottom center;
}

#mac-dock.dock-pos-left .dock-container {
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  transform-origin: left center;
}

#mac-dock.dock-pos-right .dock-container {
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  transform-origin: right center;
}

body.light-theme .dock-container {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 
              0 0 0 1px rgba(0, 0, 0, 0.02),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 48px;
  height: 48px;
  will-change: transform, margin;
}

#mac-dock.dock-pos-bottom .dock-item {
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 4px;
  transform-origin: bottom center;
}

#mac-dock.dock-pos-left .dock-item {
  flex-direction: row;
  justify-content: flex-start;
  margin: 4px 0;
  transform-origin: left center;
}

#mac-dock.dock-pos-right .dock-item {
  flex-direction: row;
  justify-content: flex-end;
  margin: 4px 0;
  transform-origin: right center;
}

.dock-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--off-white);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  padding: 0;
  cursor: none;
}

body.light-theme .dock-link {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  color: var(--muted);
}

.dock-link svg {
  width: 22px;
  height: 22px;
  transition: transform var(--t-fast);
}

.dock-link:hover {
  background: var(--accent-dim);
  border-color: rgba(255, 107, 53, 0.25);
  color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.15);
}

body.light-theme .dock-link:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.2);
  color: var(--accent);
}

/* Active Indicators */
.dock-active-dot {
  position: absolute;
  background: var(--accent);
  opacity: 0;
  border-radius: 50%;
  transition: opacity var(--t-med), transform var(--t-med);
  box-shadow: 0 0 8px var(--accent);
}

#mac-dock.dock-pos-bottom .dock-active-dot {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
}

#mac-dock.dock-pos-left .dock-active-dot {
  left: -4px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 4px;
  height: 4px;
}

#mac-dock.dock-pos-right .dock-active-dot {
  right: -4px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 4px;
  height: 4px;
}

#mac-dock.dock-pos-bottom .dock-item.active .dock-active-dot {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

#mac-dock.dock-pos-left .dock-item.active .dock-active-dot {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

#mac-dock.dock-pos-right .dock-item.active .dock-active-dot {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Separator Line */
.dock-separator {
  background: rgba(255, 255, 255, 0.15);
  transition: width var(--t-fast) ease, height var(--t-fast) ease, margin var(--t-fast) ease;
}

body.light-theme .dock-separator {
  background: rgba(0, 0, 0, 0.1);
}

#mac-dock.dock-pos-bottom .dock-separator {
  width: 1px;
  height: 32px;
  margin: 0 6px;
  align-self: center;
}

#mac-dock.dock-pos-left .dock-separator,
#mac-dock.dock-pos-right .dock-separator {
  width: 32px;
  height: 1px;
  margin: 6px 0;
  align-self: center;
}

/* Tooltips */
.dock-tooltip {
  position: absolute;
  background: rgba(6, 6, 6, 0.9);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast) ease, transform var(--t-fast) ease, visibility var(--t-fast);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1005;
}

#mac-dock.dock-pos-bottom .dock-tooltip {
  top: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}

#mac-dock.dock-pos-left .dock-tooltip {
  left: 60px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
}

#mac-dock.dock-pos-right .dock-tooltip {
  right: 60px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
}

body.light-theme .dock-tooltip {
  background: rgba(255, 255, 255, 0.95);
  color: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#mac-dock.dock-pos-bottom .dock-item:hover .dock-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

#mac-dock.dock-pos-left .dock-item:hover .dock-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

#mac-dock.dock-pos-right .dock-item:hover .dock-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Hide tooltip if settings popover is open */
.dock-item:has(.dock-settings-menu.open) .dock-tooltip {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

/* Dock Settings Popover */
.dock-settings-menu {
  position: absolute;
  background: rgba(12, 12, 12, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 1010;
  width: 130px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  pointer-events: auto;
}

#mac-dock.dock-pos-bottom .dock-settings-menu {
  bottom: 58px;
  right: 0;
  transform-origin: bottom right;
}

#mac-dock.dock-pos-left .dock-settings-menu {
  left: 58px;
  bottom: 0;
  transform-origin: bottom left;
}

#mac-dock.dock-pos-right .dock-settings-menu {
  right: 58px;
  bottom: 0;
  transform-origin: bottom right;
}

body.light-theme .dock-settings-menu {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dock-settings-menu.open {
  display: block;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.settings-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  padding-left: 4px;
}

.settings-options {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.settings-opt-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 8px;
  text-align: left;
  cursor: none;
  transition: background var(--t-fast), color var(--t-fast);
  width: 100%;
}

body.light-theme .settings-opt-btn {
  color: var(--muted);
}

.settings-opt-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

body.light-theme .settings-opt-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--black);
}

.settings-opt-btn.active {
  background: var(--accent);
  color: var(--white);
}

/* Responsive Dock for Mobile (Always forced to bottom alignment) */
@media (max-width: 768px) {
  #mac-dock.dock-pos-bottom,
  #mac-dock.dock-pos-left,
  #mac-dock.dock-pos-right {
    position: fixed;
    bottom: 12px;
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: flex-end;
    width: 92%;
    max-width: 400px;
  }
  
  #mac-dock.dock-pos-bottom .dock-container,
  #mac-dock.dock-pos-left .dock-container,
  #mac-dock.dock-pos-right .dock-container {
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    width: 100%;
    justify-content: space-around;
    transform-origin: bottom center;
  }
  
  #mac-dock.dock-pos-bottom .dock-item,
  #mac-dock.dock-pos-left .dock-item,
  #mac-dock.dock-pos-right .dock-item {
    flex-direction: column;
    justify-content: flex-end;
    width: 42px;
    height: 42px;
    margin: 0;
    transform-origin: bottom center;
  }
  
  #mac-dock.dock-pos-bottom .dock-link,
  #mac-dock.dock-pos-left .dock-link,
  #mac-dock.dock-pos-right .dock-link {
    border-radius: 10px;
  }
  
  #mac-dock.dock-pos-bottom .dock-link svg,
  #mac-dock.dock-pos-left .dock-link svg,
  #mac-dock.dock-pos-right .dock-link svg {
    width: 20px;
    height: 20px;
  }
  
  .dock-tooltip,
  .dock-separator,
  #dock-item-settings {
    display: none !important;
  }
}

/* ─── SECTIONS ───────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.section-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--nav-h) var(--gutter) 4rem;
  max-width: var(--container);
  margin: 0 auto;
  overflow: visible;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: grayscale(100%);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 40%, rgba(255, 107, 53, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 80% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
              linear-gradient(to bottom, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 120% at center, transparent 40%, rgba(6,6,6,0.8) 100%);
}

/* Film strips */
.filmstrip {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  opacity: 0.08;
  pointer-events: none;
}
.filmstrip-left  { left: 0; border-right: 1px solid var(--muted); }
.filmstrip-right { right: 0; border-left: 1px solid var(--muted); }
.hole {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--muted);
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
}
.eyebrow-line {
  flex: 0 0 40px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(5rem, 13vw, 11.5rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--white);
  overflow: hidden;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(80px);
}

.title-line.accent {
  color: var(--accent);
  -webkit-text-stroke: 0px;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 55ch;
  margin-bottom: 2.5rem;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--white);
}
.stat-suffix {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--accent);
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero preview card */
.hero-preview-card {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(240px, 30vw, 400px);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
  opacity: 0;
  z-index: 2;
}
.hero-preview-card .preview-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: brightness(0.6);
}
.preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(to top, rgba(6,6,6,0.6) 0%, transparent 60%);
}
.preview-play {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: transform var(--t-med);
}
.preview-play:hover { transform: scale(1.15); }
.preview-play svg { width: 100%; height: 100%; }
.preview-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--off-white);
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
}
.scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  border-radius: 99px;
}
.scroll-line-inner {
  width: 100%;
  height: 40%;
  background: var(--accent);
  border-radius: 99px;
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(150%); }
  100% { transform: translateY(150%); }
}

/* ─── TICKER ─────────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 0.9rem 0;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  animation: tickerScroll 40s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-dot {
  color: var(--accent) !important;
  font-size: 0.5rem !important;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

/* ─── SHOWREEL ────────────────────────────────────────────────── */
.section-showreel {
  position: relative;
  background: var(--bg-body);
  z-index: 10;
  padding: var(--section-pad) 0;
}

.showreel-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.showreel-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.showreel-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
              0 0 40px rgba(255, 107, 53, 0.15); /* orange glow theme */
  background: #000;
  transform: scale(0.98);
  transition: transform var(--t-med), box-shadow var(--t-med);
}

body.light-theme .showreel-video-container {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15),
              0 0 30px rgba(255, 107, 53, 0.1);
}

.showreel-video-container:hover {
  transform: scale(1.005);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7),
              0 0 50px rgba(255, 107, 53, 0.25);
}

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

/* Floating control bar overlay */
.showreel-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 5;
}

.showreel-video-container:hover .showreel-controls-bar {
  opacity: 1;
  transform: translateY(0);
}

.showreel-status-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showreel-status-text::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
  animation: pulseGlow 1.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.showreel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showreel-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 8px;
  border-radius: 8px;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.showreel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: scale(1.05);
}

.showreel-btn svg {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .showreel-controls-bar {
    padding: 10px 16px;
  }
  .showreel-status-text {
    font-size: 0.65rem;
  }
  .showreel-btn {
    padding: 6px;
  }
}

/* ─── ABOUT ──────────────────────────────────────────────────── */
.section-about { background: var(--bg-section-1); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.about-visual { display: flex; flex-direction: column; gap: 2rem; }

.about-img-wrapper {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.8);
  transition: filter var(--t-slow);
}
.about-img-wrapper:hover .about-img { filter: brightness(0.85) saturate(1); }

.about-img-border {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  pointer-events: none;
}

.about-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateBadge 12s linear infinite;
}
.badge-svg { width: 100%; height: 100%; }
.badge-star {
  position: absolute;
  font-size: 1.2rem;
  color: var(--gold);
}

@keyframes rotateBadge { to { transform: rotate(360deg); } }

.about-skills { display: flex; flex-direction: column; gap: 0.9rem; }

.skill-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.3rem;
  align-items: center;
}
.skill-name {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--off-white);
}
.skill-pct {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}
.skill-bar {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.skill-fill.animated { width: var(--pct); }

.about-content { padding-top: 0.5rem; }

.about-body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-body strong { color: var(--off-white); font-weight: 600; }

/* ─── PORTFOLIO / WORK ───────────────────────────────────────── */
.section-work { background: var(--bg-section-1); }

.portfolio-carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.portfolio-carousel-wrap {
  position: relative;
  overflow: visible;
  width: 100%;
  height: 500px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.portfolio-card {
  background: #0d0d0d;
  position: absolute;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 270px;
  height: 420px;
  padding: 0;
  box-sizing: border-box;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7),
              0 0 25px rgba(255, 107, 53, 0.12);
  transition: border-color var(--t-med), box-shadow var(--t-med);
}

.portfolio-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85),
              0 0 35px rgba(255, 107, 53, 0.35);
}

.portfolio-card.hidden {
  display: none !important;
}

.card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
  z-index: 1;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), filter var(--t-slow);
  filter: brightness(0.85) saturate(0.9);
}

.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

.hover-video,
.hover-video.autoplay-reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 2;
  border-radius: 20px;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-med);
  z-index: 3;
}
.portfolio-card:hover .card-overlay { opacity: 1; }

.card-play-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  transition: all var(--t-med);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.portfolio-card:hover .card-play-icon {
  transform: scale(1);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 20px var(--accent-glow);
}
.card-play-icon svg { width: 100%; height: 100%; }
.card-play-icon svg circle { display: none; }

.card-duration {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(6, 6, 6, 0.75);
  border: 1px solid var(--border);
  color: var(--off-white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  z-index: 4;
}
.card-featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: #060606;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  z-index: 4;
}

/* Slide-up hover overlay for title and description */
.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
  z-index: 5;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.portfolio-card:hover .card-info {
  transform: translateY(0);
  opacity: 1;
}

.card-title {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  margin: 0;
  transition: color var(--t-med);
}
.portfolio-card:hover .card-title {
  color: var(--accent);
}

.card-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  transition: all var(--t-fast);
  margin-top: auto;
  cursor: pointer;
  width: fit-content;
  pointer-events: auto;
}
.action-play-icon {
  width: 14px;
  height: 14px;
  fill: #ff6b35;
  transition: transform var(--t-fast), fill var(--t-fast);
}
.portfolio-card:hover .card-action,
.card-action:hover {
  color: #ffffff !important;
  background: #ff6b35 !important;
  border-color: #ff6b35 !important;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  transform: translateY(-2px);
}
.portfolio-card:hover .action-play-icon,
.card-action:hover .action-play-icon {
  fill: #ffffff !important;
  transform: scale(1.2);
}

/* Custom side navigation buttons */
.work-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100 !important;
  pointer-events: auto !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ff6b35 !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6) !important;
  cursor: pointer;
}

#work-prev-btn.work-side-btn {
  left: 0.5rem;
}

#work-next-btn.work-side-btn {
  right: 0.5rem;
}

.work-side-btn:hover {
  background: #e05522 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.85) !important;
  transform: translateY(-50%) scale(1.15) !important;
}

/* Sound State Badge inside In-Place Video Cards */
.card-sound-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 7;
  pointer-events: none;
  transition: all var(--t-fast);
}

.light-theme .card-sound-badge {
  background: #ff6b35 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Light Theme overrides for side buttons */
.light-theme .work-side-btn {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.15);
  color: #111111;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.light-theme .work-side-btn:hover {
  background: #ff6b35;
  border-color: #ff6b35;
  color: #ffffff;
}

/* Google Labs Pill-shaped Filters (placed above carousel) */
.work-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
  justify-content: center;
}
.work-filters .filter-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none; /* keep original capitalization */
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px; /* pill shape */
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--t-fast);
  cursor: pointer;
}
.work-filters .filter-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}
.work-filters .filter-btn.active {
  color: #ffffff !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* ── Light Theme Badge, Duration & Filter Overrides ── */
.light-theme .card-duration {
  background: #ff6b35 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

.light-theme .card-featured-badge {
  background: #ff6b35 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

.light-theme .work-filters .filter-btn {
  color: #333333;
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.04);
}

.light-theme .work-filters .filter-btn:hover {
  color: #ff6b35;
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.08);
}

.light-theme .work-filters .filter-btn.active {
  color: #ffffff !important;
  background: #ff6b35 !important;
  border-color: #ff6b35 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35) !important;
}

.light-theme #cursor-label {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.portfolio-card:hover .tag {
  border-color: rgba(255, 107, 53, 0.2);
  color: var(--off-white);
}

.work-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ─── SERVICES ───────────────────────────────────────────────── */
.section-services {
  background: var(--bg-section-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  background: transparent;
}

.service-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 2.75rem);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--t-med);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 0% 0%, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-slow);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.08);
}

.featured-service {
  border: 1px solid rgba(255, 107, 53, 0.25);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.06) 0%, rgba(255, 255, 255, 0.005) 100%);
}

.service-badge-popular {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.service-list li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}


/* ─── PROCESS ────────────────────────────────────────────────── */
.section-process { background: var(--bg-section-1); }

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
  width: 100%;
}

.process-step {
  padding: 2.4rem 1.8rem 2.2rem;
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 14px 14px 0 0;
}

.process-step:hover::before,
.process-step.step-highlight::before {
  opacity: 1;
}

.process-step.step-highlight {
  border-color: rgba(255, 107, 53, 0.65) !important;
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.22), 0 0 25px rgba(255, 107, 53, 0.15) !important;
}

.process-step:hover {
  background: rgba(255, 107, 53, 0.05);
  border-color: rgba(255, 107, 53, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 107, 53, 0.12);
}

.step-number {
  font-family: var(--font-head);
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  opacity: 0.95;
  margin-bottom: 1.25rem;
  display: block;
  text-align: left;
  transform-origin: left center;
  transition: color var(--t-med), text-shadow var(--t-med), transform var(--t-med);
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.35);
}

.process-step:hover .step-number {
  color: #FFFFFF;
  opacity: 1;
  text-shadow: 0 0 30px rgba(255, 107, 53, 0.95);
  transform: translateY(-2px);
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.85rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.step-connector {
  display: none;
}
.step-connector-last { display: none; }

/* ─── TESTIMONIALS ───────────────────────────────────────────── */
.section-testimonials {
  background: var(--bg-section-2);
  border-top: 1px solid var(--border);
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  transition: transform var(--t-slow);
  will-change: transform;
  padding: 1rem 0.5rem;
}

.testimonial-card {
  min-width: 100%;
  padding: clamp(2rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .testimonial-card {
    min-width: calc(50% - 0.75rem);
  }
}

@media (min-width: 1025px) {
  .testimonial-card {
    min-width: calc(33.333% - 1rem);
  }
}

.testi-top-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.testi-quote {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  font-style: normal;
  color: var(--off-white);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.testi-stars-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  z-index: 2;
  position: relative;
}

.stars-gold {
  color: #FFC700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.rating-num {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.quote-symbol {
  position: absolute;
  right: clamp(1.5rem, 4vw, 2rem);
  bottom: clamp(1.2rem, 3vw, 1.8rem);
  font-size: 4.5rem;
  font-family: Arial, sans-serif;
  font-weight: bold;
  line-height: 1;
  color: var(--white);
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}

.testi-footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  z-index: 2;
  position: relative;
}

.testi-avatars-group {
  display: flex;
  position: relative;
  height: 42px;
  align-items: center;
  flex-shrink: 0;
}

.testi-avatars-group .avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  object-fit: cover;
}

.testi-avatars-group .avatar-img:nth-child(2) {
  margin-left: -18px;
}

.testi-user-info {
  display: flex;
  flex-direction: column;
}

.testi-name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  font-style: normal;
  line-height: 1.2;
}

.testi-role {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.2;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.carousel-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 180px;
}

.carousel-counter {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
}

.carousel-progress-bar {
  width: 100%;
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
  border-radius: 99px;
}

.carousel-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s ease;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--t-fast);
  cursor: none;
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
}

/* ─── CONTACT ────────────────────────────────────────────────── */
.section-contact {
  background: var(--bg-section-1);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.contact-bg-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.contact-intro {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color var(--t-fast);
}
.contact-detail-item:hover { border-color: var(--border-hover); }
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; }
.detail-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.detail-value {
  display: block;
  font-size: 0.9rem;
  color: var(--off-white);
  font-weight: 500;
}

.contact-social {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--t-fast);
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--off-white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--muted); opacity: 0.7; }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.form-input.error { border-color: #ff4d4d; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%235C5C5C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: none;
}
.form-select option { background: var(--bg-card); }

.form-textarea { resize: vertical; min-height: 120px; }

.form-error {
  font-size: 0.72rem;
  color: #ff4d4d;
  min-height: 1rem;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 3px;
  font-size: 0.88rem;
  color: var(--gold);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem var(--gutter);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.footer-tagline {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy, .footer-made {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── VIDEO MODAL ────────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.95);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
}

.modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: all var(--t-fast);
  cursor: none;
}
.modal-close:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.modal-video-wrap {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.modal-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.modal-play-anim {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-play-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ─── BACK TO TOP ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  transition: opacity var(--t-med), transform var(--t-fast), box-shadow var(--t-fast);
  cursor: none;
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

/* ─── SCROLL REVEAL ANIMATIONS ──────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--delay, 0s),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--delay, 0s);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--delay, 0s),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--delay, 0s);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--delay, 0s),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--delay, 0s);
}
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .hero-preview-card { display: none; }
  .step-connector { display: none; }
}

@media (max-width: 860px) {
  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .filmstrip { display: none; }
  .testi-stars { display: none; }
}

@media (max-width: 520px) {
  .process-timeline { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .section-title { font-size: clamp(2.5rem, 10vw, 4rem); }
}

/* ─── UTILITY ────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════
   TORCH / FLASHLIGHT MODE
   ═══════════════════════════════════════════════════════════════ */

/* ── Torch Button ─────────────────────────────────────────────── */
.torch-btn {
  position: fixed;
  top: calc(var(--nav-h) / 2);
  right: calc(var(--gutter) + 120px);   /* sits left of the Hire Me btn */
  transform: translateY(-50%);
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: rgba(6, 6, 6, 0.7);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  overflow: hidden;
}

.torch-btn:hover {
  color: var(--white);
  border-color: rgba(255, 107, 53, 0.4);
  background: rgba(255, 107, 53, 0.08);
}

/* Active / ON state */
.torch-btn.torch-active {
  color: var(--white);
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.14);
  box-shadow:
    0 0 12px rgba(255, 107, 53, 0.45),
    0 0 28px rgba(255, 107, 53, 0.2),
    inset 0 0 8px rgba(255, 107, 53, 0.08);
}

.torch-icon {
  font-size: 0.9rem;
  line-height: 1;
  display: inline-block;
  transition: transform var(--t-fast);
}

.torch-btn.torch-active .torch-icon {
  animation: torchWiggle 3s ease-in-out infinite;
}

@keyframes torchWiggle {
  0%, 100% { transform: rotate(0deg); }
  15%       { transform: rotate(-8deg) scale(1.1); }
  30%       { transform: rotate(6deg); }
  45%       { transform: rotate(-4deg); }
  60%       { transform: rotate(0deg); }
}

/* Active pulse ring behind button */
.torch-active-ring {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  border: 1.5px solid rgba(255, 107, 53, 0.6);
  opacity: 0;
  pointer-events: none;
}

.torch-btn.torch-active .torch-active-ring {
  animation: torchPulseRing 2s ease-out infinite;
}

@keyframes torchPulseRing {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Mobile: shrink to icon-only */
@media (max-width: 768px) {
  .torch-btn {
    right: calc(var(--gutter) + 56px);
    padding: 0.45rem 0.6rem;
  }
  .torch-label { display: none; }
}

/* ── Spotlight Overlay ─────────────────────────────────────────── */
.torch-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.97);
  /* The spotlight hole — JS updates --mx / --my via inline style */
  -webkit-mask-image: radial-gradient(
    circle 160px at var(--mx, 50%) var(--my, 50%),
    transparent 0%,
    transparent 38%,
    rgba(0,0,0,0.25) 58%,
    black 100%
  );
  mask-image: radial-gradient(
    circle 160px at var(--mx, 50%) var(--my, 50%),
    transparent 0%,
    transparent 38%,
    rgba(0,0,0,0.25) 58%,
    black 100%
  );
  /* Slight warm tint to simulate tungsten torch */
  backdrop-filter: none;
}

/* Flicker state — toggled via JS class while GSAP handles opacity loop */
.torch-overlay.torch-flicker {
  /* GSAP controls opacity for flicker; this just helps the class exist */
}



/* ── Torch cursor override ─────────────────────────────────────── */
/* When torch is active, subtly tint the cursor ring warm */
body.torch-mode-on #cursor-ring {
  border-color: rgba(255, 180, 80, 0.9);
}
body.torch-mode-on #cursor-dot {
  background: rgba(255, 200, 100, 1);
  box-shadow: 0 0 10px rgba(255, 160, 50, 0.8), 0 0 24px rgba(255, 120, 30, 0.4);
}

/* ── Warm ground glow under spotlight ─────────────────────────── */
.torch-overlay::before {
  content: '';
  position: absolute;
  /* centered on var(--mx/my) — approximated with background-position */
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 160, 60, 0.07) 0%, transparent 70%);
  top: calc(var(--my, 50%) - 100px);
  left: calc(var(--mx, 50%) - 100px);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — CINEMATIC CENTERED PROFILE (Feature 3)
   ═══════════════════════════════════════════════════════════════ */

/* Override: centered hero layout replaces the old split layout */
.section-hero.hero-centered {
  background: var(--bg);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
  /* Kill the old fixed hero-bg */
}

/* Dark base — solid background layer */
.hero-dark-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-section-1);
  z-index: 0;
}

/* ── Ghost Typography ─────────────────────────────────────────── */
.hero-ghost-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: 9.5vw;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  line-height: 1;
  /* Subtle slow drift */
  animation: ghostDrift 18s ease-in-out infinite alternate;
}

@keyframes ghostDrift {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -50%) scale(1.04); }
}

/* ── Film Grain (hero-only) ───────────────────────────────────── */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 0.12s steps(1) infinite;
}

@keyframes grainShift {
  0%   { background-position: 0% 0%; }
  20%  { background-position: 30% 15%; }
  40%  { background-position: -10% 25%; }
  60%  { background-position: 20% -5%; }
  80%  { background-position: -20% 10%; }
  100% { background-position: 5% 30%; }
}

/* ── Centered Hero Content wrapper ───────────────────────────── */
.hero-center-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 700px;
  width: 100%;
}

/* Eyebrow inside centered hero */
.hero-centered .hero-eyebrow {
  opacity: 0;           /* animated in by GSAP */
  margin-bottom: 2rem;
  justify-content: center;
}

/* ── Floating Profile Image ───────────────────────────────────── */
.hero-profile-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 2rem;
  flex-shrink: 0;
}

/* Outermost diffuse glow — large orange halo */
.profile-glow-outer {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.18) 0%,
    rgba(255, 107, 53, 0.06) 45%,
    transparent 70%
  );
  pointer-events: none;
  animation: glowPulseOuter 3.5s ease-in-out infinite alternate;
}

@keyframes glowPulseOuter {
  from { transform: translate(-50%,-50%) scale(1);   opacity: 0.8; }
  to   { transform: translate(-50%,-50%) scale(1.12); opacity: 1;   }
}

/* Mid glow — tighter, more intense */
.profile-glow-mid {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.28) 0%,
    rgba(255, 107, 53, 0.10) 50%,
    transparent 70%
  );
  pointer-events: none;
  animation: glowPulseMid 2.8s ease-in-out infinite alternate;
}

@keyframes glowPulseMid {
  from { transform: translate(-50%,-50%) scale(0.98); opacity: 0.7; }
  to   { transform: translate(-50%,-50%) scale(1.05); opacity: 1;   }
}

/* Spinning orbit ring */
.profile-orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 107, 53, 0.3);
  pointer-events: none;
  animation: orbitSpin 18s linear infinite;
}

@keyframes orbitSpin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* The actual circle image container */
.profile-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 107, 53, 0.55);
  box-shadow:
    0 0 0 6px rgba(255, 107, 53, 0.12),
    0 0 40px rgba(255, 107, 53, 0.35),
    0 0 80px rgba(255, 107, 53, 0.18),
    inset 0 0 20px rgba(0, 0, 0, 0.4);
  /* LEVITATING animation */
  animation: levitate 4s ease-in-out infinite;
}

@keyframes levitate {
  0%   { transform: translate(-50%, -50%) translateY(0px)    rotate(0deg); }
  25%  { transform: translate(-50%, -50%) translateY(-10px)  rotate(0.3deg); }
  50%  { transform: translate(-50%, -50%) translateY(-16px)  rotate(0deg); }
  75%  { transform: translate(-50%, -50%) translateY(-8px)   rotate(-0.3deg); }
  100% { transform: translate(-50%, -50%) translateY(0px)    rotate(0deg); }
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: brightness(0.9) contrast(1.05) saturate(0.95);
  transition: filter var(--t-slow);
}
.profile-circle:hover .profile-img {
  filter: brightness(1) contrast(1.05) saturate(1.1);
}

/* Floating name badge below image */
.profile-badge {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 6, 6, 0.88);
  border: 1px solid rgba(255, 107, 53, 0.35);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 0.35rem 1.1rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: levitate 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

.badge-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--white);
}

.badge-title {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ── Hero Name Title ──────────────────────────────────────────── */
.hero-name-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 3.5rem;     /* space for the badge that overflows below */
  margin-bottom: 1rem;
  opacity: 0;             /* animated in by GSAP */
}

.name-line {
  display: block;
  background: linear-gradient(135deg, #ffffff 30%, rgba(255, 107, 53, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero sub in centered layout */
.hero-centered .hero-sub {
  font-size: clamp(0.85rem, 1.6vw, 0.98rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 52ch;
  text-align: center;
  margin: 0 auto 2rem;
  opacity: 0; /* GSAP animates in */
}

/* CTA in centered layout */
.hero-centered .hero-cta {
  justify-content: center;
  opacity: 0; /* GSAP animates in */
  margin-bottom: 2.5rem;
}

/* Stats in centered layout */
.hero-centered .hero-stats {
  justify-content: center;
  opacity: 0; /* GSAP animates in */
}

/* Override fixed hero-bg since we use hero-dark-bg now */
.hero-centered .hero-bg { display: none; }

/* Filmstrips still show in centered mode */
.hero-centered .filmstrip {
  opacity: 0.05;
  z-index: 2;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-ghost-text {
    font-size: 12.5vw;
    letter-spacing: 0.04em;
  }

  .hero-profile-wrap {
    width: 220px;
    height: 220px;
  }

  .profile-circle {
    width: 220px;
    height: 220px;
  }

  .profile-glow-outer {
    width: 290px;
    height: 290px;
  }

  .profile-glow-mid {
    width: 250px;
    height: 250px;
  }

  .profile-orbit-ring {
    width: 255px;
    height: 255px;
  }

  .hero-name-title {
    font-size: clamp(2.8rem, 12vw, 5rem);
    margin-top: 3rem;
  }
}

/* ───────────────────────────────────────────────────────────────
   FUTURISTIC BACKGROUND / GRID / PARTICLES (Feature 4)
   ─────────────────────────────────────────────────────────────── */
/* repeating-linear-gradient scanline pattern removed */

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.perspective-grid-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  perspective: 250px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.perspective-grid {
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(to right, rgba(255, 107, 53, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 107, 53, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(65deg);
  transform-origin: center bottom;
  animation: gridScroll 25s linear infinite;
}

@keyframes gridScroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.film-grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.75;
  filter: url(#grain-filter);
}

/* ───────────────────────────────────────────────────────────────
   FLOATING TOOL CARDS (Feature 8)
   ─────────────────────────────────────────────────────────────── */
.about-tools-wrap {
  margin-top: 2rem;
  width: 100%;
}

.tools-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  transition: all var(--t-fast);
}

.tool-card:hover {
  background: rgba(255, 107, 53, 0.05);
  border-color: rgba(255, 107, 53, 0.35);
  transform: translateY(-4px);
}

.tool-icon {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--accent);
  background: rgba(255, 107, 53, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 107, 53, 0.2);
  flex-shrink: 0;
}

.tool-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
}

.float-card-1 { animation: floatDrift1 4.5s ease-in-out infinite alternate; }
.float-card-2 { animation: floatDrift2 5.0s ease-in-out infinite alternate; }
.float-card-3 { animation: floatDrift3 4.2s ease-in-out infinite alternate; }
.float-card-4 { animation: floatDrift4 5.3s ease-in-out infinite alternate; }

@keyframes floatDrift1 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-5px) rotate(1deg); }
}
@keyframes floatDrift2 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(-1deg); }
}
@keyframes floatDrift3 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-4px) rotate(-1.5deg); }
}
@keyframes floatDrift4 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-7px) rotate(1.2deg); }
}

/* ───────────────────────────────────────────────────────────────
   JOURNEY EXPERIENCE TIMELINE (Feature 6)
   ─────────────────────────────────────────────────────────────── */
.section-journey {
  background: var(--bg-section-1);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 3.5rem auto 0;
  padding: 1.5rem 0;
}

.timeline-line-svg {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 10px;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-line-bg {
  stroke: rgba(255, 255, 255, 0.06);
}

.timeline-line-progress {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.timeline-items {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  width: 50%;
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item.right {
  align-self: flex-end;
  justify-content: flex-start;
  margin-left: 50%;
}

.timeline-dot {
  position: absolute;
  right: -6px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--border);
  z-index: 10;
  transition: all var(--t-fast);
}

.timeline-item.right .timeline-dot {
  left: -6px;
  right: auto;
}

.timeline-item.active .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scale(1.25);
}

.timeline-content {
  width: min(400px, 90%);
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all var(--t-med);
}

.timeline-item.left .timeline-content {
  margin-right: 2.2rem;
}

.timeline-item.right .timeline-content {
  margin-left: 2.2rem;
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 107, 53, 0.25);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.05);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.timeline-logo {
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.timeline-meta-text {
  flex-grow: 1;
}

.role-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.company-name {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.date-range {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.timeline-desc {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (max-width: 768px) {
  .timeline-container {
    padding-left: 20px;
  }
  .timeline-line-svg {
    left: 20px;
    transform: none;
  }
  .timeline-item {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 2.2rem;
  }
  .timeline-item.right {
    margin-left: 0;
  }
  .timeline-dot {
    left: 14px;
    right: auto;
  }
  .timeline-item.right .timeline-dot {
    left: 14px;
  }
  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    margin-left: 2.2rem;
    margin-right: 0;
    width: calc(100% - 2.2rem);
  }
}

/* ───────────────────────────────────────────────────────────────
   RAW vs RENDERED SLIDER (Feature 3)
   ─────────────────────────────────────────────────────────────── */
.section-comparison {
  background: var(--bg-section-2);
  border-top: 1px solid var(--border);
}

.compare-wrapper {
  max-width: 900px;
  margin: 3rem auto 0;
}

.compare-container {
  position: relative;
  width: 100%;
  height: 480px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.65);
  user-select: none;
  touch-action: none;
}

.compare-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.left-pane .compare-img {
  filter: grayscale(80%) contrast(0.8) brightness(0.95);
}

.right-pane .compare-img {
  filter: saturate(1.6) contrast(1.1) brightness(1.05);
}

.right-pane {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
}

.compare-label {
  position: absolute;
  bottom: 1.5rem;
  z-index: 5;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  text-transform: uppercase;
}

.raw-label {
  left: 1.5rem;
  background: rgba(6, 6, 6, 0.8);
  color: var(--muted);
}

.render-label {
  right: 1.5rem;
  background: rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.35);
  color: var(--white);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

.handle-line {
  flex-grow: 1;
  width: 1px;
  background: rgba(255, 107, 53, 0.4);
}

.handle-circle {
  width: 44px;
  height: 44px;
  background: #060606;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  cursor: ew-resize;
  pointer-events: auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 107, 53, 0.25);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.compare-handle:active .handle-circle,
.compare-container:hover .handle-circle {
  transform: scale(1.08);
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 480px) {
  .compare-container {
    height: 320px;
  }
}

/* ───────────────────────────────────────────────────────────────
   SUPABASE REST LOADER & SKELETON (Feature 5)
   ─────────────────────────────────────────────────────────────── */
.supabase-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  overflow: hidden;
  padding: 2rem;
  text-align: center;
}

.loading-pulse-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  animation: loadPulse 2.5s ease-in-out infinite alternate;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 107, 53, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loadSpin 0.9s linear infinite;
  margin-bottom: 1.25rem;
}

.loading-text {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  animation: loadTextPulse 1.5s ease-in-out infinite alternate;
}

@keyframes loadPulse {
  0% { transform: scale(0.85); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 1; }
}

@keyframes loadSpin {
  100% { transform: rotate(360deg); }
}

@keyframes loadTextPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Bouncing animation for scroll down arrow */
.scroll-indicator {
  animation: scrollIndicatorBounce 2.5s ease-in-out infinite;
}

@keyframes scrollIndicatorBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ══════════════════════════════════════════════════════
   LIGHT MODE THEME (Feature Add-on)
═════════════════════════════════════════════════════ */
.light-theme {
  --bg:           #f7f7f7;
  --bg-2:         #eeeeee;
  --bg-3:         #e0e0e0;
  --bg-card:      #ffffff;
  --accent:       #E05315;
  --accent-glow:  rgba(224, 83, 21, 0.18);
  --accent-dim:   rgba(224, 83, 21, 0.08);
  --gold:         #c99a18;
  --white:        #0c0c0c;
  --off-white:    #181818;
  --muted:        #6b6b6b;
  --border:       rgba(0, 0, 0, 0.08);
  --border-hover: rgba(224, 83, 21, 0.35);

  /* Section backgrounds in light theme */
  --bg-section-1: transparent;
  --bg-section-2: rgba(238, 238, 238, 0.45);
}

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

.portfolio-card, .service-card, .tool-card, .timeline-content, .contact-left, .form-input, #main-nav {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* Ensure elements contrast well in light theme */
.light-theme .about-img {
  filter: brightness(0.9) saturate(0.95);
}
.light-theme .hero-ghost-text {
  color: rgba(0, 0, 0, 0.04);
}
.light-theme .timeline-logo {
  background: rgba(0, 0, 0, 0.02);
}

/* ── Theme Toggle Button ─────────────────────────────────────────── */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.theme-toggle-btn:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-dim);
}

/* Mobile: shrink to icon-only */
@media (max-width: 768px) {
  .theme-toggle-btn {
    padding: 0.45rem 0.6rem;
  }
  .theme-toggle-label { display: none; }
}

/* ── Timeline Progress Glowing Line ────────────────────────────── */
.timeline-line-progress {
  filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 2px var(--accent));
  animation: timelineGlowPulse 2.5s infinite ease-in-out;
}

@keyframes timelineGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 1px var(--accent)); }
  50% { filter: drop-shadow(0 0 8px var(--accent)) drop-shadow(0 0 3px var(--accent)); }
}

/* ── Skills With Icons Layout ──────────────────────────────────── */
.skill-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skill-icon {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--accent);
  background: var(--accent-dim);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hover);
  flex-shrink: 0;
}

/* ── Float Card Animations 5 & 6 ───────────────────────────────── */
.float-card-5 { animation: floatDrift1 4.8s ease-in-out infinite alternate; }
.float-card-6 { animation: floatDrift3 5.2s ease-in-out infinite alternate; }

/* ── Global Futuristic Canvas Background ───────────────────────── */
.global-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.4s ease;
}
.light-theme .global-particles {
  opacity: 0.28;
}

/* ── Light Theme Text Shadow & Gradient Improvement ───────────── */
.light-theme .hero-name-title {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.16)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}
.light-theme .name-line {
  background: linear-gradient(135deg, var(--white) 25%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.light-theme .profile-badge {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(224, 83, 21, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.light-theme #cursor-glow {
  background: radial-gradient(circle, rgba(224, 83, 21, 0.06) 0%, rgba(224, 83, 21, 0.02) 45%, transparent 70%);
}

/* ── Light Theme Service Cards Glassmorphism Override ──────────── */
.light-theme .service-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.4) 100%);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.light-theme .service-card:hover {
  background: linear-gradient(135deg, rgba(224, 83, 21, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-color: rgba(224, 83, 21, 0.35);
  box-shadow: 0 12px 32px rgba(224, 83, 21, 0.08);
}

.light-theme .featured-service {
  border-color: rgba(224, 83, 21, 0.22);
  background: linear-gradient(135deg, rgba(224, 83, 21, 0.04) 0%, rgba(255, 255, 255, 0.65) 100%);
}

/* ── Light Theme Testimonial Cards Override ────────────────────── */
.light-theme .testimonial-card {
  background: radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.02) 0%, rgba(255, 215, 0, 0.01) 50%, #ffffff 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.light-theme .quote-symbol {
  color: #000000;
  opacity: 0.05;
}

.light-theme .testi-avatars-group .avatar-img {
  border-color: #ffffff;
}

.light-theme .carousel-progress-bar {
  background: rgba(0, 0, 0, 0.08);
}

/* ─── ALL PROJECTS GRID MODAL ────────────────────────────────── */
.all-projects-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.all-projects-modal[hidden] {
  display: none !important;
}

.all-projects-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.all-projects-content {
  position: relative;
  z-index: 2;
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 28px;
  width: 100%;
  max-width: 1200px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.all-projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(18, 18, 18, 0.8);
}

.all-projects-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.2rem;
}

.all-projects-title {
  color: #ff6b35 !important;
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin: 0 0 0.2rem;
}

.all-projects-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.all-projects-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  flex-shrink: 0;
}

.all-projects-close-btn:hover {
  color: #ffffff;
  border-color: #ff6b35;
  background: #ff6b35;
}

/* Modal Toolbar Controls (Filter Pills + Grid View Options) */
.all-projects-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 1.5rem;
  flex: 1;
}

.grid-view-options-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
}

.grid-view-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #ff6b35;
  font-weight: 600;
  white-space: nowrap;
}

.grid-view-pills {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.2rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-view-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.grid-view-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.grid-view-pill.active {
  color: #ffffff !important;
  background: #ff6b35 !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

#grid-frame-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

#grid-frame-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff6b35;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
  transition: transform 0.15s ease;
}

#grid-frame-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Modal Empty State Styling */
.modal-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 107, 53, 0.3);
  border-radius: 16px;
  margin: 1rem 0;
  gap: 0.75rem;
}

.empty-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.empty-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: #ff6b35;
  margin: 0;
  letter-spacing: 0.02em;
}

.empty-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 420px;
  margin: 0;
  line-height: 1.5;
}

.reset-filter-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 107, 53, 0.5);
  border-radius: 99px;
  color: #ff6b35;
  cursor: pointer;
  transition: all 0.25s ease;
}
.reset-filter-btn:hover {
  background: #ff6b35;
  color: #ffffff;
}

/* Modal Filter Pills */
.modal-filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.modal-filter-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--t-fast);
  cursor: pointer;
}

.modal-filter-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.modal-filter-btn.active {
  color: #ffffff !important;
  background: #ff6b35 !important;
  border-color: #ff6b35 !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* All Projects Grid Container */
.all-projects-grid {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

/* YouTube Channel Layout Sections */
.modal-section-block {
  width: 100%;
}

.modal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-section-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #ff6b35 !important;
  margin: 0;
  letter-spacing: 0.03em;
}

.modal-section-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Widescreen 16:9 Grid */
.yt-widescreen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--modal-card-size, 300px), 1fr));
  gap: 1.5rem;
}

/* Shorts 9:16 Grid */
.yt-shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--modal-card-size, 280px) * 0.7), 1fr));
  gap: 1.25rem;
}

/* YouTube Card Layout */
.yt-card {
  background: #111111 !important;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
}

.yt-card:hover {
  transform: translateY(-4px) !important;
  border-color: #ff6b35 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 107, 53, 0.3) !important;
}

.yt-card-media {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-9-16 {
  aspect-ratio: 9 / 16;
}

.yt-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  border-radius: 16px 16px 0 0;
}

.yt-duration {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  z-index: 5;
}

.yt-shorts-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: #ff6b35;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 5;
}

.yt-card-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.yt-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.yt-card-title {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff !important;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-card:hover .yt-card-title {
  color: #ff6b35 !important;
}

.yt-dots {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1;
}

.yt-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.yt-category-pill {
  background: rgba(255, 107, 53, 0.15);
  color: #ff6b35;
  border: 1px solid rgba(255, 107, 53, 0.3);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.yt-card-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  margin: 0.2rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════ */

.portfolio-carousel-container,
.portfolio-carousel-wrap,
.portfolio-track {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Prevent iOS Safari 16px auto-zoom on input focus */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Tablet & Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
  /* Navigation Bar */
  #main-nav {
    padding: 0.6rem 1rem;
  }
  .nav-inner {
    padding: 0;
  }
  .brand-logo {
    height: 24px;
    max-width: 140px;
  }
  .theme-toggle-label {
    display: none; /* Icon-only theme toggle on mobile */
  }
  .theme-toggle-btn {
    padding: 0.4rem 0.6rem;
  }
  .btn-nav {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
  }

  /* Hero Section */
  .hero-centered {
    padding: 5rem 1rem 3rem;
  }
  .hero-title {
    font-size: clamp(2rem, 8.5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  .hero-sub {
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 100%;
    margin: 1rem auto 1.5rem;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 0.75rem;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-stats {
    gap: 0.75rem 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
  }
  .stat-num {
    font-size: 1.75rem;
  }
  .stat-label {
    font-size: 0.7rem;
  }
  .filmstrip {
    display: none !important;
  }

  /* Work Section & Filter Tabs */
  .work-filters {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.4rem;
    width: 100%;
    padding: 0.4rem 0.5rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .work-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
  }

  /* 3D Carousel & Cards on Mobile */
  .portfolio-carousel-container {
    height: 440px;
    overflow: hidden;
  }
  .portfolio-carousel-wrap {
    height: 400px;
  }
  .portfolio-card {
    width: 220px;
    height: 350px;
    border-radius: 18px;
  }
  .card-media,
  .hover-video,
  .hover-video.autoplay-reel-video {
    border-radius: 18px;
  }
  .card-info {
    padding: 0.85rem;
  }
  .card-title {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }
  .card-desc {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
    margin-bottom: 0.5rem;
  }

  /* Carousel Navigation Buttons on Mobile */
  .work-side-btn {
    width: 44px !important;
    height: 44px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5) !important;
  }
  #work-prev-btn {
    left: 8px !important;
  }
  #work-next-btn {
    right: 8px !important;
  }
  .work-controls {
    margin-top: 0.25rem !important;
  }

  /* Showreel Section */
  .section-showreel {
    padding: 3rem 1rem;
  }
  .showreel-header {
    margin-bottom: 1.5rem;
  }
  .showreel-controls-bar {
    padding: 0.5rem 0.75rem;
  }

  /* Mobile Back To Top Button Position (Positioned ABOVE the Mac Dock bar) */
  .back-to-top {
    bottom: 80px !important;
    right: 16px !important;
    z-index: 9999 !important;
    width: 42px !important;
    height: 42px !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6) !important;
  }

  /* All Projects Modal Popup on Mobile */
  .all-projects-modal {
    padding: 0.5rem;
  }
  .all-projects-content {
    max-height: 95vh;
    border-radius: 20px;
    width: 100%;
  }
  .all-projects-header {
    position: relative !important;
    padding: 1.25rem 1rem 0.85rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  .all-projects-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding-right: 36px;
    padding-left: 36px;
  }
  .all-projects-title {
    font-size: 1.4rem !important;
    text-align: center;
    margin: 0 0 0.25rem;
  }
  .all-projects-sub {
    font-size: 0.78rem;
    text-align: center;
    margin: 0;
  }
  .all-projects-close-btn {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 100 !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
  }
  .all-projects-controls {
    width: 100%;
    margin: 0;
    gap: 0.6rem;
    justify-content: center;
  }

  /* Hide Grid View Options Pills on Mobile View */
  .grid-view-options-wrap {
    display: none !important;
  }

  /* Modal Filters Horizontal Scroll on Mobile */
  .modal-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 3px;
  }
  .modal-filters::-webkit-scrollbar {
    display: none;
  }
  .modal-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .all-projects-grid {
    padding: 0.85rem 0.65rem;
    gap: 1.25rem;
  }

  /* Modal Video Grids for Mobile: 2 Reels side-by-side on 9:16 grid */
  .yt-shorts-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 0.75rem !important;
  }
  .yt-widescreen-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .yt-card-body {
    padding: 0.65rem 0.75rem 0.85rem;
  }
  .yt-card-title {
    font-size: 0.92rem;
  }

  /* Lightbox Video Player Modal (#video-modal) on Mobile */
  .video-modal {
    padding: 0.5rem;
  }
  .modal-content {
    width: 96%;
    max-height: 88vh;
    border-radius: 16px;
  }
  .modal-close-btn {
    top: -45px;
    right: 0;
    width: 38px;
    height: 38px;
  }
}

/* Extra Small Mobile Devices (< 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .portfolio-card {
    width: 200px;
    height: 330px;
  }
  .portfolio-carousel-container {
    height: 410px;
  }
  .portfolio-carousel-wrap {
    height: 370px;
  }
  .work-side-btn {
    width: 38px !important;
    height: 38px !important;
  }
  #work-prev-btn { left: 4px !important; }
  #work-next-btn { right: 4px !important; }

  .yt-shorts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem !important;
  }
}

.portfolio-card,
.all-projects-content,
.video-modal .modal-content,
.back-to-top,
.work-side-btn,
.brand-logo {
  will-change: transform, opacity;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   STARFIELD BUTTON (Originkit Interactive Effect)
   ═══════════════════════════════════════════════════════════════ */
.starfield-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  padding: 1px;
  border-radius: 9999px;
  background: transparent;
  outline: none;
  border: none;
  transition: transform 0.35s cubic-bezier(0.44, 0, 0.56, 1);
  overflow: visible;
}

.starfield-btn:hover {
  transform: scale(1.04);
}

.starfield-btn:active {
  transform: scale(0.96);
}

.starfield-track {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
  z-index: 0;
  transition: border-color 0.3s ease;
}

.starfield-btn:hover .starfield-track {
  border-color: rgba(255, 107, 53, 0.5);
}

.starfield-band {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.starfield-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  margin-top: -48px;
  margin-left: -48px;
  pointer-events: none;
  background: radial-gradient(circle, #FC731C 0%, rgba(252, 115, 28, 0.8) 30%, rgba(252, 115, 28, 0) 72%);
  border-radius: 50%;
  will-change: transform;
}

.starfield-face {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 2.2rem;
  border-radius: 9999px;
  background: #0A0A0A;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  overflow: hidden;
  width: 100%;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease, color 0.3s ease;
}

.starfield-btn-nav .starfield-face {
  padding: 0.55rem 1.35rem;
  font-size: 0.82rem;
  gap: 6px;
}

.starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.starfield-inner-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 9999px;
  border: 2px solid #FC731C;
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.starfield-btn:hover .starfield-inner-glow {
  opacity: 0.85;
}

.starfield-text {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  font-family: inherit;
}

.starfield-icon {
  position: relative;
  z-index: 2;
  color: #FC731C;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.starfield-btn:hover .starfield-icon {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM PILL THEME TOGGLE SWITCH (Sun / Moon Reference UI)
   ═══════════════════════════════════════════════════════════════ */
.theme-switch-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 68px;
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body.light-theme .theme-switch-pill {
  background: #E8E8ED;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #28282C;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.35s ease, box-shadow 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

/* Dark theme: Moon active (translateX(32px)) */
body:not(.light-theme) .theme-switch-thumb {
  transform: translateX(32px);
  background: #28282C;
}

/* Light theme: Sun active (translateX(0px)) */
body.light-theme .theme-switch-thumb {
  transform: translateX(0px);
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-switch-option {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.theme-icon {
  width: 17px;
  height: 17px;
  transition: stroke 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

/* Dark theme icon states */
body:not(.light-theme) .icon-sun {
  stroke: #71717A;
}

body:not(.light-theme) .icon-moon {
  stroke: #22C55E;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
}

/* Light theme icon states */
body.light-theme .icon-sun {
  stroke: #22C55E;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
}

body.light-theme .icon-moon {
  stroke: #52525B;
}

.theme-switch-pill:hover {
  transform: scale(1.05);
}

.theme-switch-pill:active {
  transform: scale(0.95);
}

/* ═══════════════════════════════════════════════════════════════
   ARROW REVEAL BUTTON (Originkit Interactive Expansion Effect)
   ═══════════════════════════════════════════════════════════════ */
.arrow-reveal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.95rem 1.15rem 0.95rem 2.2rem;
  border-radius: 9999px;
  background: #0A0A0A;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.44, 0, 0.56, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

body.light-theme .arrow-reveal-btn {
  background: #121214;
  color: #FFFFFF;
}

.arrow-reveal-btn:hover {
  border-color: rgba(252, 115, 28, 0.6);
  transform: scale(1.03);
  box-shadow: 0 14px 30px rgba(252, 115, 28, 0.25);
}

.arrow-reveal-btn:active {
  transform: scale(0.96);
}

.arrow-reveal-text {
  position: relative;
  z-index: 3;
  color: #FFFFFF;
  transition: transform 0.46s cubic-bezier(0.44, 0, 0.56, 1), color 0.35s ease;
}

.arrow-reveal-btn:hover .arrow-reveal-text {
  transform: translateX(-4px);
  color: #FFFFFF;
}

.arrow-reveal-slot {
  position: relative;
  z-index: 0;
  width: 36px;
  height: 36px;
  flex: none;
}

/* Expanding Badge Background (Matches Hire Me Orange Accent #FC731C) */
.arrow-reveal-badge {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 12px;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border-radius: 50%;
  background: #FC731C;
  transform: scale(1);
  transform-origin: center center;
  pointer-events: none;
  transition: transform 0.52s cubic-bezier(0.44, 0, 0.56, 1);
  box-shadow: 0 4px 14px rgba(252, 115, 28, 0.45);
}

.arrow-reveal-btn:hover .arrow-reveal-badge {
  transform: scale(15);
}

/* Rotating Arrow Icon */
.arrow-reveal-icon {
  position: absolute;
  z-index: 3;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  pointer-events: none;
  transition: transform 0.46s cubic-bezier(0.44, 0, 0.56, 1);
}

.arrow-reveal-btn:hover .arrow-reveal-icon {
  transform: translateY(-50%) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL PERFORMANCE & RENDERING OPTIMIZATIONS (120FPS Smoothness)
   ═══════════════════════════════════════════════════════════════ */
.section-work,
.section-journey,
.section-about,
.section-shorts,
.section-contact {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.portfolio-card,
.all-projects-content,
.starfield-btn,
.arrow-reveal-btn,
.theme-switch-pill,
.dock-item,
.back-to-top,
.main-nav {
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Hardware accelerated scrolling for touch devices */
body, .all-projects-modal, .video-modal {
  -webkit-overflow-scrolling: touch;
}

/* Optimized rendering for images, SVGs, and canvases */
img, svg, canvas {
  transform: translateZ(0);
}






