.top-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.top-bar.is-condensed {
    padding: 0.8rem 0;
    box-shadow:
        0 8px 32px rgba(26, 54, 93, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(25px);
    background: var(--gradient-hero);
}

.top-bar.is-condensed .logo {
    font-size: 1rem;
}

.top-bar.is-condensed .tagline {
    font-size: 0.75rem;
}

.top-bar.is-condensed .brand {
    gap: 0.2rem;
}

.top-bar.is-condensed nav a {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.top-bar.is-condensed .cta-btn {
    padding: 0.6rem 1.6rem;
    font-size: 0.75rem;
    min-width: 120px;
}

.top-bar.is-condensed .language-switcher select {
    padding: 0.5rem 2rem 0.5rem 0.8rem;
    font-size: 0.8rem;
    min-width: 100px;
}

/* ═══════════════════════════════════════════════════════════
   🎨 CSS VARIABLES - Design System
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Law Firm Professional Color Palette */
    --primary: #1a365d;
    /* أزرق داكن احترافي */
    --primary-dark: #0f2a44;
    /* أزرق أكثر قتامة */
    --primary-light: #2c5282;
    /* أزرق متوسط */
    --secondary: #d4af37;
    /* ذهبي كلاسيكي */
    --secondary-dark: #b8941f;
    /* ذهبي داكن */
    --secondary-light: #e6c547;
    /* ذهبي فاتح */
    --accent: #2c5282;
    /* أزرق متوسط للتأكيد */
    --accent-dark: #1a365d;
    /* أزرق داكن للتأكيد */
    --accent-light: #4299e1;
    /* أزرق فاتح للتأكيد */
    --bg: #f7fafc;
    /* أبيض مزرق فاتح */
    --bg-alt: #edf2f7;
    /* رمادي فاتح جداً */
    --text: #2d3748;
    /* رمادي داكن للنصوص */
    --text-light: #4a5568;
    /* رمادي متوسط للنصوص الثانوية */
    --text-muted: #718096;
    /* رمادي فاتح للنصوص المكتومة */
    --card-bg: #ffffff;
    /* أبيض نقي للبطاقات */
    --success: #38a169;
    /* أخضر احترافي */
    --warning: #d69e2e;
    /* برتقالي احترافي */
    --error: #e53e3e;
    /* أحمر احترافي */
    --border: #e2e8f0;
    /* رمادي فاتح للحدود */
    --border-dark: #cbd5e0;
    /* رمادي متوسط للحدود */

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 40px 100px rgba(0, 0, 0, 0.15);
    --shadow: var(--shadow-lg);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius: var(--radius-lg);

    /* Professional Law Firm Typography */
    --body-font: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --heading-font: 'Playfair Display', 'Cairo', Georgia, serif;
    --logo-font: 'Playfair Display', 'Montserrat', serif;
    --nav-font: 'Inter', 'Cairo', sans-serif;
    --legal-font: 'Times New Roman', 'Cairo', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Mobile-specific variables */
    --mobile-text-xs: 0.8rem;
    --mobile-text-sm: 0.9rem;
    --mobile-text-base: 1rem;
    --mobile-text-lg: 1.1rem;
    --mobile-text-xl: 1.25rem;
    --mobile-text-2xl: 1.5rem;
    --mobile-text-3xl: 2rem;

    --mobile-space-xs: 0.5rem;
    --mobile-space-sm: 0.75rem;
    --mobile-space-base: 1rem;
    --mobile-space-lg: 1.5rem;
    --mobile-space-xl: 2rem;
    --mobile-space-2xl: 3rem;

    --touch-target-min: 44px;
    --touch-target-comfortable: 48px;
    --touch-target-large: 52px;

    /* Law Firm Specific Variables */
    --law-gold: #d4af37;
    --law-navy: #1a365d;
    --law-cream: #faf5f0;
    --law-silver: #a0aec0;
    --justice-blue: #2c5282;
    --legal-gray: #718096;
    --court-brown: #8b4513;
    --document-white: #fffffe;

    /* Professional Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    --gradient-card: linear-gradient(145deg, var(--card-bg) 0%, var(--bg) 100%);
}

/* ═══════════════════════════════════════════════════════════
   ✨ ANIMATIONS - Keyframes
   ═══════════════════════════════════════════════════════════ */
@keyframes floaty {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════
   🎯 GLOBAL RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(26, 54, 93, 0.08) 0%, rgba(26, 54, 93, 0) 50%),
        radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0) 45%),
        radial-gradient(circle at 70% 80%, rgba(44, 82, 130, 0.06) 0%, rgba(44, 82, 130, 0) 55%),
        radial-gradient(circle at 25% 85%, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0) 50%),
        linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 45%, var(--bg) 100%);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 45%, rgba(26, 54, 93, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 70% 55%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    33% {
        transform: translate(20px, -20px) scale(1.05);
        opacity: 0.9;
    }

    66% {
        transform: translate(-15px, 15px) scale(0.95);
        opacity: 0.95;
    }
}

body::after {
    content: "";
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle, rgba(44, 82, 130, 0.1) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-30px, 30px) scale(1.1);
        opacity: 0.7;
    }
}



/* ═══════════════════════════════════════════════════════════
   🎯 MAIN CONTENT POSITIONING
   ═══════════════════════════════════════════════════════════ */
main {
    position: relative;
    z-index: 1;
}

header {
    position: relative;
    z-index: 100;
}

/* ═══════════════════════════════════════════════════════════
   📝 PROFESSIONAL LAW FIRM TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1,
h2,
h3,
h4,
.section-title {
    font-family: var(--heading-font);
    letter-spacing: 0.015em;
    font-weight: 600;
    color: var(--primary);
}

.logo {
    font-family: var(--logo-font);
    letter-spacing: 0.02em;
    font-weight: 700;
    color: var(--secondary);
}

/* Legal Document Typography */
.legal-text {
    font-family: var(--legal-font);
    line-height: 1.8;
    color: var(--text);
}

/* Navigation Typography */
nav a {
    font-family: var(--nav-font);
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Professional Body Text */
body {
    font-family: var(--body-font);
    color: var(--text);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   🔗 LINKS
   ═══════════════════════════════════════════════════════════ */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

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

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   📦 LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════ */
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.flex {
    display: flex;
    gap: 1.5rem;
}

.flex.between {
    justify-content: space-between;
}

.flex.center {
    align-items: center;
}

.flex.wrap {
    flex-wrap: wrap;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER / TOP BAR
   ═══════════════════════════════════════════════════════════ */
.top-bar {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.98) 0%,
            rgba(30, 41, 59, 0.95) 50%,
            rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 120;
    padding: 1.2rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.top-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.05) 50%,
            transparent 100%);
    animation: headerShine 3s ease-in-out infinite;
    pointer-events: none;
}

.top-bar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent) 50%,
            transparent 100%);
    opacity: 0.5;
    pointer-events: none;
}

@keyframes headerShine {

    0%,
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        transform: translateX(100%);
        opacity: 1;
    }
}

.top-bar .container {
    position: relative;
    z-index: 1;
}

.header-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.header-left {
    justify-self: start;
}

.header-right {
    display: none;
    /* مخفي لأننا حذفنا الزر */
}

.header-nav {
    display: flex;
    justify-content: center;
}

.brand {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.brand::before {
    content: "";
    position: absolute;
    left: -1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    animation: barGrow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
    height: 0;
    opacity: 0;
}

@keyframes barGrow {
    0% {
        height: 0;
        opacity: 0;
        transform: translateY(-50%) scaleY(0);
    }

    100% {
        height: 70%;
        opacity: 1;
        transform: translateY(-50%) scaleY(1);
    }
}

.logo {
    font-family: var(--logo-font);
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.2;
    animation: logoEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotateX(90deg);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.05) rotateX(0deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Removed problematic ::before that was causing logo to disappear */

.logo:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoPulse 0.6s ease-in-out;
}

@keyframes logoPulse {
    0% {
        transform: translateY(-2px) scale(1.02);
    }

    50% {
        transform: translateY(-4px) scale(1.05);
    }

    100% {
        transform: translateY(-2px) scale(1.02);
    }
}

.tagline {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.9);
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding-left: 0.8rem;
    animation: taglineSlideIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
    opacity: 0;
    transform: translateX(-30px);
    white-space: nowrap;
}

.tagline::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.6rem;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes taglineSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.tagline::before {
    content: "•";
    position: absolute;
    left: -0.3rem;
    color: #ffffff;
    font-weight: bold;
}

.tagline:hover {
    color: #ffffff;
    transform: translateX(2px);
}

nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    position: relative;
    justify-content: center;
}

nav a {
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    animation: navFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: translateY(15px);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

nav a:hover::before {
    opacity: 1;
}

nav a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border-color: var(--accent);
}

@keyframes navFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

nav a:nth-child(1) {
    animation-delay: 0.6s;
}

nav a:nth-child(2) {
    animation-delay: 0.7s;
}

nav a:nth-child(3) {
    animation-delay: 0.8s;
}

nav a:nth-child(4) {
    animation-delay: 0.9s;
}



.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    margin-right: 2rem;
}

.cta-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3),
        0 4px 12px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    min-width: 160px;
    text-align: center;
    animation: ctaBounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.2s forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    cursor: pointer;
}

@keyframes ctaBounce {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotateX(90deg);
    }

    50% {
        opacity: 0.9;
        transform: translateY(-8px) scale(1.1) rotateX(0deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.cta-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: all 0.4s ease;
}

.cta-btn::after {
    content: "→";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 1.1rem;
}

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

.cta-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4),
        0 8px 20px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

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


.hero {
    padding: clamp(7.5rem, 14vw, 10rem) 0 clamp(5rem, 10vw, 7rem);
    background:
        radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 60%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.12) 0%, rgba(59, 130, 246, 0.08) 40%, rgba(248, 250, 252, 0.92) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: heroBlobFloat 22s ease-in-out infinite;
    mix-blend-mode: screen;
}

.hero-blob--primary {
    width: clamp(280px, 45vw, 520px);
    height: clamp(280px, 45vw, 520px);
    top: -28%;
    right: -12%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, rgba(59, 130, 246, 0) 70%);
}

.hero-blob--secondary {
    width: clamp(220px, 40vw, 460px);
    height: clamp(220px, 40vw, 460px);
    top: -18%;
    left: -12%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0) 72%);
    animation-duration: 28s;
    animation-direction: reverse;
}

.hero-blob--tertiary {
    width: clamp(200px, 35vw, 420px);
    height: clamp(200px, 35vw, 420px);
    top: -10%;
    right: 25%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0) 75%);
    animation-duration: 30s;
}

@keyframes heroBlobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-4%, 6%) scale(1.05);
    }

    50% {
        transform: translate(6%, -4%) scale(0.95);
    }

    75% {
        transform: translate(-3%, -6%) scale(1.08);
    }
}

.hero-marquee {
    position: absolute;
    top: clamp(0.5rem, 2vw, 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 1000px);
    height: clamp(2.4rem, 4vw, 3rem);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(26px);
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.28), rgba(59, 130, 246, 0.18));
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    opacity: 0.9;
    isolation: isolate;
}

.hero-marquee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(15, 23, 42, 0.3) 0%,
            transparent 15%,
            transparent 85%,
            rgba(15, 23, 42, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.hero-marquee__track {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    animation: heroMarqueeScroll 35s linear infinite;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    height: 100%;
}

.hero-marquee__item {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(1.05rem, 2.4vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.92);
}

.hero-marquee__separator {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.45);
    transform: translateY(-0.05rem);
}

@keyframes heroMarqueeScroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.hero::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    top: -20%;
    right: -10%;
    background: radial-gradient(circle,
            rgba(59, 130, 246, 0.08) 0%,
            rgba(96, 165, 250, 0.04) 40%,
            transparent 70%);
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
    animation: heroFloat 20s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle,
            rgba(212, 175, 55, 0.06) 0%,
            rgba(212, 175, 55, 0.03) 40%,
            transparent 70%);
    filter: blur(50px);
    opacity: 0.5;
    pointer-events: none;
    animation: heroFloat 25s ease-in-out infinite reverse;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 4.5rem);
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.85rem;
}

.hero-text>* {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-text>*:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-text>*:nth-child(2) {
    animation-delay: 0.25s;
}

.hero-text>*:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-text>*:nth-child(4) {
    animation-delay: 0.55s;
}

.hero-text>*:nth-child(5) {
    animation-delay: 0.7s;
}

.hero-text>*:nth-child(6) {
    animation-delay: 0.85s;
}

.hero-text>*:nth-child(7) {
    animation-delay: 1s;
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-keywords {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary-dark);
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.hero-rotator {
    position: relative;
    min-width: 180px;
    display: inline-block;
    animation: rotatorPulse 6s ease-in-out infinite;
}

@keyframes rotatorPulse {

    0%,
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.hero-text h1 {
    font-size: clamp(2.3rem, 5vw, 3.25rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-text p {
    color: rgba(17, 17, 17, 0.72);
    font-size: 1.08rem;
}

.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.75);
    background: rgba(0, 0, 0, 0.06);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    width: fit-content;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
}

.hero-badge {
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary-dark);
    border-radius: 12px;
    padding: 0.65rem 1.2rem;
    font-weight: 600;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.hero-rating {
    display: flex;
    flex-direction: column;
    color: rgba(17, 17, 17, 0.6);
}

.hero-rating strong {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.btn {
    display: inline-flex;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.24);
}

.btn.primary:hover {
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.3);
}

.btn.secondary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.btn.ghost {
    background: transparent;
    color: var(--primary-dark);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

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

.hero-media {
    display: grid;
    gap: 2rem;
    align-content: start;
    position: relative;
}

.hero-visual {
    position: relative;
    border-radius: calc(var(--radius) + 8px);
    overflow: hidden;
    box-shadow: 0 45px 75px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Removed white border frame */

.hero-visual::after {
    content: "";
    position: absolute;
    inset: -25% -5% 45% 55%;
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.35), transparent 65%);
    filter: blur(18px);
    transform: rotate(-8deg);
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    display: block;
    border-radius: calc(var(--radius) + 4px);
    mix-blend-mode: lighten;
    animation: floaty 6s ease-in-out infinite;
}

.hero-visual img:hover {
    transform: scale(1.02);
}

.visual-glow {
    display: none;
}

.hero-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: clamp(2.5rem, 5vw, 3.5rem);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.15),
        0 8px 25px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -25% -10% 45% 30%;
    background: linear-gradient(140deg, rgba(17, 17, 17, 0.12), transparent 65%);
    filter: blur(26px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.hero-card h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.hero-card h2::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    border-radius: 2px;
}

.hero-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
}

.lead-form {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.lead-form label {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.lead-form input,
.lead-form select {
    border: 2px solid rgba(26, 54, 93, 0.1);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lead-form input:focus,
.lead-form select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.15),
        0 4px 16px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.lead-form input::placeholder {
    color: rgba(26, 54, 93, 0.5);
    font-weight: 400;
}

.lead-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.w-100 {
    width: 100%;
    justify-content: center;
}

.trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1.1rem);
    color: rgba(17, 17, 17, 0.7);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.trust li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 0.6));
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.08);
}

