/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    padding: 0.75rem 0;
    min-height: 80px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: clamp(50px, 8vw, 75px);
    width: auto;
    max-width: 200px;
}

/* Navigation Buttons and Elements Visibility */
.nav-toggle {
    display: block;
}

/* Navigation Popup */
.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    transform: scale(0.95);
    transition: all 0.3s ease;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    margin: 0;
    width: 100vw;
    height: 100vh;
}

.nav-menu-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    width: min(360px, 90vw);
    max-height: min(580px, 85vh);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 1;
}

.nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-close:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: rotate(90deg);
}

.nav-links li {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.nav-popup-logo {
    height: 90px;
    width: auto;
    margin-bottom: 0.75rem;
}

.nav-logo-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    opacity: 0.7;
}

.nav-btn {
    color: var(--white) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    display: block;
    text-align: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.nav-btn:hover {
    color: var(--primary-green) !important;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0.75rem 0;
    width: 100%;
    opacity: 0.7;
}

.nav-btn-stakeholder {
    color: var(--white) !important;
    background: var(--primary-green);
    border-color: var(--primary-green);
    box-shadow: 0 6px 16px rgba(37, 64, 38, 0.35);
}

.nav-btn-stakeholder:hover {
    color: var(--primary-green) !important;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.35);
}

.nav-divider-stakeholder {
    margin: 0.75rem 0 0.5rem;
}

.nav-apply {
    background: var(--primary-green);
    color: var(--white) !important;
    padding: 0.7rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-green);
    margin-top: 0.5rem;
    display: block;
    box-shadow: 0 6px 16px rgba(37, 64, 38, 0.3);
    text-align: center;
    font-size: 0.85rem;
    width: 100%;
    text-decoration: none !important;
}

.nav-apply:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
}

.nav-links.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    position: absolute;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Navigation Close Button */
.nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    line-height: 1;
    opacity: 0.8;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: rotate(90deg);
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-toggle {
        right: 1.5rem;
    }
}