/* ===== Base & Utilities ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Navbar Scroll State ===== */
.nav-text-color {
  color: #1B5E20;
}

#navbar.scrolled .nav-text-color {
  color: #1B5E20;
}

#navbar.scrolled {
  background: rgba(254, 254, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
}

#navbar.scrolled .nav-link {
  color: #4B5563;
}

#navbar.scrolled .menu-line {
  background: #1B5E20;
}

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

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

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

/* ===== Hamburger Animation ===== */
.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ===== Room Cards ===== */
.room-card {
  will-change: transform;
}

/* ===== Experience Cards ===== */
.exp-card {
  will-change: transform;
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.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; }

/* ===== Geometric Decorations ===== */
.geo-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F9F9EE;
}

::-webkit-scrollbar-thumb {
  background: #A5D6A7;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #66BB6A;
}

/* ===== Selection ===== */
::selection {
  background: #C8E6C9;
  color: #1B5E20;
}

/* ===== Focus Visible ===== */
:focus-visible {
  outline: 2px solid #1B5E20;
  outline-offset: 2px;
}

/* ===== Responsive Typography ===== */
@media (max-width: 640px) {
  .font-display {
    word-break: keep-all;
  }
}

/* ===== Print Styles ===== */
@media print {
  nav, #contact, .exp-card { display: none; }
  body { background: white; }
}