.trust li::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.trust li:hover::after {
    opacity: 1;
}

.stats {
    background:
        radial-gradient(circle at 18% 15%, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 82% 20%, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0) 55%),
        linear-gradient(145deg, rgba(248, 250, 252, 0.95) 0%, rgba(226, 232, 240, 0.92) 45%, rgba(241, 245, 249, 0.96) 100%);
    padding: clamp(5rem, 8vw, 7rem) 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: "";
    position: absolute;
    inset: 10% 12% 12%;
    border-radius: calc(var(--radius-xl) * 1.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0.7;
    pointer-events: none;
}

.gov-showcase {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.gov-intro {
    max-width: 760px;
    margin: 0 auto 1.85rem;
    text-align: center;
    display: grid;
    gap: 1.1rem;
}

.gov-eyebrow {
    display: inline-flex;
    align-self: center;
    padding: 0.45rem 1.4rem;
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.12);
    color: rgba(17, 17, 17, 0.66);
    backdrop-filter: blur(12px);
}

.gov-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin: 0 auto 2.25rem;
    max-width: 960px;
}

.gov-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: rgba(7, 7, 7, 0.88);
    color: #f5f5f5;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.gov-chip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 45%);
    opacity: 0;
    transform: translateX(-30%);
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.gov-chip::after {
    content: "";
    position: absolute;
    inset: -40% -10% 50% 35%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    filter: blur(20px);
    opacity: 0.4;
    mix-blend-mode: screen;
    animation: chipPulse 6s ease-in-out infinite;
}

.gov-chip:hover::before {
    opacity: 1;
    transform: translateX(15%);
}

@keyframes chipPulse {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: rotate(12deg) scale(1.12);
        opacity: 0.55;
    }
}

.gov-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.06), transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(0, 0, 0, 0.05), transparent 55%);
    pointer-events: none;
}

.gov-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gov-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: calc(var(--radius) + 8px);
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.gov-card.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.gov-media {
    position: relative;
    border-radius: calc(var(--radius) + 6px);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gov-media img {
    width: 100%;
    display: block;
    border-radius: inherit;
    animation: floaty 7s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.gov-card:hover .gov-media img {
    transform: scale(1.05) rotate(-1deg);
}

.gov-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
    filter: blur(32px);
    opacity: 0.7;
    pointer-events: none;
}

.gov-highlights {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.gov-highlights li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(17, 17, 17, 0.75);
}

.gov-highlights .glyph {
    font-size: 1.25rem;
    animation: glyphBounce 2.6s ease-in-out infinite;
}

@keyframes glyphBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.75rem;
}

.stat {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15),
        0 10px 25px rgba(15, 23, 42, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat:hover::before {
    transform: scaleX(1);
}

.stat strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat span {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}


.section {
    padding: clamp(5rem, 9vw, 8rem) 0;
    position: relative;
    background:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 90% 25%, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0) 55%),
        linear-gradient(140deg, rgba(248, 250, 252, 0.92) 0%, rgba(231, 235, 241, 0.92) 45%, rgba(241, 245, 249, 0.94) 100%);
}

.section .container {
    position: relative;
    z-index: 1;
}

.section.alt {
    background:
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 60%),
        radial-gradient(circle at 85% 75%, rgba(15, 23, 42, 0.16) 0%, rgba(15, 23, 42, 0) 65%),
        linear-gradient(160deg, rgba(241, 245, 249, 0.95) 0%, rgba(226, 232, 240, 0.92) 45%, rgba(248, 250, 252, 0.94) 100%);
    position: relative;
    overflow: hidden;
}

.section.alt::before {
    content: "";
    position: absolute;
    inset: 8% 10% 6% 14%;
    border-radius: calc(var(--radius-xl) * 1.1);
    border: 1px solid rgba(59, 130, 246, 0.18);
    opacity: 0.75;
    pointer-events: none;
}

.section.alt::after {
    content: "";
    position: absolute;
    inset: 12% 16% 10% 18%;
    border-radius: calc(var(--radius-xl) * 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0.55;
    pointer-events: none;
}

.section .section-title {
    text-align: center;
}

.section-title {
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(17, 17, 17, 0.6);
    margin-bottom: clamp(2.75rem, 6vw, 3.5rem);
}

.section-title::after {
    content: "";
    position: absolute;
    inset-inline: 25%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.75), transparent);
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    position: relative;
}

/* Specialized Services Section */
.specialized-services-section {
    margin-top: 50px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.specialized-title {
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.specialized-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.services-grid-specialized {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.service-category {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.service-category h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    position: relative;
}

.service-category h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 12px 0;
    color: #555;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
    transition: all 0.3s ease;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

.service-list li:hover {
    color: #2c3e50;
    padding-left: 30px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 5px;
    margin: 0 -5px;
    padding-right: 10px;
}

/* RTL Support for Specialized Services */
.rtl-layout .service-list li {
    padding-left: 0;
    padding-right: 25px;
}

.rtl-layout .service-list li::before {
    left: auto;
    right: 0;
}

.rtl-layout .service-list li:hover {
    padding-left: 10px;
    padding-right: 30px;
}

.rtl-layout .service-category h4::after {
    left: auto;
    right: 0;
}

/* Responsive Design for Specialized Services */
@media (max-width: 768px) {
    .services-grid-specialized {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .specialized-title {
        font-size: 1.7rem;
    }
    
    .service-category {
        padding: 20px;
    }
    
    .service-category h4 {
        font-size: 1.2rem;
    }
}
    z-index: 1;
    gap: clamp(2rem, 4vw, 2.75rem);
}

.services-catalog {
    background: rgba(255, 255, 255, 0.95);
    border-radius: calc(var(--radius) + 12px);
    padding: clamp(2.4rem, 5vw, 3.6rem) clamp(2rem, 5vw, 3rem);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.services-catalog::before {
    content: "";
    position: absolute;
    inset: -45% 40% 60% -10%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), transparent 70%);
    opacity: 0.45;
    filter: blur(45px);
    pointer-events: none;
}

.services-catalog::after {
    content: "";
    position: absolute;
    inset: 65% -25% -35% 45%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0.35;
    filter: blur(18px);
    pointer-events: none;
}

.services-header {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.9rem;
    margin-bottom: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
}

[dir="rtl"] .services-header {
    text-align: center;
}

.services-header::after {
    content: "";
    width: clamp(80px, 12vw, 140px);
    height: 3px;
    border-radius: 999px;
    margin: 0.5rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.5), transparent);
    display: block;
}

.services-badge {
    display: inline-flex;
    align-self: center;
    padding: 0.5rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(7, 7, 7, 0.85);
    color: #fefefe;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.services-meta {
    color: rgba(17, 17, 17, 0.68);
    font-size: 1.05rem;
    line-height: 1.9;
}

.services-list {
    position: relative;
    z-index: 1;
    counter-reset: services;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.4rem, 3vw, 2rem);
    margin: 0;
    padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(0.5rem, 2vw, 1rem);
}

.services-list li {
    counter-increment: services;
    background: rgba(255, 255, 255, 0.95);
    border-radius: calc(var(--radius) + 4px);
    padding: clamp(3.4rem, 6vw, 4.2rem) clamp(1.8rem, 3.5vw, 2.4rem) clamp(2.4rem, 4.5vw, 2.9rem);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.9;
    font-weight: 500;
    min-height: clamp(220px, 32vw, 280px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: rgba(17, 17, 17, 0.8);
}

.services-list li::before {
    content: counter(services);
    position: absolute;
    inset-inline-start: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(7, 7, 7, 0.95);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.05em;
}

.services-list li span {
    display: block;
    max-width: 28ch;
    color: inherit;
    font-size: 1.02rem;
    text-align: left;
}

[dir="rtl"] .services-list li::before {
    inset-inline-start: auto;
    inset-inline-end: 50%;
    transform: translate(50%, -50%);
}

[dir="rtl"] .services-list li span {
    text-align: right;
}

.services-list li:hover {
    transform: translateY(-10px);
    box-shadow: 0 32px 68px rgba(0, 0, 0, 0.15);
}

.services-highlight {
    background: linear-gradient(135deg, rgba(7, 7, 7, 0.95), rgba(20, 20, 20, 0.85));
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.services-highlight::before {
    background: linear-gradient(135deg, #f7c873, #f3b93c);
    color: #111;
}

#contact.section.alt {
    background:
        radial-gradient(circle at 12% 12%, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 88% 20%, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 55%),
        linear-gradient(155deg, rgba(248, 250, 252, 0.95) 0%, rgba(231, 235, 241, 0.92) 40%, rgba(241, 245, 249, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

#contact.section.alt::before {
    content: "";
    position: absolute;
    inset: 8% 10% 12% 10%;
    border-radius: calc(var(--radius-xl) * 0.9);
    border: 1px solid rgba(59, 130, 246, 0.18);
    opacity: 0.7;
    pointer-events: none;
}

.contact {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: calc(var(--radius) + 8px);
    padding: clamp(2.2rem, 4vw, 3rem);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

#services.section {
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 12vw, 10rem) 0;
    background:
        radial-gradient(circle at 10% 18%, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 90% 25%, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 55%),
        linear-gradient(150deg, rgba(248, 250, 252, 0.94) 0%, rgba(231, 235, 241, 0.92) 45%, rgba(241, 245, 249, 0.96) 100%);
}

#services.section::before {
    content: "";
    position: absolute;
    inset: 10% 8% 12% 8%;
    border-radius: calc(var(--radius-xl) * 1.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    opacity: 0.65;
    pointer-events: none;
}

#services.section::after {
    content: "";
    position: absolute;
    inset: 14% 12% 16% 12%;
    border-radius: calc(var(--radius-xl) * 0.95);
    border: 1px solid rgba(212, 175, 55, 0.18);
    opacity: 0.55;
    pointer-events: none;
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: clamp(2.2rem, 4.5vw, 2.8rem) clamp(2rem, 4.5vw, 2.6rem);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08),
        0 8px 20px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.25), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 70px rgba(59, 130, 246, 0.15),
        0 15px 35px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.3);
    animation-play-state: paused;
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.card p {
    color: rgba(17, 17, 17, 0.64);
    line-height: 1.8;
}

.card:nth-child(odd) {
    animation: cardFloat 9s ease-in-out infinite;
}

.card:nth-child(even) {
    animation: cardFloat 9s ease-in-out infinite reverse;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(2rem, 4vw, 2.75rem);
}

.step {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: clamp(2.1rem, 4vw, 2.8rem) clamp(1.8rem, 3.5vw, 2.3rem);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.step-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step::after {
    content: "";
    position: absolute;
    inset: 14% 20% 16% 20%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: calc(var(--radius) - 4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.step:hover::after {
    opacity: 1;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.testimonials {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

blockquote {
    position: relative;
    padding-inline-start: 1.5rem;
}

blockquote::before {
    content: "\201C";
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.1);
    position: absolute;
    top: -1rem;
    inset-inline-start: 0.25rem;
}

.callout {
    background: #111111;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 7vw, 4.75rem) 0;
}

.callout .btn.secondary {
    background: #fff;
    color: var(--primary-dark);
}

.contact {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
    gap: 2.5rem;
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
    color: rgba(17, 17, 17, 0.68);
}

.footer {
    background: linear-gradient(180deg,
            #0f172a 0%,
            #1e293b 50%,
            #0f172a 100%);
    color: #e2e8f0;
    padding: 2rem 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.5) 50%,
            transparent 100%);
}

.footer::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -50%;
    right: 10%;
    background: radial-gradient(circle,
            rgba(59, 130, 246, 0.08) 0%,
            transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.footer a {
    color: var(--secondary);
}

.language-switcher {
    position: relative;
    z-index: 2;
}

.language-switcher::before {
    content: "🌐";
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.7;
}

.language-switcher select {
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.6rem 2.2rem 0.6rem 1rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    animation: languageSlide 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.4s forwards;
    opacity: 0;
    transform: translateX(20px);
}

@keyframes languageSlide {
    0% {
        opacity: 0;
        transform: translateX(20px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.language-switcher select::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.language-switcher select:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
}

.language-switcher select:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.12);
}

.language-switcher select option {
    color: #ffffff;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    background-color: #1a1a2e;
    padding: 0.5rem;
    font-weight: 500;
}

.language-switcher select option:hover,
.language-switcher select option:checked {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0f0f23 100%);
    background-color: #16213e;
}

.language-switcher::after {
    content: "▼";
    position: absolute;
    top: 50%;
    inset-inline-end: 0.8rem;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 0.7rem;
    transition: all 0.4s ease;
    pointer-events: none;
}

.language-switcher:hover::after {
    transform: translateY(-50%) scale(1.2);
    color: #ffffff;
}

.callout::before {
    content: "";
    position: absolute;
    inset: -30% 40% -30% -10%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 60%);
    transform: skewX(-18deg);
    pointer-events: none;
}

.callout::after {
    content: "";
    position: absolute;
    inset: 15% -20% 15% 70%;
    background: linear-gradient(300deg, rgba(255, 255, 255, 0.12), transparent 65%);
    filter: blur(6px);
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 960px) {
    .header-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .header-left,
    .header-right {
        justify-self: center;
    }

    .brand {
        align-items: center;
        gap: 0.2rem;
    }

    .brand .logo {
        font-size: 1rem;
        white-space: nowrap;
    }

    .brand .tagline {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .header-nav nav {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero-media {
        order: -1;
    }

    .hero-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: var(--mobile-space-base) 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        backdrop-filter: blur(20px);
    }

    .header-layout {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-base);
        text-align: center;
    }

    .header-left {
        justify-self: center;
        display: flex;
        gap: var(--mobile-space-sm);
        align-items: center;
    }

    .brand {
        align-items: center;
        gap: 0.2rem;
    }

    .logo {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50vw;
    }

    .tagline {
        font-size: 0.75rem;
        opacity: 0.9;
        white-space: nowrap;
        padding-left: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50vw;
    }

    .cta-btn {
        padding: var(--mobile-space-base) var(--mobile-space-xl);
        font-size: var(--mobile-text-sm);
        min-height: var(--touch-target-min);
        border-radius: 12px;
        font-weight: 600;
        transition: all var(--transition-fast);
    }

    .cta-btn:active {
        transform: translateY(1px);
    }

    .language-switcher select {
        padding: var(--mobile-space-sm) 2.5rem var(--mobile-space-sm) var(--mobile-space-base);
        font-size: var(--mobile-text-sm);
        min-height: var(--touch-target-min);
        border-radius: 8px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-weight: 500;
    }

    .language-switcher select:focus {
        border-color: var(--accent-light);
        box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    }
}

/* للشاشات الكبيرة جداً */
@media (min-width: 1920px) {
    .hero-marquee {
        width: min(85%, 1200px);
        height: clamp(3rem, 4vw, 4rem);
    }
}

/* للشاشات الكبيرة */
@media (min-width: 1440px) and (max-width: 1919px) {
    .hero-marquee {
        width: min(88%, 1100px);
    }
}

/* للأجهزة اللوحية الأفقية */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-marquee {
        width: min(92%, 900px);
    }
}

/* للأجهزة اللوحية العمودية */
@media (max-width: 1023px) and (min-width: 769px) {
    .hero-marquee {
        width: min(95%, 700px);
        top: clamp(1.2rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .hero-marquee {
        top: clamp(1rem, 3vw, 2rem);
        width: min(95%, 600px);
        height: clamp(2.8rem, 5vw, 3.5rem);
    }

    .hero-marquee__item {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        font-weight: 600;
        letter-spacing: 0.05em;
        padding: 0 var(--mobile-space-base);
    }

    .hero-marquee__separator {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin: 0 var(--mobile-space-xs);
    }

    .hero-marquee__track {
        gap: var(--mobile-space-base);
        animation-duration: 25s;
        /* أبطأ قليلاً للقراءة */
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: var(--mobile-space-sm) 0;
    }

    .top-bar .container {
        gap: var(--mobile-space-sm);
    }

    .brand {
        gap: 0.1rem;
        align-items: flex-start;
        max-width: 60vw;
    }

    .logo {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .tagline {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        padding-left: 0;
    }

    .header-actions {
        flex-direction: row;
        gap: var(--mobile-space-xs);
        align-items: center;
    }

    .header-actions nav {
        display: none;
    }

    .cta-btn {
        padding: var(--mobile-space-sm) var(--mobile-space-base);
        font-size: 0.75rem;
        min-height: var(--touch-target-min);
        white-space: nowrap;
    }

    .hero-marquee {
        width: min(98%, 500px);
        height: clamp(2.5rem, 6vw, 3rem);
        top: clamp(0.8rem, 2.5vw, 1.5rem);
    }

    .hero-marquee__item {
        font-size: clamp(1rem, 5vw, 1.2rem);
        padding: 0 var(--mobile-space-sm);
    }
}

@media (max-width: 768px) {
    .hero-card {
        padding: var(--mobile-space-xl) var(--mobile-space-lg);
        margin: var(--mobile-space-xl) 0;
        border-radius: 16px;
    }

    .lead-form {
        gap: var(--mobile-space-lg);
        margin-top: var(--mobile-space-xl);
    }

    .lead-form label {
        font-size: var(--mobile-text-base);
        font-weight: 600;
        margin-bottom: var(--mobile-space-xs);
        color: var(--text);
        display: block;
    }

    .lead-form input,
    .lead-form select {
        padding: var(--mobile-space-base);
        font-size: var(--mobile-text-base);
        min-height: var(--touch-target-comfortable);
        border-radius: 8px;
        border: 2px solid #e2e8f0;
        width: 100%;
        transition: all var(--transition-fast);
        background: white;
    }

    .lead-form input:focus,
    .lead-form select:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        outline: none;
    }

    .lead-form input::placeholder {
        color: #94a3b8;
        font-size: var(--mobile-text-sm);
    }

    .lead-form button {
        padding: var(--mobile-space-lg) var(--mobile-space-xl);
        font-size: var(--mobile-text-base);
        font-weight: 600;
        min-height: var(--touch-target-large);
        border-radius: 12px;
        width: 100%;
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        transition: all var(--transition-fast);
        cursor: pointer;
    }

    .lead-form button:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--mobile-space-2xl) 0;
    }

    .section-title {
        font-size: var(--mobile-text-3xl);
        line-height: 1.2;
        margin-bottom: var(--mobile-space-base);
        text-align: center;
    }

    .section-subtitle {
        font-size: var(--mobile-text-lg);
        line-height: 1.6;
        margin-bottom: var(--mobile-space-xl);
        text-align: center;
        color: var(--text-light);
    }

    .container {
        padding: 0 var(--mobile-space-base);
    }

    .grid {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-xl);
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-2xl);
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-media {
        order: 1;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--mobile-space-base);
        margin-top: var(--mobile-space-xl);
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: var(--mobile-space-base) var(--mobile-space-xl);
        min-height: var(--touch-target-comfortable);
    }
}

