/* General Reset */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(120deg, #0a0a0a, #121212);
    color: #fff;
    overflow-x: hidden;
}

/* Navigation Bar Styling */
.main-nav {
    background: linear-gradient(90deg, #000, #000);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease-in-out;
}

.main-nav:hover {
    background: linear-gradient(90deg, #000, #000);
}

/* Navigation List Styling */
.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow: hidden;
    max-height: none;
    opacity: 1;
}

/* Navigation List - Hidden on Mobile */
.main-nav ul.collapsed {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
}

/* Navigation Links */
.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease-in-out;
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #00ffcc, #f3f702);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-in-out;
    z-index: -1;
    border-radius: 8px;
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.nav-link:hover {
    color: #000;
    transform: translateY(-4px);
}

/* Active Link */
.nav-link:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    position: relative;
    cursor: pointer;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 20;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger Active Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav ul {
        max-height: 0;
        opacity: 0;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        background: linear-gradient(90deg, #111, #222);
        border-radius: 12px;
        padding: 1rem;
        position: absolute;
        top: 70px;
        right: 70px;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
        transition: all 0.4s ease-in-out;
    }

    .main-nav ul.expanded {
        max-height: 300px; /* Adjust as per menu height */
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-nav ul li {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        gap: 15px;
    }
}
