@theme {
  --color-maya-navy: #022f46;
  --color-maya-navy-light: #034d72;
}

:root {
  --maya-navy: #022f46;
  --maya-navy-light: #034d72;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--maya-navy);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Hide scrollbar for a minimalist look */
::-webkit-scrollbar {
  display: none;
}

* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Typography - Standardized with @media */
.heading-xl { font-size: 1.75rem; line-height: 1; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.heading-lg { font-size: 1.75rem; line-height: 1.1; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.heading-md { font-size: 1.25rem; line-height: 1.2; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.text-body { font-size: 0.85rem; line-height: 1.6; }

@media (min-width: 768px) {
  .heading-xl { font-size: 2.5rem; }
  .heading-lg { font-size: 2.5rem; }
  .heading-md { font-size: 1.5rem; }
  .text-body { font-size: 1rem; }
}

@media (min-width: 1024px) {
  .heading-xl { font-size: 3rem; }
  .heading-lg { font-size: 3.25rem; }
}

/* Navbar Sticky Logic */
nav {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease, padding 0.4s ease;
  z-index: 1000 !important;
}

.nav-sticky {
  position: fixed !important;
  background-color: rgba(2, 47, 70, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.menu-is-open {
  transform: translateY(0) !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  pointer-events: none !important; /* Allow clicks to pass through to menu links */
  z-index: 4100 !important; /* Above mobile menu */
}

.menu-is-open #menu-toggle {
  pointer-events: auto !important; /* Re-enable for the toggle button */
}

/* Ensure other nav elements don't block mobile links */
.menu-is-open a,
.menu-is-open img,
.menu-is-open div {
  pointer-events: none !important;
}

.menu-is-open #menu-toggle * {
  pointer-events: auto !important;
}

.nav-hidden {
  transform: translateY(-100%);
}

/* Mobile Menu Overlay */
#mobile-menu {
  background-color: var(--maya-navy);
  transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
  clip-path: circle(0% at 100% 0%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 4000 !important;
  pointer-events: none; /* Ensure it doesn't block when closed */
}

#mobile-menu.menu-active {
  opacity: 1 !important;
  pointer-events: auto !important;
  clip-path: circle(150% at 100% 0%);
  transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease, pointer-events 0s; /* Instant pointer-events */
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
  width: 100%;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: white;
  position: relative;
  pointer-events: auto !important;
  cursor: pointer;
}

.mobile-link p {
  margin: 0;
  padding: 0;
  pointer-events: none; /* Let clicks pass to the anchor */
}

.mobile-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
  border-bottom: none;
}

.menu-active .mobile-link {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for menu links */
.menu-active .mobile-link:nth-child(1) { transition-delay: 0.2s; }
.menu-active .mobile-link:nth-child(2) { transition-delay: 0.3s; }
.menu-active .mobile-link:nth-child(3) { transition-delay: 0.4s; }
.menu-active .mobile-link:nth-child(4) { transition-delay: 0.5s; }
.menu-active .mobile-link:nth-child(5) { transition-delay: 0.6s; }

/* Hero Parallax */
.hero-bg {
  will-change: transform;
}

/* Stretched Link Utility */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.relative {
  position: relative;
}
.tour-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tour-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 47, 70, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 5;
}

.tour-card:hover {
  box-shadow: 0 20px 40px rgba(2, 47, 70, 0.15);
}

.tour-card:hover::after {
  opacity: 1;
}

.tour-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #f3f4f6;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.tour-card:hover img {
  transform: scale(1.05);
}

.logomaya1{
  width: 90px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logomaya1 {
    width: 230px;
  }
}

.logomaya2{
  width: 240px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logomaya2 {
    width: 360px;
  }
}

.btn-primary {
  position: relative;
  z-index: 100;
  background-color: #022f46;
  color: #ffffff;
  padding: 0.75rem 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: var(--maya-navy-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px rgba(2, 47, 70, 0.2);
}



/* Social Icons Custom Styles */
.social-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--maya-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon-btn:hover {
  transform: translateY(-3px);
  background-color: var(--maya-navy-light);
}

.social-icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Stats Section */
.stats-section {
  background-color: var(--maya-navy);
  color: white;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 768px) {
  .stat-number { font-size: 4.5rem; }
}

/* Footer Background Adjustment */
.newsletter-btn {
  cursor: pointer;
}

footer {
  background-image: url("img/FOOTER.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(2, 47, 70, 0.8); /* Default overlay to ensure readability */
  z-index: 1;
}

footer > * {
  position: relative;
  z-index: 2;
}

/* Mobile Menu Adjustments */
#mobile-menu.menu-active {
  opacity: 1;
  pointer-events: auto;
}

.hamburger-line {
  transition: all 0.3s ease;
}

.menu-open .line-1 { transform: translateY(8px) rotate(45deg); }
.menu-open .line-2 { opacity: 0; }
.menu-open .line-3 { transform: translateY(-8px) rotate(-45deg); }

.mobile-link {
  transition: opacity 0.2s ease;
}

.mobile-link:hover {
  opacity: 0.7;
}

/* Charter Dimension Styles */
.charter-dimension {
  --c-charter-bg: #050505;
  --c-charter-gold: #c5a059;
  --f-charter-display: 'Space Grotesk', sans-serif;
  background-color: var(--c-charter-bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.charter-dimension .heading-xl {
  font-family: var(--f-charter-display);
  font-weight: 300;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.9;
}

.charter-dimension .heading-lg {
  font-family: var(--f-charter-display);
  font-weight: 300;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}

.charter-dimension .btn-charter {
  position: relative;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.2rem 3rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.65rem;
  font-weight: 500;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  color: white;
  border-radius: 10px;
}

.charter-dimension .btn-charter:hover {
  background: white;
  color: black;
  border-color: white;
  letter-spacing: 0.4em;
}

/* Technical Blueprint Section */
.blueprint-grid {
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.spec-item {
  border-left: 1px solid rgba(197, 160, 89, 0.3);
  padding-left: 1.5rem;
}

.spec-label {
  font-family: var(--f-charter-display);
  font-size: 0.7rem;
  color: var(--c-charter-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  display: block;
}

.spec-value {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* Scroll Helicopter */
.scroll-helicopter-container {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.scroll-helicopter {
  position: absolute;
  width: 600px;
  right: -700px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
  transition: transform 0.1s ease-out;
}

/* Luxury Footer for Charter */
.charter-footer {
  background-color: #022f46 !important; /* Azul Maya Jets */
  background-image: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 50;
  color: white !important;
}

.charter-footer a, 
.charter-footer h5, 
.charter-footer p, 
.charter-footer span {
  color: white !important;
}

.charter-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, var(--c-charter-gold), transparent) !important;
  z-index: 51;
  inset: auto !important;
  display: block !important;
}

.charter-footer > * {
  position: relative;
  z-index: 52;
}

/* Ensure global footer overlay doesn't interfere */
.charter-footer::after {
  display: none !important;
}

.fuselage-detail {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02));
  border-left: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.charter-label {
  font-family: var(--f-charter-display);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.6em;
  color: var(--c-charter-gold);
  margin-bottom: 2.5rem;
  display: block;
  opacity: 0.6;
}

/* Parallax Strip */
.parallax-strip {
  height: 60vh;
  width: 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.parallax-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent, rgba(0,0,0,0.4));
}

/* Features Grid */
.charter-feature-card {
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.5s ease;
}

.charter-feature-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(197, 160, 89, 0.2);
}

/* Loading Screen */
#charter-loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s;
}

#charter-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 150px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards 0.5s;
}

.loader-bar-container {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--c-charter-gold);
  animation: loadProgress 2.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes loadProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.charter-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  margin: 4rem 0;
}

