:root {
    --primary-color: #00ff94;
    --secondary-color: #00bf70;
    --text-color: #ffffff;
    --bg-color: rgba(0, 0, 0, 0.9);
    --menu-speed: 0.75s;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    background: black;
    color: var(--text-color);
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgb(0 0 0 / 9%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 255, 148, 0.2);
}

.brand-logo {
    height: 50px;
    width: auto;
}

.navigation-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menu-link {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 0 10px var(--primary-color);
}

.menu-icon {
    font-size: 1.4rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    transition: all var(--menu-speed) ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.hamburger-top { top: 0; }
.hamburger-middle { top: 50%; transform: translateY(-50%); }
.hamburger-bottom { bottom: 0; }

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .menu-link {
        font-size: 1.3rem;
    }

    .navigation-overlay {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        transition: all var(--menu-speed) ease;
        visibility: hidden;
    }

    .navigation-overlay.active {
        right: 0;
        visibility: visible;
    }

    .navigation-content {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navigation-menu {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.5s ease;
    }

    .navigation-overlay.active .navigation-menu {
        opacity: 1;
        transform: translateY(0);
    }

    .menu-item {
        width: 100%;
        text-align: center;
    }

    .menu-link {
        padding: 1.2rem 2rem;
        width: 100%;
        justify-content: center;
        background: rgba(0, 255, 148, 0.1);
        border: 1px solid rgba(0, 255, 148, 0.2);
    }

    .menu-link:hover {
        background: rgba(0, 255, 148, 0.2);
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 255, 148, 0.3);
    }
}

@media (min-width: 769px) {
    .menu-link:hover {
        background: rgba(0, 255, 148, 0.1);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 255, 148, 0.2);
    }

    .navigation-overlay {
        display: block !important;
    }
}