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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(58, 181, 96, 0.2);
    color: #102a43;
}

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

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

/* Hero animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation-name: fadeUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 26, 46, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

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

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #3ab560 !important;
}

input::placeholder,
textarea::placeholder {
    color: #9fb3c8;
}

/* Image lazy loading shimmer */
img {
    display: block;
}

/* Smooth scroll offset for fixed nav */
section[id], header[id] {
    scroll-margin-top: 80px;
}

/* Thin decorative line */
.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #5fc980, transparent);
}

/* Subtle card hover */
.card-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 26, 46, 0.12);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}
