@font-face {
    font-family: 'Stanwick';
    src: url('Assets/Fonts/Stanwick.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Stanwick Outline';
    src: url('Assets/Fonts/Stanwick-Outline.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Stanwick Caligraphy';
    src: url('Assets/Fonts/Stanwick-Caligraphy.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Birds of Paradise';
    src: url('Assets/Fonts/Birds of Paradise.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'dinamica';
    src: url('Assets/Fonts/dinamica-script.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Dark Seed';
    src: url('Assets/Fonts/Dark Seed.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
/* ===========================
   ROOT VARIABLES
   =========================== */
:root {
  --cyber-white: #FFFFFF;
  --cyber-mint: #9EF4EB;
  --cyber-cyan: #00E6FF;
  --cyber-teal: #174853;
  --white: #FFFFFF;
  --white-soft: #FFFFFF;
  --gray-light: #9EF4EB;
  --gray: #00CBD6;
  --gradient-background: linear-gradient(90deg,
    #050A0D 0%,
    #050A0D 35%,
    #0B161C 65%,
    #174853 100%);
}

/* ===========================
   RESET & BASE
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  /*background: linear-gradient(135deg, #050A0D 0%, #174853 50%, #050A0D 100%);*/
  background: linear-gradient(90deg,
      #050A0D 0%,
      #050A0D 35%,
      #0B161C 65%,
      #174853 100%);
  color: var(--cyber-white);
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.bottom-12 {
  bottom: 3rem;
}

.top-8 {
  top: 2rem;
}

.right-8 {
  right: 2rem;
}

.top-1\/4 {
  top: 25%;
}

.top-1\/3 {
  top: 33.333%;
}

.left-8 {
  left: 2rem;
}

.right-12 {
  right: 3rem;
}

.z-50 {
  z-index: 50;
}

.z-30 {
  z-index: 30;
}

.z-10 {
  z-index: 10;
}

.z-modal {
  z-index: 200;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.block {
  display: block;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.shrink-0 {
  flex-shrink: 0;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.gap-12 {
  gap: 3rem;
}

.w-2 {
  width: 0.5rem;
}

.w-3 {
  width: 0.75rem;
}

.w-4 {
  width: 1rem;
}

.w-8 {
  width: 2rem;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-full {
  width: 100%;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.h-2 {
  height: 0.5rem;
}

.h-3 {
  height: 0.75rem;
}

.h-4 {
  height: 1rem;
}

.h-8 {
  height: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.text-7xl {
  font-size: 4.5rem;
  line-height: 1;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.tracking-2 {
  letter-spacing: 0.2em;
}

.tracking-3 {
  letter-spacing: 0.3em;
}

.tracking-4 {
  letter-spacing: 0.4em;
}

.leading-none {
  line-height: 1;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-center {
  text-align: center;
}

.text-white {
  color: #FFFFFF;
}

.text-gray {
  color: var(--gray);
}

.text-gray-light {
  color: var(--gray-light);
}

.text-amber-light {
  color: var(--cyber-mint);
}

.bg-amber-gold {
  background-color: var(--cyber-cyan);
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.py-28 {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.pt-20 {
  padding-top: 5rem;
}

.pt-24 {
  padding-top: 6rem;
}

.pt-28 {
  padding-top: 7rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pb-0 {
  padding-bottom: 0;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mt-20 {
  margin-top: 5rem;
}

.-mt-1 {
  margin-top: -0.25rem;
}

.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.border {
  border-width: 1px;
}

.border-amber-dim {
  border: 1px solid rgba(0, 230, 255, 0.4);
}

.border-t-amber {
  border-top: 1px solid rgba(0, 230, 255, 0.2);
}

.border-t-amber-faint {
  border-top: 1px solid rgba(0, 230, 255, 0.1);
}

.border-white-20 {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-black-95 {
  background: rgba(5, 10, 13, 0.95);
}

.bg-featured {
  background:
    radial-gradient(circle at 55% 18%,
      rgba(0, 203, 214, .65) 0%,
      rgba(0, 203, 214, 0) 45%),

    radial-gradient(circle at 82% 82%,
      rgba(0, 203, 214, .55) 0%,
      rgba(0, 203, 214, 0) 40%),

    radial-gradient(circle at 100% 10%,
      rgba(5, 10, 13, .45) 0%,
      rgba(5, 10, 13, 0) 45%),

    linear-gradient(135deg,
      #0B161C 0%,
      #174853 35%,
      #00CBD6 65%,
      #00CBD6 100%);
}

.bg-contact {
  background: #050A0D;
}

.bg-footer {
  background: #050A0D;
}

.transition {
  transition: all 0.3s ease;
}

.pointer-events-none {
  pointer-events: none;
}

.aspect-video {
  aspect-ratio: 16 / 9;
  position: relative;
}

.space-y-3>*+* {
  margin-top: 0.75rem;
}

/* ===========================
   GLASSMORPHISM
   =========================== */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 230, 255, 0.2);
}

/* ===========================
   SCROLL PROGRESS
   =========================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--cyber-cyan), var(--cyber-mint));
  z-index: 100;
  transition: width 0.1s ease;
}

.mt-4 {
  margin-top: 1rem;
}

/* ===========================
   NAVBAR
   =========================== */
#navbar {
  transition: transform 0.3s ease;
}

#navbar.hidden-nav {
  transform: translateY(-100%);
}

#navbar.visible-nav {
  transform: translateY(0);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}

.logo-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #00E6FF, #9EF4EB);
}

.logo-initials {
  color: var(--cyber-teal);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
}

.nav-links-container {
  gap: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===========================
   NAV LINKS
   =========================== */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
  color: var(--cyber-white);
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyber-mint);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyber-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-contact {
  padding: 0.6rem 2rem;
  border-radius: 9999px;
  border: 1px solid var(--cyber-cyan);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cyber-white);
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: var(--cyber-cyan);
  color: var(--cyber-teal);
}

/* ===========================
   HERO
   =========================== */
.hero-canvas {
  opacity: 0.8;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 8rem);
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  background: var(--cyber-cyan);
  color: var(--cyber-teal);
  font-weight: 500;
  font-size: 1.125rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--cyber-mint);
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(158, 244, 235, 0.6);
  color: var(--cyber-mint);
  font-size: 1.125rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--cyber-mint);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.02);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow-icon {
  transform: translateX(3px);
}

a.btn-primary:hover .group-rotate {
  transform: rotate(45deg);
}

/* ===========================
   SCROLL HINT
   =========================== */
.scroll-hint {
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce-hint 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--cyber-cyan), transparent);
}

@keyframes bounce-hint {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ===========================
   PROJECT CARDS
   =========================== */
.project-card {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  position: relative;
  border-radius: 1.5rem;
  height: 520px;
  cursor: pointer;
}

.project-card:hover {
  transform: scale(1.03) translateY(-8px);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 10, 13, 0.7) 90%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 10, 13, 0.4), rgba(5, 10, 13, 0.6) 50%, rgba(5, 10, 13, 0.9));
}

.project-card .card-top {
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 10;
}

.project-card .card-category {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background: rgba(5, 10, 13, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cyber-mint);
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 1rem;
  color: white;
}

.project-card .card-desc {
  font-size: 1.125rem;
  color: var(--gray-light);
  max-width: 28rem;
}

.overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--cyber-mint);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.card-view-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  background: var(--cyber-cyan);
  color: var(--cyber-teal);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.project-card:hover .card-view-btn {
  background: var(--cyber-mint);
}

.view-all-line {
  width: 2rem;
  height: 1px;
  background: var(--cyber-mint);
  transition: width 0.3s ease;
}

button:hover .view-all-line {
  width: 3rem;
}

.hover-ivory:hover {
  color: var(--cyber-white);
}

.hover-amber:hover {
  color: var(--cyber-mint);
}

/* ===========================
   GRID LAYOUTS
   =========================== */
.grid.md\:grid-cols-2 {
  grid-template-columns: 1fr;
}

.grid.md\:grid-cols-3 {
  grid-template-columns: 1fr;
}

.grid.md\:grid-cols-12 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid.md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.md\:grid-cols-12 {
    grid-template-columns: repeat(12, 1fr);
  }

  .md\:col-span-5 {
    grid-column: span 5;
  }

  .md\:col-span-3 {
    grid-column: span 3;
  }

  .md\:col-span-4 {
    grid-column: span 4;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:items-start {
    align-items: flex-start;
  }

  .md\:justify-between {
    justify-content: space-between;
  }

  .md\:p-16 {
    padding: 4rem;
  }
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block;
  }

  .lg\:col-span-5 {
    grid-column: span 5;
  }

  .lg\:col-span-7 {
    grid-column: span 7;
  }

  .lg\:order-1 {
    order: 1;
  }

  .lg\:order-2 {
    order: 2;
  }
}

/* ===========================
   CINEMATIC SECTIONS
   =========================== */
.cinematic-section {
  position: relative;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 6rem 1.5rem;
}

.cinematic-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 230, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cinematic-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .cinematic-grid {
    grid-template-columns: 7fr 5fr;
  }

  .cinematic-grid.reversed {
    grid-template-columns: 5fr 7fr;
  }

  .cinematic-grid.reversed .video-col {
    order: 2;
  }

  .cinematic-grid.reversed .info-col {
    order: 1;
  }
}

/* ===========================
   VIDEO CONTAINER
   =========================== */
.video-container {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 230, 255, 0.3);
  aspect-ratio: 16 / 9;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.video-container.visible {
  opacity: 1;
  transform: scale(1);
}

.video-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #00E6FF, #9EF4EB, #00E6FF);
  z-index: -1;
  border-radius: 1.625rem;
  animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5, 10, 13, 0.4), transparent, rgba(5, 10, 13, 0.4));
  pointer-events: none;
}

/* ===========================
   SKILL TAGS
   =========================== */
.skill-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--cyber-cyan);
  color: var(--cyber-mint);
  transition: all 0.3s ease;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  display: inline-block;
}

.skill-tag:hover {
  background: var(--cyber-cyan);
  color: var(--cyber-teal);
  transform: translateY(-2px);
}

/* ===========================
   REVEAL ANIMATION
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   STATS CARDS
   =========================== */
.stat-card {
  padding: 2.5rem;
  border-radius: 1.5rem;
}

.stat-number {
  font-size: 3.75rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--cyber-mint);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

/* ===========================
   CONTACT
   =========================== */
.contact-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
}

