/* Custom styles for BH2 Land Surveying */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #faf5ff;
}
::-webkit-scrollbar-thumb {
    background: #d8b4fe;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Hero animations - only for below-fold content via JS */
.hero-badge {
    opacity: 1;
    animation: fadeInDown 0.6s ease-out;
}
.hero-title {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-subtitle {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-cta {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
.hero-stats {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

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

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

/* Scroll reveal classes - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
}
#mobileMenu.open {
    max-height: 300px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a855f7;
    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;
    }
}
