/* CSS Variables Setup */
:root {
  --bg-color: #000000;
  --text-white: #ffffff;
}

/* Hard CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'General Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.splash-mode {
  overflow: hidden;
}

/* Background video base styles */
.video-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 1.5s ease;
}

.hero-bg-video {
  opacity: 0;
}

#hero-video.visible {
  opacity: 1;
}

#splash-video.hidden {
  opacity: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* 50% black overlay */
  z-index: 1;
  transition: opacity 0.4s ease; /* Faster transition */
}

body.splash-mode .video-overlay {
  opacity: 0;
}

/* Splash Screen Styles */
#splash-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

.splash-video-fixed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Overlay removed for instant video reveal */

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 0; 
  gap: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

#splash-screen.content-visible .splash-content {
  opacity: 1;
  transform: translateY(0);
}

.splash-logo {
  width: 220px; /* Match hero-logo max-width */
  height: auto;
  opacity: 0.85;
  mix-blend-mode: screen;
}

.enter-btn {
  background: rgba(255, 255, 255, 0.05); /* Very subtle semi-transparency */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 56px;
  font-family: 'General Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.4em; /* Spaced out for premium vibe */
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.2), 
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.enter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08) translateY(-2px);
  letter-spacing: 0.5em; /* "Stretches" slightly like liquid */
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 0 12px rgba(255, 255, 255, 0.1);
}

/* UI Layer covering video */
.ui-layer {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.6s ease; /* Faster site reveal */
}

.ui-layer.splash-active {
  opacity: 0;
  pointer-events: none;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Fixed height for perfect alignment */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 120px;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  transition: all 0.3s ease;
}

