.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: background 0.4s ease, padding 0.3s ease;
    animation: slideDown 0.7s ease;
    flex-wrap: nowrap; /* 🚀 Prevents breaking on desktop */
}

/* 🔥 Navbar entry animation */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ✅ Brand Logo */
.navbar .brand img {
    height: 40px; 
    transition: transform 0.4s ease, filter 0.4s ease;
}

.navbar .brand img:hover {
    transform: scale(1.1) rotate(-3deg);
    filter: drop-shadow(0 0 8px #ffd369);
}

/* ✅ Menu styling */
.navbar .menu {
    display: flex;
    list-style: none;
    gap: 22px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* 🚀 Prevents overflow on desktop */
}

.navbar .menu a {
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* 🌈 Fancy underline hover */
.navbar .menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .menu a:hover::after {
    width: 80%;
}

.navbar .menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffd369;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* ✅ Auth buttons */
.navbar .auth {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding-right: 40px;
    flex-wrap: nowrap; /* 🚀 Keeps login buttons on one line */
}

.navbar .auth a {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2c7be5, #6a11cb);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.navbar .auth a:hover {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
}

/* ✅ Responsive Fixes */
@media (max-width: 1024px) {
    .navbar {
        padding: 8px 20px; /* Reduce padding for tablet */
    }
    .navbar .menu {
        gap: 14px; /* Reduce gap so items fit */
        flex: 1; /* ✅ Take remaining space */
        justify-content: center;
        min-width: 0; /* ✅ Prevent overflow */
    }
    .navbar .auth {
        flex-shrink: 0; /* ✅ Don't push buttons down */
    }
    .navbar .auth a {
        padding: 6px 14px;
        font-size: 14px;
    }
}

/* ✅ Mobile: Only show Home, About, Gallery */
@media (max-width: 768px) {
    /* Keep navbar horizontal */
    .navbar {
        flex-direction: row;
        align-items: center;
        padding: 8px 12px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    /* ✅ Hide auth buttons on mobile */
    .navbar .auth {
        display: none;
    }

    /* ✅ Hide extra menu items except Home, About, Gallery */
    .navbar .menu li:nth-child(n+4) {
        display: none;
    }

    /* Keep menu horizontal */
    .navbar .menu {
        flex-direction: row;
        gap: 14px;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;
    }

    .navbar .brand img {
        height: 32px;
    }
}



.badge {
    margin-left: 6px;
    background-color: #22c55e; /* ✅ Same as Tailwind bg-green-500 */
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: inline-block;
    animation: bounceBadge 1.5s infinite;
}

@keyframes bounceBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

