/* 
   Web Digital Solution - Redesigned Header Stylesheet
   Author: Web Digital Solution
   Version: 1.0
*/

/* ===== REDESIGNED HEADER STYLES ===== */

/* Header Container */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(78, 87, 212, 0.2);
}

#header.scrolled {
    background-color: rgba(15, 15, 25, 0.98);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 20px;
}

/* Logo Styles */
.logo-area {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 50px;
    width: auto;
    margin-right: 15px;
    filter: drop-shadow(0 0 10px rgba(78, 87, 212, 0.4));
    transition: filter 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 15px rgba(78, 87, 212, 0.6));
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2), 0 0 20px rgba(78, 87, 212, 0.3);
    transition: text-shadow 0.3s ease;
    position: relative;
}

.logo-text .highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { text-shadow: 0 0 5px var(--accent-color); }
    50% { text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--primary-color); }
    100% { text-shadow: 0 0 5px var(--accent-color); }
}

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

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

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 30px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    font-size: 16px;
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 15px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 30px);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 25, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 15px 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 1001;
    padding: 30px;
    border: 1px solid rgba(78, 87, 212, 0.2);
    border-top: none;
}

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

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

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

.mega-menu-title {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(78, 87, 212, 0.3);
    position: relative;
    font-weight: 600;
}

.mega-menu-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

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

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

.mega-menu-list li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
}

.mega-menu-list li a:hover {
    background-color: rgba(78, 87, 212, 0.1);
    color: var(--accent-color);
    transform: translateX(5px);
}

.mega-menu-list li a i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 14px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.mega-menu-list li a:hover i {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* CTA Button */
.header-cta {
    margin-left: 20px;
}

.header-cta .btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), #6a75e0);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(78, 87, 212, 0.3);
}

.header-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6a75e0, var(--primary-color));
    transition: opacity 0.3s ease;
    z-index: -1;
    opacity: 0;
}

.header-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 87, 212, 0.4);
}

.header-cta .btn:hover::before {
    opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
    cursor: pointer;
    margin-left: 20px;
}

.mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--accent-color);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent-color);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    background: rgba(15, 15, 25, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 80px 0 30px;
    border-left: 1px solid rgba(78, 87, 212, 0.2);
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Navigation */
.mobile-nav {
    margin-bottom: 30px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0 30px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: calc(0.05s * var(--item-index, 0));
}

.mobile-menu.active .mobile-nav-item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(78, 87, 212, 0.05);
}

.mobile-nav-link i {
    margin-right: 10px;
    font-size: 16px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    width: 20px;
    text-align: center;
}

.mobile-nav-link:hover {
    background-color: rgba(78, 87, 212, 0.1);
    color: var(--accent-color);
    transform: translateX(5px);
}

.mobile-nav-link:hover i {
    color: var(--accent-color);
}

.mobile-nav-link.active {
    background-color: rgba(78, 87, 212, 0.15);
    color: var(--accent-color);
}

.mobile-nav-link.active i {
    color: var(--accent-color);
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-toggle i:last-child {
    margin-right: 0;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle i:last-child {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 1000px;
}

.mobile-dropdown-menu li {
    margin-bottom: 10px;
}

.mobile-dropdown-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: rgba(78, 87, 212, 0.03);
}

.mobile-dropdown-menu a i {
    margin-right: 10px;
    font-size: 14px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    width: 20px;
    text-align: center;
}

.mobile-dropdown-menu a:hover {
    background-color: rgba(78, 87, 212, 0.08);
    color: var(--accent-color);
    transform: translateX(5px);
}

.mobile-dropdown-menu a:hover i {
    color: var(--accent-color);
}

/* Mobile CTA */
.mobile-cta {
    padding: 0 30px;
    margin-top: auto;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-cta {
    opacity: 1;
    transform: translateY(0);
}

.mobile-cta-btn {
    display: block;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), #6a75e0);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(78, 87, 212, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mobile-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6a75e0, var(--primary-color));
    transition: opacity 0.3s ease;
    z-index: -1;
    opacity: 0;
}

.mobile-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 87, 212, 0.4);
}

.mobile-cta-btn:hover::before {
    opacity: 1;
}

/* Mobile Social */
.mobile-social {
    display: flex;
    justify-content: center;
    padding: 0 30px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.4s;
}

.mobile-menu.active .mobile-social {
    opacity: 1;
    transform: translateY(0);
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(78, 87, 212, 0.1);
    color: var(--white);
    margin: 0 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(78, 87, 212, 0.3);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .nav-link {
        padding: 30px 10px;
    }
}

@media (max-width: 991px) {
    .main-nav,
    .header-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header-wrapper {
        height: 70px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .logo-text {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .header-wrapper {
        height: 60px;
        padding: 0 15px;
    }
    
    .logo-image {
        height: 40px;
        margin-right: 10px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .mobile-menu {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}