/* Global Navigation Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

.navbar-premium,
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 15px 30px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-premium.scrolled,
.navbar.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);
}

.brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1200;
    padding: 10px;
    margin-right: -10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 850px) {

    .navbar-premium,
    .navbar {
        padding: 12px 20px;
        width: 95%;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        /* Hide default flex items */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-main);
    }

    .brand {
        z-index: 1200;
        font-size: 1.25rem;
    }

    /* Professional Layout Enhancements */
    header.header,
    section.hero,
    div.header {
        padding: 120px 20px 60px !important;
        text-align: center;
    }

    header h1,
    section h1,
    .hero h1 {
        font-size: 2.2rem !important;
        margin-bottom: 16px !important;
    }

    header p,
    .hero p {
        font-size: 1.1rem !important;
        padding: 0 10px;
    }

    .container,
    .article-content {
        padding: 24px !important;
        border-radius: 20px !important;
        margin-top: 20px !important;
    }

    /* Fix image overlap in resources */
    .resource-card {
        padding: 30px 20px !important;
    }
}