/* ===========================
   MODAL
   =========================== */
#modalOverlay {
  animation: none;
}

#modalOverlay.modal-open {
  display: flex;
}

.modal-content {
  animation: modal-in 0.35s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(40px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-category-badge {
  background: rgba(0, 230, 255, 0.1);
  letter-spacing: 0.3em;
}

.p-12 {
  padding: 3rem;
}

/* ===========================
   FLOATING ELEMENTS
   =========================== */
.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* ===========================
   PROJECT NUMBER BADGE
   =========================== */
.project-num-badge {
  padding: 0.25rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 230, 255, 0.5);
  color: var(--cyber-mint);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .nav-links-container {
    display: none;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .contact-title {
    font-size: 2.5rem;
  }

  .text-7xl {
    font-size: 3rem;
  }

  .text-6xl {
    font-size: 2.5rem;
  }

  .cinematic-section {
    padding: 3rem 1.5rem;
  }
}

/* ===========================
   CURSOR MARKER (HOME SECTION)
   =========================== */
.cursor-marker {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease;
  z-index: 50;
  will-change: transform, opacity;
}

.cursor-marker-dot {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
      rgba(158, 244, 235, 0.48) 0%,
      /* Decreased by ~40% from 0.8 */
      rgba(158, 244, 235, 0.15) 30%,
      /* Decreased by ~40% from 0.25 */
      rgba(158, 244, 235, 0) 100%);
  mix-blend-mode: screen;
}

/* ===========================
   PORTRAIT VIDEO ENHANCEMENTS
   =========================== */
#modalVideo.portrait-mode::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  aspect-ratio: 9 / 16;
  /* Soft ambient glow fading into turquoise */
  box-shadow: 0 0 40px 10px rgba(158, 244, 235, 0.05),
              0 0 90px 25px rgba(0, 230, 255, 0.08),
              0 0 150px 40px rgba(23, 72, 83, 0.15);
  border-radius: 12px;
  pointer-events: none;
  z-index: 10;
  animation: portrait-pulse 6s infinite ease-in-out;
}

