/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Hero animations - these are above the fold, so they should be visible immediately */
    .hero-subtitle {
        opacity: 0;
        animation: fadeUp 0.8s ease-out 0.3s forwards;
    }
    
    .hero-headline {
        opacity: 0;
        animation: fadeUp 0.8s ease-out 0.5s forwards;
    }
    
    .hero-desc {
        opacity: 0;
        animation: fadeUp 0.8s ease-out 0.7s forwards;
    }
    
    .hero-cta {
        opacity: 0;
        animation: fadeUp 0.8s ease-out 0.9s forwards;
    }
}

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

/* Service card hover effect */
.service-card {
    transition: transform 0.3s ease;
}

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

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobileMenu.active {
    opacity: 1;
    pointer-events: auto;
}

#mobileMenu.inactive {
    opacity: 0;
    pointer-events: none;
}

/* Navigation link hover effect */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
    margin-top: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0d9488 !important;
}

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

/* Print styles */
@media print {
    nav, #contactForm, #formSuccess, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
