/* =====================================================
   ✨ PREMIUM UI FRAMEWORK - ALFAC Platform
   World-Class Design System
   ===================================================== */

/* Import Premium Fonts - Optimized */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800;900&display=swap');

/* Optimize font loading */
* {
    font-display: swap;
}

/* =====================================================
   🚀 SMOOTH PAGE LOADING - NO WHITE FLASH
   ===================================================== */
html {
    background-color: #F8FAFC !important;
}

body {
    opacity: 1;
    transition: opacity 0.3s ease-in;
    background-color: #F8FAFC !important;
}

/* Prevent white flash during page load */
body:not(.loaded) {
    opacity: 0.98;
}

/* Page fully loaded */
body.loaded {
    opacity: 1;
}

/* =====================================================
   🎨 PREMIUM COLOR SYSTEM & VARIABLES
   ===================================================== */
:root {
    /* Premium Primary Colors - Deep Blue Theme */
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #3385FF;
    --primary-gradient: linear-gradient(135deg, #0066FF 0%, #00CCFF 100%);
    --primary-gradient-hover: linear-gradient(135deg, #0052CC 0%, #00B8E6 100%);

    /* Premium Secondary Colors */
    --secondary: #1E3A8A;
    --secondary-dark: #1E293B;
    --secondary-light: #3B82F6;
    --accent: #10B981;
    --accent-dark: #059669;

    /* Premium Gradients */
    --gradient-purple: linear-gradient(135deg, #1E3A8A 0%, #1E293B 100%);
    --gradient-blue: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    --gradient-green: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-sunset: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    --gradient-ocean: linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
    --gradient-royal: linear-gradient(135deg, #141E30 0%, #243B55 100%);

    /* Neutral Colors - Enhanced */
    --dark: #0F172A;
    --dark-blue: #1E293B;
    --gray-950: #020617;
    --gray-900: #0F172A;
    --gray-800: #1E293B;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748B;
    --gray-400: #94A3B8;
    --gray-300: #CBD5E1;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-50: #F8FAFC;
    --white: #FFFFFF;

    /* Status Colors - Premium */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    /* Premium Shadows with Color Tints */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    --shadow-primary: 0 10px 40px -10px rgba(0, 102, 255, 0.4);
    --shadow-success: 0 10px 40px -10px rgba(16, 185, 129, 0.4);
    --shadow-darkblue: 0 10px 40px -10px rgba(30, 58, 138, 0.4);

    /* Neumorphism Shadows */
    --neu-light: -8px -8px 16px rgba(255, 255, 255, 0.8), 8px 8px 16px rgba(0, 0, 0, 0.1);
    --neu-pressed: inset -4px -4px 8px rgba(255, 255, 255, 0.5), inset 4px 4px 8px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 100ms ease;
    --transition: 150ms ease;
    --transition-slow: 200ms ease;
}

body {
    font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =====================================================
   🌐 BASE STYLES & TYPOGRAPHY
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* =====================================================
   🎭 ANIMATIONS & KEYFRAMES
   ===================================================== */

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* =====================================================
   💎 PREMIUM CARD SYSTEM
   ===================================================== */

.modern-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    will-change: transform;
}

.modern-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(0, 102, 255, 0.25),
        0 15px 30px -8px rgba(0, 0, 0, 0.12),
        0 0 0 2px rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 102, 255, 0.2);
}

/* Premium Top Border Accent - Animated */
.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #05b17d 0%, #0ac593 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

/* Premium Glow Effect - Enhanced */
.modern-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(5, 177, 125, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.modern-card:hover::after {
    opacity: 1;
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Image Container with Premium Effects */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
}

/* Glass Shine Overlay */
.card-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    z-index: 5;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.modern-card:hover .card-image-wrapper::before {
    left: 100%;
}

/* Glossy Effect Overlay */
.card-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 4;
    pointer-events: none;
}

.modern-card:hover .card-image-wrapper::after {
    opacity: 1;
}

/* Image with Smooth Zoom & Effects */
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.4s ease;
    filter: brightness(0.98) contrast(1.05) saturate(1.05);
    will-change: transform, filter;
}

.modern-card:hover .card-image-wrapper img {
    transform: scale(1.12);
    filter: brightness(1.08) contrast(1.1) saturate(1.15);
}

/* Overlay with Smooth Reveal */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 177, 125, 0.95) 0%,
        rgba(5, 177, 125, 0.7) 30%,
        rgba(5, 177, 125, 0.3) 60%,
        transparent 85%
    );
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 3;
}

