/* 1. Custom Trajan Pro Fonts */
@font-face {
  font-family: 'TrajanPro-Bold';
  src: url('fonts/trajan_pro_bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'TrajanPro-Regular';
  src: url('./fonts/trajan_pro_regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'GOUDOSI';
  src: url('fonts/GOUDOSI.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'TrajanPro3Light';
  src: url('fonts/TrajanPro3Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

/* 2. Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'TrajanPro-Regular', serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Video Styles */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.bg-video-desktop {
  display: block;
}

.bg-video-mobile {
  display: none;
}

/* Mobile responsive background videos */
@media (max-width: 768px) {
  .bg-video-desktop {
    display: none;
  }
  
  .bg-video-mobile {
    display: block;
  }
}

/* Dark Overlay for Background Videos */
.bg-dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 0;
  pointer-events: none;
}

/* PNG Overlay Styles */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

.bg-overlay-desktop {
  display: none;
  background-image: none;
}

.bg-overlay-mobile {
  display: none;
  background-image: none;
}

/* Mobile responsive PNG overlays */
@media (max-width: 768px) {
  .bg-overlay-desktop {
    display: none;
  }
  
  .bg-overlay-mobile {
    display: block;
  }
}

/* Particles Canvas */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0.9;
}

/* 3. Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  margin-bottom: 2.5rem;
  z-index: 2;
}

.hero-intro {
  font-size: calc(1.2rem + 4px + 5.3px);
  font-family: 'GOUDOSI', serif;
  opacity: 0.85;
  margin-bottom: 0.5rem;
  text-transform: none;
}

.hero-title {
  font-family: 'TrajanPro3Light', serif;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  font-family: 'TrajanPro3Light', serif;
  text-transform: uppercase;
}

.divider-line {
  display: inline-block;
  width: 60px;
  height: 1.5px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
}

.divider-icon {
  font-size: 1.1rem;
  opacity: 0.7;
  letter-spacing: 0.2em;
}

.hero-subtitle {
  font-family: 'GOUDOSI', serif;
  font-size: calc(1.1rem + 4px + 5.3px);
  opacity: 0.85;
  margin-bottom: 1.2rem;
  line-height: 1.5;
  text-transform: none;
}

.hero-choose {
  font-family: 'TrajanPro3Light', serif;
  font-size: calc(1.15rem + 4px + 5.3px);
  letter-spacing: 0.08em;
  margin-bottom: 2.2rem;
  font-weight: 500;
  opacity: 0.95;
  text-transform: uppercase;
}

/* 4. Tagline */
.tagline {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 64rem;
  animation: fadeIn 0.8s ease-out 0.3s both;
}
.tagline p {
  font-family: 'TrajanPro-Regular', serif;
  line-height: 1.6;
  color: white;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.tagline-main {
  font-size: clamp(1.25rem, 5vw, 2.25rem);
}

.tagline-sub {
  font-size: clamp(1rem, 4vw, 1.8rem);
  opacity: 0.9;
}

/* 5. CTA Text (replacing button) */
.cta-container {
  margin-top: 3rem;
  margin-bottom: 2.5rem;
  animation: fadeIn 0.8s ease-out 0.6s both;
}
.cta-text {
  font-family: 'TrajanPro-Regular', serif;
  font-size: clamp(1rem, 4vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease-out;
}
.cta-text:hover {
  transform: translateY(-2px);
}

/* 6. Brand Circles Layout */
.brand-circles {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin-top: 0;
  z-index: 2;
}
@media (max-width: 700px) {
  .hero-content {
    max-width: 98vw;
    padding: 0 1vw;
  }
  .hero-title {
    font-size: clamp(1.3rem, 8vw, 2.2rem);
  }
  .hero-subtitle {
    font-size: 0.98rem;
  }
  .brand-circles {
    gap: 2rem;
  }
}

/* 7. Circles */
.circle-container {
  position: relative;
  cursor: pointer;
}

.circle {
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.7s ease-out;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.circle::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.circle:hover::before {
  opacity: 1;
}
.circle:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}
@media (min-width: 768px) {
  .circle {
    width: 20rem;
    height: 20rem;
  }
}

/* 8. Forest & Sea Circle Styles */
.forest-circle {
  border-color: #547a5c;
  background: url('forest.png') center/cover no-repeat;
}
.forest-circle:hover {
  background-color: rgba(225, 233, 227, 0.8);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transform: scale(1.05);
  border-color: #2a3d2e;
}

.sea-circle {
  border-color: #548c9c;
  background: url('sea.png') center/cover no-repeat;
}
.sea-circle:hover {
  background-color: rgba(225, 239, 243, 0.8);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transform: scale(1.05);
  border-color: #2a464e;
}

/* 9. Circle Titles */
.circle-title {
  font-family: 'TrajanPro-Bold';
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
  text-align: center;
}

/* 10. Descriptions & Hints */
.circle-description {
  position: absolute;
  bottom: -6rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.circle-description.show {
  opacity: 1;
  animation: fadeIn 0.8s ease-out;
}
.circle-description p {
  font-family: 'TrajanPro-Regular', serif;
  font-size: 0.875rem;
  text-align: center;
  max-width: 12rem;
}
.forest-circle:hover + .circle-description p,
#forest-description.show p,
.sea-circle:hover + .circle-description p,
#sea-description.show p {
  color: white;
}

.click-hint {
  position: absolute;
  bottom: -8rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'TrajanPro-Regular', serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.circle-container:hover .click-hint {
  opacity: 1;
}

/* 11. Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: float 6s ease-in-out infinite;
}
.floating-1 {
  top: 5rem; left: 2.5rem;
  width: 0.5rem; height: 0.5rem;
  background-color: #87a78f;
}
.floating-2 {
  top: 10rem; right: 4rem;
  width: 0.75rem; height: 0.75rem;
  background-color: #87bfcf;
  animation-delay: 2s;
}
.floating-3 {
  bottom: 8rem; left: 5rem;
  width: 0.375rem; height: 0.375rem;
  background-color: #699173;
  animation-delay: 4s;
}
.floating-4 {
  bottom: 5rem; right: 3rem;
  width: 0.625rem; height: 0.625rem;
  background-color: #69afc3;
  animation-delay: 1s;
}

/* 12. Animations */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 13. Floating UI Bar - Forest Style */
  .floating-ui-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 40px;
    z-index: 10000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100vw;
    pointer-events: none;
    padding: 0 4vw;
    opacity: 0.92;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

.floating-ui-bar.show {
  opacity: 0.92;
  visibility: visible;
}

.floating-ui-bar.show:hover {
  opacity: 1;
}

  .floating-ui-bar > div {
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: #fff;
    font-family: 'TrajanPro-Regular', serif !important;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    opacity: 0.92;
    transition: opacity 0.2s;
    font-weight: 100 !important;
    padding: 8px 12px;
    border-radius: 8px;
  }

.floating-ui-bar > div:hover {
  opacity: 1;
}



  .floating-ui-label {
    display: block;
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #fff;
    opacity: 0.85;
    text-align: center;
    margin-bottom: 0.2em;
    font-family: 'TrajanPro-Regular', serif !important;
    font-weight: 100 !important;
  }



.floating-ui-sound {
  justify-content: flex-end;
}

.floating-ui-sound-icon {
  font-size: 1.2em;
  margin-left: 0.2em;
  transition: color 0.2s;
}

.floating-ui-sound.muted .floating-ui-sound-icon {
  color: #aaa;
  text-decoration: line-through;
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  margin-left: 6px;
}

.sound-bars .bar {
  width: 3px;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  transform: scaleY(0.1);
  transition: transform 0.2s cubic-bezier(.4,0,.2,1);
}

.floating-ui-sound.active .sound-bars .bar {
  animation: soundBarAnim 1s infinite;
}

.floating-ui-sound.active .sound-bars .bar:nth-child(2) { animation-delay: 0.1s; }
.floating-ui-sound.active .sound-bars .bar:nth-child(3) { animation-delay: 0.2s; }
.floating-ui-sound.active .sound-bars .bar:nth-child(4) { animation-delay: 0.3s; }
.floating-ui-sound.active .sound-bars .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes soundBarAnim {
  0%, 100% { transform: scaleY(0.2);}
  50% { transform: scaleY(1);}
}

  /* Mobile adjustments for floating UI */
  @media (max-width: 700px) {
    .floating-ui-bar {
      bottom: 60px;
      padding: 0 2vw;
    }
    .floating-ui-bar > div {
      font-size: 1rem;
      padding: 12px 16px;
      margin: 4px;
    }
    .sound-bars {
      height: 14px;
      gap: 2px;
      margin-left: 8px;
    }
    .sound-bars .bar {
      width: 2.5px;
    }
  }

/* Extra mobile padding for very small screens */
@media (max-width: 480px) {
  .floating-ui-bar > div {
    padding: 14px 18px;
    margin: 6px;
  }
  .floating-ui-label {
    margin-bottom: 0.3em;
  }
  .sound-bars {
    margin-left: 10px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  .brand-circles {
    flex-direction: row;
    gap: 2rem;
    overflow-x: auto;
    padding: 0 2rem 2rem;
  }
  .circle {
    width: 8rem;
    height: 8rem;
  }
  .circle-title {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }
  .tagline {
    margin-bottom: 1rem;
  }
  .cta-container {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }
  
  .floating-ui-bar {
    bottom: 80px;
    top: unset;
    right: 0.5rem;
  }
}

/* Comprehensive Momentum Scrolling Prevention */
html, body {
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior: none !important;
  overscroll-behavior-y: none !important;
  overscroll-behavior-x: none !important;
  touch-action: manipulation !important;
}

/* Disable momentum scrolling on all elements */
*, *::before, *::after {
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior: none !important;
  touch-action: manipulation !important;
}

/* iOS Safari specific momentum scrolling fixes */
@supports (-webkit-touch-callout: none) {
  html, body {
    min-height: 100vh;
    overscroll-behavior: none !important;
    -webkit-overflow-scrolling: auto !important;
  }
  
  /* Disable momentum scrolling on all scrollable elements in iOS */
  * {
    -webkit-overflow-scrolling: auto !important;
    overscroll-behavior: none !important;
  }
}

/* Additional mobile momentum scrolling fixes */
@media screen and (max-width: 768px) {
  html, body {
    -webkit-overflow-scrolling: auto !important;
    overscroll-behavior: none !important;
    overscroll-behavior-y: none !important;
    overscroll-behavior-x: none !important;
    touch-action: manipulation !important;
  }
  
  /* Disable momentum scrolling on all scrollable elements */
  * {
    -webkit-overflow-scrolling: auto !important;
    overscroll-behavior: none !important;
  }
}