
/* Optimized Global Transitions */
html, body, section, div, h1, h2, h3, p, span, a {
    transition: background-color 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fix for the Hero Section Gradients */
.dark .bg-gradient-to-r, .dark .bg-gradient-to-t {
    transition: opacity 0.7s ease-in-out;
}


/* --- 1. CORE UTILITIES --- */
.h-reveal {
    overflow: hidden;
}

/* --- 2. HERO ANIMATIONS (Trigger on Page Load) --- */
@keyframes luxurySlideUp {
    0% { transform: translateY(120%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.reveal-item-1 { animation: luxurySlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.reveal-item-2 { animation: luxurySlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.reveal-item-3 { animation: luxurySlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
.reveal-item-4 { animation: luxurySlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both; }
.reveal-item-5 { animation: luxurySlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both; }

/* --- 3. SCROLL ANIMATIONS (Triggered by JS .is-visible) --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Delay for the Description Text */
.slide-up-text {
    transition-delay: 0.5s; /* Noticeable delay after the heading */
}

/* Gold Line expansion */
.line-expand {
    width: 0;
    height: 1px; /* Ensure height is set */
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.is-visible .line-expand {
    width: 80px;
}

/* Image Frame Draw */
.frame-draw {
    opacity: 0;
    transform: translate(20px, 20px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.is-visible .frame-draw {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- 4. DECORATIVE & BACKGROUND --- */
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}
.animate-ken-burns {
    animation: kenburns 20s ease-in-out infinite alternate;
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 50%;
    background-color: #D4AF37;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 100%; }

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
.animate-scroll-line {
    animation: scrollLine 2.5s infinite ease-in-out;
}



/* Update your scroll logic to ensure icons stay bright enough */
#main-header.scrolled {
    background-color: rgba(17, 24, 39, 0.95); /* Dark background */
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1); /* Subtle gold border */
}

/* RTL Specific Tweak: Adjust margins when flipped */
html[dir="rtl"] .logo {
    margin-left: 0;
    margin-right: 0;
}


#main-header, #main-header a, #main-header button {
    transition: all 0.4s ease-in-out;
}


/* This ensures every element in your section fades smoothly */
.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 700ms;
}

/* Force smooth transitions on the root */
html, body {
    transition: background-color 0.7s ease, color 0.7s ease;
}


@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}


.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Base reveal state */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

/* Active reveal state */
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Subtle zoom for Hero images */
.hero-zoom {
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}


/* Base reveal state */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

/* Active reveal state */
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Subtle zoom for Hero images */
.hero-zoom {
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}


@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.animate-scan {
    animation: scan 4s linear infinite;
}

@keyframes hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-zoom {
    animation: hero-zoom 20s ease-out forwards;
}

@keyframes slow-pan {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.1); }
}
.animate-slow-pan {
    animation: slow-pan 20s ease-in-out infinite alternate;
}



/* Cinematic Drift for Hero Image */
@keyframes slowDrift {
    0% { transform: scale(1.1) translateX(0); }
    100% { transform: scale(1.2) translateX(-20px); }
}
.animate-slow-drift { animation: slowDrift 20s ease-in-out infinite alternate; }

/* Infinite Text Marquee for Curators */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 60s linear infinite; }

/* Floating Ambient Blur for Mission */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}
.animate-float { animation: float 10s ease-in-out infinite; }



@keyframes pulse-slow {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.05); }
}

@keyframes scan-loop {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(400%); opacity: 0; }
}

.animate-pulse-slow {
    animation: pulse-slow 10s ease-in-out infinite;
}

.animate-scan-loop {
    animation: scan-loop 4s ease-in-out infinite;
}


@keyframes slide-down {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-slide-down {
    animation: slide-down 20s linear infinite;
    writing-mode: vertical-rl; /* This makes the text fall vertically like a code stream */
}



 /* Ensure these styles are in your CSS for the logic to look good */
    .active-filter { 
        color: #D4AF37 !important; 
        border-bottom: 2px solid #D4AF37; 
        opacity: 1;
    }
    .inactive-filter { 
        color: rgba(17, 24, 39, 0.4); /* Light mode */
        border-bottom: 2px solid transparent;
    }
    .dark .inactive-filter { 
        color: rgba(255, 255, 255, 0.4); /* Dark mode */
    }
    .article-item {
        transition: opacity 0.4s ease;
    }



    /* Looping Scan Animation */
@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}
.scan-line {
    position: absolute;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: scan 8s linear infinite;
    z-index: 1;
}






/* Looping Scan Animation */
@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 150px;
    /* Adapts to light/dark via CSS variables or subtle alpha */
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(212, 175, 55, 0.15), 
        transparent);
    animation: scan 10s linear infinite;
    z-index: 1;
}

/* Optional: Make scan line slightly more visible in light mode */
.bg-white .scan-line {
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(212, 175, 55, 0.08), 
        transparent);
}


@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
.floating-element {
    animation: float 6s ease-in-out infinite;
}


/* Custom Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0); opacity: 0.2; }
    50% { transform: translateY(-100px); opacity: 0.5; }
}

@keyframes float-slower {
    0%, 100% { transform: translateY(0); opacity: 0.2; }
    50% { transform: translateY(-150px); opacity: 0.4; }
}

.animate-float-slow { animation: float-slow 12s ease-in-out infinite; }
.animate-float-slower { animation: float-slower 18s ease-in-out infinite; }

/* Subtle Glitch Effect */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}
.animate-glitch { animation: glitch 3s infinite; }


