/* ===== CUSTOM STYLES ===== */

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1f15;
}
::-webkit-scrollbar-thumb {
  background: #1B4332;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2f5740;
}

/* --- Navbar --- */
#navbar {
  transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(10, 31, 21, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

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

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

/* --- Mobile Menu --- */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-nav-link {
  animation: fadeInNav 0.4s ease forwards;
  opacity: 0;
}

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

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

.menu-line {
  transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Buttons --- */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, #D4A843 0%, #b8892e 100%);
  color: #1B4332;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
  color: #1B4332;
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-cream {
  display: inline-block;
  border: 1px solid rgba(254, 253, 248, 0.4);
  color: #fdf9ed;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn-outline-cream:hover {
  background-color: rgba(254, 253, 248, 0.1);
  border-color: rgba(254, 253, 248, 0.7);
  color: #fdf9ed;
}

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

.hero-bg img {
  will-change: transform;
}

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

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

.cabin-card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10, 31, 21, 0.4));
  border-radius: inherit;
  pointer-events: none;
}

.cabin-card > div:first-child {
  position: relative;
}

/* --- Gallery Images --- */
.gallery-item {
  overflow: hidden;
  border-radius: 2px;
}

.gallery-item img {
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

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

.reveal.revealed {
  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; }

/* --- Scroll Line --- */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Back to Top --- */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* --- Decorative Elements --- */
.hero-deco {
  opacity: 0;
  animation: decoFadeIn 1s ease forwards;
}

.hero-deco-1 { animation-delay: 1.5s; }
.hero-deco-2 { animation-delay: 1.8s; }

@keyframes decoFadeIn {
  to { opacity: 1; }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .btn-gold, .btn-outline-cream {
    padding: 12px 24px;
    font-size: 0.75rem;
  }
}

/* --- Selection --- */
::selection {
  background-color: #1B4332;
  color: #fdf9ed;
}
