/* Premium Floating Navbar for Vijay Dairy */

.custom-navbar {
    position: fixed;
    top: 20px;
    /* Floating from top */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    /* Slightly reduced blur for lighter glass feel */
    -webkit-backdrop-filter: blur(7px);
    height: 90px;
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Faint water outline border */
    border-radius: 50px;
    /* Pill shape */
    padding: 0 40px;
}

.custom-navbar.scrolled {
    top: 10px;
    height: 75px;
    width: 90%;
    /* background-color: rgba(200, 245, 255, 0.35); Elegant, crystal-clear low-tint water color */
    backdrop-filter: blur(4px);
    /* Significantly reduced blur when scrolled for a crisp, transparent clear glass feel */
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

.navbar-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.nav-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 40px;
}

.left-section {
    justify-content: flex-end;
    padding-right: 60px;
}

.right-section {
    justify-content: flex-start;
    padding-left: 60px;
}

.logo-section {
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160px;
}

.main-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transform: translateY(15px);
    /* Gentle overlap */
}

.custom-navbar.scrolled .main-logo {
    height: 85px;
    transform: translateY(2px);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.15));
    /* Enhanced glow for logo in water color */
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #613F26;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.5px;
}

.custom-navbar.scrolled .nav-link {
    color: #613F26;
}

.custom-navbar.scrolled .nav-link:hover,
.custom-navbar.scrolled .nav-link.active {
    color: #d12229;
}

/* Modern Hover Effect: Dot Indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 5px;
    height: 5px;
    background-color: #d12229;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%) scale(0);
    opacity: 0;
}

.nav-link:hover {
    color: #d12229;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.nav-link.active {
    color: #d12229;
}

/* Mobile styles */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #613F26;
}

.custom-navbar.scrolled .mobile-toggle {
    color: #613F26;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0;
    padding: 100px 20px 40px;
    box-shadow: none;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    z-index: 999;
    text-align: center;
    border: none;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    color: #613F26;
    font-size: 26px;
    font-weight: 600;
    padding: 10px;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
    color: #d12229;
}

@media (max-width: 1100px) {
    .nav-section {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .custom-navbar {
        height: 70px;
        padding: 0 25px;
        top: 15px;
    }

    .main-logo {
        /* height: 80px; */
        transform: translateY(10px);
    }

    .custom-navbar.scrolled {
        height: 65px;
    }

    .custom-navbar.scrolled .main-logo {
        height: 70px;
    }
}