/* Custom styles for Rashford Hotels & Lodging */

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

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

#navbar.scrolled {
  background: rgba(254, 252, 240, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(4, 120, 87, 0.1);
}

.nav-logo-text {
  transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
  color: #064e3b;
}

.nav-link {
  position: relative;
}

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

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

#navbar.scrolled .nav-link {
  color: #064e3b;
}

#navbar.scrolled .nav-link:hover {
  color: #059669;
}

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

/* Room card hover effects */
.room-card {
  will-change: transform;
}

/* Amenity card hover */
.amenity-card {
  will-change: transform;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

/* Floating animation for hero elements */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(-3deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(-6deg); }
}

.floating-card-1 {
  animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
  animation: float-reverse 5s ease-in-out infinite;
}

.floating-card-3 {
  animation: float-slow 6s ease-in-out infinite;
}

/* Geometric shape animations */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.05); }
}

.geometric-spin {
  animation: spin-slow 20s linear infinite;
}

.geometric-pulse {
  animation: pulse-glow 4s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-thumb {
  background: #047857;
  border-radius: 5px;
}

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

/* Selection color */
::selection {
  background: #059669;
  color: #fef9e8;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  #hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .font-serif {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}
