/* ===================================================================
   OSKAR JÓRCZAK — FPV DRONE FILMMAKER & PILOT
   Version: Deep Midnight Navy & Champagne Gold (Minimalist Editorial)
   Clean, Calm, High-End & Typography-Driven
   =================================================================== */

:root {
  /* Primary Midnight Navy Palette */
  --navy-deep: #060d17;
  --navy-dark: #081220;
  --navy-surface: #0e1c2f;
  --navy-surface-hover: #142742;
  --navy-card: #0d1a2d;
  
  /* Champagne Gold / Warm Brass */
  --gold-primary: #b89047;
  --gold-hover: #cba358;
  --gold-light: #e0c58e;
  --gold-subtle: rgba(184, 144, 71, 0.12);
  --gold-border: rgba(184, 144, 71, 0.35);

  /* Deep Minimalist Canvas Backgrounds */
  --bg-page: #081220;               /* Deep navy atmosphere (exact footer tone) */
  --bg-surface: #0d1b2e;            /* Sleek navy cards */
  --bg-subtle: #0b1626;             /* Alternating section tone */
  --bg-nav: rgba(8, 18, 32, 0.92);  /* Glassmorphic deep navy */

  /* Borders & Dividers */
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-focus: rgba(184, 144, 71, 0.45);

  /* Clean Crisp White & Light Accents */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-white: #ffffff;
  --text-gold: #b89047;

  /* Clean human editorial font */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 12px 35px rgba(0, 0, 0, 0.55);

  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===================================================================
   AMBIENT OCEAN WAVES & 3D CAD DRONE STAGE (2026 MARITIME ATMOSPHERE)
   =================================================================== */
.bg-ocean-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-page);
}

.bg-ocean-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.19;
  filter: saturate(0.65) contrast(1.15) brightness(0.85);
  transform: scale(1.04);
  will-change: opacity;
}

.bg-ocean-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(8, 18, 32, 0.40) 0%, rgba(8, 18, 32, 0.88) 100%),
              linear-gradient(180deg, rgba(8, 18, 32, 0.45) 0%, rgba(8, 18, 32, 0.94) 100%);
  mix-blend-mode: multiply;
}

.bg-drone-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.90;
}

.fpv-hud-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto 1fr auto;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  color: rgba(224, 197, 142, 0.40);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  user-select: none;
}

.hud-tl { grid-column: 1; grid-row: 1; justify-self: start; align-self: start; }
.hud-tr { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; text-align: right; }
.hud-center { grid-column: 2; grid-row: 2; justify-self: center; align-self: center; position: relative; }
.hud-bl { grid-column: 1; grid-row: 3; justify-self: start; align-self: end; }
.hud-br { grid-column: 3; grid-row: 3; justify-self: end; align-self: end; text-align: right; }

.hud-corner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(184, 144, 71, 0.12);
  border: 1px solid rgba(184, 144, 71, 0.30);
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.hud-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 6px var(--gold-primary);
}

.hud-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff3b30;
  font-weight: 700;
}

.hud-rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 8px #ff3b30;
  animation: recPulse 1.4s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.hud-center {
  display: none !important;
}

.hud-crosshair {
  display: none !important;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(224, 197, 142, 0.30);
  border-radius: 50%;
  position: relative;
}
.hud-crosshair::before, .hud-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(224, 197, 142, 0.40);
}
.hud-crosshair::before {
  top: 50%; left: -6px; width: 34px; height: 1px; transform: translateY(-50%);
}
.hud-crosshair::after {
  left: 50%; top: -6px; width: 1px; height: 34px; transform: translateX(-50%);
}

.hud-horizon {
  position: absolute;
  width: 140px;
  height: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: transform 0.08s ease-out;
}
.hud-hz-tick {
  width: 32px;
  height: 1px;
  background: rgba(224, 197, 142, 0.35);
}
.hud-hz-center {
  width: 8px;
  height: 1px;
  background: rgba(224, 197, 142, 0.65);
}

.hud-mono {
  font-variant-numeric: tabular-nums;
  color: rgba(224, 197, 142, 0.60);
}

@media (max-width: 768px) {
  .fpv-hud-overlay {
    padding: 16px;
  }
  .hud-bl, .hud-br, .hud-center {
    display: none;
  }
}

/* Stacking Context for Foreground Sections */
header.hero, section, footer {
  position: relative;
  z-index: 3;
}

