.navbar-glass-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0; /* More top spacing for the float effect */
    pointer-events: none;
    display: flex;
    justify-content: center; /* Perfectly centers the bar */
}

/* 2. The Glass Island (The Bar Itself) */
.navbar-glass {
    pointer-events: auto;
    width: 90%; /* Responsive width */
    max-width: 1080px; /* Maximum width */
    background: rgba(255, 255, 255, 0.7); /* More transparency */
    backdrop-filter: blur(20px) saturate(180%); /* Premium "Frosted" look */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 100px; /* Full pill shape */
    padding: 12px 32px; /* Spacious internal padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07); /* Soft, expensive shadow */
    border: 1px solid rgba(255, 255, 255, 0.8); /* Subtle border highlight */
    transition: all 0.3s ease;
}

/* 3. Brand/Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0f172a;
}

.nav-logo-img {
    height: 42px; /* Slightly larger logo */
    width: auto;
}

.brand-text {
    font-family: 'Poppins', sans-serif; /* Ensure font matches */
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    color: #1e293b;
}

/* 4. Desktop Links (Middle) */
.nav-menu-desktop {
    display: flex;
    gap: 8px; /* Gap between the pill hover effects */
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.5); /* Subtle grouping background */
    padding: 5px;
    border-radius: 100px;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 24px; /* Generous padding for the hover pill */
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effect */
.nav-link:hover, .nav-link.active {
    color: #166534; /* Dark Green Text */
    background-color: white; /* Pure white pill */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Pop effect */
}

/* 5. Contact Button (The "Beautiful" Part) */
.nav-cta-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); /* Gradient Depth */
    color: white;
    text-decoration: none;
    padding: 14px 32px; /* <--- THIS IS THE PADDING FIX */
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35); /* Green Glow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5); /* Stronger glow on hover */
}

/* 6. Hamburger (Mobile) */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px; /* Touch target size */
}

.hamburger-menu span {
    display: block;
    width: 26px;
    height: 2.5px; /* Slightly thicker lines */
    background-color: #0f172a;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* 7. Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999; /* Below the navbar */
}

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

.mobile-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-links li {
    margin: 30px 0; /* More vertical space on mobile */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-links li:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-links li:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-links li:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-links li:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-links li:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

.mobile-links a {
    font-size: 2.2rem; /* Larger tap target */
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    position: relative;
}

.mobile-links a:hover {
    color: #22c55e;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 992px) {
    .nav-menu-desktop { display: none; }
    .nav-cta-btn { display: none; } /* Hide desktop button on mobile */
    .hamburger-menu { display: flex; }
    
    .navbar-glass-wrapper { padding: 15px 0; }
    .navbar-glass {
        width: 92%;
        padding: 10px 24px; /* Slightly tighter padding on small screens */
    }
}
