/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    flex-shrink: 0;
    max-width: 200px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    border-radius: 25px;
    z-index: -1;
}

/* Hover state remains the original purple gradient */
.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Active state gets the gold gradient */
.nav-link.active::before {
    left: 0;
     background: linear-gradient(45deg, #667eea, #764ba2);
}

.nav-link.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 187, 45, 0.4);
}


.login-btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    margin-left: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.mobile-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 8px;
    border-radius: 50%;
    transition: background-color: 0.3s ease;
}

.mobile-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu span {
    width: 22px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* navigation.css */

.mobile-nav {
    position: fixed;
    top: 85px; /* Position below the header */
    right: 15px; /* Anchor to the right */
    width: 240px; /* Set a specific width */
    height: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transform: translateY(-20px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s;
    z-index: 999;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.mobile-nav.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.mobile-nav .nav-link {
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 15px;
    color: #333;
    width: 100%;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: transparent; /* Explicitly set default background */
}

.mobile-nav .nav-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #556ee6;
}

/* --- MODIFIED SECTION START --- */

/* Using the ID #mobileNav for higher specificity to ensure this rule applies */
#mobileNav .nav-link.active {
 /*   background-color: #FDBB2D !important; /* Solid gold background */
    color: #333 !important;              /* Dark text for contrast */
    font-weight: 600;
}

/* --- MODIFIED SECTION END --- */

.mobile-nav a[data-translate="nav-login"],
.mobile-nav a[href="login.html"] {
    margin-top: 6px; /* Add space above the login button */
    text-align: center;
    justify-content: center; /* Center content within the button */
    color: white;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    font-weight: 600;
}
.mobile-nav a[data-translate="nav-login"]:hover,
.mobile-nav a[href="login.html"]:hover {
    color: white;
    background: linear-gradient(45deg, #ff5757, #3bb8b0);
}