*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(54, 185, 158, 0.3);
    color: #f0f4f8;
}

/* Scroll reveal base - content always visible */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Hero animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-subtitle {
        animation: fadeUp 0.8s ease forwards;
        animation-delay: 0.2s;
        opacity: 0;
    }
    
    .hero-title {
        animation: fadeUp 0.8s ease forwards;
        animation-delay: 0.4s;
        opacity: 0;
    }
    
    .hero-desc {
        animation: fadeUp 0.8s ease forwards;
        animation-delay: 0.6s;
        opacity: 0;
    }
    
    .hero-cta {
        animation: fadeUp 0.8s ease forwards;
        animation-delay: 0.8s;
        opacity: 0;
    }
}

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 25, 41, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}

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

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

::-webkit-scrollbar-track {
    background: #0a1929;
}

::-webkit-scrollbar-thumb {
    background: rgba(54, 185, 158, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(54, 185, 158, 0.5);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a1929 inset !important;
    -webkit-text-fill-color: #f0f4f8 !important;
}