@media (max-width: 768px) {
    .services-catalog {
        padding: var(--mobile-space-xl) var(--mobile-space-base);
        border-radius: 16px;
    }

    .services-list {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-lg);
        padding: var(--mobile-space-base) 0;
    }

    .services-list li {
        padding: var(--mobile-space-2xl) var(--mobile-space-lg) var(--mobile-space-xl);
        min-height: auto;
        border-radius: 12px;
        text-align: center;
    }

    .services-list li::before {
        width: 50px;
        height: 50px;
        font-size: var(--mobile-text-base);
    }

    .services-list li span {
        font-size: var(--mobile-text-base);
        line-height: 1.6;
        max-width: none;
        text-align: center;
        color: var(--text);
    }

    .services-list li:hover {
        transform: none;
        /* تقليل الحركة على الهاتف */
    }

    .services-list li:active {
        transform: scale(0.98);
    }
}

@media (max-width: 768px) {
    .btn {
        padding: var(--mobile-space-base) var(--mobile-space-xl);
        font-size: var(--mobile-text-base);
        min-height: var(--touch-target-comfortable);
        border-radius: 12px;
        font-weight: 600;
        transition: all var(--transition-fast);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border: none;
    }

    .btn.primary {
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

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

    .btn:active {
        transform: translateY(1px);
    }

    .btn:focus {
        outline: 2px solid var(--accent-light);
        outline-offset: 2px;
    }

    /* تحسين الروابط */
    a {
        color: var(--accent);
        text-decoration: none;
        transition: color var(--transition-fast);
    }

    a:hover,
    a:focus {
        color: var(--accent-dark);
        text-decoration: underline;
    }

    /* تحسين روابط التواصل */
    .contact-list a {
        color: var(--accent);
        font-weight: 500;
        padding: var(--mobile-space-xs) 0;
        display: inline-block;
        min-height: var(--touch-target-min);
        line-height: 1.4;
    }
}

@media (max-width: 640px) {
    .hero-card {
        padding: var(--mobile-space-lg) var(--mobile-space-base);
    }

    .callout .flex {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--mobile-space-base);
    }

    .container {
        padding: 0 var(--mobile-space-sm);
    }

    .services-list li {
        padding: var(--mobile-space-xl) var(--mobile-space-base) var(--mobile-space-lg);
    }

    .services-list li span {
        font-size: var(--mobile-text-sm);
    }

    .btn {
        width: 100%;
        padding: var(--mobile-space-lg) var(--mobile-space-xl);
        min-height: var(--touch-target-large);
    }
}

/* دعم الشاشات الصغيرة جداً */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--mobile-space-xs);
    }

    .hero-card {
        padding: var(--mobile-space-base) var(--mobile-space-xs);
        margin: var(--mobile-space-base) 0;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.1;
    }

    .section-subtitle {
        font-size: var(--mobile-text-base);
    }

    .btn {
        padding: var(--mobile-space-sm) var(--mobile-space-base);
        font-size: var(--mobile-text-sm);
        min-height: var(--touch-target-min);
    }

    .lead-form input,
    .lead-form select {
        padding: var(--mobile-space-sm);
        font-size: var(--mobile-text-sm);
        min-height: var(--touch-target-min);
    }

    .hero-marquee {
        width: min(99%, 380px);
        height: clamp(2rem, 8vw, 2.5rem);
        top: clamp(0.5rem, 2vw, 1rem);
    }

    .hero-marquee__item {
        font-size: clamp(0.9rem, 6vw, 1rem);
        padding: 0 var(--mobile-space-xs);
    }

    .services-list li {
        padding: var(--mobile-space-base) var(--mobile-space-xs) var(--mobile-space-sm);
    }

    .services-list li::before {
        width: 40px;
        height: 40px;
        font-size: var(--mobile-text-sm);
    }

    .top-bar {
        padding: var(--mobile-space-xs) 0;
    }

    .logo {
        font-size: var(--mobile-text-xl);
    }

    .tagline {
        font-size: var(--mobile-text-xs);
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 320px) {
    .hero-marquee {
        width: 95%;
        height: clamp(1.8rem, 10vw, 2.2rem);
        top: clamp(0.3rem, 1.5vw, 0.8rem);
    }

    .hero-marquee__item {
        font-size: clamp(0.8rem, 7vw, 0.9rem);
        padding: 0 0.25rem;
    }

    .hero-marquee__separator {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }

    .hero-marquee__track {
        gap: 0.75rem;
        animation-duration: 20s;
    }
}

/* ═══════════════════════════════════════════════════════════
   🎨 PROFESSIONAL BUTTONS - أنماط الأزرار الاحترافية
   ═══════════════════════════════════════════════════════════ */

/* الأنماط الأساسية للأزرار */
.btn,
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-transform: none;
    letter-spacing: 0.02em;
}

/* الزر الأساسي */
.btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    color: white;
}

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

/* الزر الثانوي */
.btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* الزر الشبح */
.btn.ghost {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn.ghost:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}

/* الزر الناجح */
.btn.success {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--primary-dark);
    box-shadow:
        0 8px 32px rgba(212, 175, 55, 0.3),
        0 4px 16px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn.success::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.success:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    box-shadow:
        0 12px 40px rgba(212, 175, 55, 0.4),
        0 8px 20px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    color: var(--primary-dark);
}

.btn.success:hover::before {
    opacity: 1;
}

/* الزر التحذيري */
.btn.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn.warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* الزر الاحترافي */
.cta-btn.professional {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3),
        0 4px 12px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    min-width: 160px;
    text-align: center;
}

.cta-btn.professional:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4),
        0 8px 20px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: #ffffff;
}

.cta-btn.professional:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* أحجام مختلفة للأزرار */
.btn.small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn.large {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

/* الزر مع أيقونة */
.btn.with-icon::before {
    content: attr(data-icon);
    font-size: 1.1em;
}

/* تأثير التموج */
.btn::after,
.cta-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after,
.cta-btn:active::after {
    width: 300px;
    height: 300px;
}

/* حالة التحميل */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: -0.5rem;
}

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

/* حالة التعطيل */
.btn:disabled,
.cta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* العرض الكامل */
.w-100 {
    width: 100%;
    justify-content: center;
}

/* أنماط خاصة لأزرار Hero */
.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-actions .btn {
    min-width: 160px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-actions .btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
}

.hero-actions .btn.primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.3);
}

.hero-actions .btn.secondary {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.hero-actions .btn.secondary:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}



/* تحسينات للهاتف المحمول */
@media (max-width: 768px) {

    .btn,
    .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
        /* حد أدنى للمس */
    }

    .btn.small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .btn.large {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .cta-btn.professional {
        padding: 0.875rem 1.75rem;
        font-size: 0.85rem;
        min-width: 140px;
    }
}

/* تحسينات للوضع المظلم */
@media (prefers-color-scheme: dark) {
    .btn.secondary {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .btn.ghost {
        border-color: rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.9);
    }
}

/* ═══════════════════════════════════════════════════════════
   🖼️ IMAGE CAROUSEL - شريط الصور المتحرك
   ═══════════════════════════════════════════════════════════ */

.image-carousel {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    position: relative;
}

.image-carousel::before,
.image-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.image-carousel::before {
    left: 0;
    background: linear-gradient(90deg, #f8fafc 0%, transparent 100%);
}

.image-carousel::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, #f8fafc 100%);
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: carouselScroll 30s linear infinite;
    width: max-content;
}

.carousel-slide {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.carousel-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%) opacity(0.8);
    transition: all 0.3s ease;
}

.carousel-slide:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes carouselScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

/* إيقاف الحركة عند التمرير */
.image-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* تحسينات للهاتف المحمول */
@media (max-width: 768px) {
    .image-carousel {
        padding: 2rem 0;
    }

    .carousel-slide {
        width: 160px;
        height: 100px;
        padding: 0.75rem;
    }

    .carousel-track {
        gap: 1.5rem;
        animation-duration: 25s;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        width: 140px;
        height: 90px;
        padding: 0.5rem;
    }

    .carousel-track {
        gap: 1rem;
        animation-duration: 20s;
    }
}

/* تحسينات الأداء */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        animation: none;
    }

    .carousel-slide {
        transition: none;
    }
}



/* ═══════════════════════════════════════════════════════════
   ⭐ FLOATING RATING WIDGET - نظام التقييم العائم
   ═══════════════════════════════════════════════════════════ */

.floating-rating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: var(--heading-font);
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-rating.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-rating.bottom-hidden {
    transform: translateY(100px);
    opacity: 0;
}

.rating-trigger {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    min-width: 160px;
    justify-content: center;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.rating-trigger::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;
}

.rating-trigger:hover::before {
    left: 100%;
}

.rating-trigger:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.rating-trigger.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
}

.rating-icon {
    font-size: 1.3rem;
    animation: gentlePulse 3s infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }
}

.rating-text {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rating-widget {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 320px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.rating-widget.active {
    display: block;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rating-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

.close-rating {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-rating:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.rating-stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(100%);
    opacity: 0.3;
}

.star:hover,
.star.active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.rating-labels {
    text-align: center;
    margin-bottom: 20px;
    min-height: 24px;
}

.rating-label {
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.rating-label.active {
    color: var(--accent);
    font-weight: 600;
    transform: scale(1.05);
}

#ratingComment {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

#ratingComment:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rating-actions {
    display: flex;
    gap: 12px;
}

.rating-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
}

.thank-you-message {
    text-align: center;
    padding: 20px 0;
}

.thank-you-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.thank-you-message h3 {
    margin: 0 0 12px;
    color: var(--success);
    font-size: 1.3rem;
}

.thank-you-message p {
    margin: 8px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   📊 RATINGS PANEL - لوحة إدارة التقييمات
   ═══════════════════════════════════════════════════════════ */

.ratings-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95) 0%, rgba(180, 148, 31, 0.95) 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    opacity: 0;
    transform: translateY(100px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    font-family: var(--heading-font);
}

.ratings-toggle::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;
}

.ratings-toggle:hover::before {
    left: 100%;
}

.ratings-toggle.visible {
    opacity: 1;
    transform: translateY(0);
}

.ratings-toggle.bottom-hidden {
    transform: translateY(100px);
    opacity: 0;
}

.ratings-toggle.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
}

.ratings-toggle.new-rating {
    animation: newRatingPulse 1s ease-in-out 3;
}

