/* =========================================================================
   OVERHAULED MAIN.CSS - PREMIUM HIGH-DENSITY HEADER & LIST DESIGN
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* Glassmorphic Light Navigation Bar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Brand Logo Styling */
.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1.2px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-snappy);
}

.logo span {
    color: var(--primary-color);
}

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

/* Overhauled Navigation Menu List - High-Performance Layout */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px; /* Close spacing for premium pill grouping */
    background: rgba(15, 23, 42, 0.03);
    padding: 6px;
    border-radius: var(--border-radius-pill);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

/* Modern Pill-Style List Items */
.nav-item {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: var(--border-radius-pill);
    transition: var(--transition-snappy);
}

/* Sleek Icon Integration */
.nav-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    opacity: 0.7;
    transition: var(--transition-snappy);
}

/* Elegant Pill Hover & Active States */
.nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-hover-bg);
}

.nav-link:hover svg {
    transform: translateY(-1px);
    opacity: 1;
}

.nav-link.active {
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.2);
}

.nav-link.active svg {
    opacity: 1;
}

/* Premium Admin Portal Button */
.admin-login-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e429f 100%);
    border: none;
    padding: 10px 24px;
    border-radius: var(--border-radius-pill); /* Matching matching rounded elements */
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-snappy);
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.15);
    margin-left: 12px;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.3);
}

/* Modern Hamburger toggle button for Mobile viewports */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1010;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Rounded, weighted high-contrast footer */
.global-footer {
    background: #0f172a;
    color: #f8fafc;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.global-footer .logo {
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 400px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: #ffffff;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #94a3b8;
    font-weight: 500;
    transition: var(--transition-snappy);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Adaptive States */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 40px;
        border-radius: 0; /* Full height menu cards */
        border: none;
        transition: var(--transition-smooth);
        box-shadow: -20px 0 60px rgba(15, 23, 42, 0.15);
    }
    
    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }

    .admin-login-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 14px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}