/* Professional Side Modal Styles */
.side-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.side-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    background: linear-gradient(180deg, #2f3b3b 0%, #1a2525 100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 0;
    display: block;
}

/* Arabic Language - Modal from Right */
html[lang="ar"] .side-modal {
    left: auto;
    right: 0;
    transform: translateX(100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.side-modal.active {
    transform: translateX(0) !important;
}

html[lang="ar"] .side-modal.active {
    transform: translateX(0) !important;
}

.side-modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}







.side-modal-content {
    padding: 0;
}




.side-modal-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .side-modal-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

        .side-modal-nav li:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateX(5px);
        }

html[lang="ar"] .side-modal-nav li:hover {
    transform: translateX(5px);
}

.side-modal-nav li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 20px 30px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .side-modal-nav li a:hover {
        color: #b69d74;
        padding-left: 40px;
    }

html[lang="ar"] .side-modal-nav li a:hover {
    padding-left: 40px;
    padding-right: 30px;
}

.side-modal-nav li a.active {
    color: #b69d74;
    background: rgba(182, 157, 116, 0.1);
}

/* Ripple Effect */
.side-modal-nav li a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.side-modal-nav li a:active::before {
    width: 300px;
    height: 300px;
}

/* Side Modal Controls */
.side-modal-controls {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.side-modal-language,
.side-modal-theme {
    margin-bottom: 20px;
}

    .side-modal-language h4,
    .side-modal-theme h4 {
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.language-buttons {
    display: flex;
    gap: 10px;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .language-btn:hover {
        background: rgba(182, 157, 116, 0.3);
        color: #b69d74;
        transform: translateY(-2px);
    }

    .language-btn.active {
        background: rgba(182, 157, 116, 0.5);
        color: #ffffff;
        border-color: #b69d74;
    }

/* Theme Switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

    .theme-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 30px;
}

    .theme-slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

.theme-switch input:checked + .theme-slider {
    background-color: #b69d74;
}

    .theme-switch input:checked + .theme-slider:before {
        transform: translateX(30px);
    }

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .theme-icon svg {
        width: 12px;
        height: 12px;
        color: #ffffff;
        position: absolute;
        transition: opacity 0.3s ease;
    }

    .theme-icon .sun {
        opacity: 1;
    }

    .theme-icon .moon {
        opacity: 0;
    }

.theme-switch input:checked + .theme-slider .theme-icon .sun {
    opacity: 0;
}

.theme-switch input:checked + .theme-slider .theme-icon .moon {
    opacity: 1;
}

/* Improve Menu Items Size */
.side-modal-nav li a {
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

    .side-modal-nav li a:hover {
        padding-left: 35px;
    }

html[lang="ar"] .side-modal-nav li a:hover {
    padding-left: 25px;
    padding-right: 35px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(47, 59, 59, 0.9);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

html[lang="ar"] .mobile-menu-btn {
    right: 20px;
    left: auto;
}

.mobile-menu-btn:hover {
    background: rgba(182, 157, 116, 0.9);
    transform: scale(1.1);
}



/* Hamburger Animation */
.hamburger {
/*    width: 25px;
    height: 20px;*/
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

    .hamburger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #b69d74;
        border-radius: 2px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: 0.25s ease-in-out;
    }

        .hamburger span:nth-child(1) {
            top: 0px;
        }

        .hamburger span:nth-child(2) {
            top: 8px;
        }

        .hamburger span:nth-child(3) {
            top: 16px;
        }

    .hamburger.active span:nth-child(1) {
        top: 8px;
        transform: rotate(135deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .hamburger.active span:nth-child(3) {
        top: 8px;
        transform: rotate(-135deg);
    }

/* Responsive */
@media (max-width: 480px) {
    .side-modal {
        width: 100%;
    }

    .mobile-menu-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Hide original navigation only on mobile */
@media (max-width: 991px) {
    .mean-container {
        display: none !important;
    }

    .main-nav {
        display: none !important;
    }

    .mobile-nav {
        display: none !important;
    }
}

/* Show mobile menu button only on mobile */
@media (max-width: 991px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* Hide mobile menu button on desktop */
@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Mobile Navbar Styles */
.mobile-navbar {
    position: fixed;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 70px;
    background: linear-gradient(135deg, #2f3b3b 0%, #1a2525 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    display: none;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(182, 157, 116, 0.2);
}

.mobile-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

/* English Language - Mobile Navbar Content */


.mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.mobile-logo img {
    height: 60px;
    width: auto;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
    top: 20px;
    left: 20%;

}
html[lang="ar"] .mobile-logo img {
    left: -20%;
}
/* Circular background behind logo */
.mobile-logo::before {
    content: '';
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2f3b3b 0%, #1a2525 100%);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(182, 157, 116, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    left: 70%;


}

/* Add inner glow effect */
.mobile-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(182, 157, 116, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Arabic Language - Logo positioning */
html[lang="ar"] .mobile-logo::before {
    left: 30%;
    right: auto;
}

/* Logo hover effect */
.mobile-logo:hover::before {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    border-color: rgba(182, 157, 116, 0.6);
}

.mobile-logo:hover::after {
    background: radial-gradient(circle, rgba(182, 157, 116, 0.2) 0%, transparent 70%);
}

.mobile-logo:hover img {
    transform: scale(1.02);
}

.mobile-menu-btn-navbar {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

    .mobile-menu-btn-navbar:hover {
      
        transform: scale(1.05);
    }

 

    .mobile-menu-btn-navbar .hamburger {
        width: 20px;
        height: 20px;
    }

        .mobile-menu-btn-navbar .hamburger span {
            height: 2px;
            margin-top: 3px;
        }

/* Show mobile navbar only on mobile */
@media (max-width: 991px) {
    .mobile-navbar {
        display: block !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }
}

/* Hide mobile navbar on desktop */
@media (min-width: 992px) {
    .mobile-navbar {
        display: none !important;
    }
}

/* Add padding to body when mobile navbar is present */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
}

/* Ensure modal elements are properly displayed */
.side-modal {
    display: block;
}

.side-modal-overlay {
    display: block;
}

/* Force modal to be visible when active */
.side-modal.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 295px;
}

/* Arabic Language - Modal from Right when active */
html[lang="ar"] .side-modal.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 295px;
}

.side-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}



.hero-home{
    color: #ffffff !important;
 }
 
 /* Move main logo down */
 .banner-right {
     margin-top: 50px;
 }
 
@media (max-width: 991px) {
    .banner-right {
        margin-top: 30px;
    }
}

/* NeuroCode Logo Styles */
.neurocode-logo {
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}
.neurocode-logo img {
    height: 35px;
    width: auto;
    opacity: 0.7;
    position: relative;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.neurocode-logo:hover {
    text-decoration: none;
}

.neurocode-logo:hover img {
    opacity: 1;
    filter: none;
    transform: scale(1.05);
}