﻿<style >
/* ===============================
           MEGA NAVBAR CSS - NEON + BLUR + RESPONSIVE
           =============================== */
.mega-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #000;
    backdrop-filter: blur(10px);
}

.mega-navbar {
    position: relative;
    background: #000;
}

.mega-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    padding-left: 15px;
}

.mega-brand {
    color: #ffd700;
    font-size: 24px;
    font-weight: 800;
    text-shadow: 0 0 15px #ffd700;
}

.mega-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    position: relative;
}

    .mega-menu li {
        position: relative;
    }

    .mega-menu a {
        color: #fff;
        text-decoration: none;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        gap: 4px;
        border-radius: 6px;
        transition: .2s;
        font-weight: 500;
    }

        .mega-menu a:hover {
            background: #ffd700;
            color: #000;
            text-shadow: 0 0 10px #000;
        }

.triangle {
    font-size: 12px;
    color: #ffd700;
    margin-left: 4px;
}

/* زیرمنو overlay */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 10;
    background: rgba(5,5,5,0.95);
    min-width: 200px;
    border: 1px solid #ffd700;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(255,215,0,.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .25s;
    z-index: 10000;
}

    .sub-menu li a {
        padding: 8px 12px;
    }

/* Mega Submenu 3 Columns */
.mega-sub {
    display: flex;
    gap: 20px;
    padding: 15px;
}

    .mega-sub .col {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

        .mega-sub .col strong {
            color: #ffd700;
            margin-bottom: 5px;
        }

/* باز شدن */
.has-sub.open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* موبایل */
.mega-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffd700;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mega-toggle {
        display: block;
    }

    .mega-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: #000;
        flex-direction: column;
        width: 100%;
        display: none;
        padding: 10px;
        z-index: 10000;
    }

        .mega-menu.show {
            display: flex;
        }

    .sub-menu {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        box-shadow: none;
        flex-direction: column;
        padding: 0;
    }

    .mega-sub {
        flex-direction: column;
        gap: 0;
        padding-left: 10px;
    }

        .mega-sub .col {
            gap: 0;
            margin-bottom: 10px;
        }
}

 

.mega-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(120deg, #000, #111, #000);
    background-size: 300% 300%;
    animation: waveBG 8s ease infinite;
    backdrop-filter: blur(10px);
}

@keyframes waveBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

</style >
