/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 30px;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link:active {
    transform: scale(1.05) !important;
}

.logo-image {
    height: 46px;
    width: auto;
    max-width: 172px;
    object-fit: contain;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px; /* Reduced from 15px for closer spacing */
    position: absolute;
    right: 80px; /* Position to the left of hamburger */
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    /* Removed background, backdrop-filter, border-radius, padding, and border */
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.25em; /* Increased from 1.15em */
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 20px; /* Increased from 8px 16px */
    border-radius: 15px;
    outline: none;
    white-space: nowrap;
}

.nav-link:hover {
    color: #667eea !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.nav-link.active {
    color: #667eea !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Mobile Menu Toggle */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

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

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

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        border-radius: 20px;
    }
    
    .nav-container {
        padding: 0 20px;
        height: 70px;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%; /* Position below the navbar */
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 0 0 20px 20px;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        transform: translateY(-20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        border-radius: 10px;
    }
    
    .logo-image {
        height: 40px;
    }
} 