/* === Custom Styles for Mr. Frosty Snow === */

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

/* Base text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Hero Animations === */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.03); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.18; }
}

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

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

@keyframes subtitle-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes trust-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-orb-1 { animation: float 8s ease-in-out infinite; }
.hero-orb-2 { animation: float-delayed 10s ease-in-out infinite; }
.hero-orb-3 { animation: pulse-slow 6s ease-in-out infinite; }

/* Above-the-fold animations — no delay, no JS needed */
.animate-badge {
    animation: badge-in 0.6s ease-out both;
}
.animate-title {
    animation: title-in 0.7s ease-out both;
    animation-delay: 0.1s;
}
.animate-subtitle {
    animation: subtitle-in 0.7s ease-out both;
    animation-delay: 0.25s;
}
.animate-cta {
    animation: cta-in 0.7s ease-out both;
    animation-delay: 0.4s;
}
.animate-trust {
    animation: trust-in 0.8s ease-out both;
    animation-delay: 0.55s;
}

/* === Scroll Reveal (below the fold only) === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* === Navbar Scroll State === */
.navbar-scrolled {
    background: rgba(4, 10, 20, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Service Card Hover Effects === */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(45, 212, 191, 0.05);
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040a14;
}
::-webkit-scrollbar-thumb {
    background: #1d3557;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* === Selection Color === */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #fff;
}

/* === Mobile Menu Transitions === */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.hidden {
    display: none;
}

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

/* === Form Focus States === */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

/* === Responsive tweaks === */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}
