/* ===== Custom Styles for Atlantis House ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: #F5C6D0;
  color: #7B1E3A;
}

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

#navbar.scrolled {
  background-color: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(123, 30, 58, 0.08);
}

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

.geo-circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 198, 208, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 116, 116, 0.1) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  animation: float-slow 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(245, 198, 208, 0.2) 0%, transparent 70%);
  top: 30%;
  left: 15%;
  animation: float-slow 6s ease-in-out infinite;
}

.geo-rect {
  position: absolute;
  pointer-events: none;
  border-radius: 20px;
}

.geo-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(245, 198, 208, 0.08);
  border: 1px solid rgba(245, 198, 208, 0.15);
  top: 20%;
  right: 5%;
  transform: rotate(45deg);
  animation: rotate-slow 20s linear infinite;
}

.geo-rect-2 {
  width: 80px;
  height: 80px;
  background: rgba(255, 116, 116, 0.06);
  border: 1px solid rgba(255, 116, 116, 0.12);
  bottom: 25%;
  right: 20%;
  transform: rotate(20deg);
  animation: rotate-slow 15s linear infinite reverse;
}

.geo-triangle {
  position: absolute;
  pointer-events: none;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(245, 198, 208, 0.06);
  top: 15%;
  left: 8%;
  animation: float-slow 7s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Floating Cards ===== */
.floating-card {
  animation: float-card 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1.5s; }
.card-3 { animation-delay: -3s; }
.card-4 { animation-delay: -4.5s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(0.5deg); }
  66% { transform: translateY(6px) rotate(-0.5deg); }
}

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

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

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

/* ===== Gallery ===== */
.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

/* ===== Mobile Menu ===== */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.open {
  max-height: 400px;
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s 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; }
}

/* ===== Button hover effects ===== */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ===== Focus styles ===== */
:focus-visible {
  outline: 2px solid #7B1E3A;
  outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #DE7491;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
  .geo-circle-1 {
    width: 200px;
    height: 200px;
  }

  .geo-circle-2 {
    width: 120px;
    height: 120px;
  }

  .geo-rect-1 {
    width: 60px;
    height: 60px;
  }
}