.charter-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--c-charter-gold);
  margin-bottom: 1rem;
  display: block;
}

.charter-vertical-text {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  opacity: 0.4;
}
.game-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  background-color: var(--maya-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fab-hop 5s infinite;
}

@keyframes fab-hop {
  0%, 80%, 100% { transform: translateY(0); }
  85% { transform: translateY(-15px); }
  90% { transform: translateY(0); }
  95% { transform: translateY(-7px); }
}

.game-fab:hover {
  animation: none;
  transform: scale(1.1) rotate(5deg);
  background-color: var(--maya-navy-light);
}

.game-fab svg {
  width: 2rem;
  height: 2rem;
}

.game-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 47, 70, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.game-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.game-modal {
  background-color: white;
  width: 90%;
  max-width: 500px;
  height: 600px;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-modal-overlay.active .game-modal {
  transform: scale(1);
}

.game-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(2, 47, 70, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.game-close:hover {
  background-color: rgba(2, 47, 70, 0.2);
  transform: rotate(90deg);
}

.game-canvas-container {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
  position: relative;
  overflow: hidden;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.game-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  pointer-events: none;
}

.game-ui-content {
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.game-score {
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  color: var(--maya-navy);
  text-shadow: 2px 2px 0 white;
  pointer-events: none;
}