.nav-center {
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Logo styling matching dimensions roughly, using flex for neat setup */
.logo {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  height: 100%;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  padding: 8px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  opacity: 1;
}

.chevron {
  width: 10px;
  height: auto;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.nav-right {
  position: fixed;
  top: 0;
  right: 120px;
  height: 80px; /* Matches navbar height */
  display: flex;
  align-items: center;
  z-index: 1001;
}



/* Buttons System */
/* Custom outer wrapper for border & glow streak */
.btn-group {
  position: relative;
  border-radius: 9999px;
  padding: 0;
  display: inline-flex;
  border: 0.6px solid rgba(255, 255, 255, 0.3); /* Thin white outer border */
  box-shadow: inset 0 0 0 1px transparent; /* Inner adjustment buffer if needed */
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08); /* Premium hover lift */
}

.btn-group:active {
  transform: translateY(1px);
}

/* The glow streak via absolute element */
.glow-streak {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  /* Blurred white-to-transparent gradient blob */
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(1.5px);
  z-index: 1;
  pointer-events: none;
}

.btn-pill {
  position: relative;
  z-index: 2; /* Sit cleanly above the wrapper backdrop but border handles bounds */
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 29px;
  border: none;
  cursor: pointer;
  outline: none;
  font-family: 'General Sans', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-pill {
  background-color: #000;
  color: #fff;
}

.light-pill {
  background-color: #fff;
  color: #000;
}

.light-btn-group {
  border: 0.6px solid rgba(255, 255, 255, 1);
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Vertically center the content */
  /* Replaced aggressive padding with minimum safe bounds */
  padding-top: 100px; /* Safe padding for header */
  padding-bottom: 60px;
  gap: 40px; /* Primary stack gap */
  width: 100%;
  min-height: calc(100vh + 300px); /* Added 300px to height as requested */
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #ffffff;
  margin-right: 2px; /* Small push next to text */
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
}

.badge-faded {
  color: rgba(255, 255, 255, 0.6);
}

.badge-solid {
  color: #ffffff;
}

/* Hero Heading and Subtitle spacing */
.heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px; /* Exact gap between heading and subtitle */
}

.hero-heading {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.28;
  max-width: 613px;
  text-align: center;
  margin: 0;
  
  /* Gradient text setup */
  background: linear-gradient(144.5deg, #ffffff 28%, rgba(0, 0, 0, 0) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  max-width: 680px;
  text-align: center;
  line-height: 1.5;
}

.hero-logo {
  margin-top: 32px;
  width: 100%;
  max-width: 220px;
  height: auto;
  opacity: 0.85;
  mix-blend-mode: screen; /* Integrates seamlessly into the dark background */
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-logo:hover {
  opacity: 1;
  transform: translateY(-4px);
}

/* Intro Animations for premium WOW factor */
.fade-in {
  opacity: 0;
  animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.slide-up-logo {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards; /* Extra 0.2s delay for staggered feel */
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media screen and (max-width: 900px) {
  .navbar {
    padding: 20px 60px;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
    flex-direction: column !important;
    gap: 8px;
    height: auto;
    min-height: 80px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
  }

  .nav-center {
    position: static;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .logo {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    height: auto;
    text-align: center;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .nav-link {
    font-size: 11px;
    padding: 6px 12px;
    white-space: nowrap;
  }


  .hero {
    padding-top: 100px; /* Reduced to allow visual centering */
    padding-bottom: 60px; 
    justify-content: center; /* Vertically center content */
    gap: 32px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-heading {
    font-size: 36px;
  }
  
  .heading-group {
    gap: 16px;
  }
}

/* Sound Toggle Button Styles */
.audio-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 4px 4px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.audio-controls:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.volume-slider:hover {
  background: rgba(255, 255, 255, 0.2);
  width: 100px; /* Slight expansion on hover */
}

/* Chrome, Safari, Opera and Edge Chromium */
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Firefox */
.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.sound-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sound-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.sound-btn .sound-wave {
  transition: opacity 0.3s ease;
  opacity: 0.3; /* Default semi-muted if blocked */
}

.sound-btn.playing .sound-wave {
  opacity: 1;
  animation: pulse-wave 2s infinite ease-in-out;
}

@keyframes pulse-wave {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

@media screen and (max-width: 768px) {
  .sound-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* Footer Styles */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 120px;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media screen and (max-width: 900px) {
  .footer {
    padding: 20px 60px;
  }
}

@media screen and (max-width: 768px) {
  .footer {
    padding: 20px 24px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --- SECTION TWO STYLES --- */
:root {
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;
}

.section-1 {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Geist', sans-serif;
  z-index: 15; /* Above ui-layer but below section-3? Or just 15 so it's between */
  text-align: center;
  opacity: 0;
}

.section-1-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.section-1-content {
  position: relative;
  z-index: 10;
}

.section-1-heading {
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: 'Gilda Display', serif;
  font-weight: 400;
  margin-bottom: 20px;
}

.section-1-text {
  font-size: 1.2rem;
  color: hsla(var(--foreground), 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* --- SECTION 2 STYLES (Video Grid) --- */
.section-2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000;
  z-index: 18;
  opacity: 0;
  overflow: hidden;
}

.section-2-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
}

.section-2-content {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
}

.grid-item {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1400px;
  padding: 0 5vw;
}

.grid-video {
  width: 50vw;
  height: 50vh;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-video:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
}

.grid-text {
  flex: 1;
  font-family: 'Geist', sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
}

/* Vertical descending lineup */
.gi-1 {
  justify-content: flex-start;
  margin-top: 5vh;
}

.gv-1 {
  width: 45vw;
}

.gi-2 {
  justify-content: flex-end;
  margin-top: 10vh;
  margin-bottom: 5vh;
}

.gv-2 {
  width: 35vw;
  height: 35vh;
}

@media screen and (max-width: 1024px) {
  .grid-item {
    padding: 0 40px;
  }
}

@media screen and (max-width: 768px) {
  .section-2-content {
    padding: 60px 20px;
    gap: 60px;
  }
  
  .grid-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    gap: 24px;
  }
  
  .gi-1, .gi-2 {
    margin: 0;
    justify-content: center;
  }
  
  .grid-video {
    width: 90vw;
    height: 30vh;
  }
  
  .gv-1, .gv-2 {
    width: 90vw;
    height: 30vh;
  }
  
  .grid-text {
    max-width: 100%;
    padding: 24px;
    font-size: 1.1rem;
    order: 2; /* Ensure text is below video on mobile for both */
  }
}

.section-3 {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Geist', sans-serif;
  z-index: 20;
}

.section-3-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 37% center;
  z-index: 0;
}

.section-3-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 130px 24px 0; /* 80px navbar + 50px gap (~1.5 lines) */
}

.fade-letter {
  opacity: 0;
  display: inline-block;
}

.start-fade .fade-letter {
  animation: letterFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes letterFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .section-3-main {
    justify-content: space-between;
    padding: 130px 40px 0; /* 80px navbar + 50px gap (~1.5 lines) */
  }
}





.section-3-content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.section-3-subheading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 24px; /* Small margin */
  margin-bottom: 24px;
}

.section-3-content-flex {
  display: flex;
  flex-direction: column;
  margin-top: auto; /* Push to bottom */
}

@media (min-width: 1024px) {
  .section-3-content-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.section-3-heading {
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: hsl(var(--foreground));
}

.section-3-line1, .section-3-line2 {
  font-weight: 300;
}

.section-3-line3 {
  font-family: 'Gilda Display', serif;
  font-weight: 400;
}

.nav-right {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 900px) {
  .nav-right {
    right: 60px;
  }
}

@media screen and (max-width: 768px) {
  .nav-right {
    position: fixed;
    bottom: 24px !important;
    right: 24px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
  }
  
  .volume-slider {
    display: none !important;
  }
}

.section-3-stats {
  margin-top: 32px;
}

@media (min-width: 768px) {
  .section-3-stats {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .section-3-stats {
    max-width: 320px;
    padding-bottom: 16px;
  }
}

.section-3-circle-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}

.section-3-progress-circle {
  transition: stroke-dashoffset 1s ease-out;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.section-3-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  line-height: 1.1;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(var(--foreground));
}

.section-3-stats-text {
  color: hsla(var(--foreground), 0.7);
  font-size: 0.875rem;
  line-height: 1.625;
}

.section-3-marquee-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.section-3-marquee-top {
  display: flex;
  justify-content: space-between;
  padding: 0 24px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .section-3-marquee-top {
    padding: 0 40px 16px;
  }
}

@media (max-width: 767px) {
  .section-3-hidden-mobile {
    display: none;
  }
}

.section-3-marquee-track {
  border-top: 1px solid hsla(var(--foreground), 0.1);
  overflow: hidden;
  padding: 20px 0;
  display: flex;
  width: 100%;
}

.section-3-marquee-content {
  display: flex;
  flex-shrink: 0;
  gap: 64px;
  padding-right: 64px;
  animation: section-3-marquee 20s linear infinite;
}

.section-3-marquee-content span {
  color: hsla(var(--foreground), 0.5);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@keyframes section-3-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* OVERLAY */
.section-3-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
  display: flex;
  flex-direction: column;
  clip-path: circle(0% at 80px 40px);
  transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.section-3-menu-overlay.open {
  clip-path: circle(150% at 80px 40px);
  pointer-events: all;
}

.section-3-close-btn {
  color: hsl(var(--background));
  border-color: hsla(var(--background), 0.3);
}

.section-3-close-btn .section-3-close-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-3-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px;
}

@media (min-width: 768px) {
  .section-3-menu-header {
    padding: 24px 40px;
  }
}

.section-3-menu-header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: hsl(var(--background));
}

.section-3-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .section-3-menu-links {
    padding: 0 40px;
  }
}

.section-3-menu-link {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  color: hsl(var(--background));
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid hsla(var(--background), 0.1);
  padding: 20px 0;
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), padding-left 0.3s ease;
}

.section-3-menu-overlay.open .section-3-menu-link {
  opacity: 1;
  transform: translateX(0);
}

.section-3-menu-overlay.open .section-3-menu-link:nth-child(1) { transition-delay: 0.15s; }
.section-3-menu-overlay.open .section-3-menu-link:nth-child(2) { transition-delay: 0.23s; }
.section-3-menu-overlay.open .section-3-menu-link:nth-child(3) { transition-delay: 0.31s; }
.section-3-menu-overlay.open .section-3-menu-link:nth-child(4) { transition-delay: 0.39s; }
.section-3-menu-overlay.open .section-3-menu-link:nth-child(5) { transition-delay: 0.47s; }

.section-3-arrow {
  transition: transform 0.3s ease;
}

.section-3-menu-link:hover {
  padding-left: 4px;
}

.section-3-menu-link:hover .section-3-arrow {
  transform: translateX(2px);
}

.section-3-menu-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 24px;
  color: hsla(var(--background), 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .section-3-menu-footer {
    padding: 24px 40px;
  }
}

.section-3-subheading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
}

.subheading-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-3-contact-wrapper-centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 15;
}

/* Section 3 Contact Trigger Styling */
.section-3-contact-trigger {
  position: relative;
  z-index: 20;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Double Sized */
  font-size: 24px;
  padding: 24px 64px;
  letter-spacing: 0.2em;
  border-radius: 9999px;
  
  /* Emphasis */
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255, 255, 255, 0.1);
}

.section-3-contact-trigger:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.15);
}

.section-3.contact-mode .section-3-contact-trigger {
  opacity: 0;
  pointer-events: none;
}

.section-3-content-wrapper,
.section-3-marquee-container {
  transition: opacity 0.6s ease;
}

.section-3.contact-mode .section-3-content-wrapper,
.section-3.contact-mode .section-3-marquee-container {
  opacity: 0;
  pointer-events: none;
}

.contact-form-container {
  position: fixed; /* Always centered in window */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-3.contact-mode .contact-form-container {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.contact-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: white;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.contact-close-btn:hover {
  opacity: 1;
}

.form-title {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: white;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-status {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  min-height: 20px;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

@media screen and (max-width: 768px) {
  .contact-form-container {
    padding: 30px 20px;
    width: 95%;
  }
}
