/* =========================================
   MAIN NAVBAR
========================================= */
.main-navbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 15px 0;
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: padding 0.25s ease, box-shadow 0.25s ease;
}

/* When scrolled */
.main-navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

/* =========================================
   CONTAINER
========================================= */
.main-navbar .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* =========================================
   LOGO — SMOOTH SHRINK
========================================= */
.logo-container {
    position: absolute;
    top: -14px;
    left: -18px;
    transition: transform 0.25s ease;
}

/* Smooth Y movement on scroll */
.main-navbar.scrolled .logo-container {
    transform: translateY(3px);
}

/* Logo image */
.navbar-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: width 0.25s ease, height 0.25s ease, border-width 0.25s ease;
}

/* Shrink on scroll */
.main-navbar.scrolled .navbar-logo {
    width: 60px;
    height: 60px;
    border-width: 3px;
}


/* =========================================
   NAV LINKS — SLIDE INSTEAD OF MARGIN
========================================= */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    transform: translateX(120px);
    transition: transform 0.25s ease;
}

.nav-link {
    display: block;
    text-decoration: none;
    color: #333;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Underline */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

/* =========================================
   WHATSAPP BUTTON
========================================= */
.whatsapp-btn {
    background: var(--primary-color);
    padding: 12px 20px;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
}

/* =========================================
   MOBILE MENU
========================================= */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: none;
    font-size: 26px;
    color: #333;
}

@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: block;
        z-index: 1000;
    }

    /* Logo center on mobile */
    .logo-container {
        position: static;
        margin: 0 auto;
        transform: none !important;
    }

    .navbar-logo {
        width: 60px !important;
        height: 60px !important;
        border-width: 3px;
    }

    /* Mobile nav panel */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: white;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 500;
    }

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

    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
}
