/* Header Styles */
.page-header {
    background: transparent;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(87, 160, 255, 0.7) 50%, transparent 95%);
    box-shadow: 0 0 10px rgba(87, 160, 255, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(87, 160, 255, 0.7), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.logo a:hover::after {
    transform: translateX(100%);
}

.logo img {
    height: 45px;
    width: auto;
    margin-right: 15px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(87, 160, 255, 0.6));
    background: #ebf1ff;
    border-radius: 10px;
    padding: 5px;
}

.logo img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(87, 160, 255, 0.9));
}

.logo-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-left: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #57a0ff, #8ec5fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(87, 160, 255, 0.3);
    position: relative;
}

.main-nav {
    display: flex;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 5px;
    position: relative;
}

.main-nav li.active a {
    color: #57a0ff;
    text-shadow: 0 0 10px rgba(87, 160, 255, 0.7);
}

.main-nav li.active::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #57a0ff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(87, 160, 255, 0.7);
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.main-nav a:hover {
    color: #57a0ff;
    text-shadow: 0 0 8px rgba(87, 160, 255, 0.6);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #57a0ff, transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.main-nav a:hover::after {
    transform: translateX(0);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.mobile-nav-toggle:hover {
    color: #57a0ff;
    text-shadow: 0 0 10px rgba(87, 160, 255, 0.7);
}

.mobile-nav-toggle.active i:before {
    content: "\f00d"; /* Change to X icon when active */
}

/* Mobile menu overlay */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 1;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        transition: all 0.3s ease;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1002;
    }
    
    .mobile-nav-toggle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(87, 160, 255, 0.1);
        border-radius: 50%;
        transform: scale(0);
        transition: transform 0.3s ease;
        z-index: -1;
    }
    
    .mobile-nav-toggle:hover::before {
        transform: scale(1);
    }
    
    .mobile-nav-toggle.active {
        color: #57a0ff;
    }
    
    .mobile-nav-toggle.active i::before {
        content: "\f00d";
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: rgba(15, 17, 26, 0.95);
        backdrop-filter: blur(10px);
        padding: 80px 0 30px;
        display: block;
        z-index: 1001;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(87, 160, 255, 0.2);
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
        animation: none;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0 30px;
    }
    
    .main-nav li {
        margin: 15px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .main-nav.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .main-nav.active li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.active li:nth-child(2) { transition-delay: 0.2s; }
    .main-nav.active li:nth-child(3) { transition-delay: 0.3s; }
    .main-nav.active li:nth-child(4) { transition-delay: 0.4s; }
    .main-nav.active li:nth-child(5) { transition-delay: 0.5s; }
    
    .main-nav a {
        padding: 12px 0;
        font-size: 18px;
        display: block;
        position: relative;
        text-align: left;
        border-bottom: 1px solid rgba(87, 160, 255, 0.1);
    }
    
    .main-nav a::before {
        content: '';
        position: absolute;
        left: -15px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background: #57a0ff;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.3s ease, left 0.3s ease;
    }
    
    .main-nav a:hover::before {
        opacity: 1;
        left: -10px;
    }
    
    .main-nav li.active a::before {
        opacity: 1;
        left: -10px;
        box-shadow: 0 0 10px rgba(87, 160, 255, 0.7);
    }
    
    .main-nav li.active::before {
        display: none;
    }
}

/* Animation for mobile menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav.active {
    animation: slideDown 0.3s ease forwards;
}

/* Glowing effect for active elements */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(87, 160, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(87, 160, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(87, 160, 255, 0.5);
    }
} 