﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.menu-container {
    position: relative;
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1001;
}

    .menu-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: #fff;
        border-radius: 10px;
        transition: 0.3s;
    }

/* Menu styles */
#menu {
    background-color: #39046c;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    list-style: none;
    margin: 0;
}

    #menu li {
        flex: 1;
        text-align: center;
        font-size: 20px;
        font-family: Calibri, sans-serif;
        max-width: 100px;
    }

        #menu li a {
            color: #fff;
            text-decoration: none;
            display: block;
            padding: 10px 5px;
            height: 100%;
            transition: all 0.3s ease;
        }

            #menu li a:hover {
                font-size: 22px;
                color: #ffd800;
            }

        #menu li:hover {
            background-color: #358204;
        }

/* Responsive Design */
@media screen and (max-width: 1024px) {
    #menu li {
        font-size: 18px;
    }

        #menu li a:hover {
            font-size: 20px;
        }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    #menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 180px;
        height: 100vh;
        background-color: #f00;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    }

        #menu.active {
            left: 0;
        }

        #menu li {
            width: 100%;
            max-width: 100%;
            text-align: left;
            padding: 0;
            margin: 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

            #menu li a {
                padding: 15px 20px;
                font-size: 18px;
            }

                #menu li a:hover {
                    font-size: 19px;
                    padding-left: 25px;
                }

            #menu li:hover {
                background-color: #358204;
            }

    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

        .menu-overlay.active {
            display: block;
        }

    /* Animate hamburger to X when active */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media screen and (max-width: 480px) {
    #menu {
        width: 100%;
        max-width: 100%;
    }

        #menu li a {
            font-size: 16px;
            padding: 12px 20px;
        }
}
