/* Global Navigation - shared across all pages */

#main-header {
    background-color: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    position: fixed;
    width: calc(100% - 20px);
    max-width: 1300px;
    z-index: 1000;
    margin-top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease-in-out;
}

#main-header.scrolled {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

#main-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
}

.header-title-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-subtitle {
    font-size: 18px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

#main-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    justify-content: center;
}

#main-header nav ul li {
    margin: 0;
}

#main-header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    position: relative;
    padding: 4px 0;
}

#main-header nav ul li a::before {
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: 1px;
    background: rgba(255, 255, 255, 0.5);
    transition: 0.5s transform ease;
    transform: scale3d(0, 1, 1);
    transform-origin: 0 50%;
}

#main-header nav ul li a:hover::before {
    transform: scale3d(1, 1, 1);
}

#main-header nav ul li:nth-child(1) a::before { background: #ffffff; }
#main-header nav ul li:nth-child(2) a::before { background: #ffffff; }
#main-header nav ul li:nth-child(3) a::before { background: #ffffff; }
#main-header nav ul li:nth-child(4) a::before { background: #ffffff; }
#main-header nav ul li:nth-child(5) a::before { background: #ffffff; }
#main-header nav ul li:nth-child(6) a::before { background: #ffffff; }

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 30px;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
}

.mobile-nav-overlay.active .mobile-nav a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-overlay.active .mobile-nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav a:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile responsive - nav only */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .mobile-nav-overlay {
        display: block;
    }

    #main-header nav {
        display: none;
    }

    #main-header {
        left: 10px;
        right: 10px;
        width: auto;
        margin: 0;
        margin-top: 10px;
        transform: none;
        border-radius: 15px;
    }

    #main-header .container {
        padding: 12px 10px 12px 20px; 
    }

    .header-title-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    #main-header h1 {
        font-size: 18px;
    }

    .header-subtitle {
        border-left: none;
        padding-left: 0;
        font-size: 12px;
    }
}
