/* Modern Header with Mega Menu */
#main-header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
}

#main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    max-width: 1280px;
    margin: 0 auto;
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-link:hover {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.05);
}

.nav-link.active {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.1);
}

.nav-link i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    min-width: 600px;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-item {
    margin-bottom: 10px;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mega-menu-link:hover {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.05);
}

.mega-menu-link i {
    margin-right: 10px;
    color: #4f46e5;
    font-size: 16px;
}

/* Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.btn-portal, .btn-login {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-portal {
    background: linear-gradient(90deg, #4f46e5, #4338ca);
    color: white !important;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}

.btn-login {
    border: 2px solid #4f46e5;
    color: #4f46e5 !important;
    background-color: transparent;
}

.btn-login:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

.btn-portal i, .btn-login i {
    margin-right: 8px;
}

/* Language Selector */
.language-select-wrapper {
    position: relative;
    margin-left: 15px;
}

.language-select {
    appearance: none;
    padding: 10px 30px 10px 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: white;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-select:hover {
    border-color: #4f46e5;
}

.language-select-wrapper:after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #4f46e5;
    pointer-events: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-list {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        padding: 20px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav-item {
        margin-bottom: 10px;
    }
    
    .mobile-nav-link {
        display: block;
        padding: 12px 15px;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-link:hover {
        background-color: rgba(79, 70, 229, 0.05);
        color: #4f46e5;
    }
    
    .mobile-header-actions {
        display: flex;
        flex-direction: column;
        margin-top: 20px;
    }
    
    .mobile-header-actions .btn-portal,
    .mobile-header-actions .btn-login {
        margin: 10px 0;
        width: 100%;
    }
}
