/* Global overflow fixes */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Ensure hero section doesn't cause overflow */
.relative.flex-grow.flex.flex-col.min-h-\[calc\(95vh-6rem\)\] {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

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

        .frosted-glass {
            background-color: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 1rem;
            position: relative;
            transform: translateY(-20px);
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .modal-overlay.active .frosted-glass {
            transform: translateY(0);
            opacity: 1;
        }

        @media (max-width: 551px) {
          .hero-background-wrapper {
            display: none !important;
          }
        }

.hero-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.hero-background-wrapper:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    background: linear-gradient(to top, rgb(25 34 49) 25%, rgb(25 34 48 / 40%) 70%);
  }

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-Image {
  /* position: relative !important; */
  opacity: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100vh !important;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
  filter: brightness(1);
  max-width: 100%;
  /* position: absolute; 
  top: 0; 
  left: 0;  */
  object-fit: cover; 
}

/* New image transition styles */
.hero-Image.image-transitioning {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-Image.zooming {
  animation: slowZoom 20s ease-in-out infinite;
  will-change: transform; /* Performance optimization */
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Performance optimizations for transitions */
.hero-Image.image-transitioning {
  will-change: transform, filter;
}

.hero-background-wrapper.fade-out,
.hero-background-wrapper.fade-in,
section.max-w-2xl.fade-out,
section.max-w-2xl.fade-in,
section.max-w-3xl.fade-out,
section.max-w-3xl.fade-in {
  will-change: opacity, transform;
}



/* @media (max-width: 992px) {
    .hero-background-wrapper {
    height: 100%;
    }
}

@media (max-width: 768px) {
    .hero-background-wrapper {
        height: 100%;
    }
}

@media (max-width: 576px) {
    .hero-background-wrapper {
        min-height: 110vh;

    }

}
@media (min-width: 577px) and (max-width: 767px) {
    .hero-background-wrapper {
        min-height: 150vh;
    }
} */




        /* ===== MODERN MOBILE NAVIGATION OVERLAY ===== */
        .mobile-nav-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .mobile-nav-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        .mobile-nav-container {
            width: 100%;
            max-width: 420px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 24px;
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            transform: scale(0.9) translateY(20px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            max-height: 90vh;
            min-height: 450px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .mobile-nav-overlay.open .mobile-nav-container {
            transform: scale(1) translateY(0);
        }

        /* Close button */
        .mobile-nav-close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            color: rgba(255, 255, 255, 0.8);
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10;
            backdrop-filter: blur(10px);
        }

        .mobile-nav-close-btn:hover {
            background: rgba(239, 68, 68, 0.9);
            border-color: rgba(239, 68, 68, 0.5);
            color: white;
            transform: scale(1.1);
            box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
        }

        /* Mobile nav header */
        .mobile-nav-header {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            padding: 40px 32px 32px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
            position: relative;
            flex-shrink: 0;
        }

        .mobile-header-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
        }

        .mobile-nav-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(255, 191, 0, 0.6), transparent);
            border-radius: 1px;
        }

        .mobile-nav-logo {
            width: 85px;
            height: auto;
            margin-bottom: 1.25rem;
            filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
            transition: transform 0.3s ease;
        }

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

        .mobile-nav-title {
            font-size: 1.7rem;
            font-weight: 500;
            letter-spacing: -0.01em;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Mobile navigation menu */
        .mobile-nav-menu {
            padding: 1.5rem 2rem;
            flex: 1;
            overflow-y: auto;
            min-height: 220px;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 191, 0, 0.3) transparent;
            display: flex;
            flex-direction: column;
        }

        /* Custom scrollbar for webkit browsers */
        .mobile-nav-menu::-webkit-scrollbar {
            width: 6px;
        }

        .mobile-nav-menu::-webkit-scrollbar-track {
            background: transparent;
        }

        .mobile-nav-menu::-webkit-scrollbar-thumb {
            background: rgba(255, 191, 0, 0.3);
            border-radius: 3px;
        }

        .mobile-nav-menu::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 191, 0, 0.5);
        }

        .mobile-nav-section {
            margin-bottom: 1.5rem;
        }



        .mobile-nav-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.875rem;
        }

        .mobile-nav-item {
            margin: 0;
        }

        .mobile-nav-link {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 18px 20px;
            color: white;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            border-radius: 12px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }

        .mobile-nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 191, 0, 0.15) 0%, rgba(255, 191, 0, 0.08) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .mobile-nav-link:hover {
            background: rgba(255, 191, 0, 0.12);
            border-color: #FFBF00;
            box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.1);
        }

        .mobile-nav-link:hover::before {
            opacity: 1;
        }

        .mobile-nav-link i {
            font-size: 18px;
            color: #FFC700;
            transition: all 0.3s ease;
            width: 20px;
            text-align: center;
        }

        .mobile-nav-link:hover i {
            color: #FFBF00;
        }

        .mobile-nav-link span {
            flex: 1;
            position: relative;
            z-index: 1;
            font-weight: 300;
        }

        /* Mobile nav footer */
        .mobile-nav-footer {
            padding: 1.5rem 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
            position: relative;
            flex-shrink: 0;
        }

        .mobile-footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .mobile-lang-switcher {
            position: absolute;
            top: 20px;
            left: 20px;
            display: flex;
            justify-content: center;
        }

        .mobile-login-section {
            display: flex;
            justify-content: center;
        }

        .mobile-nav-footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(255, 191, 0, 0.6), transparent);
            border-radius: 1px;
        }

        .mobile-nav-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
            margin-bottom: 1.75rem;
        }

        .mobile-nav-actions {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }



        .mobile-lang-form {
            margin: 0;
        }

        .mobile-lang-btn {
            position: relative;
            width: auto;
            padding: 8px 16px;
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 14px;
            font-weight: 400;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            overflow: hidden;
            margin-top: 0;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .mobile-lang-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 191, 0, 0.15) 0%, rgba(255, 191, 0, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .mobile-lang-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 191, 0, 0.4);
            background: linear-gradient(135deg, #FFBF00 0%, #FFC700 100%);
        }

        .mobile-lang-btn:hover::before {
            opacity: 1;
        }

        .mobile-lang-btn i {
            font-size: 18px;
            position: relative;
            z-index: 1;
            transition: all 0.3s ease;
        }

        .mobile-lang-btn:hover i {
            color: white;
        }

        .mobile-lang-btn span {
            position: relative;
            z-index: 1;
        }

        /* Mobile admin section */
        .mobile-admin-section {
            display: flex;
            flex-direction: row;
            gap: 0.75rem;
            justify-content: center;
            width: 100%;
        }



        .mobile-admin-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 12px 16px;
            color: white;
            text-decoration: none;
            font-size: 14px;
            font-weight: 400;
            border-radius: 10px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            flex: 1;
            min-width: 0;
        }

        .mobile-admin-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .mobile-admin-link:hover {
            background: rgba(255, 191, 0, 0.12);
            border-color: #FFBF00;
            box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.1);
        }

        .mobile-admin-link:hover::before {
            opacity: 1;
        }

        .mobile-admin-link i {
            font-size: 16px;
            color: #FFC700;
            transition: all 0.3s ease;
            width: 18px;
            text-align: center;
        }

        .mobile-admin-link:hover i {
            color: #FFBF00;
        }

        .mobile-admin-link span {
            position: relative;
            z-index: 1;
        }

        /* RTL Support */
        html[dir="rtl"] .mobile-nav-link:hover {
            transform: translateX(-8px);
        }

        html[dir="rtl"] .mobile-admin-link:hover {
            transform: translateX(-4px);
        }

        /* Responsive adjustments */
        @media (max-width: 480px) {
            .mobile-nav-overlay {
                padding: 0.25rem;
            }
            
            .mobile-nav-container {
                max-width: 100%;
                border-radius: 24px;
                min-height: 400px;
            }
            
            .mobile-nav-header {
                padding: 1.5rem 1.25rem 1rem;
            }
            
            .mobile-header-content {
                gap: 0.5rem;
            }
            
            .mobile-lang-switcher {
                top: 15px;
                left: 15px;
            }
            
            .mobile-lang-btn {
                padding: 6px 12px;
                font-size: 12px;
                gap: 0.25rem;
            }
            
            .mobile-nav-logo {
                width: 65px;
            }
            
            .mobile-nav-title {
                font-size: 1.3rem;
            }
            
            .mobile-nav-menu {
                padding: 1.25rem 1.25rem;
                min-height: 200px;
            }
            
            .mobile-nav-link {
                padding: 1rem 1.25rem;
                font-size: 1rem;
            }
            
            .mobile-nav-footer {
                padding: 1rem;
            }
            
            .mobile-admin-section {
                flex-direction: column;
                gap: 0.5rem;
            }
            

        }

        /* Animation for mobile nav entrance */
        @keyframes mobileNavSlideIn {
            from {
                opacity: 0;
                transform: translateX(60px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .mobile-nav-overlay.open .mobile-nav-container {
            animation: mobileNavSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        /* Focus states for accessibility */
        .mobile-nav-close-btn:focus,
        .mobile-nav-link:focus,
        .mobile-lang-btn:focus,
        .mobile-admin-link:focus {
            outline: 2px solid rgba(255, 191, 0, 0.5);
            outline-offset: 2px;
            box-shadow: 0 0 0 4px rgba(255, 191, 0, 0.2);
        }

        /* Active states for better UX */
        .mobile-nav-link:active,
        .mobile-admin-link:active,
        .mobile-login-link:active,
        .mobile-lang-btn:active {
            transform: scale(0.98);
        }

        /* Improved touch targets for mobile */
        @media (max-width: 768px) {
            .mobile-nav-link,
            .mobile-admin-link,
            .mobile-login-link,
            .mobile-lang-btn {
                min-height: 48px;
            }
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .mobile-nav-container {
                border: 2px solid #ffffff;
        }

            .mobile-nav-link:hover {
                background: #FFBF00;
                color: #000000;
            }
            
            .mobile-admin-link:hover {
                background: #ef4444;
                color: #ffffff;
            }
        }

        /* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-overlay,
  .mobile-nav-container,
  .mobile-nav-link,
  .mobile-lang-btn,
  .mobile-admin-link {
    transition: none;
  }
  
  .mobile-nav-overlay.open .mobile-nav-container {
    animation: none;
  }
}

/* Utility class for hiding elements */
.hidden {
  display: none !important;
}


        .animate-pulse-grow {
            opacity: 0;
            transform: scale(0.95);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

        .animate-pulse-grow.active-animation {
            opacity: 1;
            transform: scale(1);
        }


        
        .timeline-container {
          position: absolute;
          /* left: 4rem; */
          top: 50%;
          transform: translateY(-50%);
          display: flex;
          flex-direction: column;
          align-items: center;
          z-index: 10;
          }
          
          .timeline-line {
          width: 2px;
          height: 60px;
          /* height: 65px;
          background-color: #cbd5e0; */
          background-color: rgba(255, 255, 255, 0.5);
          margin: 0.5rem 0;
          }
          .timeline-dot {
            /* width: 12px;
            height: 12px;
            background-color: #cbd5e0;
            border-radius: 50%;
            cursor: pointer;
            transition: background-color 0.3s ease; */
            width: 24px;
            height: 16px;
            border-radius: 8px;
            background: linear-gradient(135deg, rgba(255, 191, 0, 0.15), rgba(255, 191, 0, 0.3));
            border: 1.5px solid rgba(255, 191, 0, 0.4);
            box-shadow: 0 2px 8px rgba(255, 191, 0, 0.10);
            backdrop-filter: blur(6px);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
          }
          
          .timeline-dot:hover {
            background: linear-gradient(135deg, rgba(255, 191, 0, 0.25), rgba(255, 191, 0, 0.45));
            border-color: rgba(255, 191, 0, 0.7);
            box-shadow: 0 4px 16px rgba(255, 191, 0, 0.18);
            transform: scale(1.08);
          }
          
          .timeline-dot:active {
            transform: scale(0.98);
          }
          
          .timeline-dot:focus {
            outline: 2px solid rgba(255, 191, 0, 0.5);
            outline-offset: 2px;
          }
          
          .timeline-dot.active {
            background: linear-gradient(135deg, #FFBF00 60%, #FFD700 100%);
            border-color: #FFBF00;
            box-shadow: 0 0 0 4px rgba(255, 191, 0, 0.15);
            transform: scale(1.18);
          }
          
          .timeline-number {
          font-size: 1.25rem;
          font-weight: bold;
          margin: 0.5rem 0;

          /* font-size: 1rem;
          color: #cbd5e0; */
          }


        html[dir="rtl"] section.max-w-xl {
            margin-left: auto;
            margin-right: 0;
            text-align: right;
        }
        @media (min-width: 768px) {
            html[dir="rtl"] section.max-w-xl.md\:ml-24 {
                margin-right: 6rem;
                margin-left: auto;
            }
        }
        @media (min-width: 1024px) {
            html[dir="rtl"] section.max-w-xl.lg\:ml-32 {
                margin-right: 8rem;
                margin-left: auto;
            }
        }

        html[dir="rtl"] .flex-row-reverse {
            flex-direction: row-reverse;
        }

        html[dir="rtl"] input::placeholder {
            text-align: right;
        }

        html[dir="rtl"] .pointer-events-none.absolute.inset-y-0.left-0 {
            left: unset;
            right: 0;
            padding-right: 0.75rem;
            padding-left: 0;
        }
        html[dir="rtl"] input.pl-10 {
            padding-left: unset;
            padding-right: 2.5rem;
        }

        html[dir="rtl"] #exploreBtn i {
            transform: scaleX(-1);

        }

 html[dir="rtl"] #exploreBtn span {
text-align:center
        }
        .language-switcher {
    display: flex;
    align-items: center;
    gap: 0.6em;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px; /* pill shape */
    background: linear-gradient(120deg, rgba(36, 44, 62, 0.85) 60%, rgba(255,255,255,0.10) 100%);
    box-shadow: 0 4px 16px rgba(36,44,62,0.12), 0 1.5px 0 rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255, 191, 0, 0.18);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    transition: background 0.25s, box-shadow 0.25s, color 0.2s;
    position: relative;
    z-index: 100;
}

.language-switcher:hover,
.language-switcher:focus {
    background: linear-gradient(120deg, rgba(255,191,0,0.18) 0%, rgba(36,44,62,0.95) 100%);
    color: #FFBF00;
    box-shadow: 0 8px 32px rgba(255,191,0,0.10);
    outline: none;
}

.language-switcher i {
    font-size: 1.2em;
    color: #FFC700;
    transition: color 0.2s;
    margin-right: 0.5rem;
}

.language-switcher:hover i,
.language-switcher:focus i {
    color: #fff;
}

.language-switcher span {
    font-weight: bold;
    color: #93c5fd;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.98em;
    transition: color 0.2s;
}

.language-switcher:hover span,
.language-switcher:focus span {
    color: #FFBF00;
}
        .space-x-12 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0; /* Default LTR */
    margin-right: calc(3rem * var(--tw-space-x-reverse));
    margin-left: calc(3rem * calc(1 - var(--tw-space-x-reverse)));
}

[dir='rtl'] .space-x-12 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

        #userDropdown {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) scale(0.95);
            transform-origin: top;
            margin-top: 1.3rem;
            width: 12rem;
            background-color: rgba(55, 65, 81, 0.9);
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
            z-index: 50;
        }

        #userDropdown.active {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) scale(1);
        }

        #userDropdown ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        #userDropdown li a,
        #userDropdown button {
            display: block;
            padding: 0.75rem 1rem;
            color: #fff;
            text-decoration: none;
            font-size: 0.9rem;
            transition: background-color 0.2s ease, color 0.2s ease;
            text-align: left;
            width: 100%;
            background: none;
            border: none;
            cursor: pointer;
        }

        #userDropdown li a:hover,
        #userDropdown button:hover {
            background-color: rgba(75, 85, 99, 0.7);
        }

        html[dir="rtl"] #userDropdown {
            left: unset;
            right: 50%;
            transform: translateX(50%) scale(0.95);
            transform-origin: top;
        }

        html[dir="rtl"] #userDropdown.active {
            transform: translateX(50%) scale(1);
        }

        html[dir="rtl"] #userDropdown li a,
        html[dir="rtl"] #userDropdown button {
            text-align: right;
        }

        .dropdown-arrow {
            transition: transform 0.3s ease;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: -1.1rem;
            color: white;
            font-size: 0.9rem;
        }

        html[dir="rtl"] .dropdown-arrow {
            transform: translateX(50%) scaleX(-1);
        }

        .dropdown-arrow.rotated {
            transform: translateX(-50%) rotate(180deg);
        }
        html[dir="rtl"] .dropdown-arrow.rotated {
            transform: translateX(50%) rotate(180deg) scaleX(-1);
        }

