/* Custom styles for Flagstaff Rentals Maine */

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

/* Hero card animations */
.hero-card {
    animation: floatIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating stat cards */
.float-card {
    animation: floatUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes floatUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.float-card[data-delay="1"] { animation-delay: 0.3s; }
.float-card[data-delay="2"] { animation-delay: 0.5s; }
.float-card[data-delay="3"] { animation-delay: 0.7s; }

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.nav-scrolled .text-midnight {
    color: #0a1628 !important;
}

.nav-scrolled a:not(.bg-midnight):not(.bg-mint) {
    color: #0a1628 !important;
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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; }

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

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

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

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

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

/* Selection color */
::selection {
    background: #5eead4;
    color: #0a1628;
}

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #2dd4bf !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15) !important;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}
