/* ==========================================================================
   ARTUR GALLI (@galli.editor) - PORTFOLIO DESIGN SYSTEM
   Aesthetic: Light Mode / Frutiger Aero / Tech-Blueprint
   Typography: Geist & Geist Mono (Variable) + Geist Pixel
   ========================================================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  
  --accent-cyan: #0ea5e9;
  --accent-cyan-light: #38bdf8;
  --accent-magenta: #d946ef;
  --accent-green: #22c55e;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --font-pixel: 'Geist Pixel', 'Geist Mono', monospace;
  
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-halo: 0 20px 60px -15px rgba(56, 189, 248, 0.25), 0 30px 80px -20px rgba(217, 70, 239, 0.18);
}

/* ==========================================================================
   Custom 3D Cursors (Fine pointer devices only with Retina @2x support)
   ========================================================================== */
@media (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: -webkit-image-set(url('cursor-default.png') 1x, url('cursor-default@2x.png') 2x) 4 4,
            image-set(url('cursor-default.png') 1x, url('cursor-default@2x.png') 2x) 4 4,
            auto;
  }

  html, body {
    cursor: -webkit-image-set(url('cursor-default.png') 1x, url('cursor-default@2x.png') 2x) 4 4,
            image-set(url('cursor-default.png') 1x, url('cursor-default@2x.png') 2x) 4 4,
            auto;
  }

  a, 
  a *,
  button, 
  button *,
  input[type="button"], 
  input[type="submit"], 
  input[type="reset"],
  input[type="range"], 
  select, 
  [role="button"], 
  [role="slider"],
  .btn-primary,
  .btn-primary *,
  .btn-secondary, 
  .btn-secondary *,
  .start-video-btn, 
  .start-video-btn *,
  .showreel-frame,
  .player-ctrl-btn, 
  .player-ctrl-btn *,
  .player-progress-container, 
  .copy-email-btn, 
  .copy-email-btn *,
  label[for] {
    cursor: -webkit-image-set(url('cursor-pointer.png') 1x, url('cursor-pointer@2x.png') 2x) 10 2,
            image-set(url('cursor-pointer.png') 1x, url('cursor-pointer@2x.png') 2x) 10 2,
            pointer !important;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    cursor: text !important;
  }
}

@media (pointer: coarse) {
  *,
  *::before,
  *::after,
  html, body {
    cursor: auto !important;
  }
  a, button, [role="button"], [role="slider"], input[type="range"] {
    cursor: pointer !important;
  }
}

/* ==========================================================================
   Base & Blueprint Grid Layout
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  position: relative;
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.038) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
  font-family: var(--font-sans);
}

/* Minimalist Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(248, 250, 252, 0.7);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.45) 0%,
    rgba(217, 70, 239, 0.45) 50%,
    rgba(34, 197, 94, 0.4) 100%
  );
  border-radius: 9999px;
}

@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
      180deg,
      #0ea5e9 0%,
      #d946ef 50%,
      #22c55e 100%
    );
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 70, 239, 0.45) transparent;
}

/* Selection: Visible and Accessible */
::selection {
  background-color: rgba(56, 189, 248, 0.28);
  color: #0f172a;
}

::-moz-selection {
  background-color: rgba(56, 189, 248, 0.28);
  color: #0f172a;
}

:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffffff, 
              0 0 0 4px #0284c7, 
              0 0 14px 2px rgba(56, 189, 248, 0.5) !important;
}

/* ==========================================================================
   Ambient Background Layer & Holographic Orbs
   ========================================================================== */
.aero-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  min-height: 100dvh;
}

.aero-orb-1 {
  position: absolute;
  top: -80px;
  left: 50%;
  width: 780px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.35) 0%, rgba(217, 70, 239, 0.22) 45%, rgba(34, 197, 94, 0.14) 70%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orb-float-1 20s ease-in-out infinite alternate;
  translate: var(--orb1-x, 0px) var(--orb1-y, 0px);
}