/* ===================================================================
   NAVBAR
   =================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand:hover .nav-logo {
  transform: rotate(-3deg) scale(1.08);
}

.nav-name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--gold-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 600;
  font-family: var(--font-sans);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: var(--gold-primary);
  color: #081220;
}

.nav-btn-contact {
  font-size: 0.84rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--gold-primary);
  color: #081220;
  transition: var(--transition);
}

.nav-btn-contact:hover {
  background: var(--gold-hover);
  color: #081220;
  box-shadow: 0 2px 14px rgba(184, 144, 71, 0.35);
}

/* Mobile Menu Toggle Button (Desktop hidden, Mobile visible) */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.nav-mobile-toggle:hover {
  background: rgba(184, 144, 71, 0.12);
  border-color: var(--gold-border);
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-mobile-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-mobile-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mobile-nav-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(8, 18, 32, 0.98);
  border-bottom: 1px solid var(--gold-border);
  padding: 24px 20px 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85);
  transform: translateY(-16px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: rgba(184, 144, 71, 0.10);
  color: var(--gold-primary);
}

.mobile-nav-footer {
  margin-top: 20px;
  padding-top: 10px;
}

.mobile-nav-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #081220;
  background: var(--gold-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(184, 144, 71, 0.35);
  text-decoration: none;
  transition: background 0.2s ease;
}

.mobile-nav-cta:hover, .mobile-nav-cta:active {
  background: var(--gold-hover);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  padding: 140px 0 90px;
  background: radial-gradient(circle at 30% 20%, rgba(16, 35, 61, 0.60) 0%, transparent 75%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-reel-portal {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 35px rgba(184, 144, 71, 0.15);
  background: var(--navy-dark);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-reel-portal:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.65), 0 0 45px rgba(184, 144, 71, 0.28);
}

.hero-reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.3s ease;
}

.hero-reel-portal:hover .hero-reel-video {
  opacity: 1;
}

.hero-reel-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(6, 13, 23, 0.85);
  backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.06em;
  border: 1px solid rgba(184, 144, 71, 0.3);
}

.hero-reel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 8px #ff3b30;
  animation: recPulse 1.4s ease-in-out infinite;
}

.hero-reel-play {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(6, 13, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  transition: var(--transition);
}

.hero-reel-portal:hover .hero-reel-play {
  background: var(--gold-primary);
  color: #081220;
  border-color: var(--gold-primary);
}

.hero-play-icon {
  font-size: 0.7rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  max-width: 820px;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 34px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  background: var(--gold-primary);
  color: #081220;
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(184, 144, 71, 0.28);
}

.btn-primary:hover {
  background: var(--gold-hover);
  color: #081220;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(184, 144, 71, 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(184, 144, 71, 0.08);
  transform: translateY(-1px);
}

/* ===================================================================
   SECTION COMMONS
   =================================================================== */
section {
  padding: 80px 0;
  scroll-margin-top: 80px;
}

.section-head {
  margin-bottom: 40px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 600px;
}

/* ===================================================================
   WORK / PORTFOLIO (SHOWCASE FILMSTRIP CAROUSEL)
   =================================================================== */
.work-section-head {
  margin-bottom: 22px;
}

.work-head-content {
  max-width: 720px;
}

.work-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.work-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.work-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.work-tab:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.work-tab.active {
  color: #081220;
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(184, 144, 71, 0.3);
}

.carousel-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid rgba(184, 144, 71, 0.22);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.carousel-hint-icon {
  color: var(--gold-primary);
  font-size: 0.88rem;
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.18); opacity: 1; }
}

/* ===================================================================
   WORK / PORTFOLIO (3D CONVEX REVOLVING CAROUSEL)
   =================================================================== */
.carousel-viewport {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 580px;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  padding: 20px 0 36px;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

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

.carousel-track.is-dragging {
  cursor: grabbing;
}

/* CAROUSEL CARD — 3D CYLINDRICAL POSITIONING */
.carousel-card {
  position: absolute;
  width: clamp(310px, 32vw, 440px);
  max-width: 440px;
  background: rgba(13, 27, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(184, 144, 71, 0.22);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.70), 0 0 25px rgba(184, 144, 71, 0.12);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Focal Active Card directly facing the spectator */
.carousel-card.is-active-front {
  border-color: var(--gold-primary);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(184, 144, 71, 0.32);
}

.carousel-card:hover {
  border-color: rgba(184, 144, 71, 0.65);
}

.work-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  overflow: hidden;
}

.work-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.90;
  transition: opacity 0.3s ease, transform 0.45s ease;
  pointer-events: none;
}

.carousel-card:hover .work-preview-video {
  opacity: 1;
  transform: scale(1.03);
}

.work-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(6, 13, 23, 0.88);
  backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(184, 144, 71, 0.2);
  z-index: 2;
}

.work-quality-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(6, 13, 23, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 144, 71, 0.35);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  z-index: 2;
}

.work-play-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(6, 13, 23, 0.88);
  backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: var(--transition);
  z-index: 2;
}

