/* Main Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #486583; 
      /* #487b83 */
    padding: 4px 20px; /* medium padding */
    border-bottom: 2px solid #2980b9;
    position: relative;
    flex-wrap: wrap;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem; /* medium font */
}

/* Logo */
.navbar .logo {
    font-size: 1.4rem; /* slightly bigger */
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.navbar .logo .mathe {
    color: #577bff;
}

.navbar .logo .forces {
    color: #ecf0f1;
}

/* Navigation Links */
.navbar .links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 25px;
    position: relative;
    transition: all 0.3s ease;
}

/* Creative hover effects */
.navbar .links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: #00c3ff;
    transition: width 0.3s ease;
}

.navbar .links a:hover::after {
    width: 100%;
}

.navbar a:hover {
    transform: translateY(-2px);
}

/* Home button special style */
.navbar a[href="#home"] {
    background-color: #00c3ff;
    color: white;
    font-weight: 600;
}

/* Profile Section */
.navbar .profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    cursor: pointer;
}

.navbar .profile img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #fff;
    transition: transform 0.3s ease;
}

.navbar .profile:hover img {
    transform: scale(1.05);
}

/* Dropdown for Profile Actions */
.navbar .profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background-color: #34495e;
    border-radius: 8px;
    padding: 10px;
    display: none;
    flex-direction: column;
    width: 150px;
    z-index: 1000;
}

.navbar .profile-dropdown a {
    color: white;
    padding: 8px;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.navbar .profile-dropdown a:hover {
    background-color: #00c3ff;
    transform: translateX(2px);
}

.navbar .profile:hover .profile-dropdown {
    display: flex;
}

/* Auth Button */
.auth-button {
    padding: 8px 16px;
    border-radius: 5px;
    color: white;
    background-color: #354774;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.auth-button:hover {
    background-color: #3a3d5e;
    transform: scale(1.05);
}

/* Hamburger Menu Button */
.navbar .menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    padding: 6px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar .menu-toggle {
        display: block;
    }
    .navbar .links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: #2c3e50;
        position: absolute;
        top: 55px;
        left: 0;
        padding: 10px 0;
        z-index: 100;
    }
    .navbar .links.active {
        display: flex;
    }
}