@keyframes newRatingPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3),
            0 4px 16px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 48px rgba(212, 175, 55, 0.5),
            0 8px 24px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.ratings-toggle:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(212, 175, 55, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.toggle-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.toggle-text {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ratings-count {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ratings-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 400px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1001;
    opacity: 0;
    transform: translateX(-100%) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    overflow: hidden;
}

.ratings-panel.active {
    display: block;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.ratings-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.ratings-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 600;
}

.ratings-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ratings-controls .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.close-panel {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.close-panel:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.ratings-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 24px;
    background: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ratings-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 24px 20px;
}

.no-ratings {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-ratings p {
    margin: 0 0 8px;
    font-size: 1rem;
}

.no-ratings small {
    font-size: 0.85rem;
    opacity: 0.7;
}

.rating-item {
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
}

.rating-item.new {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
    animation: newItemGlow 2s ease-in-out;
}

@keyframes newItemGlow {

    0%,
    100% {
        box-shadow: none;
    }

    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
}

.rating-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rating-header-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rating-stars-display {
    font-size: 1rem;
    color: #fbbf24;
}

.rating-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.rating-comment {
    font-size: 0.9rem;
    color: var(--text);
    font-style: italic;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

/* تحسينات للهاتف المحمول */
@media (max-width: 768px) {
    .floating-rating {
        bottom: 15px;
        right: 15px;
    }

    .rating-trigger {
        padding: 12px 20px;
        min-width: 140px;
        border-radius: 14px;
    }

    .rating-text {
        font-size: 0.85rem;
    }

    .ratings-toggle {
        bottom: 15px;
        left: 15px;
        padding: 12px 18px;
        border-radius: 14px;
    }

    .toggle-text {
        font-size: 0.85rem;
    }

    .ratings-count {
        padding: 3px 8px;
        font-size: 0.75rem;
        min-width: 20px;
    }

    .ratings-panel {
        width: calc(100vw - 40px);
        max-width: 380px;
        top: 15px;
        left: 15px;
    }

    .ratings-header {
        padding: 16px 20px;
    }

    .ratings-stats {
        padding: 16px 20px;
        gap: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .ratings-list {
        padding: 0 20px 16px;
    }

    .rating-trigger {
        padding: 10px 16px;
        min-width: 120px;
    }

    .rating-text {
        font-size: 0.8rem;
    }

    .rating-widget {
        width: 280px;
        padding: 20px;
    }

    .rating-header h3 {
        font-size: 1rem;
    }

    .star {
        font-size: 1.8rem;
    }

    .rating-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .floating-rating {
        bottom: 10px;
        right: 10px;
    }

    .rating-widget {
        width: calc(100vw - 40px);
        max-width: 280px;
    }
}

/* تحسينات التفاعل وإمكانية الوصول */
.hero-marquee:hover .hero-marquee__track {
    animation-play-state: paused;
}

.hero-marquee:focus-within .hero-marquee__track {
    animation-play-state: paused;
}

/* تحسينات الأداء والإمكانية */
@media (prefers-reduced-motion: reduce) {
    .hero-marquee__track {
        animation: none;
    }

    .hero-marquee__item {
        opacity: 0.8;
    }

    .hero-blob {
        animation: none;
    }

    .services-list li {
        transition: none;
    }

    .btn {
        transition: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* تحسين للشاشات عالية الكثافة */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero-visual img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .services-list li::before {
        backface-visibility: hidden;
        transform-style: preserve-3d;
    }
}

/* تحسين للمس */
@media (hover: none) and (pointer: coarse) {
    .services-list li:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    /* تحسين حجم الأهداف للمس */
    .btn,
    .lead-form input,
    .lead-form select,
    .language-switcher select {
        min-height: var(--touch-target-comfortable);
    }
}

/* ═══════════════════════════════════════════════════════════
   🖼️ IMAGE CAROUSEL - شريط الصور المتحرك
   ═══════════════════════════════════════════════════════════ */

/* متغيرات الشريط المتحرك */
:root {
    --carousel-slide-width: 200px;
    --carousel-slide-height: 150px;
    --carousel-gap: 2rem;
    --carousel-speed: 40s;
    /* حركة أبطأ وأكثر سلاسة */
    --carousel-padding: 3rem;
}

/* الحاوي الرئيسي */
.image-carousel {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    padding: var(--carousel-padding) 0;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(255, 255, 255, 0.8);
    /* إضافة تدرج شفاف على الجانبين لإخفاء الحواف */
}

.image-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(248, 250, 252, 0.8) 0%,
            transparent 10%,
            transparent 90%,
            rgba(248, 250, 252, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/* تأثير خفيف للخلفية */
.image-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* حاوي المسار */
.carousel-container {
    width: 100%;
    overflow: hidden;
}

/* مسار الصور */
.carousel-track {
    display: flex;
    width: max-content;
    /* عرض يتناسب مع المحتوى */
    gap: var(--carousel-gap);
    align-items: center;
}

/* شرائح الصور */
.carousel-slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الصور */
.carousel-slide img {
    width: var(--carousel-slide-width);
    height: var(--carousel-slide-height);
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
}

/* تأثير لمعان خفيف */
.carousel-slide img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* تأثير hover للصور */
.carousel-slide img:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1) contrast(1.05);
}

/* تأثير تكبير تدريجي للصور */
.carousel-slide img {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* تأثير لمعان متحرك */
.carousel-slide img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
    border-radius: inherit;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* الحركة المستمرة */
.carousel-track {
    animation: carouselScroll var(--carousel-speed) ease-in-out infinite;
    will-change: transform;
    transition: transform 0.3s ease;
}

/* توقف الحركة عند hover */
.image-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* keyframe للحركة المحسنة */
@keyframes carouselScroll {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(calc(-2 * (var(--carousel-slide-width) + var(--carousel-gap))));
    }

    50% {
        transform: translateX(calc(-4 * (var(--carousel-slide-width) + var(--carousel-gap))));
    }

    75% {
        transform: translateX(calc(-6 * (var(--carousel-slide-width) + var(--carousel-gap))));
    }

    100% {
        transform: translateX(calc(-8 * (var(--carousel-slide-width) + var(--carousel-gap))));
    }
}

/* تحسين الأداء */
.carousel-slide img {
    will-change: transform;
    backface-visibility: hidden;
}

/* ═══════════════════════════════════════════════════════════
   📱 CAROUSEL RESPONSIVE - التصميم المتجاوب للشريط
   ═══════════════════════════════════════════════════════════ */

/* شاشات كبيرة */
@media (min-width: 1200px) {
    :root {
        --carousel-slide-width: 250px;
        --carousel-slide-height: 187px;
        --carousel-gap: 2.5rem;
    }
}

/* تابلت */
@media (max-width: 768px) {
    :root {
        --carousel-slide-width: 150px;
        --carousel-slide-height: 112px;
        --carousel-gap: 1.5rem;
        --carousel-padding: 2rem;
        --carousel-speed: 35s;
        /* أبطأ للشاشات الصغيرة لسهولة المشاهدة */
    }

    .image-carousel {
        padding: var(--carousel-padding) 0;
    }

    .carousel-slide img {
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    }

    .carousel-slide img:hover {
        transform: translateY(-4px) scale(1.03);
    }

    /* توقف الحركة عند اللمس على الهاتف */
    .image-carousel:active .carousel-track {
        animation-play-state: paused;
    }
}

/* هاتف محمول */
@media (max-width: 480px) {
    :root {
        --carousel-slide-width: 120px;
        --carousel-slide-height: 90px;
        --carousel-gap: 1rem;
        --carousel-padding: 1.5rem;
        --carousel-speed: 30s;
        /* أبطأ للهاتف لسهولة المشاهدة */
    }

    .carousel-slide img {
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.9);
    }

    .carousel-slide img:hover {
        transform: none;
        /* إزالة hover على الهاتف */
    }

    /* إضافة مؤشر بصري للحركة */
    .image-carousel::before {
        content: '← اسحب للتوقف →';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 12px;
        z-index: 2;
        opacity: 0.8;
    }
}

/* شاشات صغيرة جداً */
@media (max-width: 320px) {
    :root {
        --carousel-slide-width: 100px;
        --carousel-slide-height: 75px;
        --carousel-gap: 0.75rem;
        --carousel-padding: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   ♿ ACCESSIBILITY - إمكانية الوصول
   ═══════════════════════════════════════════════════════════ */

/* دعم تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        animation: none;
    }

    .carousel-slide img {
        transition: none;
    }

    .carousel-slide img:hover {
        transform: none;
    }

    /* عرض ثابت للصور */
    .carousel-track {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: var(--carousel-gap);
        padding: 0 var(--carousel-gap);
    }
}

/* تحسين للأجهزة اللمسية */
@media (hover: none) and (pointer: coarse) {
    .carousel-slide img:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
}

/* ═══════════════════════════════════════════════════════════
   ⭐ FLOATING RATING SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* زر التقييمات العائم - صغير على اليسار */
.ratings-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #1e3a8a 100%);
    color: white;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    box-shadow:
        0 8px 25px rgba(74, 144, 226, 0.4),
        0 4px 15px rgba(30, 58, 138, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.ratings-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.ratings-toggle:hover::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

.ratings-toggle:hover {
    transform: translateY(-4px) scale(1.15);
    box-shadow:
        0 15px 40px rgba(74, 144, 226, 0.6),
        0 8px 25px rgba(30, 58, 138, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #60a5fa 0%, #4a90e2 50%, #357abd 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.toggle-icon {
    font-size: 1.6rem;
    animation: chartPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.ratings-toggle:hover .toggle-icon {
    font-size: 1.8rem;
    animation: chartBounce 0.6s ease-in-out;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

@keyframes chartPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes chartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.15);
    }

    75% {
        transform: scale(1.05);
    }
}

.toggle-text {
    display: none;
    /* مخفي في التصميم الصغير */
}

.ratings-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #c44569 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow:
        0 4px 12px rgba(255, 71, 87, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: countPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.ratings-count:not(:empty) {
    animation: countBounce 0.6s ease-in-out;
}

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes countBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* نظام التقييم العائم - صغير على اليسار */
.floating-rating {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 1001;
}

.rating-trigger {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ff8c00 100%);
    color: #2c3e50;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.4),
        0 4px 15px rgba(255, 140, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.rating-trigger::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.rating-trigger:hover::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

.rating-trigger:hover {
    transform: translateY(-4px) scale(1.15);
    box-shadow:
        0 15px 40px rgba(255, 215, 0, 0.6),
        0 8px 25px rgba(255, 140, 0, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #ffb347 100%);
    border-color: rgba(255, 255, 255, 0.6);
}

.rating-trigger:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 20px rgba(255, 215, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.rating-icon {
    font-size: 1.6rem;
    animation: starPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.rating-trigger:hover .rating-icon {
    font-size: 1.8rem;
    animation: starSpin 0.6s ease-in-out;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes starSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.rating-text {
    display: none;
    /* مخفي في التصميم الصغير */
}

/* نافذة التقييم - منبثقة من اليسار */
.rating-widget {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 320px;
    max-width: 350px;
    transform: translateX(-20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rating-widget.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rating-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
}

.close-rating {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.2s ease;
}

.close-rating:hover {
    color: var(--error);
}

.rating-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 1rem;
    justify-content: center;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(100%);
}

.star:hover,
.star.active {
    filter: grayscale(0%);
    transform: scale(1.2);
}

.rating-labels {
    text-align: center;
    margin-bottom: 1rem;
}

.rating-label {
    font-weight: 600;
    color: var(--text);
}

#ratingComment {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 80px;
    margin-bottom: 1rem;
    font-family: var(--body-font);
}

.rating-actions {
    display: flex;
    gap: 0.5rem;
}

.rating-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* لوحة إدارة التقييمات - من اليسار */
.ratings-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.ratings-panel.active {
    left: 0;
}

.ratings-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: white;
}

.ratings-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.close-panel:hover {
    opacity: 0.7;
}

.ratings-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-alt);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.ratings-list {
    padding: 1.5rem;
}

.no-ratings {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
}

/* الرسوم المتحركة */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .ratings-toggle {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
    }

    .rating-trigger {
        width: 45px;
        height: 45px;
    }

    .floating-rating {
        bottom: 75px;
        left: 15px;
    }

    .toggle-icon {
        font-size: 1.4rem;
    }

    .rating-icon {
        font-size: 1.4rem;
    }

    .ratings-count {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }

    .rating-widget {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        left: -140px;
    }

    .ratings-panel {
        width: 100vw;
        left: -100vw;
    }

    .ratings-panel.active {
        left: 0;
    }
}

/* ════════
═══════════════════════════════════════════════════
   💬 CUSTOMER SERVICE CHAT SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* زر الدردشة العائم */
.chat-toggle {
    position: fixed;
    bottom: 140px;
    left: 20px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 50%, #075e54 100%);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.4),
        0 4px 15px rgba(7, 94, 84, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.chat-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.chat-toggle:hover::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

.chat-toggle:hover {
    transform: translateY(-4px) scale(1.15);
    box-shadow:
        0 15px 40px rgba(37, 211, 102, 0.6),
        0 8px 25px rgba(7, 94, 84, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #34e79a 0%, #25d366 50%, #128c7e 100%);
}

.chat-icon {
    font-size: 1.8rem;
    animation: chatPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.chat-toggle:hover .chat-icon {
    font-size: 2rem;
    animation: chatBounce 0.6s ease-in-out;
}

@keyframes chatPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes chatBounce {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.2);
    }

    75% {
        transform: scale(1.05);
    }
}

/* نافذة الدردشة - تصميم متماشي مع الموقع */
.chat-window {
    position: fixed;
    bottom: 210px;
    left: 20px;
    width: 380px;
    height: 500px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(15, 23, 42, 0.1);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1004;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    border-top: 3px solid var(--accent);
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* رأس نافذة الدردشة - متماشي مع الموقع */
.chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.1) 50%,
            transparent 100%);
    animation: headerShine 3s ease-in-out infinite;
    pointer-events: none;
}

.chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent) 50%,
            transparent 100%);
    opacity: 0.7;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.chat-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent), var(--secondary), var(--accent));
    z-index: -1;
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.chat-agent-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--heading-font);
    letter-spacing: 0.02em;
}

.chat-status {
    font-size: 0.85rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--body-font);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: 50%;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* منطقة الرسائل - تصميم متماشي */
.chat-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none;
    z-index: 1;
}

.chat-messages::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
    z-index: 1;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: var(--radius-sm);
    border: 2px solid var(--bg-alt);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* الرسائل - تصميم محسن */
.message {
    max-width: 85%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--body-font);
    box-shadow: var(--shadow-sm);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.message.bot {
    background: var(--card-bg);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
}

.message.bot::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent var(--card-bg) transparent transparent;
}

.message.user {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    position: relative;
}

.message.user::before {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent var(--accent-dark) transparent;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    text-align: right;
}

/* منطقة الكتابة - تصميم محسن */
.chat-input-area {
    padding: 1.25rem;
    background: var(--card-bg);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    position: relative;
}

.chat-input-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent) 50%,
            transparent 100%);
    opacity: 0.3;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    resize: none;
    max-height: 100px;
    min-height: 45px;
    transition: all var(--transition-base);
    font-family: var(--body-font);
    background: var(--bg);
    color: var(--text);
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--card-bg);
}

.chat-input::placeholder {
    color: var(--muted);
    font-style: italic;
}

.chat-send {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.chat-send::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.chat-send:hover::before {
    transform: translateX(100%);
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* الردود السريعة - تصميم محسن */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 1.25rem 0;
    padding-bottom: 0.5rem;
}

.quick-reply {
    background: var(--card-bg);
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--body-font);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.quick-reply::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.quick-reply:hover::before {
    transform: translateY(0);
}

.quick-reply:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-dark);
}