.play-triangle {
  font-size: 0.68rem;
}

.carousel-card:hover .work-play-badge {
  background: var(--gold-primary);
  color: #081220;
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px rgba(184, 144, 71, 0.4);
}

.work-info {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
  transition: var(--transition);
}

.carousel-card:hover .work-title {
  color: var(--gold-primary);
}

.work-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Clean, Human Editorial Subtext */
.work-meta {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.work-footer-cta {
  margin-top: 36px;
  text-align: center;
}

.work-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid rgba(184, 144, 71, 0.25);
  transition: var(--transition);
}

.work-yt-btn:hover {
  background: var(--gold-primary);
  color: #081220;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 144, 71, 0.3);
}

/* ===================================================================
   SERVICES
   =================================================================== */
#services {
  background: rgba(10, 20, 36, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: rgba(13, 27, 46, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--gold-primary);
  background: rgba(20, 39, 66, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(184, 144, 71, 0.15);
  transform: translateY(-4px);
}

.service-portal {
  margin-top: 20px;
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050b14;
  transition: border-color 0.3s ease;
}

.service-portal video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 0.35s ease, transform 0.4s ease;
}

.service-card:hover .service-portal video {
  opacity: 0.98;
  transform: scale(1.04);
}

.service-card:hover .service-portal {
  border-color: var(--gold-border);
}

.service-portal-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(6, 13, 23, 0.88);
  backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(184, 144, 71, 0.25);
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.service-card:hover .service-portal-tag {
  background: var(--gold-primary);
  color: #081220;
}

