/* info                     */
/* info                     */

/* Header */
header {
    height: 50px;
    /* background-color: var(--header-bg-color); */
    background: var( --gradient);
    color: var(--text-color);
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 0.01px solid var(--border-color2);
    font-family: 'Cairo', sans-serif;
    margin: 0;
    flex-direction: row; 
}

 









.logo-container {
    flex-grow: 0; 
    top: 10px; 
    z-index: 1000;
    background-color: transparent;
    margin-right: 10px;
    margin-left: 10px;

}

.logo {
    display: block;
    border: none;
    height: 30px;
}



.nav-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding: 0px 7px;
    justify-content: flex-end; 
}

.nav-links {
    display: flex;
}

.nav-links a {
    color: var(--text-color) !important;
    text-decoration: none !important;
    padding: 10px 20px;
    font-size: 1rem; 
    font-weight: 0; 
    position: relative; 
    transition: color 0.3s ease; 
}

.nav-wrapper img {
    transition: color 0.3s ease; 
    width: 22px; 
    height: auto; 
    animation: rotate 28s linear infinite; 
    cursor: pointer;
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.nav-links a:hover {
    /* background-color: var(--button-hover-bg-color); */
    color: #1f4088;
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1f4088;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.gear-icon {
    width: 22px; 
    height: 22px; 
    background-image: url('https://latif.pro/images/icons/settings-blue-boarder.svg'); /* Default icon for light mode */
    background-size: cover; 
    transition: background-image 0.3s ease; 
    cursor: pointer;
}

.gear-icon:hover {
    background-image: url('https://latif.pro/images/icons/settings-blue-fill.svg'); /* Icon on hover */
}

.dark-mode .gear-icon {
    background-image: url('https://latif.pro/images/icons/settings-white-fill.svg'); /* Default icon for dark mode */
}

.dark-mode .gear-icon:hover {
    background-image: url('https://latif.pro/images/icons/settings-blulight-fill.svg'); /* Default icon for dark mode */
}







.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    height: 22px;
}

.hamburger-menu .bar {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 60px;
    background: var( --gradient);
    min-width: 170px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--dropdown-shadow);
    z-index: 1;
}

.dropdown-content a {
    color: var(--text-color) !important;
    padding: 2px 20px;
    text-decoration: none;
    display: block;
    border-bottom: none;
    font-size: 1.3rem; 
    position: relative; /* Necessary for positioning the underline */
    transition: color 0.3s ease; 
}


.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    color: #1f4088; 
}
.dark-mode .dropdown-content a:hover {
    color: #ffd700; 
}

.dark-mode .dropdown-content a::after {
    background-color: #ffd700; 
}
.dropdown-content a::after {
    content: '';
    position: absolute;
    bottom: 7px; 
    left: 50%;
    width: 0; 
    height: 1.5px; 
    background-color: #1f4088; 
    transform: translateX(-50%); 
    transition: width 0.5s ease; 
}
.dropdown-content a:hover::after {
    width: 100%; 
}










/* Responsive Styles */
@media (max-width: 768px) {
    /* .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .gear-icon {
        display: none;                                       
    }
    .floating-island {
        display: none !important;                            
    } */


    .card-16 {
        padding: 20px;
    }

}





@media (max-width: 890px) {
    .nav-links {
        display: none; 
    }

    .hamburger-menu {
        display: flex; 
    }
    
    .gear-icon {
        display: none; 
    }
    
    .floating-island {
        display: none !important; 
    }


    .toggle-container1 {
        display: flex; 
        margin-top: 5px !important;
        margin-bottom: 5px;
        /* margin: 5px 0px 5px 15px; */
        justify-content: center ;
    }
    .toggle-container {
        display: flex;
        margin-bottom: 5px;
        /* margin: 0px 0px 5px 15px !important; */
        justify-content: center ;
    }
    .toggle8 {
        border: 1px solid gray;
    }
}

@media (min-width: 890px) {
    .nav-links {
        display: flex;
    }

    .hamburger-menu {
        display: none;                                      
    }
}













/* Desktop - All links visible */
@media (min-width: 891px) {
    .nav-links {
        display: flex;
    }
    .hamburger-menu {
        display: none;
    }
    .gear-icon {
        display: block;
    }
}

/* Tablet - Show only 3 most important links */
@media (max-width: 890px) and (min-width: 631px) {
    .nav-links {
        display: flex;
    }
    
    /* Hide less important links */

    /* .nav-links a:nth-child(1), */
    .nav-links a:nth-child(5),
    .nav-links a:nth-child(6){
        display: none;
    }
    
    .hamburger-menu {
        display: none;
    }
    .gear-icon {
        display: block;
    }
}

/* Mobile - Hide all nav links, show hamburger */
@media (max-width: 630px) {
    .nav-links {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
    .gear-icon {
        display: none;
    }
}


html[lang="en"] .logo-container {
    left: 20px;
}

html[lang="ar"] .logo-container {
    right: 20px;
    left: auto;
}
html[lang="ar"] header {
    text-align: right;
    direction: rtl;
}
html[lang="en"] header {
    text-align: left;
}
/* RTL Support */
html[lang="ar"] .dropdown-content {
    left: 10px; /* Set to left for RTL */
    right: auto; /* Reset right */
}


html:not([lang="ar"]) header {
    flex-direction: row;
}

html:not([lang="ar"]) .dropdown-content {
    right: 10px;
    left: auto;
}
/* RTL Support */
html[lang="ar"] .hamburger-menu {
    margin-left: 15px; /* Set to left for RTL */
    right: auto; /* Reset right */
}

html:not([lang="ar"]) .hamburger-menu {
    margin-right: 15px;
    left: auto;
}


