/* Custom Styles for Trina Explains It All */

/* Base Transitions */
html {
    scroll-behavior: smooth;
}

body {
    /* Prevents layout shift if font loads late */
    font-feature-settings: "cv11", "ss01";
}

/* Navbar Scrolled State */
.nav-scrolled #nav-bg {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0; /* Start hidden for animation */
}

/* Utility for Intersection Observer reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Transitions */
#mobile-menu {
    box-shadow: inset 1px 0 0 rgba(0,0,0,0.1);
}