.quick-reply span {
    position: relative;
    z-index: 1;
}

/* مؤشر الكتابة */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    max-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #25d366;
    animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .chat-toggle {
        bottom: 130px;
        left: 15px;
        width: 55px;
        height: 55px;
    }

    .chat-icon {
        font-size: 1.6rem;
    }

    .chat-window {
        bottom: 195px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: calc(100vw - 30px);
        height: 400px;
    }

    .chat-header {
        padding: 0.75rem 1rem;
    }

    .chat-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .chat-agent-info h4 {
        font-size: 0.9rem;
    }

    .chat-status {
        font-size: 0.75rem;
    }
}

/* إشعار الرسائل الجديدة */
.chat-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: notificationPulse 2s ease-in-out infinite;
}

@keyframes notificationPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ════
═══════════════════════════════════════════════════════
   🎯 FLOATING BUTTONS - FIXED POSITIONING
   ═══════════════════════════════════════════════════════════ */

/* إصلاح الأزرار العائمة - التقييمات */
.ratings-toggle {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #1e3a8a 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 55px !important;
    height: 55px !important;
    box-shadow:
        0 8px 25px rgba(74, 144, 226, 0.4),
        0 4px 15px rgba(30, 58, 138, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(15px) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    overflow: hidden !important;
}

.ratings-toggle::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%) !important;
    transform: rotate(45deg) !important;
    transition: all 0.6s ease !important;
    opacity: 0 !important;
}

.ratings-toggle:hover::before {
    animation: shimmer 1.5s ease-in-out !important;
    opacity: 1 !important;
}

.ratings-toggle:hover {
    transform: translateY(-4px) scale(1.15) !important;
    box-shadow:
        0 15px 40px rgba(74, 144, 226, 0.6),
        0 8px 25px rgba(30, 58, 138, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(135deg, #60a5fa 0%, #4a90e2 50%, #357abd 100%) !important;
}

/* زر التقييم العائم */
.floating-rating {
    position: fixed !important;
    bottom: 85px !important;
    left: 20px !important;
    z-index: 1001 !important;
}

.rating-trigger {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ff8c00 100%) !important;
    color: #2c3e50 !important;
    border-radius: 50% !important;
    width: 55px !important;
    height: 55px !important;
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.4),
        0 4px 15px rgba(255, 140, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(15px) !important;
    border: 3px solid rgba(255, 255, 255, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
}

.rating-trigger::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%) !important;
    transform: rotate(45deg) !important;
    transition: all 0.6s ease !important;
    opacity: 0 !important;
}

.rating-trigger:hover::before {
    animation: shimmer 1.5s ease-in-out !important;
    opacity: 1 !important;
}

.rating-trigger:hover {
    transform: translateY(-4px) scale(1.15) !important;
    box-shadow:
        0 15px 40px rgba(255, 215, 0, 0.6),
        0 8px 25px rgba(255, 140, 0, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #ffb347 100%) !important;
}

/* زر الدردشة العائم - إصلاح قوي */
#chatToggle,
.chat-toggle {
    position: fixed !important;
    bottom: 150px !important;
    left: 20px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 50%, #075e54 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.4),
        0 4px 15px rgba(7, 94, 84, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(15px) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
}

.chat-toggle::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%) !important;
    transform: rotate(45deg) !important;
    transition: all 0.6s ease !important;
    opacity: 0 !important;
}

.chat-toggle:hover::before {
    animation: shimmer 1.5s ease-in-out !important;
    opacity: 1 !important;
}

