html{
direction: rtl;
}


body{
    margin: 0;
    overflow-x: hidden;
    font-family: 'Cairo', sans-serif;
    direction: rtl;

}

body.disabledScroll{
    overflow: hidden;
}

.nav-content{
    margin: auto;
    padding: 0px 30px;
    width: 87%;
    
}


.navbar{
    position: fixed;
    top: 0;
    z-index: 5;
    width: 100%;
    padding: 25px 0;
    
    background: none;
}

.navbar.sticky{
    padding: 3px 10px;
    z-index: 999;
    border-radius: 50px;
    margin-top: 1%;
    width: 95%;
    margin-right: 2%;
   box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #e3e3e3;
    transition: all 0.3s ease;
}

.navbar .nav-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a{
    text-decoration: none;
}

.navbar .logo a img{
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

.navbar .menu-list{
    display: inline-flex;
    margin-top: 1%;
}

.menu-list li{
    list-style: none;
    
}

.menu-list li a{
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-right: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: sans-serif;
}

.menu-list li a:hover{
    color: rgba(255, 255, 255, 0.7);
}

.navbar.sticky .logo a img{
    filter: brightness(1) invert(0);
    padding-top: 15px;
    padding-bottom: 5px;
    width: 140px;
} 

.navbar.sticky .menu-list li a{
    color: #1c8270;
}

.icon{
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none;
}

.menu-list .cancel-btn{
    position: absolute;
    right: 30px;
    top: 20px;
    color: #1c8270;
}

.navbar.sticky .icon{
    color: #1c8270;
}

/* Responsive breakpoints for better spacing */
@media (max-width: 1230px) {
    .nav-content{
        padding: 0 60px;
        width: 90%;
    }
}

@media (max-width: 1100px) {
    .nav-content{
        padding: 0 40px;
        width: 92%;
    }
}

@media (max-width: 900px) {
    .nav-content{
        padding: 0 30px;
        width: 95%;
    }
}

@media (max-width: 868px) {
    body.disabledScroll{
        overflow: hidden;
    }
    
    .icon{
        display: block;
    }
    
    .icon.hide{
        display: none;
    }
    
    .navbar .menu-list{
        position: fixed;
        height: 100vh;
        width: 100%;
        max-width: 400px;
        left: -100%;
        top: 0px;
        display: block;
        padding: 40px 0;
        text-align: center;
        background: rgba(224, 224, 224, 1);
        transition: all 0.3s ease;
        z-index: 999;

    }


    
    .navbar.show .menu-list{
        left: 0%;
        margin-top: 0%;
    }
    
    .navbar .menu-list li{
        margin-top: 45px;
    }
    
    .navbar .menu-list li a{
        font-size: 23px;
        color: #fff;
        margin-right: -100%;
        transition: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        color: #1c8270;
    }
    
    .navbar.show .menu-list li a{
        margin-right: 0px;
    }
}

@media (max-width: 380px) {
    .navbar .logo a img{
        width: 120px;
    }
    
    .navbar.sticky .logo a img{
        width: 110px;
    }
}

/* Rest of your carousel styles remain unchanged */
.carousel{
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 3%;
}

.list{
    width: 100%;
    height: 100%;
}

.item{
    width: 100%;
    height: 100%;
    background-color: var(--background);
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: none;
    transition: all 0.3s ease;
    border-bottom-right-radius: 80px;
    border-bottom-left-radius: 80px;
}

.item img.fruit{
    width: 80%;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.item .content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: clamp(4rem, 12vw, 12rem);
    color: #eee;
    font-weight: bold;
    font-family: system-ui;
    text-transform: uppercase;
    white-space: nowrap;
  
}

.item.active{
    display: block;
}

.item.hidden{
    display: block;
    pointer-events: none;
    background-color: transparent;
  
}

#prev,
#next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(238, 238, 238, 0.6);
    background-color: rgba(238, 238, 238, 0.3);
    color: #eee;
    font-size: x-large;
    font-family: monospace;
    cursor: pointer;
    direction: ltr;
    transition: all 0.3s ease;
}

#prev:hover,
#next:hover{
    background-color: rgba(238, 238, 238, 0.5);
}

#prev{
    left: 20px;
}

#next{
    right: 20px;
}

