@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    background-color: #000;
    padding-top: 90px; /* Adjusted for taller navbar */
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(5px); /* Optional: blur the background image itself */
    transform: scale(1.1); /* Avoids blurred edges */
}

@keyframes water-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-nav {
    background: transparent;
    border-bottom: none;
}

.navbar-nav {
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05), rgba(255,255,255,0.1));
    background-size: 200% 200%;
    animation: water-animation 10s ease infinite;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px; /* Fully rounded pill shape */
    padding: 5px;
    overflow: hidden;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
}

.navbar-nav .nav-item {
    margin: 0;
}

.navbar-nav .nav-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    position: relative;
    padding: 10px 20px !important;
    transition: color 0.3s ease;
    border-radius: 50px;
}

.navbar-nav .nav-link:hover {
    color: #fff;
}

.navbar-nav .nav-link.active {
    color: #fff;
}

.nav-pill {
    position: absolute;
    top: 5px; /* Align with padding */
    left: 0;
    height: calc(100% - 10px); /* Align with padding */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    /* Remove backdrop-filter from pill, it's on the parent now */
}

.content-container {
    position: relative;
    z-index: 1;
}

.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .display-4 {
    font-weight: 700;
}

h2 {
    font-weight: 700;
}

.btn {
    border-radius: 16px;
    font-weight: bold;
}

.btn-primary {
    background-color: #00ffff;
    border-color: #00ffff;
    color: #000;
}

.btn-primary:hover {
    background-color: #00e6e6;
    border-color: #00e6e6;
    color: #000;
}

.list-group-item.glass-list-item {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 16px;
}

.list-group-item.glass-list-item:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

footer {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        /* The container becomes the glass panel */
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 1rem;
        margin-top: 1rem;
    }

    .navbar-nav {
        /* Reset the desktop pill styles */
        background: none;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        padding: 0;
        overflow: visible;
    }

    .nav-pill {
        /* Hide the sliding pill on mobile */
        display: none;
    }

    .navbar-nav .nav-item {
        margin: 0; /* Items are stuck together */
    }

    .navbar-nav .nav-link {
        background: transparent; /* No individual backgrounds */
        border: none;
        border-radius: 8px; /* Slight radius for hover/active state */
        padding: 0.75rem 1rem !important;
        text-align: center;
    }

    .navbar-nav .nav-link.active {
        /* Highlight active link with a subtle background and bright text */
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        font-weight: bold;
    }
}
