/* Global Custom Styles and Animations */

/* Custom Scrollbar for a premium feel */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f2c62;
}

/* Base fade-in-up animation class to be triggered by Intersection Observer */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for child elements */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Placeholder for Mascot (Bocu) */
.bocu-placeholder {
    width: 150px;
    height: 150px;
    background: rgba(217, 21, 35, 0.05); /* very light accent */
    border: 2px dashed #D91523;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #D91523;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease;
    animation: floating 3s ease-in-out infinite;
}

.bocu-placeholder:hover {
    transform: scale(1.05);
}

.bocu-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Hero Background Gradient Overlay */
.hero-overlay {
    background: linear-gradient(to right, rgba(20, 61, 135, 0.45) 0%, rgba(20, 61, 135, 0.15) 100%);
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Navbar Scrolled State */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    transform: translateZ(0);
    will-change: background-color, padding, backdrop-filter;
}

/* Dynamic Navbar Link Colors */
#main-navbar.nav-home .nav-link {
    color: #ffffff; /* White by default on home page */
}

#main-navbar.nav-home.navbar-scrolled .nav-link,
#main-navbar.nav-default .nav-link {
    color: #143D87; /* Primary blue when scrolled on home, or always on other pages */
}

#main-navbar .nav-link:hover {
    color: #D91523; /* Accent red on hover */
}