/* ===== CUSTOM STYLES ===== */

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

/* Prevent FOUC on load */
body {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf0f6;
}
::-webkit-scrollbar-thumb {
    background: #c72848;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11736;
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
    background: rgba(254, 248, 246, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.animate-float-slow {
    animation: float-slow 4s ease-in-out infinite;
}
.animate-float-medium {
    animation: float-medium 3.5s ease-in-out infinite;
}
.animate-float-fast {
    animation: float-fast 3s ease-in-out infinite;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
.scroll-reveal {
    /* Default: fully visible — works without JS */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Fallback: if JS fails, content is still visible via default styles above */

/* ===== MOBILE LINKS ===== */
.mobile-link {
    display: block;
}

/* ===== SELECT STYLING ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== CARD HOVER GLOW ===== */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* ===== NAVBAR HEIGHT ===== */
#navbar {
    height: 72px;
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 767px) {
    #navbar {
        height: 64px;
    }
}
