/* Custom styles for Fodmore Estates */

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

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

::-webkit-scrollbar-track {
    background: #220e2e;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Selection color */
::selection {
    background: #F59E0B;
    color: #3b1748;
}

/* Hero parallax effect */
#hero {
    background-attachment: fixed;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #F59E0B 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Subtle glow on amber elements */
.shadow-amber-glow {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Image aspect ratios to prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(34, 14, 46, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Room card stagger animation */
.room-card {
    opacity: 1;
    transform: translateY(0);
}

/* Geometric shape pulse */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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