* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    background: #f5f5f5;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #3ea659, #00402e);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /*box-shadow: 0 4px 20px rgba(0,0,0,0.15);*/
    box-shadow:
            rgba(50, 50, 93, 0.25) 0px 30px 40px -10px,
            rgba(0, 0, 0, 0.3) 0px 20px 30px -20px;


}

/* Unified Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 25px;
    flex-direction: row-reverse;
}

.logo {
    font-size: 30px;
    /*font-weight: bold;*/
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
    color: #90EE90;
    text-decoration: none;
}

/* Menu Toggle Button */
.menu-toggle {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 08px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.menu-toggle.active {
    background: rgba(255,255,255,0.25);
    transform: scale(0.95);
}


/* Drawer Menu */
.drawer-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, #043122 0%, #122a24 50%, #2c5530 100%);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
}

.drawer-menu.active {
    right: 0;
}

/* Drawer Header */
.drawer-header {
    padding: 25px;
    background: rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.drawer-logo {
    color: white;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-logo i {
    font-size: 26px;
    color: #90EE90;
}

.close-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg) scale(1.1);
}

/* Menu Items */
.drawer-content {
    /*padding: 20px 0;*/
    padding: 20px 0 80px 0;
}

.menu-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    color: white;
    text-decoration: none;
    font-size: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: right 0.5s ease;
}

.menu-link:hover::before {
    right: 100%;
}

.menu-link:hover {
    background: rgba(255,255,255,0.1);
    padding-right: 35px;
    text-decoration: none;
    color: #90EE90;
}



.menu-link i {
    margin-left: 12px;
    font-size: 16px;
}
.menu-link,
.menu-link span {
    text-decoration: none !important;
    color: white;
}

/* Submenu Styles */
.submenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.25);
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.submenu.active {
    /*max-height: 650px;*/
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.submenu-item {
    right: 25px;
    padding: 16px 25px 16px 50px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    font-size: 20px;
    position: relative;
}

.submenu-item::before {
    content: '◦';
    position: absolute;
    right: -10px;
    color: #90EE90;
    font-size: 20px;
    transition: all 0.3s ease;
}

.submenu-item:hover {
    background: rgba(255,255,255,0.1);
    padding-right: 35px;
    color: #90EE90;
}

.submenu-item:hover::before {
    right: 10px;
    transform: scale(1.2);
}

.submenu-item:last-child {
    border-bottom: none;
}

/* Arrow Animation */
.submenu-arrow {
    transition: transform 0.3s ease;
    color: #90EE90;
    font-size: 14px;
}

.submenu-arrow.rotated {
    transform: rotate(180deg);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .drawer-menu {
        width: 80%;
        right: -80%;
    }



        .menu-item {
            line-height: 1;
        }

        .submenu.active {
        max-height: calc(100vh - 180px);
        overflow-y: auto;
    }


    .main-nav {
        padding: 1px 20px;
    }

    .logo {
        font-size: 30px;
    }

    a.logo {
        float: left!important;
        outline: none;
    }

    .menu-toggle {
        /*padding: 10px 20px;*/
        font-size: 22px;
    }

    /* Remove icons on mobile */
    .menu-icon,
    .drawer-logo i {
        display: none;
    }
}

@media (max-width: 480px) {

    a.logo {
        width: unset;
        float: left!important;
        outline: none;
        margin: 4px 0 10px 0;
    }

    .drawer-header {
        padding: 23px;
    }

    .drawer-logo {
        font-size: 25px;
    }

    .menu-link {
        padding: 18px 20px;
        font-size: 22px;
    }

    .submenu-item {
        padding: 14px 20px 14px 40px;
        font-size: 20px;
    }
}



.feature-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px 0;
    border-right: 5px solid #4a7c59;
}

/* Custom Scrollbar for Drawer */
.drawer-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.drawer-menu::-webkit-scrollbar {
    width: 8px;
}

.drawer-menu::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.drawer-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Menu item icons */
.menu-icon {
    margin-left: 10px;
    color: #90EE90;
    font-size: 16px;
}
