/* Custom styles that complement Tailwind */

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

/* Scroll-reveal base styles — content is visible by default, JS adds animation */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

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

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
}

#navbar.scrolled .nav-logo-text {
    color: #1e2025;
}

/* Mobile menu link hover */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #E8604B;
}

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

::-webkit-scrollbar-track {
    background: #f6f6f7;
}

::-webkit-scrollbar-thumb {
    background: #c5c7cc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9b9ea7;
}

/* Selection color */
::selection {
    background-color: rgba(232, 96, 75, 0.2);
    color: #1e2025;
}
