/* ============================================
   MODERN ANIMATED HEADER STYLES
   ============================================ */

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */

@keyframes slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-slide-down {
    animation: slide-down 0.6s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

/* ============================================
   SPECIAL EVENT BANNER
   ============================================ */

.special-event-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #f06595 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.special-event-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 3s infinite;
}

.event-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.event-text {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.event-icon {
    font-size: 1.3rem;
    animation: spin 4s linear infinite;
    color: #ffd700;
}

.event-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */

.main-nav {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.12);
}

.main-nav.nav-hidden {
    transform: translateY(-100%);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   BRAND LOGO
   ============================================ */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-animated:hover {
    transform: translateY(-2px);
}

.brand-icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-color) 0%, #d97706 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(243, 82, 82, 0.3);
    transition: all 0.4s ease;
}

.brand-icon-box:hover {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 6px 25px rgba(243, 82, 82, 0.4);
}

.spin-on-hover {
    transition: transform 0.6s ease;
}

.brand-animated:hover .spin-on-hover {
    transform: rotate(360deg);
}

.brand-text {
    color: #2b3674;
    letter-spacing: 1px;
}

.brand-highlight {
    color: var(--brand-color);
}

/* ============================================
   CUSTOM HAMBURGER TOGGLE
   ============================================ */

.custom-toggler {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, var(--brand-color) 0%, #d97706 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 82, 82, 0.3);
}

.custom-toggler:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(243, 82, 82, 0.4);
}

.toggler-line {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.custom-toggler:not(.collapsed) .toggler-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.custom-toggler:not(.collapsed) .toggler-line:nth-child(2) {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .toggler-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   NAVIGATION ITEMS
   ============================================ */

.nav-item-animated {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.2) rotate(10deg);
}

.nav-text {
    position: relative;
}

.nav-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: var(--brand-color);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(243, 82, 82, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: var(--brand-color);
    transform: translateY(-2px);
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(243, 82, 82, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: var(--brand-color);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-color) 0%, #d97706 100%);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(243, 82, 82, 0.5);
}

/* ============================================
   DROPDOWN MENU (Optional Enhancement)
   ============================================ */

.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 10px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #4a5568;
    font-weight: 600;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(243, 82, 82, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: var(--brand-color);
    transform: translateX(5px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .main-nav {
        padding: 12px 0;
    }
    
    .navbar-collapse {
        background: white;
        border-radius: 20px;
        margin-top: 20px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        gap: 8px;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
    }
    
    .navbar-nav .nav-link {
        justify-content: flex-start;
        padding: 12px 15px;
    }
    
    .nav-indicator {
        display: none;
    }
    
    .brand-icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .event-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .event-text {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }
}

/* ============================================
   LOADING ANIMATION (Optional)
   ============================================ */

.nav-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--brand-color),
        transparent
    );
    animation: loading 1.5s infinite;
    z-index: 10001;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.nav-link:focus,
.btn:focus,
.custom-toggler:focus {
    outline: 3px solid var(--brand-color);
    outline-offset: 3px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .main-nav,
    .special-event-banner,
    .scroll-progress-bar {
        display: none;
    }
}