/**
 * Modern Header Menu Styles
 */

.modern-header {
    background-color: #0F1A2A;
    color: #ffffff;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.modern-header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-header .logo-container {
    display: flex;
    align-items: center;
}

.modern-header .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.modern-header .logo-image {
    height: 40px;
    width: auto;
    max-width: 180px;
}

/* Text Logo Styling */
.modern-header .text-logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modern-header .text-logo::first-letter {
    color: #E93F7F;
}

.modern-header .main-navigation {
    display: flex;
    align-items: center;
}

.modern-header .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
    align-items: center;
}

.modern-header .nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.modern-header .nav-link:hover {
    color: #3B82F6;
}

.modern-header .nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #3B82F6;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.modern-header .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.modern-header .contact-button {
    background-color: #E93F7F;
    color: #0F1A2A;
    padding: 10px 20px;
    border-radius: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-header .contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 63, 127, 0.3);
    color: #0F1A2A;
}

.modern-header .contact-button::after {
    display: none;
}

/* Scroll Effect */
.modern-header.header-scrolled {
    background-color: rgba(15, 26, 42, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Toggle */
.modern-header .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.modern-header .menu-bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 6px 0;
    transition: 0.3s;
}

/* Add space below header for fixed positioning */
body.has-modern-header {
    padding-top: 80px; /* Adjust based on header height */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .modern-header {
        padding: 15px 20px;
    }
    
    .modern-header .logo-image {
        height: 30px;
    }
    
    .modern-header .text-logo {
        font-size: 20px;
    }
    
    .modern-header .mobile-menu-toggle {
        display: block;
    }
    
    .modern-header .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 26, 42, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .modern-header .main-navigation.active {
        right: 0;
    }
    
    .modern-header .nav-menu {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .modern-header .nav-link {
        font-size: 20px;
    }
    
    body.has-modern-header {
        padding-top: 60px; /* Adjust for smaller header on mobile */
    }
}

/* WordPress Admin Bar Compatibility */
.admin-bar .modern-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .modern-header {
        top: 46px;
    }
}

/* Menu Open Body Class */
body.menu-open {
    overflow: hidden;
}
