

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

/* Body Scroll Lock (Modal vs) */
body.scroll-locked {
    overflow: hidden;
    height: 100vh;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */

/* Spacer for fixed header – prevents content from hiding under navbar */
.hero-spacer {
    padding-top: 0px; /* Matches desktop header height */
}

@media (max-width: 1023px) {
    .hero-spacer {
        padding-top: 0px; /* Mobile header height */
    }
}

/* Premium Navbar Scroll Effect */
#main-header.header-scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* Logo Hover */
.logo-img {
    transition: transform 0.3s ease, filter 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

/* Nav Link Underline Effect */
.nav-link {
    position: relative;
    overflow: hidden;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Enhancements */
.nav-item-with-dropdown {
    position: relative;
}
.nav-item-with-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}
.nav-dropdown {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 20px 50px rgba(15, 23, 42, 0.12),
        0 10px 25px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    border-radius: 12px;
    overflow: hidden;
}
.group:hover .nav-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0.1s;
}
.nav-dropdown li {
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}
.nav-dropdown li:last-child {
    border-bottom: none;
}
.nav-dropdown a {
    position: relative;
    transition: all 0.2s ease;
}
.nav-dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}
.nav-dropdown a:hover::before {
    height: 60%;
}
.nav-dropdown a:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), transparent);
    padding-left: 20px;
}

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.show {
    max-height: 600px;
}

/* Mobile Menu Button Animation */
#mobile-menu-btn {
    position: relative;
}
.menu-btn-line {
    transition: all 0.3s ease;
    transform-origin: center;
}
#mobile-menu-btn.menu-open .menu-btn-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#mobile-menu-btn.menu-open .menu-btn-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu-btn.menu-open .menu-btn-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Items Animation */
#mobile-menu.show li {
    animation: slideInFromLeft 0.4s ease forwards;
    opacity: 0;
}
#mobile-menu.show li:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.show li:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.show li:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.show li:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.show li:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.show li:nth-child(6) { animation-delay: 0.3s; }

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header Top Border Gradient */
#main-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

/* ================================
   HERO SLIDER
   ================================ */

/* Slide Transitions */
.slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
}

/* Text Shadow */
.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Mouse Scroll Indicator */
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.mouse .wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ================================
   ALERTS & FOOTER
   ================================ */

/* Success Alert */
.alert-success {
    animation: slideDown 0.5s ease-out;
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer Link Hover */
.footer-link {
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease;
}
.footer-link:hover {
    transform: translateX(4px);
}

/* Custom Background (optional – keep if used) */
.custom-bg {
    background-image: 
    url('/images/assets/team.jpg');
    background-size: cover;
    background-position: 50% 100%;
    background-repeat: no-repeat;
}