/* ===== MODERN LOGIN MODAL STYLES ===== */

/* Modal Overlay */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.login-modal-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.login-modal-overlay.active .login-modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close Button */
.login-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.login-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(239, 68, 68, 0.5);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

/* Modal Content */
.login-modal-content {
    padding: 40px 32px 32px;
    color: white;
}

/* Header Section */
.login-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-modal-title {
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-modal-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    z-index: 2;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 300;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-wrapper:focus-within .form-input-icon {
    color: #3b82f6;
}



/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

/* Custom Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.form-checkbox {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.form-checkbox:checked + .checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.form-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.forgot-password-link {
    font-size: 14px;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Submit Button */
.login-submit-btn {
    position: relative;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 400;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.login-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-submit-btn:hover::before {
    left: 100%;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-submit-btn.loading {
    pointer-events: none;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-submit-btn.loading .btn-text {
    opacity: 0;
}

.login-submit-btn.loading .btn-loader {
    opacity: 1;
}

/* Message Container */
.message-container {
    margin-top: 20px;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideInUp 0.3s ease;
}

.message.text-green-700 {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.message.text-red-700 {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Support */
html[dir="rtl"] .form-input-icon {
    left: auto;
    right: 16px;
}

html[dir="rtl"] .form-input {
    padding: 16px 48px 16px 16px;
}

html[dir="rtl"] .password-toggle-btn {
    right: auto;
    left: 16px;
}

html[dir="rtl"] .form-options {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-modal-content {
        padding: 32px 24px 24px;
    }
    
    .login-modal-title {
        font-size: 24px;
    }
    
    .login-modal-subtitle {
        font-size: 14px;
    }
    
    .form-input {
        padding: 14px 14px 14px 44px;
        font-size: 16px;
    }
    
    .login-submit-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .login-modal-content {
        padding: 24px 20px 20px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Accessibility Improvements */
.login-modal-overlay:focus-within {
    outline: none;
}

.form-input:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.login-submit-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-modal-container {
        border: 2px solid white;
    }
    
    .form-input {
        border: 2px solid white;
    }
    
    .login-submit-btn {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .login-modal-overlay,
    .login-modal-container,
    .form-input,
    .login-submit-btn,
    .message {
        transition: none;
    }
    
    .login-submit-btn::before {
        display: none;
    }
}

/* Form Input Error States */
.form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input-wrapper .form-input.error ~ .form-input-icon {
    color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
    border-left: 3px solid #ef4444;
    animation: slideInUp 0.3s ease;
}

/* Success state for inputs */
.form-input.success {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-input-wrapper .form-input.success ~ .form-input-icon {
    color: #22c55e;
}

/* Enhanced focus states */
.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-input-wrapper:focus-within .form-input-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

/* Enhanced hover states */
.form-input:hover:not(:focus):not(.error) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Loading state enhancements */
.login-submit-btn.loading {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    cursor: not-allowed;
}

.login-submit-btn.loading:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Enhanced checkbox styles */
.checkbox-wrapper:hover .checkbox-custom {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-wrapper:focus-within .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Enhanced password toggle button */
.password-toggle-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.password-toggle-btn:active {
    transform: scale(0.95);
}

/* Enhanced close button */
.login-modal-close-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Modal entrance animation enhancement */
@keyframes modalEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-modal-overlay.active .login-modal-container {
    animation: modalEntrance 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced message animations */
@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message {
    animation: messageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced form field animations */
.form-field-group {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-field-group:nth-child(1) { animation-delay: 0.1s; }
.form-field-group:nth-child(2) { animation-delay: 0.2s; }
.form-field-group:nth-child(3) { animation-delay: 0.3s; }
.form-field-group:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced button hover effects */
.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}



/* Enhanced title animation */
.login-modal-title {
    animation: titleEntrance 0.8s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes titleEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced subtitle animation */
.login-modal-subtitle {
    animation: subtitleEntrance 0.8s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes subtitleEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced backdrop blur effect */
.login-modal-overlay {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Enhanced container glow effect */
.login-modal-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #3b82f6, #60a5fa, #3b82f6);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-modal-container:hover::before {
    opacity: 0.3;
}

/* Enhanced focus ring for accessibility */
.login-modal-container:focus-within::before {
    opacity: 0.5;
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
    .login-modal-container {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .login-modal-content {
        padding: 24px 20px 20px;
    }
    
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .login-submit-btn {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Enhanced tablet responsiveness */
@media (min-width: 481px) and (max-width: 768px) {
    .login-modal-container {
        max-width: 400px;
    }
}

/* Enhanced desktop responsiveness */
@media (min-width: 769px) {
    .login-modal-container {
        max-width: 420px;
    }
    
    .login-modal-container:hover {
        transform: scale(1.02);
        transition: transform 0.3s ease;
    }
}

/* Enhanced dark mode support */
@media (prefers-color-scheme: dark) {
    .login-modal-container {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    }
}

/* Enhanced print styles */
@media print {
    .login-modal-overlay {
        display: none !important;
    }
}

/* --- Professional Navbar & Header Design --- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(24, 31, 44, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-radius: 2rem;
  margin: 1rem auto;
  max-width: 1100px;
  padding: 0.5rem 2rem;
  transition: border-radius 0.3s;
}

.navbar.scrolled {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-logo img {
  height: 3.5rem;
  width: auto;
  display: block;
  margin: 0 2rem;
  transition: transform 0.2s;
}
.navbar-logo img:hover {
  transform: scale(1.05) rotate(-2deg);
}

.nav-links a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
  position: relative;
  display: block;
  width: 125px;
  text-align: center;
}
.nav-links a:hover,
.nav-links a:focus {
  background: rgba(255,255,255,0.08);
  color: #FFBF00;
}
.nav-links a.active,
.nav-links a.nav-link-active {
  color: #FFBF00;
  font-weight: 600;
  border-bottom: 2px solid #FFBF00;
}




/* Navbar Dropdown Styles */
.nav-dropdown-container {
  position: relative;
  display: inline-block;
  margin-inline-start: 1rem;
}

.nav-dropdown-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.1), rgba(255, 191, 0, 0.2));
  border: 1.5px solid rgba(255, 191, 0, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(255, 191, 0, 0.08);
}

.nav-dropdown-arrow:hover, .nav-dropdown-arrow:focus {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.2), rgba(255, 191, 0, 0.3));
    border-color: rgba(255, 191, 0, 0.5);
    box-shadow: 0 8px 25px rgba(255, 191, 0, 0.2);
    outline: none;
}

.nav-dropdown-arrow:hover .menu-icon span, .nav-dropdown-arrow:focus .menu-icon span {
  background-color: #fff;
}

.nav-dropdown-arrow.active {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.3), rgba(255, 191, 0, 0.4));
  border-color: rgba(255, 191, 0, 0.6);
}

/* Animated Menu Icon */
.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  position: relative;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #FFBF00;
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
}

.menu-icon span:nth-child(1) {
  top: 0;
  transform-origin: center;
}

.menu-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.menu-icon span:nth-child(3) {
  bottom: 0;
  transform-origin: center;
}

/* Menu Icon Animation */
.nav-dropdown-arrow.active .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-dropdown-arrow.active .menu-icon span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.nav-dropdown-arrow.active .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-dropdown-arrow:hover .menu-icon span {
  background-color: #FFD700;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.nav-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.1), rgba(255, 191, 0, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-header i {
  font-size: 1.25rem;
  color: #FFBF00;
}

.dropdown-header span {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.025em;
}

.dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(255, 191, 0, 0.1);
  color: #ffffff;
  transform: scale(1.05);
}

.dropdown-item i {
  font-size: 1rem;
  color: #FFBF00;
  transition: all 0.2s ease;
}

.dropdown-item:hover i {
  color: #FFD700;
  transform: scale(1.1);
}

.dropdown-item span {
  flex: 1;
}

/* RTL Support for dropdown */
html[dir="rtl"] .nav-dropdown-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .dropdown-item:hover {
  transform: translateX(-4px);
}

/* Animation for dropdown entrance */
@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-dropdown-menu.active {
  animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Focus states for accessibility */
.nav-dropdown-arrow:focus {
  outline: 2px solid rgba(255, 191, 0, 0.5);
  outline-offset: 2px;
}

.dropdown-item:focus {
  outline: 2px solid rgba(255, 191, 0, 0.5);
  outline-offset: -2px;
  background: rgba(255, 191, 0, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav-dropdown-arrow {
    border: 2px solid #FFBF00;
  }
  
  .nav-dropdown-menu {
    border: 2px solid #ffffff;
  }
  
  .dropdown-item:hover {
    background: #FFBF00;
    color: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-arrow,
  .nav-dropdown-menu,
  .dropdown-item,
  .menu-icon span {
    transition: none;
  }
  
  .nav-dropdown-menu.active {
    animation: none;
  }
}

/* Scroll to Top Button Styles */
.scroll-to-top-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.1), rgba(255, 191, 0, 0.2));
  border: 1px solid rgba(255, 191, 0, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.2), rgba(255, 191, 0, 0.3));
  border-color: rgba(255, 191, 0, 0.5);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 191, 0, 0.2);
}

.scroll-to-top-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.scroll-to-top-btn i {
  font-size: 1.2rem;
  color: #FFBF00;
  transition: all 0.3s ease;
}

.scroll-to-top-btn:hover i {
  color: #FFD700;
  transform: translateY(-2px);
}

/* RTL Support for scroll to top button */
html[dir="rtl"] .scroll-to-top-btn {
  right: auto;
  left: 1.25rem;
}

/* Mobile responsive adjustments for scroll to top */
@media (max-width: 768px) {
  .scroll-to-top-btn {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
  }
  
  html[dir="rtl"] .scroll-to-top-btn {
    right: auto;
    left: 1rem;
  }
  
  .scroll-to-top-btn i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .scroll-to-top-btn {
    width: 40px;
    height: 40px;
    bottom: 0.75rem;
    right: 0.75rem;
  }
  
  html[dir="rtl"] .scroll-to-top-btn {
    right: auto;
    left: 0.75rem;
  }
  
  .scroll-to-top-btn i {
    font-size: 1rem;
  }
}

/* Focus states for accessibility */
.scroll-to-top-btn:focus {
  outline: 2px solid rgba(255, 191, 0, 0.5);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .scroll-to-top-btn {
    border: 2px solid #FFBF00;
    background: rgba(255, 191, 0, 0.3);
  }
  
  .scroll-to-top-btn:hover {
    background: rgba(255, 191, 0, 0.5);
  }
}

/* Reduced motion support for scroll to top */
@media (prefers-reduced-motion: reduce) {
  .scroll-to-top-btn,
  .scroll-to-top-btn i {
    transition: none;
  }
  
  .scroll-to-top-btn:hover {
    transform: none;
  }
}

/* Responsive navbar styles */
@media (max-width: 900px) {
  .navbar-content {
    flex-direction: row;
    padding: 0 1rem;
  }
  .navbar-logo img {
    margin: 0 1rem;
    height: 2.5rem;
  }
  .nav-links {
    gap: 1rem;
  }
}

.hamburger {
  display: none;
}

@media (max-width: 960px) {
  .navbar {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
    background: #181f2c80;
    /* box-shadow: 0 4px 24px rgba(0,0,0,0.08); */
    /* background: rgba(36, 44, 62, 0.18); */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    /* border: 1px solid rgba(255, 191, 0, 0.3); */
    box-shadow: 0 4px 16px rgba(36,44,62,0.12), 0 1.5px 0 rgba(255,255,255,0.08);
    border-radius: 0 0 0 20px;
    position: fixed;
    padding: 0.5em 1.2em;
    top: 0;
    right: 0;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    justify-content: center;
    z-index: 50;
    margin: 0 !important;

  }

  .hamburger i {
    color: #FFC700;
    font-size: 1.1rem;
  }
  
  .hamburger:hover {
    background: rgba(36, 44, 62, 0.32);
  }
  
  .hamburger:focus {
    outline: 2px solid rgba(255, 191, 0, 0.5);
    outline-offset: 2px;
  }

  
}

@media (max-width: 767px){
  .lang-switcher {
    display: none;
  }

}
@media (min-width: 768px) {
  .lang-switcher {
    background: rgba(36, 44, 62, 0.18);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    /* border: 1.5px solid rgba(255, 255, 255, 0.18); */
    box-shadow: 0 4px 16px rgba(36,44,62,0.12), 0 1.5px 0 rgba(255,255,255,0.08);
    /* Retain existing styles */
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.7em;
    color: #fff;
    border-radius: 0 0 2rem;
    padding: 0.5em 1.2em;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    z-index: 1000;
  }
  .lang-switcher:hover {
    background: rgba(36, 44, 62, 0.32);
}
.lang-switcher i {
    color: #FFC700;
    font-size: 1.1rem;
}
}





.mobile-login-link {
    position: relative;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 400;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.mobile-login-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 191, 0, 0.15) 0%, rgba(255, 191, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-login-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 191, 0, 0.4);
}
.mobile-login-link:hover::before {
    opacity: 1;
}
.mobile-login-link i {
    font-size: 18px;
    color: #FFC700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.mobile-login-link:hover i {
    color: white;
}
.mobile-login-link span {
    position: relative;
    z-index: 1;
}

/* --- Improved Desktop Language Switcher Styles --- */
/* .lang-switcher-form {
  margin: 0;
}
.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em 1.2em;
  background: linear-gradient(90deg, rgba(255,191,0,0.12) 0%, rgba(255,255,255,0.08) 100%);
  border: 1.5px solid rgba(255,191,0,0.18);
  border-radius: 2em;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(255,191,0,0.08);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  outline: none;
  position: relative;
}
.lang-switcher-btn:hover,
.lang-switcher-btn:focus {
  background: linear-gradient(90deg, rgba(255,191,0,0.22) 0%, rgba(255,255,255,0.18) 100%);
  color: #FFBF00;
  border-color: #FFBF00;
  box-shadow: 0 4px 18px rgba(255,191,0,0.18);
}
.lang-switcher-btn:active {
  transform: scale(0.97);
}
.lang-switcher-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25em;
  color: #FFBF00;
  transition: color 0.2s;
}
.lang-switcher-btn:hover .lang-switcher-icon,
.lang-switcher-btn:focus .lang-switcher-icon {
  color: #fff;
}
.lang-switcher-label {
  text-transform: uppercase;
  font-size: 0.98em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: inherit;
  transition: color 0.2s;
} */

/* === Hero Language Switcher Absolute Overlay === */
/* .hero-lang-switcher {
  position: absolute;
  top: 2.5rem;
  right: 3.5rem;
  z-index: 20;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem 2rem 2rem 0rem;
  background: linear-gradient(120deg, rgba(24,31,44,0.92) 60%, rgba(255,255,255,0.10) 100%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1.5px solid rgba(255,191,0,0.18);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
}

.hero-lang-switcher:hover, .hero-lang-switcher:focus-within {
  background: linear-gradient(120deg, rgba(255,191,0,0.18) 0%, rgba(24,31,44,0.95) 100%);
  box-shadow: 0 12px 36px rgba(255,191,0,0.10);
}

.hero-lang-switcher-form {
  margin: 0;
}

.hero-lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em 1.2em;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 2em;
  outline: none;
  transition: color 0.2s;
}
.hero-lang-switcher-btn:hover, .hero-lang-switcher-btn:focus {
  color: #FFBF00;
}
.hero-lang-switcher-icon {
  font-size: 1.25em;
  color: #FFBF00;
  transition: color 0.2s;
}
.hero-lang-switcher-btn:hover .hero-lang-switcher-icon,
.hero-lang-switcher-btn:focus .hero-lang-switcher-icon {
  color: #fff;
}
.hero-lang-switcher-label {
  text-transform: uppercase;
  font-size: 0.98em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: inherit;
  transition: color 0.2s;
} */

.timeline-mobile-container {
  display: none;
}

@media (max-width: 768px) {
  .timeline-container {
    display: none !important;
  }
  .timeline-mobile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    width: 100%;
    gap: 1rem;
  }
  .timeline-mobile-dots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0.5rem 1rem;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    max-width: 100%; /* Added to prevent overflow */
    box-sizing: border-box; /* Added for proper sizing */
  }
  .timeline-mobile-dots::-webkit-scrollbar {
    display: none;
  }
  .timeline-mobile-dot {
    width: 16px;
    height: 10px;
    min-width: 16px;
    min-height: 10px;
    background: linear-gradient(135deg, rgba(255, 191, 0, 0.15), rgba(255, 191, 0, 0.3));
    border-radius: 5px;
    border: 1px solid rgba(255, 191, 0, 0.4);
    box-shadow: 0 1px 4px rgba(255, 191, 0, 0.10);
    backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    position: relative;
  }
  .timeline-mobile-dot.active,
  .timeline-mobile-dot[aria-selected="true"] {
    opacity: 1;
    background: linear-gradient(135deg, #FFBF00 60%, #FFD700 100%);
    width: 24px;
    border-radius: 5px;
    border-color: #FFBF00;
    box-shadow: 0 0 0 2px rgba(255, 191, 0, 0.15);
    transform: scale(1.12);
  }
  .timeline-mobile-dot:focus {
    border-color: #FFBF00;
    box-shadow: 0 0 0 3px rgba(255,191,0,0.25);
    z-index: 1;
  }
  .timeline-mobile-dot:hover {
    background: linear-gradient(135deg, rgba(255, 191, 0, 0.25), rgba(255, 191, 0, 0.45));
    border-color: rgba(255, 191, 0, 0.7);
    box-shadow: 0 2px 8px rgba(255, 191, 0, 0.18);
    transform: scale(1.08);
  }
  .timeline-mobile-arrow {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    outline: none !important;
    color: #cbd5e1;
    transition: all 0.15s ease;
    width: 45px;
    height: 45px;
    backdrop-filter: blur(10px);
  }
  .timeline-mobile-arrow:focus {
    outline: none !important;
  }
  .timeline-mobile-arrow:hover:not(:disabled) {
    color: #ffffff;
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
  }
  .timeline-mobile-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
  }
  .timeline-mobile-dot:active {
    background: #e0e7ef;
  }

  .timeline-mobile-dot.active:after,
  .timeline-mobile-dot[aria-selected="true"]:after {
    opacity: 1;
  }
}

@media (min-width: 769px) {
  .timeline-mobile-container {
    display: none !important;
  }
  
  .timeline-container {
    display: flex !important;
  }
}

/* --- FADE TRANSITION FOR HERO --- */
.hero-background-wrapper.fade-out,
section.max-w-2xl.fade-out,
section.max-w-3xl.fade-out {
  animation: hero-fade-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-background-wrapper.fade-in,
section.max-w-2xl.fade-in,
section.max-w-3xl.fade-in {
  animation: hero-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes hero-fade-out {
  0% { 
    opacity: 1; 
    transform: scale(1);
  }
  100% { 
    opacity: 0.3; 
    transform: scale(1.02);
  }
}

@keyframes hero-fade-in {
  0% { 
    opacity: 0.3; 
    transform: scale(1.02);
  }
  100% { 
    opacity: 1; 
    transform: scale(1);
  }
}
/* --- END FADE TRANSITION --- */

/* Responsive improvements to prevent overflow */
@media (max-width: 768px) {
  .hero-background-wrapper {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
  }
  
  .hero-Image {
    width: 100% !important;
    height: 100vh !important;
    max-width: 100%;
    object-fit: cover;
  }
  
  .mobile-nav-container {
    max-width: calc(100% - 2rem);
    margin: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-background-wrapper {
    min-height: 100vh;
  }
  
  .hero-Image {
    height: 100vh !important;
  }
  
  .mobile-nav-container {
    max-width: calc(100% - 1rem);
    margin: 0 0.5rem;
  }
  
  .timeline-mobile-container {
    padding: 0 0.5rem;
  }
  
  .timeline-mobile-dots {
    padding: 0.5rem 0.5rem;
  }
}