.modern-card:hover .card-overlay {
    opacity: 1;
}

/* Glow Pulse Animation */
@keyframes glow-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.card-body {
    padding: 1.75rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.modern-card:hover .card-title {
    color: #05b17d;
    transform: translateX(5px);
}

.card-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-md);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.modern-card:hover .card-description {
    color: var(--gray-700);
}

.card-footer {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    border-top: 2px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.modern-card:hover .card-footer {
    background: linear-gradient(to bottom, rgba(240, 253, 250, 1) 0%, rgba(255, 255, 255, 1) 100%);
    border-top-color: #05b17d;
}

/* =====================================================
   💫 PREMIUM BADGES & LABELS
   ===================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.15s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.badge-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.badge-secondary {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
    color: var(--white);
}

.badge-success {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: var(--shadow-success);
}

.badge-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: var(--white);
}

.badge-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: var(--white);
}

.badge-outline {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid currentColor;
    backdrop-filter: blur(10px);
}

/* Premium Floating Badge */
.floating-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 10;
    animation: pulse 2s infinite;
}

/* =====================================================
   🔘 PREMIUM MODERN BUTTONS
   ===================================================== */

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-modern:hover::before {
    opacity: 1;
}

.btn-modern:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   📱 RESPONSIVE GRID SYSTEM
   ===================================================== */

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* =====================================================
   🔍 SEARCH & FILTERS
   ===================================================== */

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
}

.search-box:focus-within {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-2px);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: var(--space-sm);
    background: transparent;
}

.search-box button {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(5, 177, 125, 0.4);
}

/* Filter Pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.filter-pill {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 0.925rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-pill:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-pill.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
}

/* =====================================================
   💫 GLASSMORPHISM EFFECTS
   ===================================================== */

.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =====================================================
   ⚡ UTILITY CLASSES
   ===================================================== */

/* Spacing */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Display */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flex Utilities */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Transitions */
.transition { transition: all var(--transition); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(5, 177, 125, 0.5);
}

/* =====================================================
   📊 LOADING & SKELETON
   ===================================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 0%,
        var(--gray-300) 50%,
        var(--gray-200) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Background Pattern Animation */
@keyframes movePattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 60px;
    }
}

/* =====================================================
   🌙 DARK MODE SUPPORT
   ===================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --dark: #f9fafb;
        --gray-900: #f9fafb;
        --gray-800: #e5e7eb;
        --gray-700: #d1d5db;
        --gray-100: #1f2937;
        --gray-200: #374151;
        --white: #111827;
    }
}

/* =====================================================
   📱 PREMIUM MOBILE OPTIMIZATIONS
   ===================================================== */

