/* ============================================
   NAVBAR STYLES
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 0 136px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

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

.navbar-logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

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

/* Navigation Menu - Hidden by default, shown in mobile sidebar */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    z-index: 1000;
}

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

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.75rem 0;
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #52B788;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #52B788;
}

.nav-link:hover::after {
    width: 100%;
}

/* Contact Us Button */
.nav-link-contact {
    background: #52B788;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-align: center;
    display: block;
}

.nav-link-contact::after {
    display: none;
}

.nav-link-contact:hover {
    background: #40916C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 183, 136, 0.3);
}

/* Hamburger Menu Toggle - Always Visible */
.menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 7px;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    z-index: 1001;
    position: relative;
    width: 44px;
    height: 44px;
}

.menu-toggle span {
    height: 2px;
    background: #1B365D;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    display: block;
    position: relative;
}

/* Different widths for each line - RIGHT ALIGNED */
.menu-toggle span:nth-child(1) {
    width: 30px;
}

.menu-toggle span:nth-child(2) {
    width: 30px;
}

.menu-toggle span:nth-child(3) {
    width: 22px;
}

/* Hamburger Animation - Transform to X (Cross) */
.menu-toggle.active span:nth-child(1) {
    width: 28px;
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -14px;
    margin-top: -1px;
}

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

.menu-toggle.active span:nth-child(3) {
    width: 28px;
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -14px;
    margin-top: -1px;
}

/* Menu Overlay - Darkens background when menu is open */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Responsive navbar padding */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 4rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 2rem;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .navbar-logo-img {
        height: 35px;
    }

    .nav-menu {
        width: 280px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        gap: 6px;
    }

    .menu-toggle span {
        height: 2px;
    }

    .menu-toggle span:nth-child(1) {
        width: 26px;
    }

    .menu-toggle span:nth-child(2) {
        width: 26px;
    }

    .menu-toggle span:nth-child(3) {
        width: 18px;
    }

    .menu-toggle.active span:nth-child(1) {
        width: 24px;
        transform: rotate(45deg);
        margin-left: -12px;
    }

    .menu-toggle.active span:nth-child(3) {
        width: 24px;
        transform: rotate(-45deg);
        margin-left: -12px;
    }
}