.chat-toggle:hover {
    transform: translateY(-4px) scale(1.15) !important;
    box-shadow:
        0 15px 40px rgba(37, 211, 102, 0.6),
        0 8px 25px rgba(7, 94, 84, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(135deg, #34e79a 0%, #25d366 50%, #128c7e 100%) !important;
}

/* الأيقونات */
.toggle-icon {
    font-size: 1.6rem !important;
    animation: chartPulse 3s ease-in-out infinite !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
    transition: all 0.3s ease !important;
}

.rating-icon {
    font-size: 1.6rem !important;
    animation: starPulse 3s ease-in-out infinite !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    transition: all 0.3s ease !important;
}

.chat-icon {
    font-size: 1.8rem !important;
    animation: chatPulse 3s ease-in-out infinite !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
    transition: all 0.3s ease !important;
    display: block !important;
    line-height: 1 !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* العدادات */
.ratings-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #c44569 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid white !important;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4) !important;
    animation: countPulse 2s ease-in-out infinite !important;
}

.chat-notification {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #ff4757 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid white !important;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4) !important;
    animation: notificationPulse 2s ease-in-out infinite !important;
}

/* الرسوم المتحركة */
@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes chartPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes chatPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes notificationPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .ratings-toggle {
        bottom: 15px !important;
        left: 15px !important;
        width: 50px !important;
        height: 50px !important;
    }

    .floating-rating {
        bottom: 75px !important;
        left: 15px !important;
    }

    .rating-trigger {
        width: 50px !important;
        height: 50px !important;
    }

    .chat-toggle {
        bottom: 135px !important;
        left: 15px !important;
        width: 55px !important;
        height: 55px !important;
    }

    .toggle-icon,
    .rating-icon {
        font-size: 1.4rem !important;
    }

    .chat-icon {
        font-size: 1.6rem !important;
    }

    .ratings-count,
    .chat-notification {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
        top: -6px !important;
        right: -6px !important;
    }
}

/* إخفاء الأزرار عند التمرير لأسفل كثيراً */
.ratings-toggle.bottom-hidden,
.floating-rating.bottom-hidden,
.chat-toggle.bottom-hidden {
    opacity: 0.3 !important;
    transform: translateY(10px) scale(0.8) !important;
}

/* إظهار الأزرار تدريجياً */
.ratings-toggle.visible,
.floating-rating.visible,
.chat-toggle.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* ══
═════════════════════════════════════════════════════════
   🚨 EMERGENCY FIX - CHAT BUTTON FLOATING
   ═══════════════════════════════════════════════════════════ */

/* إصلاح طارئ لزر الدردشة مع الصورة */
div[id="chatToggle"] {
    position: fixed !important;
    bottom: 150px !important;
    left: 20px !important;
    z-index: 99999 !important;
    background: transparent !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border: 3px solid white !important;
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    float: none !important;
    clear: none !important;
    overflow: hidden !important;
}

/* إصلاح صورة الدردشة */
div[id="chatToggle"] .chat-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

div[id="chatToggle"] img.chat-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* إصلاح إشعار الدردشة */
div[id="chatToggle"] .chat-notification {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #ff4757 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid white !important;
}

/* إصلاح hover للدردشة مع الصورة */
div[id="chatToggle"]:hover {
    transform: translateY(-4px) scale(1.1) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
    border-color: #25d366 !important;
}

div[id="chatToggle"]:hover img.chat-icon {
    transform: scale(1.05) !important;
    transition: transform 0.3s ease !important;
}

/* إزالة أي تأثيرات قد تمنع العوم */
div[id="chatToggle"] {
    position: fixed !important;
    /* إزالة أي خصائص قد تتداخل */
    float: none !important;
    clear: none !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* التأكد من عدم تأثر الزر بأي container */
body div[id="chatToggle"] {
    position: fixed !important;
    bottom: 150px !important;
    left: 20px !important;
}

/* للهواتف المحمولة */
@media (max-width: 768px) {
    div[id="chatToggle"] {
        bottom: 135px !important;
        left: 15px !important;
        width: 55px !important;
        height: 55px !important;
    }

    div[id="chatToggle"] .chat-icon {
        font-size: 1.6rem !important;
    }
}

/*
 ═══════════════════════════════════════════════════════════
   💬 CHAT BUTTON - FIXED DESIGN
   ═══════════════════════════════════════════════════════════ */

/* زر الدردشة العائم - تصميم محسن */
.chat-toggle {
    position: fixed !important;
    bottom: 150px !important;
    left: 20px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 50%, #075e54 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.4),
        0 4px 15px rgba(7, 94, 84, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 1003 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(15px) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    overflow: hidden !important;
}

/* تأثير shimmer للزر */
.chat-toggle::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%) !important;
    transform: rotate(45deg) !important;
    transition: all 0.6s ease !important;
    opacity: 0 !important;
}

.chat-toggle:hover::before {
    animation: shimmer 1.5s ease-in-out !important;
    opacity: 1 !important;
}

/* تأثير hover */
.chat-toggle:hover {
    transform: translateY(-4px) scale(1.15) !important;
    box-shadow:
        0 15px 40px rgba(37, 211, 102, 0.6),
        0 8px 25px rgba(7, 94, 84, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(135deg, #34e79a 0%, #25d366 50%, #128c7e 100%) !important;
}

/* أيقونة الدردشة */
.chat-icon {
    font-size: 1.8rem !important;
    animation: chatPulse 3s ease-in-out infinite !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    z-index: 10 !important;
    position: relative !important;
}

/* إشعار الدردشة */
.chat-notification {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #ff4757 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid white !important;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4) !important;
    animation: notificationPulse 2s ease-in-out infinite !important;
    z-index: 11 !important;
}

/* رسوم متحركة للدردشة */
@keyframes chatPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* تصميم متجاوب للدردشة */
@media (max-width: 768px) {
    .chat-toggle {
        bottom: 135px !important;
        left: 15px !important;
        width: 55px !important;
        height: 55px !important;
    }

    .chat-icon {
        font-size: 1.6rem !important;
    }

    .chat-notification {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
        top: -6px !important;
        right: -6px !important;
    }
}

/* ════
═══════════════════════════════════════════════════════
   💬 REDESIGNED CHAT SYSTEM - BLUE & WHITE THEME
   ═══════════════════════════════════════════════════════════ */

/* إعادة تصميم زر الدردشة بالألوان الزرقاء */
.chat-toggle {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.4),
        0 4px 15px rgba(29, 78, 216, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
}

.chat-toggle:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%) !important;
    box-shadow:
        0 15px 40px rgba(59, 130, 246, 0.6),
        0 8px 25px rgba(29, 78, 216, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1) !important;
}

/* نافذة الدردشة - تصميم أزرق وأبيض */
.chat-window {
    position: fixed;
    bottom: 220px;
    left: 20px;
    width: 380px;
    height: 500px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow:
        0 25px 70px rgba(59, 130, 246, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.2);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1004;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* رأس نافذة الدردشة - أزرق أنيق */
.chat-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    animation: headerShine 3s ease-in-out infinite;
    pointer-events: none;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-agent-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-status {
    font-size: 0.85rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* منطقة الرسائل - خلفية بيضاء أنيقة */
.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* الرسائل - تصميم أزرق وأبيض */
.message {
    max-width: 85%;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: messageSlideIn 0.3s ease-out;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.message.bot {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
}

.message.bot::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 2px;
}

.message.user {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    text-align: right;
}

/* منطقة الكتابة - تصميم أبيض أنيق */
.chat-input-area {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0 0 20px 20px;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 25px;
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    resize: none;
    max-height: 100px;
    min-height: 45px;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    background: white;
    color: #1e293b;
}

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

.chat-input::placeholder {
    color: #94a3b8;
}

.chat-send {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* الردود السريعة - تصميم أزرق */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.quick-reply {
    background: white;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 0.75rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.quick-reply:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* مؤشر الكتابة - تصميم أزرق */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
    max-width: 100px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
}

.typing-indicator::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 2px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

/* التصميم المتجاوب للدردشة */
@media (max-width: 768px) {
    .chat-window {
        bottom: 205px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: calc(100vw - 30px);
        height: 450px;
    }

    .chat-header {
        padding: 1rem;
    }

    .chat-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .chat-agent-info h4 {
        font-size: 1rem;
    }

    .chat-status {
        font-size: 0.8rem;
    }

    .chat-messages {
        padding: 1rem;
    }

    .chat-input-area {
        padding: 1rem;
    }

    .quick-replies {
        margin: 0.75rem 1rem;
        padding-top: 0.75rem;
    }
}

/* ═
══════════════════════════════════════════════════════════
   ⚖️ LEGAL SERVICES SECTION
   ═══════════════════════════════════════════════════════════ */

.legal-services {
    background: var(--gradient-card);
    padding: 5rem 0;
    position: relative;
}

.legal-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(26, 54, 93, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-header .section-title::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Legal Services Grid */
.legal-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.legal-service-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.legal-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.legal-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

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

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-icon .icon {
    font-size: 2rem;
    filter: grayscale(1) brightness(0) invert(1);
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text);
    position: relative;
    padding-right: 1.5rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0.5rem;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

.service-cta {
    margin-top: auto;
}

.btn-service {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.btn-service:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

/* Additional Services */
.additional-services {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.additional-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--heading-font);
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.additional-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border);
}

.additional-item:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.additional-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.additional-text {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .legal-service-card {
        padding: 1.5rem;
    }

    .section-header .section-title {
        font-size: 2rem;
    }

    .additional-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .additional-services {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .legal-services {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header .section-title {
        font-size: 1.8rem;
    }

    .legal-service-card {
        padding: 1.2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon .icon {
        font-size: 1.5rem;
    }
}

/* ═
══════════════════════════════════════════════════════════
   📊 LEGAL STATISTICS SECTION
   ═══════════════════════════════════════════════════════════ */

.legal-stats {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.legal-stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.legal-stats .stats-grid {
    position: relative;
    z-index: 2;
}

.legal-stats .stat {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.legal-stats .stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.legal-stats .stat:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.legal-stats .stat strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.legal-stats .stat span {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    font-weight: 400;
}

/* Responsive Design for Legal Stats */
@media (max-width: 768px) {
    .legal-stats {
        padding: 3rem 0;
    }

    .legal-stats .stat {
        padding: 1.5rem 0.5rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .legal-stats .stat strong {
        font-size: 2rem;
    }

    .legal-stats .stat span {
        font-size: 0.9rem;
    }
}

/* ═══════
════════════════════════════════════════════════════
   🏛️ PROFESSIONAL LAW FIRM HEADER
   ═══════════════════════════════════════════════════════════ */

/* Enhanced Header Styles */
.top-bar {
    background: var(--gradient-hero);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow:
        0 8px 32px rgba(26, 54, 93, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1000;
}

.top-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    position: relative;
    z-index: 2;
}

/* Professional Brand Section */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    text-align: center;
}

.logo {
    font-family: var(--logo-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(212, 175, 55, 0.5);
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    position: relative;
}

.logo::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 1px;
    transition: transform var(--transition-base);
}

.logo:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.tagline {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Professional Navigation */
.header-nav {
    margin-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.4rem;
}

.header-nav nav {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.header-nav nav a {
    font-family: var(--nav-font);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    letter-spacing: 0.01em;
}

.header-nav nav a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-base);
}

.header-nav nav a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.header-nav nav a:hover {
    color: var(--secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Professional CTA Button */
.cta-btn.professional {
    background: var(--gradient-secondary);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow:
        0 4px 16px rgba(212, 175, 55, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-btn.professional::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-btn.professional:hover::before {
    left: 100%;
}

.cta-btn.professional:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(212, 175, 55, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Language Switcher Enhancement */
.language-switcher select {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.language-switcher select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
}

.language-switcher select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Condensed Header State */
.top-bar.is-condensed {
    background: var(--gradient-hero);
    backdrop-filter: blur(25px);
    box-shadow:
        0 8px 32px rgba(26, 54, 93, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.15);
}

.top-bar.is-condensed .header-layout {
    padding: 0.3rem 0;
}

.top-bar.is-condensed .logo {
    font-size: 1rem;
}

.top-bar.is-condensed .tagline {
    font-size: 0.75rem;
}

.top-bar.is-condensed .header-nav {
    margin-top: 0.2rem;
    padding-top: 0.2rem;
}

.top-bar.is-condensed .header-nav nav {
    gap: 1rem;
}

.top-bar.is-condensed .header-nav nav a {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
}

.top-bar.is-condensed .cta-btn.professional {
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-layout {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .header-nav nav {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .header-nav nav a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .cta-btn.professional {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-nav nav {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .header-nav nav a {
        width: 100%;
        text-align: center;
        max-width: 200px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .language-switcher select {
        padding: 0.5rem 2rem 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* ═══
════════════════════════════════════════════════════════
   📊 PROFESSIONAL LEGAL STATISTICS SECTION
   ═══════════════════════════════════════════════════════════ */

.legal-stats {
    background:
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%),
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.legal-stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.legal-stats::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: statsGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes statsGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-10px, -10px) scale(1.1);
        opacity: 0.6;
    }
}

.legal-stats .container {
    position: relative;
    z-index: 2;
}

.legal-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.legal-stats .stat {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-base);
    overflow: hidden;
}

.legal-stats .stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.legal-stats .stat::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.legal-stats .stat:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(212, 175, 55, 0.2);
}

.legal-stats .stat:hover::before {
    transform: scaleX(1);
}

.legal-stats .stat:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.legal-stats .stat:hover .stat-icon {
    transform: scale(1.15);
    color: var(--secondary-light);
    filter: drop-shadow(0 6px 16px rgba(212, 175, 55, 0.4));
}

.legal-stats .stat strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: all var(--transition-base);
}

.legal-stats .stat:hover strong {
    color: var(--secondary-light);
    transform: scale(1.05);
}

.legal-stats .stat span {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.4;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    transition: all var(--transition-base);
}

.legal-stats .stat:hover span {
    color: white;
    opacity: 1;
}

/* Enhanced Animation Effects */
.legal-stats .stat {
    animation: statsFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.legal-stats .stat:nth-child(1) {
    animation-delay: 0.1s;
}

.legal-stats .stat:nth-child(2) {
    animation-delay: 0.2s;
}

.legal-stats .stat:nth-child(3) {
    animation-delay: 0.3s;
}

.legal-stats .stat:nth-child(4) {
    animation-delay: 0.4s;
}

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

/* Counter Animation */
.legal-stats .stat strong {
    counter-reset: stat-counter;
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design for Legal Stats */
@media (max-width: 768px) {
    .legal-stats {
        padding: 2.5rem 0;
    }

    .legal-stats .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    .legal-stats .stat {
        padding: 1.5rem 1rem;
    }

    .stat-icon {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.8rem;
    }

    .legal-stats .stat strong {
        font-size: 1.8rem;
    }

    .legal-stats .stat span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .legal-stats {
        padding: 2rem 0;
    }

    .legal-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .legal-stats .stat {
        padding: 1.2rem 0.8rem;
    }

    .stat-icon {
        width: 1.8rem;
        height: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .legal-stats .stat strong {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }

    .legal-stats .stat span {
        font-size: 0.8rem;
    }
}

/*
 ═══════════════════════════════════════════════════════════
   🏢 COMMERCIAL LAW MODAL
   ═══════════════════════════════════════════════════════════ */

/* زر اطلع على المزيد */
.btn-service-more {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--transition-base);
    cursor: pointer;
    margin-right: 0.8rem;
}

.btn-service-more:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

/* النافذة المنبثقة */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-base);
    position: relative;
}

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

/* رأس النافذة */
.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.modal-header h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* محتوى النافذة */
.modal-body {
    padding: 2rem;
}

.modal-intro {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border-right: 4px solid var(--secondary);
}

.modal-intro p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
}

/* فئات الخدمات */
.services-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-category {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.service-category:hover::before {
    transform: scaleX(1);
}

.service-category h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-category h3::before {
    content: "⚖️";
    font-size: 1rem;
}

.service-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-category li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-right: 1.5rem;
    transition: all var(--transition-base);
}

.service-category li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0.5rem;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1rem;
}

.service-category li:hover {
    color: var(--primary);
    padding-right: 2rem;
}

/* تذييل النافذة */
.modal-footer {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    margin: 0.3rem 0;
    color: var(--text);
    font-size: 0.9rem;
}

.contact-info p:first-child {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .services-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-category {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .modal-actions {
        justify-content: center;
    }

    .btn-service-more {
        margin-right: 0;
        margin-top: 0.5rem;
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ══
═════════════════════════════════════════════════════════
   📞 PROFESSIONAL CONTACT SECTION
   ═══════════════════════════════════════════════════════════ */

.professional-contact {
    background:
        linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%),
        radial-gradient(circle at 20% 80%, rgba(26, 54, 93, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.professional-contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231a365d' fill-opacity='0.02'%3E%3Cpath d='M20 20c0-11.046-8.954-20-20-20v20h20zM0 20v20h20c0-11.046-8.954-20-20-20z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.contact-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
}

.contact-header .section-title::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.contact-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    gap: 2rem;
}

.contact-method {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.contact-method:hover::before {
    transform: scaleX(1);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.contact-icon.email {
    background: linear-gradient(135deg, #ea4335 0%, #d33b2c 100%);
}

.contact-method:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

.contact-details h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.contact-link {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    margin-bottom: 0.3rem;
    transition: all var(--transition-base);
}

.contact-link:hover {
    color: var(--secondary-dark);
    transform: translateX(5px);
}

.contact-info {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Contact Services */
.contact-services {
    display: flex;
    flex-direction: column;
}

/* Calculator Link Section */
.calculator-link-section {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.calculator-link-section h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.calculator-link-section p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.4;
}

.btn-calculator {
    display: inline-block;
    background: white;
    color: #2c3e50;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-calculator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: #2c3e50;
}
    gap: 2rem;
}

.services-card,
.emergency-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
}

.services-card:hover,
.emergency-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.services-card h3,
.emergency-card h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.service-items {
    display: grid;
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.service-item:hover {
    background: var(--secondary);
    color: white;
    transform: translateX(5px);
}

.service-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-item span:last-child {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Emergency Card */
.emergency-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
}

.emergency-card h3 {
    color: var(--secondary);
}

.emergency-card p {
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    opacity: 0.9;
}

.emergency-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--gradient-secondary);
    color: var(--primary-dark);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.emergency-btn:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.emergency-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Social Section */
.social-section {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.social-section h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all var(--transition-base);
}

.social-link svg {
    width: 1.5rem;
    height: 1.5rem;
}

.social-link.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #bc1888;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .professional-contact {
        padding: 3rem 0;
    }

    .contact-header .section-title {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-method {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .contact-icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .services-card,
    .emergency-card {
        padding: 1.5rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-header .section-title {
        font-size: 1.8rem;
    }

    .contact-method {
        padding: 1rem;
    }

    .contact-details h3 {
        font-size: 1.1rem;
    }

    .contact-link {
        font-size: 1rem;
    }

    .emergency-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 
═══════════════════════════════════════════════════════════
   📞 CLEAN PROFESSIONAL CONTACT SECTION
   ═══════════════════════════════════════════════════════════ */

.contact-section {
    background: var(--bg);
    padding: 4rem 0;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Info */
.contact-info {
    padding: 2rem 0;
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-header .section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
}

.contact-header .section-title::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Contact Details */
.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

.contact-item:hover {
    background: var(--bg-alt);
    margin: 0 -1rem;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    border-bottom: 1px solid transparent;
}

.contact-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    min-width: 120px;
}

.contact-value {
    text-align: left;
    flex: 1;
}

.contact-value a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
    display: block;
    margin-bottom: 0.2rem;
}

.contact-value a:hover {
    color: var(--secondary);
}

.contact-value span {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

/* Contact CTA Buttons */
.contact-cta {
    display: flex;
    gap: 1rem;
}

.btn-contact-primary,
.btn-contact-secondary {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
    text-align: center;
    flex: 1;
}

.btn-contact-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-contact-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

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

.btn-contact-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Contact Services */
.contact-services {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: fit-content;
}

.services-overview {
    margin-bottom: 2rem;
}

.services-overview h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.services-list {
    display: grid;
    gap: 1.5rem;
}

.service-category {
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border-right: 3px solid var(--secondary);
    transition: all var(--transition-base);
}

.service-category:hover {
    background: var(--bg);
    transform: translateX(-5px);
    box-shadow: var(--shadow-sm);
}

.service-category h4 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.service-category p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Emergency Notice */
.emergency-notice {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.emergency-notice::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.emergency-notice h4 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 2;
}

.emergency-notice p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.emergency-contact {
    display: inline-block;
    background: var(--gradient-secondary);
    color: var(--primary-dark);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
}

.emergency-contact:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-header .section-title {
        font-size: 2rem;
        text-align: center;
    }

    .contact-header .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-value {
        text-align: right;
    }

    .contact-cta {
        flex-direction: column;
    }

    .services-list {
        gap: 1rem;
    }

    .service-category {
        padding: 0.8rem;
    }

    .emergency-notice {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-header .section-title {
        font-size: 1.8rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .btn-contact-primary,
    .btn-contact-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-services {
        padding: 1.5rem;
    }
}

/* ===== 
Legal Library Design ===== */
.legal-library {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.library-shelves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80%;
}

.shelf {
    position: relative;
    width: 100%;
    height: 25%;
    margin-bottom: 10px;
    background: linear-gradient(to bottom, #8b4513 0%, #654321 100%);
    border-radius: 5px;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-end;
    padding: 5px 10px;
    gap: 3px;
}

.shelf::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #654321, #8b4513, #654321);
    border-radius: 0 0 3px 3px;
}

.book {
    width: 25px;
    height: 70px;
    border-radius: 2px 2px 0 0;
    position: relative;
    box-shadow:
        2px 0 5px rgba(0, 0, 0, 0.3),
        inset 1px 0 0 rgba(255, 255, 255, 0.2);
    animation: bookFloat 6s ease-in-out infinite;
}

.book::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 2px;
    right: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.book::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 2px;
    right: 2px;
    height: 1px;
    background: rgba(0, 0, 0, 0.3);
}

.book-red {
    background: linear-gradient(to right, #c0392b, #e74c3c, #c0392b);
    animation-delay: 0s;
}

.book-blue {
    background: linear-gradient(to right, #2980b9, #3498db, #2980b9);
    animation-delay: 1s;
}

.book-green {
    background: linear-gradient(to right, #27ae60, #2ecc71, #27ae60);
    animation-delay: 2s;
}

.book-gold {
    background: linear-gradient(to right, #d4af37, #f1c40f, #d4af37);
    animation-delay: 3s;
}

.book-navy {
    background: linear-gradient(to right, #1a365d, #2c5282, #1a365d);
    animation-delay: 4s;
}

.book-brown {
    background: linear-gradient(to right, #8b4513, #a0522d, #8b4513);
    animation-delay: 5s;
}

@keyframes bookFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}

.library-lighting {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.light-beam {
    position: absolute;
    width: 100px;
    height: 200px;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(255, 215, 0, 0.1) 30%,
            rgba(255, 215, 0, 0.2) 50%,
            rgba(255, 215, 0, 0.1) 70%,
            transparent 100%);
    border-radius: 50%;
    animation: lightMove 8s ease-in-out infinite;
}

.light-1 {
    top: -50px;
    left: 20%;
    animation-delay: 0s;
}

.light-2 {
    top: -30px;
    left: 50%;
    animation-delay: 2s;
}

.light-3 {
    top: -40px;
    right: 20%;
    animation-delay: 4s;
}

@keyframes lightMove {

    0%,
    100% {
        opacity: 0.3;
        transform: rotate(0deg) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: rotate(5deg) scale(1.1);
    }
}

.justice-scale {
    position: absolute;
    bottom: 20px;
    right: 30px;
    width: 60px;
    height: 60px;
}

.scale-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 40px;
    background: linear-gradient(to bottom, #d4af37, #b8860b);
    border-radius: 4px;
}

.scale-arm {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #d4af37, #b8860b, #d4af37);
    border-radius: 2px;
    animation: scaleBalance 4s ease-in-out infinite;
}

.scale-left,
.scale-right {
    position: absolute;
    bottom: 30px;
    width: 12px;
    height: 8px;
    background: linear-gradient(to bottom, #d4af37, #b8860b);
    border-radius: 6px 6px 2px 2px;
}

.scale-left {
    left: 5px;
}

.scale-right {
    right: 5px;
}

@keyframes scaleBalance {

    0%,
    100% {
        transform: translateX(-50%) rotate(0deg);
    }

    25% {
        transform: translateX(-50%) rotate(-2deg);
    }

    75% {
        transform: translateX(-50%) rotate(2deg);
    }
}

/* Responsive Design for Legal Library */
@media (max-width: 768px) {
    .legal-library {
        height: 300px;
    }

    .book {
        width: 20px;
        height: 50px;
    }

    .justice-scale {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 20px;
    }

    .scale-arm {
        width: 35px;
        bottom: 25px;
    }

    .scale-base {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .legal-library {
        height: 250px;
    }

    .book {
        width: 15px;
        height: 40px;
    }

    .shelf {
        gap: 2px;
        padding: 3px 8px;
    }
}

/* Enh
anced Visual Effects for Legal Library */
.legal-library::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(26, 54, 93, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.legal-library::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    pointer-events: none;
}

/* Floating Particles Effect */
.legal-library {
    overflow: visible;
}

.shelf-1::after,
.shelf-2::after,
.shelf-3::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    animation: floatParticle 10s linear infinite;
}

.shelf-1::after {
    top: -10px;
    left: 20%;
    animation-delay: 0s;
}

.shelf-2::after {
    top: -10px;
    left: 60%;
    animation-delay: 3s;
}

.shelf-3::after {
    top: -10px;
    left: 40%;
    animation-delay: 6s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

/* Enhanced Book Hover Effects */
.book:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        2px 0 10px rgba(0, 0, 0, 0.4),
        inset 1px 0 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* Glowing Effect for Justice Scale */
.justice-scale {
    animation: scaleGlow 6s ease-in-out infinite;
}

@keyframes scaleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
    }
}

/* Professional Gradient Overlay */
.hero-visual .legal-library {
    position: relative;
}

.hero-visual .legal-library::before {
    background:
        linear-gradient(135deg, rgba(26, 54, 93, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(26, 54, 93, 0.08) 0%, transparent 60%);
}

/* ===== 
Professional Hero Background ===== */
.professional-hero-bg {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: 320px;
    margin: 0 auto;
    background: linear-gradient(135deg,
            #1a365d 0%,
            #2c5282 25%,
            #1a365d 50%,
            #2a4a6b 75%,
            #1a365d 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(26, 54, 93, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.legal-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
    transform: translateX(70px);
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    min-width: 100px;
    flex: 1;
}

.icon-item:nth-child(1) {
    animation-delay: 0.2s;
}

.icon-item:nth-child(2) {
    animation-delay: 0.4s;
}

.icon-item:nth-child(3) {
    animation-delay: 0.6s;
}

.legal-icon {
    width: 36px;
    height: 36px;
    color: #d4af37;
    margin-bottom: 8px;
    stroke-width: 1.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.legal-icon:hover {
    transform: scale(1.1);
    color: #f1c40f;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.4));
}

.icon-item span {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.professional-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    animation: slideInUp 1s ease forwards 0.8s;
    opacity: 0;
    max-width: 220px;
    margin: 0 auto;
}

.badge-icon {
    margin-left: 10px;
}

.badge-icon svg {
    width: 24px;
    height: 24px;
    color: #d4af37;
    fill: #d4af37;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.badge-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Professional Glow Effect */
.professional-hero-bg::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            #d4af37,
            transparent,
            #d4af37,
            transparent,
            #d4af37);
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 4s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .professional-hero-bg {
        width: 95%;
        height: 280px;
        max-width: 450px;
    }

    .legal-icons {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin: 20px auto;
        padding: 20px 15px;
        max-width: 350px;
    }

    .icon-item {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 25px;
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .legal-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 0;
    }

    .professional-badge {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }

    .badge-icon {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .professional-hero-bg {
        width: 98%;
        height: 240px;
        max-width: 380px;
        border-radius: 15px;
    }

    .legal-icons {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 18px;
        padding: 15px 10px;
        margin: 15px auto;
        max-width: 320px;
    }

    .icon-item span {
        font-size: 12px;
    }

    .legal-icon {
        width: 24px;
        height: 24px;
    }

    .professional-badge {
        padding: 12px 16px;
    }

    .badge-title {
        font-size: 16px;
    }

    .badge-subtitle {
        font-size: 12px;
    }
}

/* ===== Partners Strip ===== */
.partners-strip {
    position: absolute;
    top: 35% !important;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 80%;
    z-index: 20 !important;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.partners-strip::-webkit-scrollbar {
    display: none;
}

.partner-logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.partner-logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.partner-logo svg {
    width: 24px;
    height: 24px;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.partner-logo:hover svg {
    color: var(--secondary-dark);
}

.partner-fallback {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(212, 175, 55, 0.5);
}

/* Responsive Design for Partners Strip */
@media (max-width: 768px) {
    .partners-strip {
        gap: 6px;
        padding: 5px 10px;
        top: 18%;
        max-width: 85%;
    }

    .partner-logo {
        width: 28px;
        height: 28px;
        padding: 3px;
    }
}

@media (max-width: 480px) {
    .partners-strip {
        gap: 5px;
        padding: 4px 8px;
        top: 16%;
        max-width: 90%;
    }

    .partner-logo {
        width: 24px;
        height: 24px;
        padding: 2px;
    }
}

/* ===== UAE Flag - Simple and Clean ===== */
.uae-flag-gif-container {
    position: absolute;
    top: 75% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10 !important;
}

.uae-flag-gif {
    width: 90px;
    height: auto;
    max-height: 65px;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    display: block;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .uae-flag-gif {
        width: 75px;
        max-height: 55px;
    }
}

@media (max-width: 480px) {
    .uae-flag-gif {
        width: 65px;
        max-height: 45px;
    }
}

/* Old flag styles removed - using single clean style above */

.uae-flag {
    width: 120px;
    height: 80px;
    position: relative;
    display: flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    overflow: hidden;
    animation: flagWave 3s ease-in-out infinite;
    transform-origin: left center;
}

.flag-red {
    width: 30px;
    height: 100%;
    background: #FF0000;
    position: relative;
}

.flag-stripes {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flag-green {
    height: 33.33%;
    background: #00FF00;
}

.flag-white {
    height: 33.33%;
    background: #FFFFFF;
}

.flag-black {
    height: 33.34%;
    background: #000000;
}

/* Flag Waving Animation */
@keyframes flagWave {

    0%,
    100% {
        transform: perspective(400px) rotateY(0deg) rotateX(0deg);
    }

    25% {
        transform: perspective(400px) rotateY(-8deg) rotateX(2deg);
    }

    50% {
        transform: perspective(400px) rotateY(0deg) rotateX(-1deg);
    }

    75% {
        transform: perspective(400px) rotateY(8deg) rotateX(2deg);
    }
}

/* Flag Fabric Effect */
.uae-flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            transparent 25%,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 50%,
            transparent 75%,
            rgba(255, 255, 255, 0.1) 75%);
    background-size: 8px 8px;
    animation: fabricShine 4s linear infinite;
    pointer-events: none;
}

@keyframes fabricShine {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 16px 16px;
    }
}

/* Wind Effect */
.uae-flag::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 10px;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: windEffect 2s ease-in-out infinite;
}

@keyframes windEffect {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleX(1);
    }

    50% {
        opacity: 0.7;
        transform: scaleX(1.5);
    }
}

/* Flag Shadow */
.uae-flag-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 10px;
    background: radial-gradient(ellipse,
            rgba(0, 0, 0, 0.3) 0%,
            transparent 70%);
    animation: shadowMove 3s ease-in-out infinite;
}

@keyframes shadowMove {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateX(-45%) scale(1.1);
        opacity: 0.5;
    }
}

/* Responsive Flag */
@media (max-width: 768px) {
    .uae-flag {
        width: 90px;
        height: 60px;
    }

    .flag-red {
        width: 22px;
    }

    .flag-pole {
        height: 90px;
    }
}

@media (max-width: 480px) {
    .uae-flag {
        width: 70px;
        height: 45px;
    }

    .flag-red {
        width: 18px;
    }

    .flag-pole {
        height: 70px;
    }
}

/* Flag Entrance Animation */
.uae-flag-container {
    animation: flagEntrance 2s ease-out forwards;
    opacity: 0;
}

@keyframes flagEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotateY(-90deg);
    }

    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) rotateY(10deg);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    }
}

/* Enha
nced Flag Realism */
.flag-red,
.flag-green,
.flag-white,
.flag-black {
    position: relative;
    overflow: hidden;
}

/* Fabric Texture for Each Color */
.flag-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.1) 100%);
    animation: redWave 3s ease-in-out infinite;
}

.flag-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.1) 100%);
    animation: greenWave 3s ease-in-out infinite 0.5s;
}

.flag-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(200, 200, 200, 0.3) 0%,
            transparent 50%,
            rgba(150, 150, 150, 0.2) 100%);
    animation: whiteWave 3s ease-in-out infinite 1s;
}

.flag-black::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%,
            rgba(100, 100, 100, 0.1) 100%);
    animation: blackWave 3s ease-in-out infinite 1.5s;
}

@keyframes redWave {

    0%,
    100% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(2px);
    }
}

@keyframes greenWave {

    0%,
    100% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(-1px);
    }
}

@keyframes whiteWave {

    0%,
    100% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(1px);
    }
}

@keyframes blackWave {

    0%,
    100% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(-2px);
    }
}

/* Flag Glow Effect */
.uae-flag-container:hover .uae-flag {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 175, 55, 0.4);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Patriotic Sparkles */
.uae-flag-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, rgba(255, 215, 0, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.3) 1px, transparent 1px);
    animation: sparkle 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* ===
== UAE Flag - Centered and Waving ===== */
.uae-flag-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: flagFloat 4s ease-in-out infinite;
}

.flag-pole {
    width: 4px;
    height: 150px;
    background: linear-gradient(to bottom,
            #e8e8e8 0%,
            #c0c0c0 50%,
            #a0a0a0 100%);
    border-radius: 2px;
    box-shadow:
        2px 0 6px rgba(0, 0, 0, 0.3),
        inset 1px 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    margin-left: 0;
}

.flag-pole::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.uae-flag {
    width: 140px;
    height: 90px;
    position: absolute;
    left: 4px;
    top: 15px;
    display: flex;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
    transform-origin: left center;
    animation: flagWave 2.5s ease-in-out infinite;
}

.flag-red {
    width: 35px;
    height: 100%;
    background: linear-gradient(135deg, #FF0000 0%, #E60000 100%);
    position: relative;
}

.flag-stripes {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flag-green {
    height: 33.33%;
    background: linear-gradient(135deg, #00A651 0%, #008F47 100%);
}

.flag-white {
    height: 33.33%;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
}

.flag-black {
    height: 33.34%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Enhanced Waving Animation */
@keyframes flagWave {
    0% {
        transform: perspective(600px) rotateY(0deg) rotateX(0deg);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    25% {
        transform: perspective(600px) rotateY(-15deg) rotateX(3deg);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    }

    50% {
        transform: perspective(600px) rotateY(0deg) rotateX(-2deg);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    75% {
        transform: perspective(600px) rotateY(15deg) rotateX(3deg);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    }

    100% {
        transform: perspective(600px) rotateY(0deg) rotateX(0deg);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
}

/* Flag Floating Animation */
@keyframes flagFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }
}

/* Realistic Fabric Waves */
.flag-red::before,
.flag-green::before,
.flag-white::before,
.flag-black::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 30%,
            rgba(0, 0, 0, 0.1) 60%,
            transparent 100%);
    animation: fabricWave 2s ease-in-out infinite;
}

.flag-green::before {
    animation-delay: 0.2s;
}

.flag-white::before {
    animation-delay: 0.4s;
}

.flag-black::before {
    animation-delay: 0.6s;
}

@keyframes fabricWave {

    0%,
    100% {
        transform: translateX(0px) scaleX(1);
        opacity: 0.6;
    }

    50% {
        transform: translateX(5px) scaleX(1.02);
        opacity: 0.8;
    }
}

/* Wind Effect */
.uae-flag::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    width: 15px;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: windEffect 2.5s ease-in-out infinite;
    border-radius: 0 3px 3px 0;
}

@keyframes windEffect {

    0%,
    100% {
        opacity: 0.2;
        transform: scaleX(0.8);
    }

    50% {
        opacity: 0.6;
        transform: scaleX(1.2);
    }
}

/* Flag Glow and Hover Effects */
.uae-flag-container:hover .uae-flag {
    animation-duration: 1.5s;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(212, 175, 55, 0.4);
}

.uae-flag-container:hover .flag-pole {
    box-shadow:
        3px 0 8px rgba(0, 0, 0, 0.4),
        inset 1px 0 1px rgba(255, 255, 255, 0.6);
}

/* Entrance Animation */
.uae-flag-container {
    animation: flagEntrance 3s ease-out forwards, flagFloat 4s ease-in-out infinite 3s;
    opacity: 0;
}

@keyframes flagEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotateY(-180deg);
    }

    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) rotateY(20deg);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .uae-flag {
        width: 110px;
        height: 70px;
        top: 12px;
    }

    .flag-red {
        width: 28px;
    }

    .flag-pole {
        height: 120px;
        width: 3px;
    }
}

@media (max-width: 480px) {
    .uae-flag {
        width: 90px;
        height: 55px;
        top: 10px;
    }

    .flag-red {
        width: 22px;
    }

    .flag-pole {
        height: 100px;
        width: 3px;
    }
}

/* ==
=== Advanced Wind and Air Effects ===== */

/* Air Particles Around Flag */
.uae-flag-container::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 1px, transparent 2px),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.12) 1px, transparent 2px),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.06) 1px, transparent 2px),
        radial-gradient(circle at 90% 60%, rgba(255, 255, 255, 0.1) 1px, transparent 2px);
    animation: airParticles 6s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes airParticles {
    0% {
        transform: translateX(0px) translateY(0px);
        opacity: 0.3;
    }

    50% {
        transform: translateX(20px) translateY(-10px);
        opacity: 0.7;
    }

    100% {
        transform: translateX(40px) translateY(-5px);
        opacity: 0.2;
    }
}