@media (max-width: 1024px) {
    .modern-card {
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
    }

    .modern-card {
        border-radius: 16px;
    }

    .modern-card:hover {
        transform: translateY(-6px);
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-footer {
        padding: 1rem 1.25rem;
    }

    .card-title {
        font-size: 1.125rem;
    }

    .badge {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .btn-modern {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    h2 {
        font-size: 1.625rem;
        line-height: 1.3;
    }
    h3 {
        font-size: 1.375rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .modern-card {
        border-radius: 14px;
    }

    .card-body {
        padding: 1rem;
    }

    .card-footer {
        padding: 0.875rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .card-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }

    .btn-modern {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
    }
}

/* =====================================================
   ✨ SCROLL ANIMATIONS
   ===================================================== */

[data-scroll] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-scroll].scrolled {
    opacity: 1;
}

[data-scroll="fade-up"].scrolled {
    transform: translateY(0);
}

[data-scroll="fade-left"].scrolled {
    transform: translateX(0);
}

[data-scroll="fade-right"].scrolled {
    transform: translateX(0);
}

/* =====================================================
   🎯 CUSTOM SCROLLBAR
   ===================================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
/* =====================================================
   💰 SAUDI RIYAL CURRENCY ICON - OFFICIAL SVG SYMBOL
   ===================================================== */

.currency-icon,
.riyal-icon,
.sar-icon {
    display: inline-block !important;
    width: 28px !important;
    height: 28px !important;
    background-image: url('/assets/default/img/riyal-icon_new.svg?v=5'), url('/assets/default/img/riyal-icon.svg?v=5') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
    vertical-align: middle !important;
    opacity: 0.95 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    top: -3px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    overflow: visible !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) !important;
    min-width: 28px !important;
    flex-shrink: 0 !important;
}

/* Show text if image fails */
.riyal-icon:after {

    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    color: #05b17d;
    font-family: 'Noto Kufi Arabic', sans-serif;
    display: none;
    width: 100%;
    text-align: center;
}

/* Fallback: if background image fails, show text */
.riyal-icon::before {
    content: 'ر.س';
    position: absolute;
    font-size: 12px;
    color: #05b17d;
    font-weight: 600;
    display: none;
}

/* Show text fallback if image doesn't load */
.riyal-icon:empty::before,
.riyal-icon:not([style*="background"])::before {
    display: block;
    text-indent: 0;
}

.riyal-icon:hover,
.currency-icon:hover,
.sar-icon:hover {
    opacity: 0.85 !important;
    transform: scale(1.1) !important;
    filter: drop-shadow(0 2px 4px rgba(5, 177, 125, 0.4)) !important;
}

/* Size Variants */
.currency-icon-sm,
.riyal-icon-sm {
    width: 18px !important;
    height: 18px !important;
    margin-left: 4px !important;
    top: -1px !important;
    min-width: 18px !important;
}

.currency-icon-lg,
.riyal-icon-lg {
    width: 28px !important;
    height: 28px !important;
    margin-left: 8px !important;
    top: -2px !important;
    min-width: 28px !important;
}

.currency-icon-xl,
.riyal-icon-xl {
    width: 36px !important;
    height: 36px !important;
    margin-left: 10px !important;
    top: -3px !important;
    min-width: 36px !important;
}

/* Ensure visibility in all contexts */
.card-footer .riyal-icon,
.card-footer .currency-icon,
span[class*="price"] .riyal-icon,
.webinar-card .riyal-icon,
.modern-card .riyal-icon {
    display: inline-block !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    top: -3px !important;
    visibility: visible !important;
    opacity: 0.95 !important;
}

/* Premium Glow Effect for Currency */
.currency-icon-glow,
.riyal-icon-glow {
    filter: drop-shadow(0 2px 8px rgba(5, 177, 125, 0.4)) !important;
}

/* Ensure proper display in price containers */
.price-display .riyal-icon,
.real .riyal-icon,
[class*="price"] .riyal-icon,
span:has(> .riyal-icon) {
    display: inline-flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Price Display Wrapper - Perfect Alignment */
.price-display {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.price-display > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Webinar Price Box Enhancement */
.webinar-price-box .real.price-display,
.webinar-price-box .off.price-display {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.webinar-price-box .real {
    font-weight: 800 !important;
    color: var(--primary) !important;
}

.webinar-price-box .off {
    text-decoration: line-through !important;
    opacity: 0.7 !important;
}

/* =====================================================
   ✨ ULTRA-ADVANCED GLASSMORPHISM
   ===================================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow:
        0 8px 32px 0 rgba(0, 102, 255, 0.08),
        0 4px 16px 0 rgba(0, 0, 0, 0.05),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transition: left 0.7s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px 0 rgba(0, 102, 255, 0.15),
        0 8px 30px 0 rgba(0, 0, 0, 0.08),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 102, 255, 0.3);
}

/* Dark Glass Variant */
.glass-card-dark {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* =====================================================
   💎 NEUMORPHISM SYSTEM
   ===================================================== */

.neu-card {
    background: linear-gradient(145deg, #f0f4f8, #ffffff);
    border-radius: 20px;
    box-shadow:
        12px 12px 24px rgba(163, 177, 198, 0.4),
        -12px -12px 24px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.neu-card:hover {
    box-shadow:
        16px 16px 32px rgba(163, 177, 198, 0.5),
        -16px -16px 32px rgba(255, 255, 255, 1);
    transform: translateY(-4px);
}

.neu-card-pressed {
    box-shadow:
        inset 8px 8px 16px rgba(163, 177, 198, 0.4),
        inset -8px -8px 16px rgba(255, 255, 255, 0.9);
}

.neu-button {
    background: linear-gradient(145deg, #f0f4f8, #ffffff);
    border-radius: 16px;
    padding: 14px 32px;
    border: none;
    box-shadow:
        8px 8px 16px rgba(163, 177, 198, 0.3),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--primary);
}

.neu-button:hover {
    box-shadow:
        10px 10px 20px rgba(163, 177, 198, 0.4),
        -10px -10px 20px rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.neu-button:active {
    box-shadow:
        inset 6px 6px 12px rgba(163, 177, 198, 0.3),
        inset -6px -6px 12px rgba(255, 255, 255, 0.8);
    transform: translateY(0);
}

/* =====================================================
   🌈 ADVANCED GRADIENT SYSTEM
   ===================================================== */

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    /* Animation disabled for performance */
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-border {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.animated-gradient {
    background: linear-gradient(
        135deg,
        #1E3A8A,
        #3B82F6
    );
    /* Animation disabled for performance */
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Mesh Gradient */
.mesh-gradient {
    background:
        radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        var(--white);
    /* Animation disabled for performance */
}

@keyframes meshMove {
    0%, 100% {
        background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%;
    }
    25% {
        background-position: 40% 0%, 100% 40%, 60% 100%, 0% 60%;
    }
    50% {
        background-position: 100% 40%, 60% 100%, 0% 60%, 40% 0%;
    }
    75% {
        background-position: 60% 100%, 0% 60%, 40% 0%, 100% 40%;
    }
}

/* =====================================================
   ⚡ MICRO-INTERACTIONS & ADVANCED ANIMATIONS
   ===================================================== */

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-5deg);
    }
}

@keyframes morphing {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes neonGlow {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(0, 102, 255, 0.4),
            0 0 20px rgba(0, 102, 255, 0.3),
            0 0 30px rgba(0, 102, 255, 0.2),
            0 0 40px rgba(0, 102, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 20px rgba(0, 102, 255, 0.6),
            0 0 40px rgba(0, 102, 255, 0.5),
            0 0 60px rgba(0, 102, 255, 0.4),
            0 0 80px rgba(0, 102, 255, 0.3);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

.animate-morph {
    animation: morphing 8s ease-in-out infinite;
}

.animate-neon {
    animation: neonGlow 2s ease-in-out infinite;
}

/* Magnetic Hover Effect */
.magnetic {
    transition: transform 0.15s ease;
}

.magnetic:hover {
    transform: scale(1.05);
}

/* Ripple Effect on Click */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.3);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Parallax Layers */
.parallax-layer {
    transition: transform 0.15s ease;
}

.parallax-layer-1 {
    transform: translateZ(50px);
}

.parallax-layer-2 {
    transform: translateZ(100px);
}

/* =====================================================
   🎨 ADVANCED BUTTON SYSTEM
   ===================================================== */

.btn-premium {
    position: relative;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    z-index: -1;
    transition: transform 0.2s ease;
}

.btn-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient-hover);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.2s ease;
}

.btn-premium:hover::after {
    transform: translateY(0);
}

.btn-premium:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px -12px rgba(0, 102, 255, 0.4),
        0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.btn-premium:active {
    transform: translateY(-2px);
}

/* Holographic Button */
.btn-holographic {
    position: relative;
    background: linear-gradient(
        135deg,
        #1E3A8A 0%,
        #1E293B 25%,
        #3B82F6 50%,
        #60A5FA 75%,
        #93C5FD 100%
    );
    background-size: 400% 400%;
    animation: gradientFlow 4s ease infinite;
    color: white;
    padding: 16px 40px;
    border-radius: 16px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-holographic:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow:
        0 25px 50px -12px rgba(102, 126, 234, 0.4),
        0 0 50px rgba(118, 75, 162, 0.3);
}

/* Liquid Button */
.btn-liquid {
    position: relative;
    padding: 16px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-liquid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-dark);
    border-radius: 50px;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-liquid:hover::before {
    width: 100%;
}

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

.btn-liquid:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px -10px rgba(0, 102, 255, 0.5);
}

/* =====================================================
   🔮 3D TRANSFORM EFFECTS
   ===================================================== */

.card-3d {
    perspective: 1500px;
}

.card-3d-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(10deg) rotateX(10deg);
}

.card-3d-layer {
    position: relative;
    transform: translateZ(50px);
}

/* Floating Card */
.floating-card {
    animation: float 8s ease-in-out infinite;
    will-change: transform;
}

/* Parallax Scroll Effect */
.parallax-scroll {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* =====================================================
   ✨ LOADING & SKELETON STATES
   ===================================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 25%,
        var(--gray-100) 50%,
        var(--gray-200) 75%
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Premium Pulse Loader */
.pulse-loader {
    display: flex;
    gap: 8px;
}

.pulse-loader span {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulseScale 1.5s ease-in-out infinite;
}

.pulse-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.pulse-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

/* =====================================================
   🎓 WEBINAR & COURSE CARD ENHANCEMENTS
   ===================================================== */

/* Webinar Card Specific Styles */
.webinar-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.webinar-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 30px 60px -15px rgba(5, 177, 125, 0.25),
        0 15px 30px -10px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(5, 177, 125, 0.1);
}

/* Card Image Enhancements */
.webinar-card .card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.webinar-card .card-image-wrapper img {
    transition:
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.5s ease;
    will-change: transform;
}

.webinar-card:hover .card-image-wrapper img {
    transform: scale(1.15);
    filter: brightness(1.1) contrast(1.08) saturate(1.2);
}

/* Smooth Button Hover */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.btn-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-modern:hover::before {
    opacity: 1;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(5, 177, 125, 0.4);
}

.btn-modern svg {
    transition: transform 0.3s ease;
}

.btn-modern:hover svg {
    transform: translateX(4px);
}

/* Price Display Enhancements */
.card-footer [style*="color: #05b17d"],
.card-footer [style*="color: #1a1a2e"] {
    transition: all 0.3s ease;
}

.webinar-card:hover .card-footer [style*="font-size: 1.5rem"] {
    transform: scale(1.05);
}

/* Badge Animations */
.badge {
    animation: fadeInScale 0.5s ease-out backwards;
}

.badge:nth-child(1) { animation-delay: 0.1s; }
.badge:nth-child(2) { animation-delay: 0.2s; }
.badge:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating Bell Animation */
.webinar-notify-modern {
    animation: floatBell 3s ease-in-out infinite;
}

@keyframes floatBell {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(5deg);
    }
    75% {
        transform: translateY(-5px) rotate(-5deg);
    }
}

/* Category Badge Hover */
.card-overlay [style*="background: rgba(255, 255, 255, 0.2)"] {
    transition: all 0.3s ease;
}

.card-overlay [style*="background: rgba(255, 255, 255, 0.2)"]:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: scale(1.05);
}

/* Meta Icons Enhancement */
.card-body [style*="background: linear-gradient(135deg, #f3f4f6"] {
    transition: all 0.3s ease;
}

.webinar-card:hover .card-body [style*="background: linear-gradient(135deg, #f3f4f6"] {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
}

/* Smooth Transitions for All Card Elements */
.webinar-card * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Course Card Specific (reuse webinar styles) */
.course-card {
    position: relative;
}

/* Ensure all cards have consistent behavior */
.modern-card.webinar-card,
.modern-card.course-card {
    will-change: transform, box-shadow;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .webinar-card:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .btn-modern {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .webinar-card,
    .btn-modern,
    .badge,
    .webinar-notify-modern {
        animation: none;
        transition: none;
    }

    .webinar-card:hover {
        transform: none;
    }
}
@keyframes pulseScale {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* =====================================================
   🎯 UTILITY CLASSES
   ===================================================== */

/* Backdrop Blur Utilities */
.blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.blur-lg { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.blur-xl { backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); }

/* Transform Utilities */
.scale-hover:hover { transform: scale(1.05); }
.scale-active:active { transform: scale(0.95); }
.rotate-hover:hover { transform: rotate(5deg); }

/* Transition Utilities */
.transition-all { transition: all 0.15s ease; }
.transition-fast { transition: all 0.1s ease; }
.transition-slow { transition: all 0.2s ease; }

/* Glow Effects */
.glow-primary {
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

.glow-success {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.glow-darkblue {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* Text Shadows */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-shadow-md {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* =====================================================
   📋 FOOTER MENU STYLES
   ===================================================== */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-top: 10px;
    transition: all 0.3s ease;
}

.footer-menu li:first-child {
    margin-top: 0;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 6px 0;
}

.footer-menu li a:hover {
    color: #ffffff !important;
    transform: translateX(-5px);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.footer-menu li a i {
    transition: transform 0.3s ease;
}

.footer-menu li a:hover i {
    transform: translateX(-3px);
}

.footer-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #05b17d, #0ac593);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-menu li a:hover::before {
    width: 100%;
}
/* =====================================================
   🎯 MODERN TOP NAVIGATION STYLES
   ===================================================== */

.faisal-top-nav {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.top-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.top-nav-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Contact Info Styles */
.contact-info-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.contact-info-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 177, 125, 0.2);
}

.contact-info-item .icon {
    color: #05b17d;
    transition: transform 0.3s ease;
}

.contact-info-item:hover .icon {
    transform: scale(1.1);
}

.contact-text {
    font-family: 'Noto Kufi Arabic', sans-serif;
    letter-spacing: 0.3px;
}

/* Social Links */
.social-links-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    font-size: 16px;
}

.social-link:hover {
    background: linear-gradient(135deg, #05b17d 0%, #0ac593 100%);
    color: #ffffff !important;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(5, 177, 125, 0.4);
}

/* Search Bar Styles */
.top-search-bar {
    flex: 1;
    max-width: 500px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: #05b17d;
    box-shadow: 0 0 0 3px rgba(5, 177, 125, 0.15), 0 8px 24px rgba(5, 177, 125, 0.2);
}

.search-icon {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 8px;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: #05b17d;
}

.search-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 500;
    padding: 0;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit-btn {
    background: linear-gradient(135deg, #05b17d 0%, #0ac593 100%);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: -8px;
}

.search-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(5, 177, 125, 0.4);
}

/* Primary CTA Button */
.primary-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #05b17d 0%, #0ac593 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(5, 177, 125, 0.3);
    font-family: 'Noto Kufi Arabic', sans-serif;
    white-space: nowrap;
}

.primary-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 177, 125, 0.5);
    background: linear-gradient(135deg, #0ac593 0%, #05b17d 100%);
}

.primary-cta-btn svg {
    transition: transform 0.3s ease;
}

.primary-cta-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Language & Currency Dropdowns */
.language-switcher-wrapper,
.currency-selector-wrapper {
    position: relative;
}

.language-dropdown,
.currency-dropdown {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    min-width: 100px;
}

.language-dropdown:hover,
.currency-dropdown:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #05b17d;
    box-shadow: 0 4px 12px rgba(5, 177, 125, 0.2);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .top-search-bar {
        max-width: 350px;
    }
}

@media (max-width: 992px) {
    .contact-info-group {
        gap: 1rem;
    }

    .contact-text {
        display: none;
    }

    .contact-info-item {
        padding: 8px;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .faisal-top-nav {
        padding: 8px 0;
    }

    .top-nav-container {
        gap: 1rem;
    }

    .top-search-bar {
        order: 4;
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
    }

    .social-links-group {
        display: none;
    }
}
