/* Navbar container styling */
.navbar {
    position: fixed; /* Makes the navbar fixed at the top of the viewport */
    top: 0;
    left: 0;
    width: 100%; /* Spans the full width */
    background: linear-gradient(135deg, #dc3545, #c82333); /* Red gradient background */
    color: white; /* White text color */
    z-index: 1000; /* Ensures it appears above other elements */
    display: flex; /* Align items */
    justify-content: space-between; /* Space between logo and links */
    align-items: center; /* Vertically center items */
    padding: 15px 25px; /* Add some padding */
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3); /* Red shadow for better visuals */
    backdrop-filter: blur(10px);
}

/* Logo styling */
.nav-logo img, .logo {
    max-height: 50px; /* Adjust logo height */
    height: 50px;
    width: auto;
    display: block;
    filter: brightness(1.1); /* Slightly brighten logo for visibility */
    transition: transform 0.3s ease;
}

.nav-logo img:hover, .logo:hover {
    transform: scale(1.05);
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 20px; /* Space between links */
}

.nav-links a {
    color: white; /* White link color */
    text-decoration: none; /* Remove underline */
    font-size: 16px; /* Adjust font size */
    font-weight: 600;
    padding: 8px 12px; /* Add padding for clickable area */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease; /* Smooth hover effect */
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light background on hover */
    color: #f8f9fa; /* Brighter white on hover */
    border-radius: 5px; /* Slightly rounded edges */
    transform: translateY(-1px);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Add spacing to prevent content overlap */
body {
    margin-top: 80px; /* Add space equal to navbar height */
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        margin-top: 100px; /* Extra space for mobile wrapping */
    }

    .navbar {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .nav-logo img {
        max-height: 40px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        margin-top: 0.5rem;
        width: 100%;
    }

    .nav-links a {
        font-size: 14px;
        padding: 6px 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        backdrop-filter: blur(5px);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.25);
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }

    .nav-logo img {
        max-height: 35px;
    }

    .nav-links {
        gap: 12px;
        margin-top: 0.5rem;
    }

    .nav-links a {
        font-size: 13px;
        padding: 5px 8px;
    }
}