﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0a0b1f;
    color: white;
}

.navbar {
    background: linear-gradient(to right, #1c145c, #2e185f);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

    .nav-links ul li {
        position: relative;
    }

        .nav-links ul li a {
            color: #fff;
            text-decoration: none;
            padding: 0.5rem 0;
            transition: color 0.3s ease;
        }

            .nav-links ul li a:hover {
                color: #00ffff;
            }

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    background-color: #1e1e40;
    top: 100%;
    left: 0;
    border-radius: 0.3rem;
    overflow: hidden;
    z-index: 99;
    min-width: 150px;
}

    .dropdown li a {
        display: block;
        padding: 0.5rem 1rem;
        color: white;
        white-space: nowrap;
    }

        .dropdown li a:hover {
            background-color: #2a2a5a;
        }

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
    }

        .nav-links.open {
            display: block;
            background-color: #1c145c;
            position: absolute;
            top: 60px;
            left: 0;
            padding: 1rem;
        }

        .nav-links ul {
            flex-direction: column;
            gap: 1rem;
        }

    .dropdown {
        position: static;
        display: none;
    }

    .has-dropdown > a::after {
        content: ' ▾';
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .menu-toggle {
        display: block;
    }
}