.aero-orb-2 {
  position: absolute;
  top: 600px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28) 0%, rgba(217, 70, 239, 0.2) 40%, rgba(34, 197, 94, 0.12) 65%, transparent 75%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
  animation: orb-float-2 18s ease-in-out infinite alternate;
  translate: var(--orb2-x, 0px) var(--orb2-y, 0px);
}

@keyframes orb-float-1 {
  0% { transform: translateX(-50%) translateY(0px) scale(1); }
  50% { transform: translateX(-48%) translateY(28px) scale(1.06); }
  100% { transform: translateX(-52%) translateY(-22px) scale(0.96); }
}

@keyframes orb-float-2 {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-38px) translateX(-28px) scale(1.1); }
  100% { transform: translateY(22px) translateX(22px) scale(0.95); }
}

/* ==========================================================================
   Glassmorphic Panels (Single Source of Truth)
   ========================================================================== */
.glass-panel {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

/* Status Indicator */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #15803d;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .status-indicator {
    display: none !important;
  }
}

/* Header Brand & Stacked Mobile Wordmark */
.header-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-stacked {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  letter-spacing: -0.025em;
  padding: 2px 0;
}

.brand-line {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.header-brand:hover .brand-line {
  color: var(--accent-blue);
}

.status-dot-inline {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
  margin-left: 5px;
  position: relative;
  flex-shrink: 0;
}

.status-dot-inline::after {
  content: "";
  position: absolute;
  inset: -2.5px;
  border-radius: 50%;
  background-color: var(--accent-green);
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.status-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background-color: var(--accent-green);
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--accent-green);
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   Typography & Flowing Animated Gradients
   ========================================================================== */
.font-mono {
  font-family: var(--font-mono);
  font-feature-settings: "zero" 1, "ss01" 1;
}

.font-pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0;
}

.animated-glow-gradient {
  background: linear-gradient(
    115deg,
    #0284c7 0%,
    #4f46e5 25%,
    #c026d3 50%,
    #db2777 75%,
    #059669 90%,
    #0284c7 100%
  );
  background-size: 260% 260%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  display: inline !important;
  animation: flowing-gradient-smooth 5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  filter: drop-shadow(0 0 14px rgba(2, 132, 199, 0.35))
          drop-shadow(0 0 28px rgba(192, 38, 211, 0.25));
}

