/* Navigation Styles */

/* Main Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 1.25rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Logo */
.logo a {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-90);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo a:hover {
    color: var(--teal-dark);
}

/* Main Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-60);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

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

.nav-menu a.active {
    color: var(--teal-dark);
    font-weight: 500;
    background: radial-gradient(
        ellipse 100px 40px at center,
        rgba(74, 155, 155, 0.08) 0%,
        rgba(74, 155, 155, 0.04) 50%,
        transparent 100%
    );
}

/* Active indicator with subtle animation */
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -1.75rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-mid), var(--teal-light));
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

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

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

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

/* Side Menu */
.side-menu {
    position: fixed;
    left: 0;
    top: 80px;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 3rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 900;
    overflow-y: auto;
}

.side-menu.active {
    transform: translateX(0);
}

.side-nav ul {
    list-style: none;
}

.side-nav li {
    margin-bottom: 1.5rem;
}

.side-nav a {
    font-size: 0.95rem;
    color: var(--grey-60);
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: none;
    outline: none;
    box-shadow: none;
}

.side-nav a:hover {
    color: var(--teal-mid);
    outline: none;
    box-shadow: none;
}

.side-nav a:focus {
    outline: none;
    box-shadow: none;
}

.side-nav a.active {
    color: var(--teal-dark);
    font-weight: 500;
    background: radial-gradient(
        ellipse 200px 35px at right center,
        rgba(74, 155, 155, 0.08) 0%,
        rgba(74, 155, 155, 0.04) 50%,
        transparent 100%
    );
    padding: 0.75rem 1.25rem 0.75rem 0.5rem;
    margin: -0.25rem -1.25rem -0.25rem 0;
    border: none;
    border-right: 3px solid var(--teal-mid);
    outline: none;
    box-shadow: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust main content when side menu is active */
body.side-menu-active .main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
        padding: 0.5rem;
        margin-right: -0.5rem;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: 60px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        padding: 0;
        gap: 0;
        border-bottom: 1px solid #e0e0e0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        max-height: 100vh;
        opacity: 1;
        padding: 1.5rem 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .side-menu {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        top: 60px;
    }

    body.side-menu-active .main-content {
        margin-left: 0;
    }
    
    /* Adjust nav padding on mobile */
    .main-nav {
        padding: 0.75rem 0;
    }
    
    /* Make logo text smaller on very small screens */
    .logo a {
        font-size: 0.75rem;
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
