/* Custom styles for Armstrong CSC */

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fb892;
}

/* Selection color */
::selection {
    background: #D4A373;
    color: #1B4332;
}

/* Scroll reveal base state - always visible for progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animated state - applied via JS only for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
}

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

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* Counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float 5s ease-in-out infinite 0.5s;
}

.floating-card-3 {
    animation: float 4.5s ease-in-out infinite 1s;
}

/* Hero decorative elements */
.hero-blob {
    animation: float 8s ease-in-out infinite;
}

.hero-blob-2 {
    animation: float 10s ease-in-out infinite 2s;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Print styles */
@media print {
    nav, #contact, .scroll-reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