/* Dynamic Flag Ripple Effect */
.uae-flag {
    position: relative;
}

.uae-flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.15) 45%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0.15) 55%,
            transparent 60%);
    background-size: 30px 30px;
    animation: flagRipple 3s linear infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes flagRipple {
    0% {
        background-position: -30px -30px;
        opacity: 0.6;
    }

    100% {
        background-position: 170px 120px;
        opacity: 0.3;
    }
}

/* Enhanced Pole Shadow */
.flag-pole::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 15px;
    background: radial-gradient(ellipse,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            transparent 100%);
    animation: poleShadow 4s ease-in-out infinite;
}

@keyframes poleShadow {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateX(-45%) scale(1.2);
        opacity: 0.6;
    }
}

/* Flag Depth and Layering */
.flag-red,
.flag-green,
.flag-white,
.flag-black {
    position: relative;
    z-index: 1;
}

.flag-red::after {
    content: '';
    position: absolute;
    top: 0;
    right: -2px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.3));
    animation: redShadow 2.5s ease-in-out infinite;
}

@keyframes redShadow {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.6;
        transform: scaleY(1.05);
    }
}

/* Wind Sound Visual Effect */
.uae-flag-container:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.6),
            rgba(255, 255, 255, 0.3),
            transparent);
    border-radius: 2px;
    animation: windLines 1s ease-in-out infinite;
    z-index: 5;
}

@keyframes windLines {
    0% {
        transform: translateY(-50%) translateX(0px);
        opacity: 0;
    }

    50% {
        transform: translateY(-50%) translateX(20px);
        opacity: 1;
    }

    100% {
        transform: translateY(-50%) translateX(40px);
        opacity: 0;
    }
}

/* Patriotic Glow */
.uae-flag-container:hover {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

/* Flag Fabric Texture Enhancement */
.flag-stripes {
    position: relative;
}

.flag-stripes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.05) 2px,
            rgba(255, 255, 255, 0.05) 3px);
    animation: fabricTexture 4s linear infinite;
}

@keyframes fabricTexture {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(6px);
    }
}

/* =
==== UAE Flag GIF Styling ===== */
.uae-flag-gif-container {
    position: absolute;
    top: 65% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: flagGifFloat 4s ease-in-out infinite;
}

.uae-flag-gif {
    width: 120px;
    height: auto;
    max-height: 90px;
    border-radius: 6px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
    display: block;
    object-fit: contain;
}

/* Floating Animation */
@keyframes flagGifFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }
}

/* Hover Effects */
.uae-flag-gif-container:hover .uae-flag-gif {
    transform: scale(1.05);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(212, 175, 55, 0.5);
    filter: brightness(1.2) contrast(1.2);
}

