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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #131F36;
}
::-webkit-scrollbar-thumb {
  background: #C8A45E;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4AF61;
}

/* Selection */
::selection {
  background: #C8A45E;
  color: #131F36;
}

/* Header */
#header {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#header.scrolled {
  background: rgba(19, 31, 54, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(200, 164, 94, 0.1);
}

/* Navigation Links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C8A45E;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-link {
  position: relative;
}

/* Menu Button */
.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

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

#menuBtn.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(3px, -3px);
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

/* Hero */
.hero-bg {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(19, 31, 54, 0.5) 0%,
    rgba(19, 31, 54, 0.3) 40%,
    rgba(19, 31, 54, 0.6) 70%,
    rgba(19, 31, 54, 0.95) 100%
  );
}

.hero-title {
  animation: heroTitle 1.2s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  animation: heroFade 1s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
  transform: translateY(20px);
}

.hero-ctas {
  animation: heroFade 1s ease forwards;
  animation-delay: 1.1s;
  opacity: 0;
  transform: translateY(20px);
}

.hero-badge {
  animation: heroFade 1s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

@keyframes heroTitle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Buttons */
.btn-primary {
  box-shadow: 0 4px 20px rgba(200, 164, 94, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(200, 164, 94, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* Room Cards */
.room-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Amenity Cards */
.amenity-card {
  transition: transform 0.4s ease;
}

.amenity-card:hover {
  transform: translateY(-4px);
}

.amenity-card:hover .w-20 {
  background: rgba(200, 164, 94, 0.2);
  border-color: rgba(200, 164, 94, 0.4);
}

/* CTA Section */
.cta-overlay {
  background: linear-gradient(
    to right,
    rgba(19, 31, 54, 0.9) 0%,
    rgba(19, 31, 54, 0.7) 50%,
    rgba(19, 31, 54, 0.9) 100%
  );
}

/* Form */
.btn-submit {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:hover {
  box-shadow: 0 4px 20px rgba(200, 164, 94, 0.4);
  transform: translateY(-1px);
}

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Decorative divider */
.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #C8A45E, transparent);
}

/* Image hover zoom */
img {
  transition: transform 0.6s ease;
}

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

/* Smooth image loading */
img {
  background: #1B2A4A;
}

/* Subtle pattern overlay for sections */
section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: radial-gradient(circle at 1px 1px, #C8A45E 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.15;
  }

  .room-card {
    transform: none !important;
  }

  .room-card:hover {
    transform: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
