/* Custom styles for Al's Coney Island */

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

/* Hero badge animation */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

/* Hero content animation */
.hero-badge,
.hero-badge ~ h1,
.hero-badge ~ h1 ~ p,
.hero-badge ~ h1 ~ p ~ div {
    animation: fadeInUp 0.8s ease-out both;
}

.hero-badge ~ h1 {
    animation-delay: 0.15s;
}

.hero-badge ~ h1 ~ p {
    animation-delay: 0.3s;
}

.hero-badge ~ h1 ~ p ~ div {
    animation-delay: 0.45s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll reveal base — content is VISIBLE by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only animate when JS adds the revealed class */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* For reduced motion, keep everything visible */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        /* Default: already visible, JS will add .revealed for scroll effect */
    }
}

/* Feature cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: linear-gradient(to bottom, transparent, rgba(204, 251, 241, 0.3));
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-text {
    color: #1e293b;
}

#navbar.scrolled .nav-subtext {
    color: #64748b;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Mobile link hover */
.mobile-link {
    transition: all 0.2s ease;
}

.mobile-link:hover {
    transform: scale(1.05);
}

/* Image hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #99f6e4;
    color: #134e4a;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Subtle gradient text alternative */
.gradient-text {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift */
.group {
    will-change: transform;
}

/* Smooth image loading */
img {
    loading: lazy;
}

img[loading="eager"] {
    loading: auto;
}