@keyframes slideUpFromBottom{
    from{
        transform: translate(-50%, 50%);
        opacity: 0;
    }
    to{
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes fadeOut{
    from{
        opacity: 1;
    }
    to{
        opacity: 0;
    }
}

@keyframes mockupSlideUp{
    from{
        transform: translate(-50%, 50%);
        opacity: 0;
    }
    to{
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.item.active img.fruit{
    animation: slideUpFromBottom 0.6s ease-out forwards;
}

.item.hidden img.fruit{
    animation: fadeOut 0.3s ease-out forwards;
}

.item.active .content{
    animation: slideUpFromBottom 0.8s ease-out forwards;
}

.item.hidden .content{
    opacity: 0;
}

.carousel.right .item.active img.fruit{
    animation: slideUpFromBottom 0.6s ease-out forwards;
}

.carousel.right .item.hidden img.fruit{
    animation: fadeOut 0.3s ease-out forwards;
}

.carousel.right .item.active .content{
    animation: slideUpFromBottom 0.8s ease-out forwards;
}

:root{
    --width-mockup: calc(371px / 1.5);
    --height-mockup: calc(673px / 1.5);
}

.mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: var(--height-mockup);
    width: var(--width-mockup);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    
    transition: all 0.3s ease;
}

.mockup.animate{
    animation: mockupSlideUp 0.7s ease-out forwards;
}

.leaves{
    position: absolute;
    width: 170px;
    height: 170px;
    background-image: url(img/leaves.png);
    background-size: 100%;
    top: calc((50% - (var(--height-mockup) / 1.7)));
    left: calc((50% + (var(--width-mockup) / 5)));
}

.shadow{
    width: var(--width-mockup);
    height: 100px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    position: absolute;
    top:  calc((50% + (var(--height-mockup) / 2)));
    left: 50%;
    transform: translateX(-50%);
    filter: blur(20px);
}

@media screen and (max-width: 768px) {
    .item .content{
        font-size: clamp(3rem, 10vw, 8rem);
    }
    
    .item img.fruit{
        width: 100%;
     
    }

    #prev, #next {

        width: 40px;
        height: 40px;
        font-size: large;
        z-index: 2;
        color: black;
    }

    #prev{
        left: 10px;
    }

    #next{
        right: 10px;
    }
}

.item .content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.item .content .main-text{
    font-size: clamp(12rem, 12vw, 12rem);
    line-height: 0.8;
    margin-top: 6%;
}

.item .content .sub-text{
    font-size: clamp(rem, 12vw, 12rem);
    line-height: 0.8;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 5%;
}

@media screen and (max-width: 768px) {
    .item .content .main-text{
        font-size: clamp(3rem, 10vw, 8rem);
    }
    
    .item .content .sub-text{
        font-size: clamp(1.5rem, 5vw, 4rem);
    }
}


/* Add these styles to your existing CSS */

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a::after {
    content: " ▼";
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    margin-top: 8%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0);
    border-radius: 12px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding:5px 15px;
    width: 140px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    color: #1c8270 !important;
    text-decoration: none;
    padding: 12px 16px;
    font-size: 1px;
    font-weight: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(28, 130, 112, 0.1);
    margin-right: 0 !important;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(28, 130, 112, 0);
    color: #1c8270 !important;
    padding-left: 20px;
}

/* Sticky navbar dropdown styles */
.navbar.sticky .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(28, 130, 112, 0.2);
}

.navbar.sticky .dropdown-menu a {
    color: #1c8270 !important;
}

.navbar.sticky .dropdown-menu a:hover {
    background-color: rgba(28, 130, 112, 0.1);
}

/* Mobile responsive dropdown */
/* Fixed mobile navigation for Arabic RTL */
@media (max-width: 868px) {
    body.disabledScroll{
        overflow: hidden;
    }
    
    .icon{
        display: block;
    }
    
    .icon.hide{
        display: none;
    }
    
    .navbar .menu-list{
        position: fixed;
        height: 100vh;
        width: 100%;
        max-width: 400px;
        /* Changed: slide from right for RTL */
        right: -100%;
        left: auto;
        top: 0px;
        display: block;
        padding: 40px 0;
        text-align: center;
        background: rgba(224, 224, 224, 1);
        transition: all 0.3s ease;
        z-index: 999;
        /* Add RTL direction */
        direction: rtl;
    }
    
    .navbar.show .menu-list{
        /* Changed: slide to right: 0 for RTL */
        right: 0%;
        left: auto;
        margin-top: 0%;
    }
    
    .navbar .menu-list li{
        margin-top: 45px;
    }
    
    .navbar .menu-list li a{
        font-size: 23px;
        color: #1c8270;
        /* Fixed: Remove conflicting margin-right */
        margin-right: 0;
        margin-left: 0;
        transition: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        /* Better RTL text alignment */
        display: block;
        padding: 10px 20px;
    }
    
    .navbar.show .menu-list li a{
        /* Remove conflicting margin */
        margin-right: 0px;
        margin-left: 0px;
    }
}

/* Fixed dropdown for mobile RTL */
@media (max-width: 868px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        border-radius: 8px;
        margin-top: 10px;
        margin-bottom: 10px;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        /* Ensure RTL alignment */
        text-align: center;
        direction: rtl;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        max-height: 200px;
        background: transparent;
    }
    
    .dropdown-menu a {
        padding: 15px 20px;
        font-size: 20px;
        color: #1c8270 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transition: 0.3s ease;
        /* Better mobile tap targets */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(28, 130, 112, 0.1);
        /* Remove padding animation that might look odd on mobile */
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Additional improvements for Arabic mobile nav */
@media (max-width: 868px) {
    /* Ensure proper RTL spacing */
    .nav-content {
        padding: 0 20px;
        width: 95%;
    }
    
    /* Better hamburger positioning for RTL */
    .icon {
        order: -1; /* Move hamburger to the right in RTL */
    }
    
    /* Improve close button positioning */
    .menu-list .cancel-btn {
        position: absolute;
        left: 30px; /* Changed from right to left for RTL */
        right: auto;
        top: 20px;
        color: #1c8270;
    }
    
    /* Better language switcher mobile layout */
    #nav-lang-en, #nav-lang-ar {
        font-size: 18px;
        padding: 5px 10px;
    }
}

#nav-lang-en{
    font-size: 18px;
}

#nav-lang-ar{
    font-size: 19px;
}