@keyframes flowing-gradient-smooth {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ==========================================================================
   Page Load & Scroll Entrance Animations (Frutiger Aero Choreography)
   ========================================================================== */
@keyframes aero-header-drop {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aero-fade-up {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aero-showreel-entrance {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

header {
  animation: aero-header-drop 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-headline {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: clamp(1.85rem, 5.5vw, 3.85rem);
  line-height: 1.15;
  animation: aero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-subheadline {
  width: fit-content;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  animation: aero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-ctas-group {
  animation: aero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

/* Scroll reveal classes for below-the-fold content */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(
    115deg,
    #38bdf8 0%,
    #818cf8 25%,
    #c084fc 50%,
    #f472b6 75%,
    #34d399 100%
  );
  background-size: 220% 220%;
  animation: button-gradient-flow 4.5s ease-in-out infinite alternate;
  color: #0f172a;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px -2px rgba(56, 189, 248, 0.45), 0 8px 24px -4px rgba(217, 70, 239, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

@keyframes button-gradient-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.btn-primary * {
  color: #0f172a !important;
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px -2px rgba(56, 189, 248, 0.65), 0 14px 36px -4px rgba(217, 70, 239, 0.5);
    filter: brightness(1.05);
  }
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary.header-cta {
  font-size: 0.75rem;
  padding: 8px 16px;
  min-height: 38px;
  border-radius: 10px;
  box-shadow: 0 3px 12px -2px rgba(56, 189, 248, 0.4), 0 5px 16px -3px rgba(217, 70, 239, 0.3);
}

.header-cta-short {
  display: none;
}

@media (max-width: 400px) {
  .header-cta-full {
    display: none;
  }
  .header-cta-short {
    display: inline;
  }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ==========================================================================
   Showreel Player & Video Frame
   ========================================================================== */
.showreel-wrapper {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  animation: aero-showreel-entrance 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

.showreel-halo {
  position: absolute;
  inset: -8px -8px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.35) 0%, rgba(217, 70, 239, 0.25) 45%, rgba(34, 197, 94, 0.15) 70%, transparent 85%);
  border-radius: 36px;
  filter: blur(32px);
  opacity: 0.75;
  transition: opacity 0.4s ease, filter 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .showreel-wrapper:hover .showreel-halo {
    opacity: 0.95;
    filter: blur(38px);
  }
}

.showreel-frame {
  position: relative;
  z-index: 1;
  background: #060d1a url('showreel-poster.jpg') center/cover no-repeat;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.16);
  aspect-ratio: 16 / 9;
  transform: translateZ(0);
}

/* Video Ambient Loader Overlay */
.video-loading-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.92) 0%, rgba(2, 6, 23, 0.98) 100%);
  z-index: 5;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
  pointer-events: none;
}

.video-loading-placeholder.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.video-loader-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(217, 70, 239, 0.2) 50%, transparent 70%);
  filter: blur(40px);
  animation: pulse-ring 2.5s ease-in-out infinite;
}

.video-loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.video-loader-spinner {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #38bdf8;
  border-right-color: #d946ef;
  border-radius: 50%;
  animation: spin-loader 0.85s linear infinite;
}

@keyframes spin-loader {
  to { transform: rotate(360deg); }
}

.video-loader-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #cbd5e1;
  text-transform: uppercase;
}

.showreel-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;
}

.showreel-iframe.interactive {
  z-index: 2;
}

/* Start Button */
.start-video-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 45px -8px rgba(0, 0, 0, 0.65), 0 0 35px rgba(56, 189, 248, 0.45);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .start-video-btn:hover {
    background: rgba(15, 23, 42, 0.98);
    transform: translateX(-50%) scale(1.05);
    border-color: var(--accent-cyan-light);
    box-shadow: 0 20px 55px -8px rgba(0, 0, 0, 0.75), 0 0 45px rgba(56, 189, 248, 0.6);
  }
}

.start-video-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px) scale(0.95);
}

.start-video-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  flex-shrink: 0;
}

.start-video-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.start-video-title {
  font-family: var(--font-pixel);
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.start-video-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Video Controls Bar */
.player-controls-bar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.player-controls-bar.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.player-controls-bar.is-idle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.player-ctrl-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .player-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-cyan-light);
    transform: scale(1.06);
  }
}

.player-ctrl-btn:active {
  transform: scale(0.95);
}

/* Scrubable Progress Bar */
.player-progress-container {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  outline: none;
}

.player-progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  overflow: hidden;
  transition: height 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .player-progress-container:hover .player-progress-track {
    height: 6px;
  }
}

.player-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 60%, #d946ef 100%);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.player-time-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
  white-space: nowrap;
  min-width: 78px;
  text-align: center;
  user-select: none;
}

/* Volume Slider */
.player-volume-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (hover: none) and (pointer: coarse) {
  .player-volume-slider-wrapper {
    display: none !important;
  }
}

.player-volume-slider-wrapper {
  display: flex;
  align-items: center;
}

.player-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    to right,
    #38bdf8 0%,
    #38bdf8 var(--vol, 100%),
    rgba(255, 255, 255, 0.25) var(--vol, 100%),
    rgba(255, 255, 255, 0.25) 100%
  );
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

.player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .player-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
  }
}

.player-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Inputs & Form
   ========================================================================== */
