/* --- Iqamat Portal | Home Page Premium Styles --- */

:root {
    --color-primary: 15 47 95;      /* #0F2F5F */
    --color-secondary: 199 154 27;  /* #C79A1B */
    --color-bgmain: #F7F8FA;
    --color-bgsection: #FFFFFF;
    --color-bgneutral: #EEF1F5;
    --color-textmain: #1E1E1E;
    --color-textmuted: #6C757D;
}

/* Base Smoothing */
html {
    scroll-behavior: smooth;
}

/* Infinite Marquee Animation for Agents */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.animate-marquee-reverse {
    display: flex;
    width: max-content;
    animation: marquee-reverse 60s linear infinite;
}

.animate-marquee:hover, .animate-marquee-reverse:hover {
    animation-play-state: paused;
}

/* Ensure centering on Arabic direction */
[dir="rtl"] .animate-marquee {
    animation: marquee-rtl 40s linear infinite;
}

@keyframes marquee-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

body {
    background-color: var(--color-bgmain);
    color: var(--color-textmain);
    transition: background-color 0.3s ease;
}

/* Glassmorphism Elements */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(15, 47, 95, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px -5px rgba(15, 47, 95, 0.1);
}

/* Premium Animations */
@keyframes blob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.15); }
    66% { transform: translate(-30px, 30px) scale(0.85); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-8px, -18px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-delayed {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(12px, 15px) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-blob {
    animation: blob 7s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-fade-in {
    animation: fade-in 0.8s forwards ease-out;
}

.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* Interactive Cards */
.card-hover {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -15px rgba(15, 47, 95, 0.15), 0 20px 40px -20px rgba(15, 47, 95, 0.1);
    border-color: rgba(199, 154, 27, 0.4) !important;
}

/* Worker Cards Specifics */
.worker-card {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.worker-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 50px 100px -20px rgba(15, 47, 95, 0.08), 0 30px 60px -30px rgba(15, 47, 95, 0.12);
    border-color: rgba(199, 154, 27, 0.3);
}

.worker-card img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bgmain);
}
::-webkit-scrollbar-thumb {
    background: #CBD5E0;
    border-radius: 20px;
    border: 3px solid var(--color-bgmain);
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--color-primary));
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* RTL Helpers */
[dir="rtl"] .rtl-left-auto {
    margin-right: auto;
    margin-left: 0;
}

/* Utility for dynamic colors */
.bg-primary { background-color: rgb(var(--color-primary)); }
.text-primary { color: rgb(var(--color-primary)); }
.border-primary { border-color: rgb(var(--color-primary)); }

.bg-secondary { background-color: rgb(var(--color-secondary)); }
.text-secondary { color: rgb(var(--color-secondary)); }
.border-secondary { border-color: rgb(var(--color-secondary)); }
