/* ============================================
   The Boarding House — Custom Styles
   ============================================ */

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

body {
  overflow-x: hidden;
}

/* Geometric Shapes */
.geo-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.geo-circle-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #34D4B5 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  right: -100px;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  border: 3px solid #34D4B5;
  border-radius: 50%;
  bottom: 10%;
  left: 5%;
  opacity: 0.15;
}

.geo-rect-1 {
  width: 120px;
  height: 120px;
  background: #34D4B5;
  border-radius: 20px;
  top: 20%;
  right: 15%;
  transform: rotate(45deg);
  opacity: 0.12;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid #34D4B5;
  bottom: 20%;
  right: 8%;
  opacity: 0.1;
  transform: rotate(-15deg);
}

.geo-dots {
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, #34D4B5 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.2;
  top: 40%;
  left: 3%;
}

.geo-circle-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #34D4B5 0%, transparent 70%);
  border-radius: 50%;
  bottom: -200px;
  right: -100px;
}

.geo-rect-2 {
  width: 80px;
  height: 200px;
  background: #34D4B5;
  border-radius: 40px;
  top: 10%;
  left: 5%;
  opacity: 0.06;
}

.geo-circle-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #34D4B5 0%, transparent 70%);
  border-radius: 50%;
  top: -150px;
  left: -100px;
}

.geo-dots-2 {
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, #34D4B5 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  opacity: 0.15;
  bottom: 10%;
  right: 10%;
}

/* Scroll Indicator */
.scroll-line {
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, transparent, #34D4B5);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

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

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(13, 27, 42, 0.08);
}

/* Mobile Menu */
.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Room Cards */
.room-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}

.room-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.room-card:not(.revealed) {
  opacity: 0;
  transform: translateY(30px);
}

/* Amenity Cards */
.amenity-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.4s ease, border-color 0.4s ease;
}

.amenity-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.amenity-card:not(.revealed) {
  opacity: 0;
  transform: translateY(25px);
}

/* Scroll Reveal Animation */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .room-card,
  .amenity-card {
    opacity: 1;
    transform: none;
  }
}

/* Menu button animation */
.menu-bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

#menuBtn.active .menu-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 24px;
  margin-left: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #34D4B5;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: #34D4B5;
  color: #0D1B2A;
}

/* Smooth image loading */
img {
  image-rendering: auto;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #0D1B2A;
}
