/* ============================================
   Bahama Snow & Brain Freeze — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f0fdfa;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(8, 15, 30, 0.92);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(14, 165, 141, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .text-white {
    color: #f1f5f9 !important;
}

/* ============================================
   Hero Orbs
   ============================================ */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.5), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.3), transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -3s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.4), transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Sparkle dots */
.sparkle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(45, 212, 191, 0.6);
    border-radius: 50%;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }

    .reveal-up {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-left {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-right {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    /* Hidden state for JS-enhanced reveals */
    .reveal-up.revealed {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal-left.revealed {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right.revealed {
        opacity: 0;
        transform: translateX(40px);
    }

    .reveal-up.reveal-visible,
    .reveal-left.reveal-visible,
    .reveal-right.reveal-visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   Image Aspect Ratios
   ============================================ */
aspect-ratio {
    display: block;
}

/* ============================================
   Smooth Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

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

/* ============================================
   Input Autofill
   ============================================ */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1e293b inset !important;
    -webkit-text-fill-color: #f1f5f9 !important;
}