#modalVideo.portrait-mode::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  aspect-ratio: 9 / 16;
  /* Subtle inner border/edge light to give separation */
  border: 1px solid rgba(158, 244, 235, 0.08);
  border-radius: 12px;
  pointer-events: none;
  z-index: 11;
}

@media (prefers-reduced-motion: reduce) {
  #modalVideo.portrait-mode::before {
      animation: none;
  }
}

@keyframes portrait-pulse {
  0%, 100% {
      opacity: 0.7;
  }
  50% {
      opacity: 1;
  }
}

/* ===========================
   FEATURED AMBIENT BACKGROUND SYSTEM
   =========================== */
.video-container .ambient-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.15);
  filter: blur(40px) brightness(0.8) saturate(1.2);
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

.video-container .ambient-overlay {
  position: absolute;
  inset: 0;
  /* Dark translucent overlay to make it ambient and not distracting */
  background: radial-gradient(circle at center, rgba(5, 10, 13, 0.2) 0%, rgba(5, 10, 13, 0.7) 100%);
  z-index: 2;
  pointer-events: none;
}

.video-container .ambient-fg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  z-index: 3 !important;
  border: none;
  background: transparent;
  border-radius: 8px; /* Optional subtle rounding */
}

/* Subtle drop shadow applies strictly to the content pixels (video/image boundaries), leaving transparent letterboxing unaffected */
.video-container video.ambient-fg,
.video-container img.ambient-fg {
  filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.7));
}