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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal base — content always visible by default */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-left {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-right {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-up.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-up:not(.is-visible) {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left.is-visible {
        opacity: 1;
        transform: translateX(0);
    }
    .reveal-left:not(.is-visible) {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right.is-visible {
        opacity: 1;
        transform: translateX(0);
    }
    .reveal-right:not(.is-visible) {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-text-color {
    color: #1e293b !important;
}

.nav-scrolled .nav-link {
    color: #475569 !important;
}

.nav-scrolled #mobile-menu-btn {
    color: #475569 !important;
}

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

/* Selection color */
::selection {
    background: #99f6e4;
    color: #042f2e;
}