/* Entrance Animation */
.uae-flag-gif-container {
    animation: flagGifEntrance 2s ease-out forwards, flagGifFloat 4s ease-in-out infinite 2s;
    opacity: 0;
}

@keyframes flagGifEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotateY(-180deg);
    }

    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) rotateY(15deg);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    }
}

/* Professional Glow Effect */
.uae-flag-gif-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg,
            rgba(212, 175, 55, 0.2),
            transparent,
            rgba(212, 175, 55, 0.2),
            transparent);
    border-radius: 12px;
    z-index: -1;
    animation: gifGlow 3s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes gifGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* Patriotic Sparkles */
.uae-flag-gif-container::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.6) 1px, transparent 2px),
        radial-gradient(circle at 75% 25%, rgba(255, 215, 0, 0.4) 1px, transparent 2px),
        radial-gradient(circle at 25% 75%, rgba(255, 215, 0, 0.5) 1px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.3) 1px, transparent 2px);
    animation: sparkleGif 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes sparkleGif {

    0%,
    100% {
        opacity: 0;
        transform: rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: rotate(180deg);
    }
}

/* Responsive Design for GIF */
@media (max-width: 768px) {
    .uae-flag-gif {
        width: 100px;
        max-height: 75px;
    }
}

@media (max-width: 480px) {
    .uae-flag-gif {
        width: 80px;
        max-height: 60px;
    }

    .uae-flag-gif-container::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }
}

/* Loading State - Removed background that might interfere */

/* High Quality Display */
.uae-flag-gif {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* 
Enhanced Image Display */
.uae-flag-gif {
    /* Force image to load and display */
    opacity: 1 !important;
    visibility: visible !important;
    /* Ensure proper sizing */
    min-width: 120px;
    min-height: 60px;
    /* Better image rendering */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    /* Fallback background removed to show actual image */
    background: none;
}

/* Container improvements */
.uae-flag-gif-container {
    /* Ensure container is visible */
    opacity: 1;
    visibility: visible;
    /* Better positioning */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    /* Ensure it's clickable and visible */
    pointer-events: auto;
}

/* Debug: Add temporary border to see container */
.uae-flag-gif-container {
    /* Remove this line after confirming it works */
    /* border: 2px solid red; */
}

/* Clean 
UAE Flag GIF - No Golden Effects */
.uae-flag-gif-container {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uae-flag-gif {
    width: 120px;
    height: auto;
    max-height: 90px;
    border-radius: 6px;
    /* Simple shadow without golden color */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
    object-fit: contain;
    /* Remove any background or border effects */
    background: none;
    border: none;
    outline: none;
}

/* Remove all golden glow effects */
.uae-flag-gif-container::before,
.uae-flag-gif-container::after {
    display: none !important;
}

/* Remove hover effects that might add golden glow */
.uae-flag-gif-container:hover .uae-flag-gif {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    /* No golden effects on hover */
}

/* Ensure no floating animation with golden effects */
.uae-flag-gif-container {
    animation: none;
}

/* Override any existing golden border or glow */
.uae-flag-gif-container,
.uae-flag-gif {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    filter: none !important;
}

/* Remov
e background box from flag image */
.uae-flag-gif-container {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
}

.uae-flag-gif {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
}

/* Remove all visual effects that create boxes */
.uae-flag-gif-container::before,
.uae-flag-gif-container::after {
    display: none !important;
}

.uae-flag-gif::before,
.uae-flag-gif::after {
    display: none !important;
}

/* Clean image display */
.uae-flag-gif-container {
    position: absolute;
    top: 65% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
}

.uae-flag-gif {
    width: 120px;
    height: auto;
    max-height: 90px;
    display: block;
    object-fit: contain;
}

/*
 Override any existing styles that might create backgrounds */
.professional-hero-bg .uae-flag-gif-container,
.hero-visual .uae-flag-gif-container,
.hero-content-visual .uae-flag-gif-container {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
}

.professional-hero-bg .uae-flag-gif,
.hero-visual .uae-flag-gif,
.hero-content-visual .uae-flag-gif {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Remove any glow or shadow effects */
.uae-flag-gif-container:hover .uae-flag-gif {
    box-shadow: none !important;
    filter: brightness(1.1) contrast(1.1) !important;
    background: none !important;
}

/* Ensure clean transparent background */
.uae-flag-gif {
    background-color: transparent !important;
    background-image: none !important;
}

/* R
ounded corners and popup animation for flag */
.uae-flag-gif {
    width: 120px;
    height: auto;
    max-height: 90px;
    display: block;
    object-fit: contain;
    /* Add rounded corners */
    border-radius: 15px !important;
    /* Popup entrance animation */
    animation: flagPopup 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    /* Start invisible */
    opacity: 0;
    transform: scale(0);
}

/* Popup animation keyframes */
@keyframes flagPopup {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2) rotate(-90deg);
    }

    80% {
        opacity: 1;
        transform: scale(0.95) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Container for popup effect */
.uae-flag-gif-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    /* Add slight delay for dramatic effect */
    animation-delay: 0.5s;
}

/* Hover effect with rounded corners */
.uae-flag-gif-container:hover .uae-flag-gif {
    transform: scale(1.05);
    border-radius: 20px !important;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Floating animation after popup */
.uae-flag-gif {
    animation: flagPopup 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
        flagFloat 3s ease-in-out infinite 2s;
}

@keyframes flagFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Enha
nced popup effects */
.uae-flag-gif-container {
    /* Add sparkle effect during popup */
    position: relative;
}

.uae-flag-gif-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 80% 30%, rgba(255, 215, 0, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 30% 80%, rgba(255, 215, 0, 0.7) 1.5px, transparent 1.5px),
        radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.5) 1px, transparent 1px);
    animation: sparklePopup 2s ease-out forwards;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

@keyframes sparklePopup {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    30% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }

    70% {
        opacity: 0.8;
        transform: scale(1.2) rotate(360deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) rotate(540deg);
    }
}

/* Sound wave effect during popup */
.uae-flag-gif-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    animation: soundWave 1.5s ease-out forwards;
    opacity: 0;
    pointer-events: none;
}

@keyframes soundWave {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(2);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3);
    }
}

/* More dramatic rounded corners */
.uae-flag-gif {
    border-radius: 20px !important;
    /* Add subtle glow after popup */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Extra bounce effect */
@keyframes flagPopup {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-360deg);
    }

    60% {
        opacity: 1;
        transform: scale(1.3) rotate(-45deg);
    }

    80% {
        opacity: 1;
        transform: scale(0.9) rotate(15deg);
    }

    90% {
        opacity: 1;
        transform: scale(1.05) rotate(-5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* 
Reset flag to original simple state */
.uae-flag-gif-container {
    position: absolute !important;
    top: 65% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 15 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    animation: none !important;
}

.uae-flag-gif {
    width: 120px !important;
    height: auto !important;
    max-height: 90px !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    animation: none !important;
}

/* Remove all pseudo elements */
.uae-flag-gif-container::before,
.uae-flag-gif-container::after,
.uae-flag-gif::before,
.uae-flag-gif::after {
    display: none !important;
}

/* Remove hover effects */
.uae-flag-gif-container:hover .uae-flag-gif {
    transform: scale(1) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ===== R
ESTORE Beautiful UAE Flag Effects ===== */
.uae-flag-gif-container {
    position: absolute !important;
    top: 65% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 15 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.uae-flag-gif {
    width: 120px !important;
    height: auto !important;
    max-height: 90px !important;
    border-radius: 6px !important;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(212, 175, 55, 0.3) !important;
    transition: all 0.3s ease !important;
    filter: brightness(1.1) contrast(1.1) !important;
    display: block !important;
    object-fit: contain !important;
}

/* Floating Animation - Restored */
@keyframes flagGifFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }
}

/* Hover Effects - Restored */
.uae-flag-gif-container:hover .uae-flag-gif {
    transform: scale(1.05) !important;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(212, 175, 55, 0.5) !important;
    filter: brightness(1.2) contrast(1.2) !important;
}

/* Professional Glow Effect - Restored */
.uae-flag-gif-container::before {
    content: '' !important;
    position: absolute !important;
    top: -10px !important;
    left: -10px !important;
    right: -10px !important;
    bottom: -10px !important;
    background: linear-gradient(45deg,
            rgba(212, 175, 55, 0.2),
            transparent,
            rgba(212, 175, 55, 0.2),
            transparent) !important;
    border-radius: 12px !important;
    z-index: -1 !important;
    animation: gifGlow 3s ease-in-out infinite !important;
    opacity: 0.5 !important;
}

@keyframes gifGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* Entrance Animation - Fixed */
.uae-flag-gif-container {
    opacity: 1 !important;
    animation: flagGifFloat 4s ease-in-out infinite !important;
}

@keyframes flagGifEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotateY(-180deg);
    }

    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) rotateY(15deg);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    }
}

/*
 Force visibility - Emergency fix */
.uae-flag-gif-container {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

.uae-flag-gif {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Enha
nced Flag Animation - Same as Icons */
.uae-flag-gif-container {
    opacity: 0 !important;
    animation: fadeInUp 1s ease forwards, flagGifFloat 4s ease-in-out infinite 1.5s !important;
    animation-delay: 0.5s !important;
}

/* Subtle floating after fade in */
@keyframes flagGifFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-5px);
    }
}

/* Ensure fadeInUp animation exists */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(30px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

/* EME
RGENCY FIX - Make flag visible immediately */
.uae-flag-gif-container {
    position: relative !important;
    z-index: 15 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex: 1 !important;
}

.uae-flag-gif {
    width: 120px !important;
    height: auto !important;
    max-height: 90px !important;
    border-radius: 6px !important;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(212, 175, 55, 0.3) !important;
    transition: all 0.3s ease !important;
    filter: brightness(1.1) contrast(1.1) !important;
    display: block !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Simple fade in animation */
.uae-flag-gif-container {
    animation: simpleFadeIn 1s ease forwards !important;
    animation-delay: 0.5s !important;
}

@keyframes simpleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* F
ORCE DISPLAY - Override everything */
.hero-content-visual .uae-flag-gif-container,
.professional-hero-bg .uae-flag-gif-container,
.hero-visual .uae-flag-gif-container {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999 !important;
}

.hero-content-visual .uae-flag-gif,
.professional-hero-bg .uae-flag-gif,
.hero-visual .uae-flag-gif {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: 120px !important;
    height: auto !important;
}

/ * CORRECT LAYOUT - Fix positioning */ .hero-content-visual {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    height: 80% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.legal-icons {
    display: flex !important;
    justify-content: space-around !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

.professional-badge {
    flex-shrink: 0 !important;
}

/* Perfect spacing between elements */
.hero-content-visual>* {
    margin: 10px 0 !important;
}

.hero-content-visual>*:first-child {
    margin-top: 0 !important;
}

.hero-content-visual>*:last-child {
    margin-bottom: 0 !important;
}/* 
Weglot Language Switcher Styling */
#weglot_here {
    display: flex;
    align-items: center;
}

#weglot_here .wg-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#weglot_here .wg-dropdown:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

#weglot_here .wg-dropdown .wg-li {
    color: #333;
    padding: 8px 12px;
    transition: background-color 0.2s ease;
}

#weglot_here .wg-dropdown .wg-li:hover {
    background-color: #f5f5f5;
}

#weglot_here .wg-flag {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
}

#weglot_here .wg-dropdown-wrapper {
    position: relative;
}

#weglot_here .wg-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

/* RTL Support for Weglot */
[dir="rtl"] #weglot_here .wg-flag {
    margin-right: 0;
    margin-left: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #weglot_here .wg-dropdown {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    #weglot_here .wg-flag {
        width: 16px;
        height: 16px;
    }
}
/* ===
=======================================================================
   Multilingual System Styles
   ========================================================================== */

/* Language Switcher Enhanced Styles */
.language-switcher {
    position: relative;
}

.language-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    backdrop-filter: blur(10px);
}

.language-dropdown:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #2c5aa0;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.15);
}

.language-dropdown:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* RTL Layout Support */
.rtl-layout {
    direction: rtl;
    text-align: right;
}

.rtl-layout .header-layout {
    flex-direction: row-reverse;
}

.rtl-layout .language-switcher {
    margin-left: 0;
    margin-right: auto;
}

.rtl-layout .header-left {
    order: 3;
}

.rtl-layout .brand {
    order: 2;
}

.rtl-layout .header-right {
    order: 1;
}

.rtl-layout .hero-layout {
    flex-direction: row-reverse;
}

.rtl-layout .hero-text {
    text-align: right;
}

.rtl-layout .hero-actions {
    justify-content: flex-end;
}

.rtl-layout .trust {
    text-align: right;
}

.rtl-layout .trust li::before {
    right: auto;
    left: -20px;
}

.rtl-layout .contact-wrapper {
    flex-direction: row-reverse;
}

.rtl-layout .legal-services-grid {
    direction: rtl;
}

.rtl-layout .service-features {
    text-align: right;
}

.rtl-layout .steps {
    direction: rtl;
}

.rtl-layout .testimonials {
    direction: rtl;
}

.rtl-layout .stats-grid {
    direction: rtl;
}

.rtl-layout .footer .flex {
    flex-direction: row-reverse;
}

/* Font Loading for Different Languages */
@font-face {
    font-family: 'Cairo';
    src: url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011;
}

@font-face {
    font-family: 'Noto Sans SC';
    src: url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
    font-display: swap;
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: 'Noto Sans Urdu';
    src: url('https://fonts.googleapis.com/css2?family=Noto+Sans+Urdu:wght@400;500;600;700&display=swap');
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011;
}

@font-face {
    font-family: 'Noto Sans Devanagari';
    src: url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');
    font-display: swap;
    unicode-range: U+0900-097F;
}

/* Language-specific adjustments */
[lang="ar"], [lang="ur"] {
    font-family: 'Cairo', 'Noto Sans Urdu', sans-serif;
}

[lang="zh"] {
    font-family: 'Noto Sans SC', sans-serif;
}

[lang="hi"] {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

[lang="en"], [lang="fil"], [lang="ru"], [lang="fr"], [lang="sv"], [lang="de"] {
    font-family: 'Inter', 'Montserrat', sans-serif;
}

/* Responsive RTL adjustments */
@media (max-width: 768px) {
    .rtl-layout .header-layout {
        flex-direction: column;
    }
    
    .rtl-layout .hero-layout {
        flex-direction: column;
    }
    
    .rtl-layout .contact-wrapper {
        flex-direction: column;
    }
}

/* Language transition effects */
.language-transition {
    transition: all 0.3s ease;
}

/* Loading state for language switching */
.language-loading {
    opacity: 0.7;
    pointer-events: none;
}

.language-loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accessibility improvements */
.language-dropdown:focus-visible {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .language-dropdown {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }
    
    .language-dropdown:hover {
        background: #f0f0f0;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .language-dropdown,
    .language-transition,
    .rtl-layout * {
        transition: none;
    }
}/* Log
o icon styling */
.service-icon .icon-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.legal-service-card:hover .icon-logo {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

/* Ensure logo maintains aspect ratio */
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}