/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 15, 25, 0.1);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(78, 205, 196, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(78, 205, 196, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #4ecdc4, #44a08d, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    border-color: rgba(78, 205, 196, 0.6);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #4ecdc4;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .header .nav-links {
        display: none;
    }
}

@media (min-width: 1025px) {
    .hamburger {
        display: none;
    }

    .header {
        background: rgba(15, 15, 25, 0.95);
        border-bottom: none;
        padding-left: 280px;
        padding-right: 20px;
    }

    .header .logo {
        display: none;
    }

    .nav {
        justify-content: flex-start;
    }

    .header .nav-links {
        display: flex;
    }

    /* Hide header nav links on specific pages in desktop */
    body.hide-header-nav .header .nav-links {
        display: none;
    }

    /* Increase header height for pages without nav links */
    body.hide-header-nav .header {
        padding: 40px 20px 40px 280px;
    }
}
