/* Custom Styles for NuCO₂ */

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

/* Hero Animations */
.hero-subtitle {
    animation: slideUp 0.8s ease-out forwards;
}

.hero-title {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-lead {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-cta,
.hero-cta-secondary {
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

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

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Mobile Menu */
#mobile-menu {
    pointer-events: none;
}

#mobile-menu.active {
    pointer-events: all;
}

/* Service Card Hover */
.service-card {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #064E3B;
    border-radius: 4px;
}

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

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #047857;
    outline-offset: 2px;
}

/* 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;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu,
    .reveal {
        display: none !important;
    }
    
    body {
        color: #022C22;
        background: white;
    }
}
