/* Global Navbar - Unified for All Pages */
:root {
    --nav-height: 100px;
    --nav-bg: rgba(10, 10, 11, 0.95);
    --nav-blur: 15px;
    --nav-text: #ffffff;
    --nav-accent: #0ea5e9;
    --nav-border: rgba(255, 255, 255, 0.1);
}

header#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border-bottom: 1px solid var(--nav-border);
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

header#header.scrolled {
    height: 80px;
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Alignment */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: height 0.4s ease;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

header#header.scrolled .header-logo img {
    height: 60px;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nav-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--nav-accent);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--nav-accent);
}

/* Header Action Button */
.header-action .btn-nav {
    background: var(--nav-accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.3);
}

.header-action .btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
    background: #0284c7;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2100;
    padding: 10px;
}

.mobile-nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #0a0a0b;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 2050;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 24px;
    }

    .header-action {
        display: none; /* Hide button on mobile in favor of menu link if needed */
    }

    /* Hamburger Animation */
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Page Spacing Correction - Prevent Header Overlap */
body {
    padding-top: var(--nav-height);
}

/* Specific fix for pages with no top padding */
section:first-of-type {
    scroll-margin-top: var(--nav-height);
}
