:root {
    --primary-color: #333;
    --secondary-color: #ffffff;
    --accent-color: #0077cc;
    --gradient-bg: linear-gradient(135deg, rgba(246, 2, 2, 0.3), rgba(8, 8, 8, 0.2));
    --mobile-gradient: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background:linear-gradient(0deg, rgb(0 27 255 / 86%), rgb(255 0 0 / 80%));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
    border-radius: 10px;
    margin: 10px;
    position: fixed;
    width: -webkit-fill-available;
    top: 0px;
    z-index: 1;
}
.logo {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu > li {
    margin-left: 1rem;
    position: relative;
}

.nav-menu > li > a {
    color: #fff; /* White text for better visibility */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: larger;
}

.nav-menu > li > a:hover {
    color: var(--accent-color);
    transform: scale(1.1); /* Adds a slight zoom effect on hover */
}

.dropdown {
    position: relative;
}

.dropdown-trigger::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--gradient-bg); /* Gradient background for dropdown */
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    padding: 0.5rem 1rem;
}

.dropdown-content li a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
}

.dropdown-content li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.8); /* Transparent white */
    margin: 3px 0;
    transition: 0.4s;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: linear-gradient(0deg, rgb(0 27 255 / 86%), rgb(255 0 0 / 80%));; /* Darker gradient for mobile */
        backdrop-filter: blur(10px);
        border-radius: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        margin: 0;
        padding: 1rem;
        border-top: 1px solid #444;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.5); /* Slightly opaque background */
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .hamburger {
        display: flex;
    }
}
