/* ===== Navbar ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 217, 255, 0.15);
    box-shadow: 0 12px 48px rgba(0, 217, 255, 0.08);
}

.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.3), transparent);
    pointer-events: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, #5bcefa 0%, #8338ec 50%, #ff006e 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
    min-width: fit-content;
    animation: gradientShift 4s ease infinite;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    margin-left: auto;
    margin-right: 1rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(131, 56, 236, 0.1));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a:hover {
    color: #00d9ff;
    transform: translateY(-2px);
}

/* ===== Hamburger Menu ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(0, 217, 255, 0.1);
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, #00d9ff, #8338ec);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.2);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(11px, 11px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 217, 255, 0.1);
    border: 1.5px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-blue);
    font-size: 1.3rem;
    z-index: 1001;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
    transform: scale(1.05);
    color: var(--primary-dark);
}