/* Looping Scan Bar */
@keyframes scan-move {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}
.scan-bar {
    position: absolute;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.05), transparent);
    animation: scan-move 6s linear infinite;
}

/* Progress Loop Animation */
@keyframes progress-loop {
    0% { width: 0%; left: 0%; }
    50% { width: 100%; left: 0%; }
    100% { width: 0%; left: 100%; }
}
.animate-progress-loop {
    animation: progress-loop 3s ease-in-out infinite;
}

/* Slow Pulse for Background Glow */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}
.animate-pulse-slow {
    animation: pulse-slow 5s ease-in-out infinite;
}







  body { font-family: 'Inter', sans-serif; transition: background-color 0.5s ease; }
        .font-serif { font-family: 'Playfair Display', serif; }
        
        /* RTL Adjustments */
        [dir="rtl"] .lg\:ml-64 { margin-left: 0; margin-right: 16rem; }
        [dir="rtl"] .fixed-left { left: auto; right: 0; border-right: none; border-left: 1px solid rgba(255,255,255,0.1); }
        
        /* Custom Scrollbar for the table */
        .custom-scrollbar::-webkit-scrollbar { height: 6px; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 10px; }



 




    
        /* comming soon page */

                 body { font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
        .font-serif { font-family: 'Playfair Display', serif; }
        html { transition: background-color 0.7s ease; scroll-behavior: smooth; } 
        
        /* Scanning effect */
        @keyframes scan-move {
            0% { transform: translateY(-100%); }
            100% { transform: translateY(100vh); }
        }
        .scan-bar {
            position: absolute;
            width: 100%;
            height: 200px;
            background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.05), transparent);
            animation: scan-move 8s linear infinite;
        }

        /* Loading bar loop */
        @keyframes progress-loop {
            0% { width: 0%; left: 0%; }
            50% { width: 100%; left: 0%; }
            100% { width: 0%; left: 100%; }
        }
        .animate-progress-loop { animation: progress-loop 3s ease-in-out infinite; }

        /* Floating data fragments - hidden on mobile for performance */
        @keyframes float-data {
            0% { transform: translateY(0) rotate(0deg); opacity: 0; }
            50% { opacity: 0.4; }
            100% { transform: translateY(-100px) rotate(10deg); opacity: 0; }
        }
        .data-particle {
            position: absolute;
            color: #D4AF37;
            font-family: monospace;
            font-size: 10px;
            pointer-events: none;
            animation: float-data 10s linear infinite;
        }



/* blog page */
          /* Filter Button States */
    .active-filter { color: #D4AF37; border-bottom: 2px solid #D4AF37; }
    .inactive-filter { color: rgba(17, 24, 39, 0.4); }
    .dark .inactive-filter { color: rgba(255, 255, 255, 0.4); }
    
    /* Smooth transitions for filtering */
    .article-item { transition: opacity 0.4s ease, transform 0.4s ease; }
    .hidden-item { display: none !important; }


/* Contact page */
@keyframes ping-slow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}
.animate-ping-slow { animation: ping-slow 4s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-ping-slower { animation: ping-slow 8s cubic-bezier(0, 0, 0.2, 1) infinite; }


        /* Custom scrollbar for a premium feel */
        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 10px; }





            @keyframes slideUp {
        from { opacity: 0; transform: translateY(40px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeInRight {
        from { opacity: 0; transform: translateX(80px); }
        to { opacity: 0.3; transform: translateX(0); }
    }

    @keyframes scan {
        0% { transform: translateY(-100%); }
        100% { transform: translateY(500%); }
    }

    .animate-slide-up {
        animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .animate-fade-in-right {
        animation: fadeInRight 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-delay: 400ms;
    }

    .animate-scan {
        animation: scan 4s linear infinite;
    }

    .animate-ping-slow {
        animation: ping 4s cubic-bezier(0, 0, 0.2, 1) infinite;
    }

    .animate-ping-slower {
        animation: ping 6s cubic-bezier(0, 0, 0.2, 1) infinite;
    }


        @keyframes slideUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeInRight {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 0.25; transform: translateX(0); } /* Matches the desired desaturated opacity */
    }

    .animate-slide-up {
        animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .animate-fade-in-right {
        animation: fadeInRight 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-delay: 300ms;
    }


          body { font-family: 'Inter', sans-serif; }
        .custom-scrollbar::-webkit-scrollbar { height: 4px; width: 4px; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background: #D4AF37; }
        
        /* Animation for the Live Ticker */
        @keyframes scroll {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }
        .animate-ticker {
            display: inline-block;
            white-space: nowrap;
            animation: scroll 30s linear infinite;
        }



/* user dashboard */
      /* Essential RTL Layout Logic for Sidebar & Content */
        html[dir="rtl"] #sidebar { 
            left: auto !important; 
            right: 0 !important; 
            border-right: none !important; 
            border-left: 1px solid rgba(255,255,255,0.05) !important; 
            transform: translateX(100%);
        }
        html[dir="rtl"] #sidebar.translate-x-0, 
        html[dir="rtl"] .lg\:translate-x-0 { 
            transform: translateX(0) !important; 
        }
        html[dir="rtl"] #main-wrapper { 
            margin-left: 0 !important; 
            margin-right: 18rem; 
        }
        @media (max-width: 1024px) {
            html[dir="rtl"] #main-wrapper { margin-right: 0 !important; }
        }



        /* Active link state */
.nav-active {
    color: #D4AF37 !important;
    position: relative;
}

/* Optional: adds a small gold underline to the active link */
.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #D4AF37;
    border-radius: 2px;
}