.tech-input {
  width: 100%;
  background: #ffffff;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 16px; /* Prevents iOS auto-zoom */
  color: var(--text-main);
  outline: none;
  background-clip: padding-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .tech-input:hover {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 12px -2px rgba(56, 189, 248, 0.2);
  }
}

.tech-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2), 0 0 16px rgba(2, 132, 199, 0.15);
}

.tech-input::placeholder {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ==========================================================================
   About Section: Floating Transparent Cutout & Floating Badge
   ========================================================================== */
.about-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-photo-halo {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 85vw);
  height: min(340px, 85vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(217, 70, 239, 0.25) 50%, rgba(34, 197, 94, 0.12) 70%, transparent 85%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-image-wrapper:hover .about-photo-halo {
    opacity: 1;
    filter: blur(60px);
  }
}

.about-photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  background: transparent;
  filter: drop-shadow(0 15px 35px rgba(15, 23, 42, 0.15)) drop-shadow(0 0 35px rgba(56, 189, 248, 0.25));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-image-wrapper:hover .about-photo-img {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 20px 45px rgba(15, 23, 42, 0.2)) drop-shadow(0 0 45px rgba(56, 189, 248, 0.38));
  }
}

.about-floating-badge {
  position: relative;
  z-index: 2;
  margin-top: -16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 32px -4px rgba(15, 23, 42, 0.12), 0 0 24px rgba(56, 189, 248, 0.22);
  padding: 8px 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-floating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -4px rgba(15, 23, 42, 0.16), 0 0 30px rgba(56, 189, 248, 0.3);
  }
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 768px) {
  .aero-orb-1 {
    width: 90vw;
    max-width: 380px;
    height: 280px;
    top: -40px;
    filter: blur(55px);
  }

  .aero-orb-2 {
    width: 80vw;
    max-width: 320px;
    height: 320px;
    right: -20px;
    top: 500px;
    filter: blur(55px);
  }
  
  .showreel-frame {
    border-radius: 14px;
  }

  .showreel-halo {
    inset: -4px -4px;
    filter: blur(20px);
  }
}

@media (max-width: 640px) {
  .start-video-btn {
    bottom: 10px;
    padding: 6px 14px;
    gap: 7px;
    min-height: 34px;
    max-width: fit-content;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.35);
  }
  
  .start-video-icon-circle {
    width: 22px;
    height: 22px;
  }
  
  .start-video-icon-circle svg {
    width: 10px;
    height: 10px;
    margin-left: 1px;
  }

  .start-video-text {
    flex-direction: row;
    align-items: center;
  }
  
  .start-video-title {
    font-size: 0.74rem;
    white-space: nowrap;
    letter-spacing: 0.04em;
  }
  
  .start-video-sub {
    display: none !important;
  }
  
  /* Compact player controls <= 20% video height */
  .player-controls-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 4px 8px;
    gap: 6px;
    height: 32px;
    border-radius: 10px;
  }
  
  .player-ctrl-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 6px;
  }
  
  .player-ctrl-btn svg {
    width: 13px;
    height: 13px;
  }

  .player-progress-container {
    height: 26px;
  }

  .player-progress-track {
    height: 3px;
  }
  
  .player-volume-slider {
    width: 44px;
  }
  
  .player-time-text {
    font-size: 0.65rem;
    min-width: 54px;
  }

  .toast-notification {
    bottom: 16px;
    right: 16px;
    left: 16px;
    justify-content: center;
    font-size: 0.75rem;
    padding: 10px 16px;
  }
}

/* ==========================================================================
   Accessibility: Prefers-Reduced-Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .animated-glow-gradient,
  .btn-primary {
    animation: none !important;
    background-position: 0% 50% !important;
  }

  .aero-orb-1,
  .aero-orb-2 {
    animation: none !important;
    transform: none !important;
    translate: none !important;
  }

  .status-dot::after {
    animation: none !important;
  }

  header,
  .hero-headline,
  .hero-subheadline,
  .showreel-wrapper,
  .hero-ctas-group,
  .reveal-on-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}