/* Enhanced Header Styles for Saql Al Mawahib Schools Website
   Created by PUIUX - May 2025
   Premium fixed header with advanced visual effects
*/

.header-premium-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-premium-fixed.transparent {
    background: transparent;
}

.header-premium-fixed.scrolled {
    background: rgba(15, 20, 40, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.header-container-fixed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    position: relative;
    transition: padding 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-premium-fixed.scrolled .header-container-fixed {
    padding: 0.4rem 2rem;
}

/* Logo Container with Glass Effect */
.logo-container-fixed {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.header-premium-fixed.scrolled .logo-container-fixed {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.8rem;
}

.logo-container-fixed:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.school-logo-fixed {
    height: 50px;
    transition: all 0.4s ease;
}

.puiux-logo-fixed {
    height: 38px;
    margin-right: 1rem;
    transition: all 0.4s ease;
}

.header-premium-fixed.scrolled .school-logo-fixed {
    height: 42px;
}

.header-premium-fixed.scrolled .puiux-logo-fixed {
    height: 32px;
}

.logo-separator-fixed {
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    margin: 0 1rem;
    transition: all 0.4s ease;
}

.header-premium-fixed.scrolled .logo-separator-fixed {
    height: 30px;
}

/* Enhanced Navigation */
.nav-menu-fixed {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    background: rgb(16 22 44 / 70%);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.header-premium-fixed.scrolled .nav-menu-fixed {
    background: rgba(255, 255, 255, 0.08);
}

.nav-item-fixed {
    margin: 0 0.2rem;
    position: relative;
}

.nav-link-fixed {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-link-fixed i {
    margin-left: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-link-fixed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(36, 187, 189, 0), rgba(36, 187, 189, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 40px;
}

.nav-link-fixed:hover,
.nav-link-fixed.active {
    color: #ffffff;
}

.nav-link-fixed:hover::before,
.nav-link-fixed.active::before {
    opacity: 1;
}

.nav-link-fixed:hover i,
.nav-link-fixed.active i {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link-fixed::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: width 0.3s ease;
}

.nav-link-fixed:hover::after,
.nav-link-fixed.active::after {
    width: 60%;
}

/* Contact Button */
.contact-btn-fixed {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(45deg, var(--primary-color), #3cd6d8);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(36, 187, 189, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-btn-fixed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3cd6d8, var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-btn-fixed:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(36, 187, 189, 0.4);
}

.contact-btn-fixed:hover::before {
    opacity: 1;
}

.btn-pulse {
    position: relative;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background-color: rgba(36, 187, 189, 0.4);
    animation: pulse-btn 2s infinite;
    z-index: -2;
}

.contact-btn-fixed i {
    margin-left: 0.5rem;
}

.mobile-menu-btn-fixed {
    display: none;
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn-fixed:hover {
    color: var(--primary-color);
}

/* Progress Bar on top of the header */
.scroll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #3cd6d8);
    width: 0;
    transition: width 0.2s ease;
    z-index: 1001;
}

@keyframes pulse-btn {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .nav-link-fixed {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .contact-btn-fixed {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .school-logo-fixed {
        height: 45px;
    }
    
    .puiux-logo-fixed {
        height: 34px;
    }
    
    .logo-separator-fixed {
        height: 30px;
    }
}

@media (max-width: 992px) {
    .nav-menu-fixed {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(15, 20, 40, 0.95), rgba(35, 54, 113, 0.95));
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 0;
        border: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        padding: 4rem 2rem;
        z-index: 1001;
    }
    
    .nav-menu-fixed.show {
        right: 0;
    }
    
    .nav-item-fixed {
        margin: 0.7rem 0;
        width: 100%;
    }
    
    .nav-link-fixed {
        width: 100%;
        padding: 0.8rem 1.5rem;
        border-radius: 10px;
        justify-content: center;
    }
    
    .contact-btn-fixed {
        margin-top: 1.5rem;
        padding: 0.8rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .mobile-menu-btn-fixed {
        display: block;
        z-index: 1002;
        font-size: 1.8rem;
        background: rgba(255, 255, 255, 0.1);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn-fixed:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-menu-btn-fixed.active i:before {
        content: '\f00d'; /* Change to X icon */
    }
    
    .logo-container-fixed {
        padding: 0.4rem 0.8rem;
    }
    
    .school-logo-fixed {
        height: 40px;
    }
    
    .puiux-logo-fixed {
        height: 30px;
    }
    
    .logo-separator-fixed {
        height: 25px;
    }
}

@media (max-width: 768px) {
    .header-container-fixed {
        padding: 0.5rem 1rem;
    }
    
    .header-premium-fixed.scrolled .header-container-fixed {
        padding: 0.4rem 1rem;
    }
    
    .school-logo-fixed {
        height: 38px;
    }
    
    .puiux-logo-fixed {
        height: 28px;
        margin-right: 0.5rem;
    }
    
    .logo-separator-fixed {
        margin: 0 0.5rem;
        height: 22px;
    }
}

@media (max-width: 576px) {
    .logo-container-fixed {
        padding: 0.3rem 0.6rem;
    }
    
    .school-logo-fixed {
        height: 34px;
    }
    
    .puiux-logo-fixed {
        height: 24px;
    }
    
    .mobile-menu-btn-fixed {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .contact-btn-fixed {
        font-size: 0.9rem;
    }
}