.service-num {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 14px;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   ABOUT
   =================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(229, 184, 107, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(229, 184, 107, 0.08);
  background: #060e18;
  user-select: none;
  cursor: grab;
  touch-action: pan-y;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-photo:active {
  cursor: grabbing;
}

.about-photo:hover {
  border-color: rgba(229, 184, 107, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 28px rgba(229, 184, 107, 0.15);
}

.about-timeline-canvas {
  display: none;
}

.about-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  border-radius: inherit;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-lead {
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.6;
  color: #ffffff;
}

.about-p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-highlight {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-primary);
  font-size: 0.9rem;
  color: #f8fafc;
  line-height: 1.6;
  box-shadow: var(--shadow-subtle);
}

/* ===================================================================
   CONTACT
   =================================================================== */
#contact {
  background: radial-gradient(circle at 50% 100%, #10233d 0%, var(--bg-page) 70%);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-subtle);
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--gold-primary);
  background: rgba(18, 35, 60, 0.65);
  transform: translateX(4px);
  box-shadow: var(--shadow-card-hover);
}

.contact-card-name {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.contact-card:hover .contact-card-name {
  color: var(--gold-primary);
}

.contact-card-arrow {
  font-size: 1.15rem;
  color: var(--gold-primary);
  transition: transform 0.25s ease;
}

.contact-card:hover .contact-card-arrow {
  transform: translate(3px, -3px);
}

/* ===================================================================
   FOOTER
   =================================================================== */
footer {
  padding: 38px 0;
  background: #050b14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #64748b;
  font-family: var(--font-sans);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-back-to-top {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-back-to-top:hover {
  color: var(--gold-primary);
  transform: translateY(-2px);
}

/* ===================================================================
   VIDEO MODAL (DARK CINEMATIC STAGE)
   =================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 9, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* 16:9 Landscape Cinema Default */
.modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid rgba(184, 144, 71, 0.45);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(184, 144, 71, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              aspect-ratio 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.3s ease;
}

/* 9:16 Vertical Smartphone / Reel Viewport (No black side wings) */
.modal-content.is-shorts {
  width: auto;
  height: min(84vh, 730px);
  max-width: min(410px, 92vw);
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  border: 1.5px solid rgba(184, 144, 71, 0.6);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.98), 0 0 45px rgba(184, 144, 71, 0.25);
}

.modal-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.modal-video-wrapper iframe,
.modal-video-wrapper video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000000;
  display: block;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 18, 32, 0.85);
  border: 1px solid rgba(184, 144, 71, 0.45);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 20;
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.modal-close-btn:hover {
  background: var(--gold-primary);
  color: #081220;
  border-color: var(--gold-primary);
  transform: scale(1.08);
}

/* ===================================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE, TABLET, DESKTOP)
   =================================================================== */

/* Prevent horizontal overflow on mobile viewports */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-overflow-scrolling: touch;
}

body.mobile-nav-open {
  overflow: hidden;
}

/* --- TABLET (max-width: 960px) --- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- MOBILE & PHONES (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Navigation */
  .navbar {
    height: 64px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-btn-contact {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-brand .nav-logo {
    width: 32px;
    height: 32px;
  }

  .nav-name {
    font-size: 0.90rem;
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-btn {
    font-size: 0.70rem;
    padding: 3px 8px;
  }

  /* 3D Drone Canvas background on mobile */
  .bg-drone-canvas {
    opacity: 0.55;
  }

  /* Sections general */
  section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-label {
    font-size: 0.70rem;
    margin-bottom: 6px;
  }

  .section-title {
    font-size: clamp(1.6rem, 5.5vw, 1.95rem);
  }

  .section-desc {
    font-size: 0.90rem;
    margin-top: 6px;
  }

  /* Hero Section */
  .hero {
    padding: 96px 0 52px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-tag {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: clamp(1.80rem, 7vw, 2.35rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.50;
    margin-bottom: 22px;
  }

  .hero-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .hero-reel-portal {
    margin-top: 4px;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.70);
  }

  /* Work / Selected Work Section */
  .work-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .work-toolbar {
    width: 100%;
    margin-bottom: 16px;
  }

  .work-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    padding-left: 2px;
    padding-right: 2px;
    width: 100%;
  }

  .work-tabs::-webkit-scrollbar {
    display: none;
  }

  .work-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 13px;
    font-size: 0.78rem;
  }

  section,
  #work,
  #services,
  #about,
  #contact {
    scroll-margin-top: 76px;
  }

  .carousel-viewport {
    min-height: 490px;
    perspective: 1100px;
    padding: 20px 0 28px;
    touch-action: pan-y;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  }

  .carousel-track {
    height: 450px;
    touch-action: pan-y;
  }

  .carousel-card {
    width: min(280px, 76vw);
    max-width: 300px;
    padding: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    touch-action: pan-y;
  }

  .work-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .work-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .work-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
    color: #ffffff;
  }

  .work-desc {
    font-size: 0.80rem;
    line-height: 1.36;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-muted);
  }

  .work-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: auto;
  }

  .work-meta span {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .work-play-badge {
    padding: 5px 11px;
    font-size: 0.70rem;
  }

  .work-footer-cta {
    margin-top: 20px;
  }

  .work-yt-btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    text-align: center;
    padding: 11px 18px;
    font-size: 0.84rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .service-num {
    font-size: 1.7rem;
    margin-bottom: 8px;
  }

  .service-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .service-desc {
    font-size: 0.88rem;
    line-height: 1.50;
  }

  .service-portal {
    height: 195px;
    border-radius: 10px;
    margin-top: 16px;
  }

  /* About */
  .about-photo {
    max-width: 250px;
    border-radius: var(--radius-md);
  }

  .about-lead {
    font-size: 1.02rem;
    line-height: 1.48;
    margin-bottom: 12px;
  }

  .about-p {
    font-size: 0.88rem;
    line-height: 1.54;
    margin-bottom: 12px;
  }

  .about-highlight {
    padding: 14px 16px;
    font-size: 0.85rem;
    line-height: 1.50;
    border-left-width: 3px;
  }

  /* Contact */
  .contact-channels {
    gap: 10px;
  }

  .contact-card {
    padding: 15px 18px;
    min-height: 52px;
  }

  .contact-card-name {
    font-size: 0.88rem;
  }

  .contact-card-arrow {
    font-size: 1.05rem;
  }

  /* Footer */
  footer {
    padding: 30px 0 36px;
  }

  .footer-inner {
    flex-direction: column-reverse;
    gap: 14px;
    text-align: center;
  }

  .footer-back-to-top {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  /* Video Modal */
  .video-modal {
    padding: 12px;
  }

  .modal-content {
    border-radius: 12px;
  }

  .modal-content.is-shorts {
    width: min(92vw, 370px);
    height: min(78vh, 600px);
    border-radius: 18px;
  }

  .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
}

/* --- SMALL MOBILE PHONES (max-width: 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 86px 0 44px;
  }

  .hero-title {
    font-size: clamp(1.65rem, 8vw, 2.05rem);
    line-height: 1.18;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 20px;
  }

  .carousel-viewport {
    min-height: 470px;
    perspective: 950px;
    padding: 16px 0 24px;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  }

  .carousel-track {
    height: 430px;
  }

  .carousel-card {
    width: min(270px, 75vw);
    max-width: 290px;
    padding: 0;
  }

  .work-info {
    padding: 12px 14px 14px;
  }

  .work-title {
    font-size: 0.92rem;
    line-height: 1.24;
    margin-bottom: 5px;
  }

  .work-desc {
    font-size: 0.76rem;
    line-height: 1.34;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .work-meta {
    padding-top: 8px;
    gap: 5px;
  }

  .work-meta span {
    font-size: 0.64rem;
    padding: 2px 7px;
  }

  .service-portal {
    height: 175px;
  }
}
