/* ===== Custom Styles for Blind Pass Lagoons ===== */

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

body {
    background-color: #050304;
    color: #fff8f6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0708;
}
::-webkit-scrollbar-thumb {
    background: #6e162e;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9f1836;
}

/* Selection */
::selection {
    background: rgba(110, 22, 46, 0.5);
    color: #fff8f6;
}

/* ===== Hero Animations ===== */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }
.hero-anim:nth-child(5) { animation-delay: 0.7s; }

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

/* ===== Scroll Reveal (below fold only) ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

#navbar.scrolled {
    background: rgba(5, 3, 4, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 248, 246, 0.05);
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* Mobile menu icon animation */
#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active #bar2 {
    opacity: 0;
}
#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Form Focus States ===== */
input:focus,
textarea:focus {
    border-color: rgba(201, 168, 76, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.1);
}

/* ===== Button Hover Effects ===== */
button[type="submit"]:hover {
    box-shadow: 0 8px 32px rgba(110, 22, 46, 0.4);
}

/* ===== Image Hover Zoom ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== Reduced Motion ===== */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .hero-anim {
        opacity: 1;
        transform: none;
    }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* ===== Loading State ===== */
.page-loaded .hero-anim {
    animation-play-state: running;
}
