
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: translateY(-25px) rotate(180deg);
        opacity: 0.7;
    }

    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 1;
    }
}

/* عند النزول اخفاء السحابة */
.cloud-hidden {
    top: -200px !important;
}


/* نص مرحبا */
.event-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* أفقياً */
    justify-content: center;
    /* عمودياً */
    width: 100%;
    font-weight: bold;
}

.event-status {
    font-size: 0.9rem;
    color: #555;
}

/* اخر الاعلان السحابي  */


/* تحديث أنماط القائمة المنسدلة لوظفني */
.hire-dropdown .nav-link.hire-btn {
    background: linear-gradient(135deg, var(--my-code) 0%, #005570 100%);
    margin-right: 0.5rem;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 108, 134, 0.3);
}

.hire-dropdown .nav-link.hire-btn:hover {
    background: linear-gradient(135deg, #005570 0%, #004456 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 108, 134, 0.4);
}

/* القائمة المنسدلة لوظفني */
.hire-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: fadeInDown 0.3s ease;
}

.hire-dropdown:hover .hire-dropdown-menu {
    display: block;
}

.hire-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    font-size: var(--font-size-sm);
}

.hire-dropdown-item i {
    color: var(--my-code);
    width: 1rem;
    text-align: center;
}

.hire-dropdown-item:hover {
    background: var(--bg-light);
    color: var(--my-code);
}

.hire-dropdown-item:last-child {
    border-bottom: none;
}

/* تحسين التصميم للشاشات الصغيرة */
@media (max-width: 768px) {
    .hire-dropdown .nav-link.hire-btn {
        margin-right: 0;
        margin-top: 0.5rem;
    }

    .hire-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        display: none;
        border: none;
        margin-top: 0.5rem;
        padding-right: 1rem;
    }

    .hire-dropdown.active .hire-dropdown-menu {
        display: block;
    }

    .hire-dropdown-item {
        padding: 0.75rem 1rem;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hire-dropdown-item i {
        color: white;
    }
}

/*========================= Animations =========================*/
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*========================= TOP BAR =========================*/
.top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.5rem 0;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.datetime-info,
.weather-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.datetime-info i,
.weather-info i {
    color: #fbbf24;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.weather-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(10px);

}

/*========================= MAIN HEADER =========================*/
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: relative;
    top: 0;
    z-index: 1001;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    gap: 2rem;
}

.logo-section {
    flex-shrink: 0;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/*========================= Search Styles =========================*/
.search-container {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: var(--bg-light);
}

.search-box {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 300px;
    display: none;
    z-index: 1001;
    border: 1px solid var(--border-color);
}

.search-container:hover .search-box {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    margin-bottom: 0.5rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.search-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/*========================= Language Selector =========================*/
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: auto;
}

.language-btn:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: auto;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.language-selector:hover .language-dropdown {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.language-option {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.language-option:hover {
    background: var(--bg-light);
}

.language-option:last-child {
    border-bottom: none;
}

/*========================= NAVBAR =========================*/
.main-navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    position: relative;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.125rem;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 1rem 1.125rem;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
}

.nav-link i {
    font-size: 0.875rem;
    opacity: 0.9;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fbbf24;
}

.nav-link.active i {
    color: #fbbf24;
}




/*========================= Dropdown Styles =========================*/
.dropdown .nav-link .fa-chevron-down {
    font-size: 0.75rem;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-link .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: fadeInDown 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    font-size: var(--font-size-sm);
}

.dropdown-item i {
    color: var(--primary-color);
    width: 1rem;
    text-align: center;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

/*========================= Join Button =========================*/
.join-item .nav-link.join-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    /* margin-right: 0.5rem; */
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.join-item .nav-link.join-btn:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #9b2c2c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4);
}


/*========================= زر وظفني =========================*/
.hire-item .nav-link.hire-btn {
    background: linear-gradient(135deg, var(--my-code) 0%, #005570 100%);
    margin-right: 0.5rem;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 108, 134, 0.3);
}

.hire-item .nav-link.hire-btn:hover {
    background: linear-gradient(135deg, #005570 0%, #004456 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 108, 134, 0.4);
}

/* تحسين التصميم للشاشات الصغيرة */
@media (max-width: 768px) {
    .hire-item .nav-link.hire-btn {
        margin-right: 0;
        margin-top: 0.5rem;
    }
}

/*========================= Mobile Menu Toggle =========================*/
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    position: relative;
    z-index: 1001;
}

.toggle-bar {
    width: 1.5rem;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/*========================= Overlay للخلفية =========================*/
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.nav-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/*========================= تحسينات إضافية للقائمة المتنقلة =========================*/
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        border-radius: 0;
        justify-content: flex-start;
    }

    /* تحسين القوائم المنسدلة في الجوال */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        display: none;
        border: none;
        margin-top: 0.5rem;
        padding-right: 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-item i {
        color: white;
    }

    /* زر القائمة المتنقلة */
    .mobile-menu-toggle {
        display: flex;
    }

    /* إخفاء شريط المعلومات العلوي بالكامل */
    .top-bar {
        display: none;
    }

    /* إخفاء وسائل التواصل في الهيدر */
    .social-links {
        display: none !important;
    }

    /* تعديل الهيدر ليكون أكثر ملائمة للجوال */
    .header-content {
        padding: 0.5rem 0;
        gap: 1rem;
    }

    .header-actions {
        justify-content: flex-end;
        width: auto;
    }

    .logo-img {
        height: 80px;
    }

    .header-controls {
        gap: 0.5rem;
    }

    .search-box {
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .language-btn .language-text {
        display: none;
    }

    .language-btn {
        padding: 0.5rem;
    }

    .logo-img {
        height: 60px;
    }
}

/* منع ظهور dropdown عند hover على الجوال */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}
