/* ===== Base & Typography ===== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(168, 230, 207, 0.2);
  color: #a8e6cf;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a1f3f;
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 230, 207, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 230, 207, 0.35);
}

/* ===== Animations ===== */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImgZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

@keyframes scrollDot {
  0% { transform: translateY(-16px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Hero Animations ===== */
.hero-img {
  animation: heroImgZoom 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-badge {
  animation: heroFadeIn 0.8s ease-out 0.2s both;
}

.hero-heading {
  animation: heroFadeIn 0.8s ease-out 0.4s both;
}

.hero-text {
  animation: heroFadeIn 0.8s ease-out 0.6s both;
}

.hero-buttons {
  animation: heroFadeIn 0.8s ease-out 0.8s both;
}

.scroll-dot {
  animation: scrollDot 1.5s ease-in-out infinite;
}

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Navbar ===== */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(6, 18, 36, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(168, 230, 207, 0.06);
}

/* ===== Mobile Menu ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Menu Button ===== */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 5rem;
}

/* ===== Room Cards ===== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ===== Focus States ===== */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* ===== Button Ripple Effect ===== */
button, a {
  position: relative;
  overflow: visible;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.1;
  }
}

/* ===== Print ===== */
@media print {
  #navbar,
  .scroll-indicator {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
