/* CSS Variables for Theme Support */
:root {
    --primary-color: #0f1419; /* Deeper night-dark blue */
    --secondary-color: #fbbf24; /* Modern Gold */
    --accent-color: #374151; /* Modern Dark Gray */
    --text-primary: #111827; /* Modern Dark Gray */
    --text-secondary: #6b7280; /* Modern Medium Gray */
    --text-light: #9ca3af; /* Modern Light Gray */
    --text-muted: #d1d5db; /* Enhanced muted text */
    --bg-primary: #ffffff; /* Pure White */
    --bg-secondary: #f9fafb; /* Modern Very Light Gray */
    --bg-tertiary: #fef3c7; /* Modern Light Gold-Gray */
    --bg-elevated: #ffffff; /* Elevated surface */
    --border-color: #f3f4f6; /* Modern Subtle Border */
    --border-light: #e5e7eb; /* Lighter border */
    --black: #000000; /* Pure Black */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(251, 191, 36, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    --primary-gradient: linear-gradient(135deg, #fbbf24 0%, #0f1419 100%); /* Modern Gold to Deeper Night-Dark Blue gradient */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --backdrop-blur: blur(20px);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #0f1419; /* Deeper night-dark blue */
    --secondary-color: #fbbf24; /* Yellow */
    --accent-color: #1a1a1a; /* Very dark gray */
    --text-primary: #ffffff; /* Pure white for maximum readability (WCAG AAA compliant) */
    --text-secondary: #e5e7eb; /* Light gray for secondary text (high contrast) */
    --text-light: #d1d5db; /* Enhanced light gray for better visibility */
    --text-muted: #9ca3af; /* Muted gray for less important text */
    --bg-primary: #000000; /* Pure black background */
    --bg-secondary: #1a1a1a; /* Very dark gray for cards */
    --bg-tertiary: #000000; /* Pure black for tertiary elements */
    --bg-accent: #1a1a1a; /* Very dark gray accent background */
    --bg-elevated: #1a1a1a; /* Very dark gray elevated surface */
    --bg-card: #1a1a1a; /* Very dark gray card background */
    --bg-overlay: rgba(30, 58, 138, 0.95); /* Dark blue overlay */
    --border-color: #1a1a1a; /* Very dark gray borders */
    --border-light: #000000; /* Pure black lighter borders */
    --border-accent: #fbbf24; /* Yellow accent borders */
    --black: #ffffff; /* White for dark mode elements */
    --gray-dark: #000000; /* Pure black */
    --gray: #1a1a1a; /* Very dark gray */
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.9), 0 12px 32px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.9), 0 15px 30px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(251, 191, 36, 0.15), 0 0 80px rgba(251, 191, 36, 0.08);
    --hover-bg: #1a1a1a; /* Very dark gray hover background */
    --focus-ring: rgba(251, 191, 36, 0.6); /* Yellow focus ring */
    --gradient: linear-gradient(135deg, #0f1419, #374151, #0f1419);
    --gradient-primary: linear-gradient(135deg, #0f1419 0%, #374151 50%, #0f1419 100%);
    --gradient-secondary: linear-gradient(135deg, #374151 0%, #0f1419 50%, #374151 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #0f1419 50%, #fbbf24 100%);
    --glass-bg: rgba(255, 255, 255, 0.01);
    --glass-border: rgba(255, 255, 255, 0.03);
    --glass-bg-strong: rgba(255, 255, 255, 0.02);
    --glass-border-strong: rgba(255, 255, 255, 0.05);
    --backdrop-blur: blur(40px);
    --backdrop-blur-strong: blur(60px);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

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

[dir="rtl"] .hero-content {
    text-align: right;
}

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

/* Arabic Text Sizing and Overflow Fixes */
[dir="rtl"] * {
    font-family: 'Inter', 'Arial', 'Helvetica Neue', sans-serif;
    letter-spacing: 0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-weight: 700;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

[dir="rtl"] p,
[dir="rtl"] span,
[dir="rtl"] div {
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

[dir="rtl"] .btn {
    font-weight: 600;
    letter-spacing: 0.025em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

[dir="rtl"] .nav-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

[dir="rtl"] .card h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

[dir="rtl"] .card p {
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure Arabic text doesn't overflow containers */
[dir="rtl"] .container {
    overflow-x: hidden;
}

[dir="rtl"] section {
    overflow-x: hidden;
}

[dir="rtl"] .card {
    overflow-x: hidden;
}

/* Arabic text in form inputs */
[dir="rtl"] input,
[dir="rtl"] textarea {
    text-align: right;
    direction: rtl;
    font-family: inherit;
}

/* Arabic placeholders */
[dir="rtl"] input::placeholder,
[dir="rtl"] textarea::placeholder {
    text-align: right;
    direction: rtl;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(251, 191, 36, 0.02) 50%, var(--bg-primary) 100%);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-size: 16px;
    letter-spacing: 0.01em;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(251, 191, 36, 0.03) 50%, var(--bg-primary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    position: relative;
}

[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(251, 191, 36, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(251, 191, 36, 0.02) 0%, transparent 45%),
        radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.015) 0%, transparent 45%),
        linear-gradient(135deg, rgba(251, 191, 36, 0.015) 0%, rgba(251, 191, 36, 0.008) 50%, rgba(251, 191, 36, 0.015) 100%);
    animation: darkAmbientGlow 30s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 60% 40%, rgba(251, 191, 36, 0.04) 0%, transparent 40%),
        linear-gradient(135deg, rgba(251, 191, 36, 0.02) 0%, rgba(251, 191, 36, 0.01) 50%, rgba(251, 191, 36, 0.02) 100%);
    animation: darkAmbientGlow 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .loading-overlay {
    background: rgba(17, 24, 39, 0.95);
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.loading-bar-container {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    animation: loadingProgress 2s ease-in-out infinite;
}

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

.loading-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--backdrop-blur);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 2px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    animation: lightNavbarSubtle 12s ease-in-out infinite;
}

[data-theme="dark"] .navbar {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 30%, #000000 70%, #1a1a1a 100%) !important;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(251, 191, 36, 0.1);
}

[data-theme="dark"] .navbar::before {
    display: none !important;
}

[data-theme="dark"] .nav-container {
    position: relative;
    z-index: 1;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px;
    position: relative;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

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

/* Ensure proper flex layout for mobile and tablet */
@media (max-width: 1024px) {
    .nav-container {
        justify-content: space-between;
        align-items: center;
    }

    .nav-logo {
        order: 1;
        flex-shrink: 0;
    }

    .nav-menu {
        display: none; /* Hidden on mobile by default, shown when active */
    }

    .nav-controls {
        flex-shrink: 0;
    }

    /* Mobile menu active state - Vertical dropdown completely outside navbar */
    .nav-menu.active {
        display: flex !important;
        position: fixed !important;
        top: 120px !important; /* Position below navbar */
        left: 10px !important; /* Start from left edge */
        right: 10px !important; /* Extend to right edge */
        width: auto !important; /* Full width minus padding */
        max-height: calc(100vh - 140px) !important; /* Leave space for navbar and bottom */
        flex-direction: column !important;
        gap: 0 !important;
        background: var(--bg-primary) !important;
        padding: 1rem 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 1001 !important;
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }

    [data-theme="dark"] .nav-menu.active {
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    [dir="rtl"] .nav-menu.active {
        left: auto;
        right: 0;
    }

    /* Hamburger animation */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Mobile navigation links - Vertical dropdown layout */
    .nav-menu .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu .nav-item:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.2s ease;
        border-radius: 0;
        background: transparent;
        border: none;
        white-space: nowrap;
        min-height: 44px;
        text-align: left;
        justify-content: flex-start;
        font-weight: 500;
        box-sizing: border-box;
        width: 100%;
        position: relative;
        overflow: hidden;
        will-change: transform, background-color;
    }

    .nav-menu .nav-link i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .nav-menu .nav-link:hover i {
        transform: scale(1.1);
    }

    /* Micro-animation on tap */
    .nav-menu .nav-link:active {
        transform: scale(0.98);
        background: rgba(251, 191, 36, 0.1);
    }

    /* Active state indication */
    .nav-menu .nav-link.active {
        background: rgba(251, 191, 36, 0.15);
        border-left: 3px solid var(--secondary-color);
        color: var(--secondary-color);
        font-weight: 600;
    }

    .nav-menu .nav-link:hover {
        background: var(--bg-secondary);
        color: var(--primary-color);
        transform: none;
        box-shadow: none;
        padding-left: 1.5rem;
    }

    [data-theme="dark"] .nav-menu .nav-link {
        color: var(--text-light);
        background: var(--bg-secondary);
        border-color: var(--border-light);
    }

    [data-theme="dark"] .nav-menu .nav-link:hover {
        background: rgba(251, 191, 36, 0.1);
        color: var(--secondary-color);
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 2rem;
    text-decoration: none;
}

[dir="rtl"] .nav-logo {
    margin-right: 0;
    margin-left: 2rem;
}

.nav-logo h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    transition: transform 0.3s ease;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
}

.nav-logo h2::after {
    display: none;
}

.nav-logo:hover h2 {
    transform: scale(1.02);
}

.logo-img {
    height: 100px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

[data-theme="dark"] .logo-img {
    background: transparent !important;
    border: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    height: 100px;
    filter: brightness(1.1) contrast(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .nav-link {
    color: #9ca3af; /* Light gray for better contrast */
}


.nav-link:hover {
    color: var(--secondary-color);
    transform: none;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.4), 0 0 24px rgba(251, 191, 36, 0.2);
    animation: navLinkGlow 0.8s ease-out;
}

[data-theme="dark"] .nav-link:hover {
    color: #fbbf24; /* Yellow on hover */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.5rem;
}

[dir="rtl"] .nav-controls {
    margin-left: 0;
    margin-right: 1.5rem;
}

.theme-toggle,
.lang-toggle,
.refresh-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.theme-toggle:hover,
.lang-toggle:hover,
.refresh-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: none;
    box-shadow: var(--shadow);
}

.lang-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.lang-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .lang-toggle,
[data-theme="dark"] .refresh-btn {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #000000;
}

[data-theme="dark"] .theme-toggle:hover {
    border-color: #374151;
    color: #ffffff;
    background: #374151;
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
}

[data-theme="dark"] .lang-toggle:hover {
    border-color: #000000;
    color: #fbbf24;
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .refresh-btn:hover {
    border-color: #000000;
    color: #000000;
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hamburger-wrapper {
    display: none;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 12px; /* Increased padding for larger size */
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    width: 48px;
    height: 48px;
    min-width: 48px; /* Consistent with other controls */
    min-height: 48px;
    align-items: center;
    justify-content: center;
    order: 3;
    box-sizing: border-box;
    position: relative;
    z-index: 1002;
    pointer-events: auto !important;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hamburger:active,
.hamburger:focus {
    transform: scale(0.95);
    outline: none;
}

[data-theme="dark"] .hamburger {
    background: #fbbf24 !important;
    border-color: #fbbf24 !important;
}

[data-theme="dark"] .hamburger .bar {
    background: #000000 !important;
}

[data-theme="dark"] .hamburger:hover {
    background: #d4af37 !important;
}

.bar {
    width: 32px;
    height: 4px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    position: relative;
}

/* Hero Section */
.hero {
    margin-top: 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        #f3f4f6 0%,
        rgba(243, 244, 246, 0.9) 15%,
        rgba(251, 191, 36, 0.05) 30%,
        rgba(229, 231, 235, 0.8) 45%,
        rgba(243, 244, 246, 0.7) 60%,
        rgba(251, 191, 36, 0.03) 75%,
        #f3f4f6 100%);
    background-size: 300% 300%;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    animation: heroElegantFlow 25s ease-in-out infinite;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 70% 20%, rgba(26, 54, 93, 0.03) 0%, transparent 35%);
    animation: heroOverlayFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 20%,
        rgba(212, 175, 55, 0.9) 40%,
        rgba(139, 69, 19, 0.8) 60%,
        rgba(255, 255, 255, 0.7) 80%,
        transparent 100%);
    animation: heroTopGlow 15s ease-in-out infinite;
    z-index: 2;
}

[data-theme="dark"] .hero::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 20%,
        rgba(212, 175, 55, 0.9) 40%,
        rgba(139, 69, 19, 0.8) 60%,
        rgba(255, 255, 255, 0.7) 80%,
        transparent 100%);
}

/* Default light mode colors */
.hero {
    color: var(--primary-color);
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #fbbf24;
    transition: all 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    box-shadow: inset 0 0 100px rgba(251, 191, 36, 0.02), 0 -30px 80px rgba(251, 191, 36, 0.12), 0 -20px 50px rgba(96, 165, 250, 0.06), 0 0 80px rgba(251, 191, 36, 0.05);
}

[data-theme="light"] .hero::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 70% 20%, rgba(26, 54, 93, 0.03) 0%, transparent 35%);
}

[data-theme="light"] .hero-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

[data-theme="light"] .hero-title {
    text-shadow: none;
}

[data-theme="light"] .hero-subtitle {
    text-shadow: none;
}

.hero:hover {
    transform: none;
}




[data-theme="dark"] .hero {
    margin-top: 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #fbbf24;
    transition: all 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    animation: darkHeroMajesticFlow 35s ease-in-out infinite;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    box-shadow: inset 0 0 100px rgba(251, 191, 36, 0.02), 0 -30px 80px rgba(251, 191, 36, 0.12), 0 -20px 50px rgba(96, 165, 250, 0.06), 0 0 80px rgba(251, 191, 36, 0.05);
}

[data-theme="dark"] .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(251, 191, 36, 0.03) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(55, 65, 81, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 45% 55%, rgba(251, 191, 36, 0.02) 0%, transparent 45%),
        radial-gradient(circle at 75% 15%, rgba(55, 65, 81, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 25% 85%, rgba(251, 191, 36, 0.015) 0%, transparent 40%);
    animation: darkHeroOverlayGlow 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}


.hero-content {
    flex: 1;
    max-width: 700px;
    z-index: 2;
    position: relative;
    padding: 3rem;
    text-align: center;
    background: rgba(15, 20, 25, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(251, 191, 36, 0.1);
    margin: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.05;
    letter-spacing: -0.06em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.3), 0 0 40px rgba(251, 191, 36, 0.6), 0 0 60px rgba(251, 191, 36, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: default;
    color: #0f1419;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    background-size: initial;
    animation: none;
}

.hero-title:hover {
    transform: scale(1.02);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.3);
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 3.5rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fbbf24;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    background-size: initial;
    animation: none;
}


[data-theme="dark"] .hero {
    color: var(--secondary-color);
}

[data-theme="dark"] .hero-title {
    color: #ffffff !important;
}

[data-theme="dark"] .hero-subtitle {
    color: #ffffff !important;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}


.hero-image {
    display: none;
}

.hero-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 20px 40px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.2rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    outline: none;
    box-shadow: var(--shadow-lg);
    transform-style: preserve-3d;
    min-height: 56px; /* Enhanced touch target for mobile */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

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

.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 ease, height 0.6s ease;
    pointer-events: none;
}

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

.btn:hover::before {
    left: 100%;
}

.btn:hover::after {
    width: 350px;
    height: 350px;
}

.btn:hover {
    animation: none;
    transform: none;
}

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

.btn:hover::after {
    width: 0;
    height: 0;
}

.btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn:active {
    transform: none;
    transition: none;
}

.btn:active::before {
    left: -100%;
}

.btn:active::after {
    width: 0;
    height: 0;
}

/* Advanced Button States */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: successPulse 0.6s ease-out;
}

.btn-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: errorShake 0.5s ease-in-out;
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn-ripple::before {
    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 ease, height 0.6s ease;
    pointer-events: none;
}

.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Button Morphing */
.btn-morph {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-morph:hover {
    border-radius: 25px;
    transform: scale(1.05);
}

.btn-morph:active {
    border-radius: 50px;
    transform: scale(0.95);
}

/* Advanced Button Glow */
.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--secondary-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
    opacity: 1;
    animation: glowRotate 2s linear infinite;
}

@keyframes glowRotate {
    0% {
        transform: rotate(0deg) scale(1);
        box-shadow: 0 0 20px var(--accent-color);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        box-shadow: 0 0 40px var(--accent-color), 0 0 60px rgba(96, 165, 250, 0.3);
    }
    100% {
        transform: rotate(360deg) scale(1);
        box-shadow: 0 0 20px var(--accent-color);
    }
}

@keyframes hoverGlowPulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.3), 0 0 80px rgba(96, 165, 250, 0.2);
    }
    50% {
        box-shadow: 0 0 60px rgba(251, 191, 36, 0.4), 0 0 120px rgba(96, 165, 250, 0.3);
    }
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}



/* Floating Cards Effect - Disabled to prevent unexpected movement */
.floating-cards {
    position: relative;
}

.floating-cards .card {
    /* Animation removed to prevent sections from moving unexpectedly */
    animation: none;
}

.floating-cards .card:nth-child(odd) {
    animation-delay: 0s;
}

.floating-cards .card:nth-child(even) {
    animation-delay: 3s;
    animation-direction: reverse;
}

/* Commented out animation to prevent movement
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}
*/



.btn-primary {
    background: #1a365d;
    color: white;
    border-color: #1a365d;
    box-shadow: var(--shadow);
}

/* Light mode button adjustments for hero section */
[data-theme="light"] .hero .btn-primary {
    background: linear-gradient(135deg, #0f1419 0%, #374151 100%);
    color: white;
    border-color: #0f1419;
    box-shadow: 0 8px 25px rgba(15, 20, 25, 0.6);
}

[data-theme="light"] .hero .btn-secondary {
    background: rgba(15, 20, 25, 0.9);
    color: #fbbf24;
    border-color: #fbbf24;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

/* Dark mode button enhancements - Match light mode colors and animations */
[data-theme="dark"] .hero .btn-primary {
    background: transparent;
    color: #FFD700;
    border-color: #FFD700;
    box-shadow: none;
    border: 2px solid #FFD700;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .hero .btn-secondary {
    background: transparent;
    color: #FFD700;
    border-color: #FFD700;
    box-shadow: none;
    border: 2px solid #FFD700;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    cursor: pointer !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus:hover,
.btn-primary:active:hover {
    background: transparent !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
    animation: none !important;
}

.btn-primary:hover::before,
.btn-primary:focus::before,
.btn-primary:active::before {
    left: -100% !important;
}

.btn-primary:hover::after,
.btn-primary:focus::after,
.btn-primary:active::after {
    width: 0 !important;
    height: 0 !important;
}

.btn-primary:active {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

.btn-primary:active::before {
    left: -100% !important;
}

.btn-primary:active::after {
    width: 0 !important;
    height: 0 !important;
}

.btn-secondary {
    animation: none !important;
    background: transparent !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
    cursor: pointer !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:focus:hover,
.btn-secondary:active:hover {
    animation: none !important;
    background: transparent !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

.btn-secondary:hover::before,
.btn-secondary:focus::before,
.btn-secondary:active::before {
    left: -100% !important;
}

.btn-secondary:hover::after,
.btn-secondary:focus::after,
.btn-secondary:active::after {
    width: 0 !important;
    height: 0 !important;
}

.btn-secondary:active {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

.btn-secondary:active::before {
    left: -100% !important;
}

.btn-secondary:active::after {
    width: 0 !important;
    height: 0 !important;
}

[data-theme="dark"] .btn-secondary {
    animation: none !important;
    background: transparent !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
    transition: none !important;
    transform: none !important;
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-secondary:focus,
[data-theme="dark"] .btn-secondary:active {
    animation: none !important;
    background: transparent !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Section Styles */
section {
    padding: 140px 0;
    position: relative;
    margin-bottom: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    opacity: 1 !important;
}

[data-theme="dark"] section {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    animation: darkSectionMajesticFlow 30s ease-in-out infinite, simpleGradientShift 12s ease-in-out infinite;
}

/* Section Transitions and Morphing Backgrounds */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(55, 65, 81, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 20, 25, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(55, 65, 81, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 20, 25, 0.2) 0%, rgba(55, 65, 81, 0.2) 50%, rgba(15, 20, 25, 0.2) 100%);
    background-size: 100% 100%, 120% 120%, 80% 80%, 200% 200%;
    animation: morphingBackground 25s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] section::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(26, 26, 26, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26, 26, 26, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(26, 26, 26, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 26, 26, 0.03) 0%, rgba(26, 26, 26, 0.02) 50%, rgba(26, 26, 26, 0.03) 100%);
}

section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        #fbbf24 0%,
        #d4af37 25%,
        #fbbf24 50%,
        #d4af37 75%,
        #fbbf24 100%);
    background-size: 300% 100%;
    animation: gradientShift 15s cubic-bezier(0.4, 0, 0.2, 1) infinite, shimmerLine 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 1;
    border-radius: 3px;
}

[data-theme="dark"] section::after {
    background: linear-gradient(90deg,
        #fbbf24 0%,
        #d4af37 25%,
        #fbbf24 50%,
        #d4af37 75%,
        #fbbf24 100%);
    background-size: 300% 100%;
    animation: gradientShift 15s cubic-bezier(0.4, 0, 0.2, 1) infinite, shimmerLine 5s cubic-bezier(0.4, 0, 0.2, 1) infinite, yellowGlowPulse 4s ease-in-out infinite alternate;
}

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

section:nth-child(even) {
    background: linear-gradient(135deg,
        var(--bg-secondary) 0%,
        rgba(139, 69, 19, 0.06) 25%,
        rgba(255, 215, 0, 0.04) 50%,
        rgba(212, 175, 55, 0.06) 75%,
        var(--bg-secondary) 100%);
    position: relative;
}

[data-theme="dark"] section:nth-child(even) {
    background: linear-gradient(135deg,
        #1a1a1a 0%,
        #0f1419 25%,
        #1a1a1a 50%,
        #0f1419 75%,
        #1a1a1a 100%);
}

[data-theme="dark"] section:nth-child(even) {
    background: linear-gradient(135deg,
        #1a1a1a 0%,
        #0f1419 25%,
        #1a1a1a 50%,
        #0f1419 75%,
        #1a1a1a 100%);
}

section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

[data-theme="dark"] section:nth-child(even)::before {
    background: radial-gradient(circle at 20% 30%, rgba(26, 26, 26, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(26, 26, 26, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(26, 26, 26, 0.04) 0%, transparent 50%);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.3;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    padding: 0 20px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.section-header h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    background-size: initial;
    animation: none;
    cursor: default;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


.section-header h2:hover {
    transform: scale(1.02);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3), 0 0 40px rgba(30, 58, 138, 0.2);
    animation-duration: 3s;
}

/* Removed short underline under h2 */

.section-header p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.section-header p:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* About Section */
.about {
    background: linear-gradient(135deg,
        rgba(15, 20, 25, 0.04) 0%,
        rgba(55, 65, 81, 0.06) 25%,
        rgba(15, 20, 25, 0.04) 50%,
        rgba(55, 65, 81, 0.06) 75%,
        rgba(15, 20, 25, 0.04) 100%);
    background-size: 210% 210%;
    animation: subtleGradientShift 18s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
}

.about .section-header h2 {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: var(--primary-color);
    animation: none;
}

[data-theme="dark"] .about {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 380% 380%;
    animation: darkAboutMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 90px rgba(251, 191, 36, 0.015), 0 0 45px rgba(251, 191, 36, 0.008);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

[data-theme="dark"] .about::before {
    background: radial-gradient(circle at 15% 25%, rgba(251, 191, 36, 0.02) 0%, transparent 55%),
                radial-gradient(circle at 85% 75%, rgba(55, 65, 81, 0.06) 0%, transparent 55%),
                radial-gradient(circle at 45% 55%, rgba(251, 191, 36, 0.015) 0%, transparent 55%),
                radial-gradient(circle at 75% 15%, rgba(55, 65, 81, 0.04) 0%, transparent 50%),
                linear-gradient(45deg, rgba(251, 191, 36, 0.01) 0%, rgba(55, 65, 81, 0.03) 50%, rgba(251, 191, 36, 0.005) 100%);
}
[data-theme="light"] .about {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    box-shadow: inset 0 0 90px rgba(251, 191, 36, 0.015), 0 0 45px rgba(251, 191, 36, 0.008);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

[dir="rtl"] .about-text {
    order: 2;
}

[dir="rtl"] .about-image {
    order: 1;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.2;
    transition: all 0.3s ease;
    cursor: default;
}

.about-text h3:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.25);
}

.about-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 400;
    transition: all 0.3s ease;
}

.about-text p:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.read-more-btn {
    margin-top: 1.5rem;
    display: block;
    width: fit-content;
    transition: all 0.3s ease;
}

.read-more-content {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.read-more-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.stats {
    display: none;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image-card {
    width: 100%;
    max-width: 600px;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
    margin: 0 auto;
}

.about-image-card:hover {
    transform: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(212, 175, 55, 0.1);
    border-color: var(--primary-color);
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.about-image-placeholder {
    width: 100%;
    height: 280px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(212, 175, 55, 0.1));
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

.about-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
    color: var(--primary-color);
}

.about-image-placeholder p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

[data-theme="dark"] .about-image-card {
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(255, 215, 0, 0.02) 50%, #2a2a2a 100%);
    border-color: var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(255, 215, 0, 0.08);
}

[data-theme="dark"] .about-image-card:hover {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 12px 24px rgba(255, 215, 0, 0.12), 0 0 32px rgba(212, 175, 55, 0.08);
    border-color: var(--accent-color);
}

[data-theme="dark"] .about-image-placeholder {
    background: linear-gradient(135deg, #2a2a2a, rgba(212, 175, 55, 0.05));
}

/* Image Preview Styling */
.image-preview {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    width: 100%;
    height: 300px; /* Fixed height for consistent sizing */
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(212, 175, 55, 0.15);
}

.image-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview:hover::before {
    opacity: 1;
}

.image-preview img {
    transition: transform 0.3s ease;
}

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

/* About Image Preview Styles */
#aboutImagePreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

[data-theme="dark"] .image-preview {
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(255, 215, 0, 0.02) 50%, #2a2a2a 100%);
    border-color: var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(255, 215, 0, 0.08);
}

[data-theme="dark"] .image-preview:hover {
    border-color: var(--accent-color);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 12px 24px rgba(255, 215, 0, 0.12), 0 0 32px rgba(212, 175, 55, 0.08);
}

/* Responsive Image Preview */
@media (min-width: 1441px) {
    .image-preview {
        height: 350px;
    }
}

@media (min-width: 1201px) and (max-width: 1440px) {
    .image-preview {
        height: 320px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .image-preview {
        height: 280px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .image-preview {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .image-preview {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .image-preview {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .image-preview {
        height: 160px;
    }
}

@media (max-width: 1024px) {
    .image-preview {
        height: 140px;
    }
}

@media (max-width: 414px) {
    .image-preview {
        height: 130px;
    }
}

@media (max-width: 375px) {
    .image-preview {
        height: 120px;
    }
}

@media (max-width: 360px) {
    .image-preview {
        height: 110px;
    }
}

/* Responsive About Us Image */
@media (min-width: 1441px) {
    .about-image-card {
        max-width: 700px;
    }

    .about-img {
        height: 450px;
    }
}

@media (min-width: 1201px) and (max-width: 1440px) {
    .about-image-card {
        max-width: 650px;
    }

    .about-img {
        height: 420px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .about-image-card {
        max-width: 550px;
    }

    .about-img {
        height: 380px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .about-image-card {
        max-width: 500px;
    }

    .about-img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .about-image-card {
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }

    .about-img {
        height: 280px;
        width: 100%;
        object-fit: cover;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-image {
        order: -1; /* Show image above text on mobile */
    }

    .read-more-btn {
        margin: 1rem auto 0;
        font-size: 0.9rem;
        padding: 12px 24px;
        width: auto;
        max-width: 200px;
    }
}

@media (max-width: 640px) {
    .about-img {
        height: 260px;
    }
}

@media (max-width: 576px) {
    .about-img {
        height: 240px;
    }

    .about-image-card {
        border-radius: 16px;
        margin: 0 10px;
    }
}

@media (max-width: 1024px) {
    .about-img {
        height: 220px;
    }

    .about-content {
        gap: 2rem;
        padding: 0 15px;
    }
}

@media (max-width: 414px) {
    .about-img {
        height: 200px;
    }

    .about-image-card {
        margin: 0 5px;
    }
}

@media (max-width: 375px) {
    .about-img {
        height: 180px;
    }
}

@media (max-width: 360px) {
    .about-img {
        height: 170px;
    }

    .about-image-card {
        border-radius: 12px;
    }
}

/* Products Section */
.products {
    background: linear-gradient(135deg,
        rgba(15, 20, 25, 0.08) 0%,
        rgba(55, 65, 81, 0.06) 25%,
        rgba(15, 20, 25, 0.08) 50%,
        rgba(55, 65, 81, 0.06) 75%,
        rgba(15, 20, 25, 0.08) 100%);
    background-size: 200% 200%;
    animation: elegantGradientShift 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
}

/* Products Dark Mode */
[data-theme="dark"] .products {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkProductsMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 70px rgba(251, 191, 36, 0.01), 0 0 35px rgba(251, 191, 36, 0.005);
}
[data-theme="light"] .products {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    box-shadow: inset 0 0 70px rgba(251, 191, 36, 0.01), 0 0 35px rgba(251, 191, 36, 0.005);
    position: relative;
}

/* Services Section */
.services {
    background: linear-gradient(135deg,
        rgba(55, 65, 81, 0.07) 0%,
        rgba(15, 20, 25, 0.05) 25%,
        rgba(55, 65, 81, 0.07) 50%,
        rgba(15, 20, 25, 0.05) 75%,
        rgba(55, 65, 81, 0.07) 100%);
    background-size: 210% 210%;
    animation: refinedGradientShift 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

/* Services Dark Mode */
[data-theme="light"] .services {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    box-shadow: inset 0 0 90px rgba(251, 191, 36, 0.015), 0 0 45px rgba(251, 191, 36, 0.008);
    position: relative;
}
[data-theme="dark"] .services {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 380% 380%;
    animation: darkAboutMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 90px rgba(251, 191, 36, 0.015), 0 0 45px rgba(251, 191, 36, 0.008);
}

[data-theme="dark"] .services::before {
    background: radial-gradient(circle at 15% 25%, rgba(251, 191, 36, 0.02) 0%, transparent 55%),
                radial-gradient(circle at 85% 75%, rgba(55, 65, 81, 0.06) 0%, transparent 55%),
                radial-gradient(circle at 45% 55%, rgba(251, 191, 36, 0.015) 0%, transparent 55%),
                radial-gradient(circle at 75% 15%, rgba(55, 65, 81, 0.04) 0%, transparent 50%),
                linear-gradient(45deg, rgba(251, 191, 36, 0.01) 0%, rgba(55, 65, 81, 0.03) 50%, rgba(251, 191, 36, 0.005) 100%);
    z-index: 1;
    animation: darkAboutMajesticFlow 32s ease-in-out infinite;
}

/* Grid Layouts */
.products-grid,
.services-grid,
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: start;
    min-height: 200px;
    padding: 1rem 0;
}

/* Set different sizes for product and service cards */
.products-grid .card {
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.services-grid .card {
    min-height: 650px;
    display: flex;
    flex-direction: column;
}

/* Ensure fixed sizes on PC screens (1025px and up) */
@media (min-width: 1025px) {
    .products-grid .card {
        height: 600px;
        min-height: 600px;
        overflow: hidden;
    }

    .services-grid .card {
        height: 650px;
        min-height: 650px;
        overflow: hidden;
    }
}

/* Videos Grid - Modified for horizontal scrolling */
.videos-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    align-items: stretch;
    min-height: 200px;
    padding: 1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

/* Video container wrapper for scroll buttons */
.videos-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn {
    background: #0f1419;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 20, 25, 0.3);
}

.scroll-btn:hover {
    background: #1a202c;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(15, 20, 25, 0.4);
}

[data-theme="dark"] .scroll-btn {
    background: #fbbf24;
    color: #000000;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .scroll-btn:hover {
    background: #d4af37;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

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

.scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Ensure video cards have consistent width and bigger size */
.video-card {
    flex: 0 0 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    min-height: 240px !important;
    max-height: 240px !important;
}

/* Responsive video layout */
@media (max-width: 1024px) {
    .video-card {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
        min-height: 180px;
        max-height: 220px;
    }

    .videos-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .scroll-btn {
        display: none; /* Hide scroll buttons on mobile, use native scrolling */
    }

    .video-card {
        flex: 0 0 200px;
        min-width: 200px;
        max-width: 200px;
        min-height: 150px;
        max-height: 190px;
    }

    .videos-grid {
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 1024px) {
    .video-card {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
        min-height: 140px;
        max-height: 180px;
    }

    .videos-grid {
        gap: 0.75rem;
        padding: 0.5rem;
    }

    .partner-card {
        flex: 0 0 160px;
        min-width: 160px;
        max-width: 160px;
    }

    .partner-logo {
        width: 160px;
        height: 160px;
    }

    .partners-grid {
        gap: 1rem;
        padding: 0.5rem;
    }
}

.card {
    background: var(--glass-bg);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    transform: translateY(0) scale(1);
    animation: none;
    display: block; /* Show cards by default */
    -webkit-backdrop-filter: var(--backdrop-blur);
    backdrop-filter: var(--backdrop-blur);
}

.card.content-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

[data-theme="dark"] .card {
    background: linear-gradient(135deg, #374151 0%, rgba(15, 20, 25, 0.9) 50%, #374151 100%);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(251, 191, 36, 0.08), var(--shadow-glow);
    border: 2px solid rgba(251, 191, 36, 0.1);
    -webkit-backdrop-filter: var(--backdrop-blur-strong);
    backdrop-filter: var(--backdrop-blur-strong);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(139, 69, 19, 0.05) 0%,
        rgba(255, 215, 0, 0.03) 50%,
        rgba(212, 175, 55, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: none;
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    animation: none;
}

[data-theme="dark"] .card:hover {
    box-shadow: var(--shadow-xl), var(--shadow-glow), 0 0 40px rgba(251, 191, 36, 0.3);
    border-color: var(--accent-color);
    background: var(--glass-bg-strong);
    transform: none;
    animation: yellowGlowPulse 2s ease-in-out infinite alternate;
}

.card:hover::before {
    opacity: 1;
    transform: scaleX(1);
    animation: shimmerBorder 1.5s ease-in-out infinite;
}

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

.card-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-video {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
}

.card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    color: var(--primary-color);
}

.video-placeholder span {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
    transition: all 0.3s ease;
    cursor: default;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card h3:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .partners {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    box-shadow: inset 0 0 55px rgba(251, 191, 36, 0.005), 0 0 28px rgba(251, 191, 36, 0.002);
    position: relative;
    overflow: visible;
    padding: 100px 0;
    min-height: 300px;
}
.card p:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.partners {
    background: linear-gradient(135deg,
        rgba(139, 69, 19, 0.06) 0%,
        rgba(255, 215, 0, 0.04) 25%,
        rgba(212, 175, 55, 0.06) 50%,
        rgba(139, 69, 19, 0.04) 75%,
        var(--bg-primary) 100%);
    background-size: 150% 150%;
    animation: gradientShift 25s ease infinite;
    position: relative;
    overflow: visible;
    padding: 100px 0;
    min-height: 300px;
}

/* Partners Dark Mode */
[data-theme="dark"] .partners {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkContactMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 55px rgba(251, 191, 36, 0.005), 0 0 28px rgba(251, 191, 36, 0.002);
}

[data-theme="dark"] .partners::before {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.08), rgba(55, 65, 81, 0.04), rgba(55, 65, 81, 0.02));
    animation: darkPartnersMajesticFlow 32s ease-in-out infinite;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(139, 69, 19, 0.02) 25%, transparent 50%, rgba(255, 215, 0, 0.01) 75%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(212, 175, 55, 0.02) 25%, transparent 50%, rgba(139, 69, 19, 0.01) 75%, transparent 100%);
    animation: waveAnimation 35s linear infinite;
    pointer-events: none;
}

[data-theme="dark"] .partners {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkContactMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 55px rgba(251, 191, 36, 0.005), 0 0 28px rgba(251, 191, 36, 0.002);
}

.partners::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

[data-theme="dark"] .partners::after {
    background: radial-gradient(circle at 15% 40%, rgba(55, 65, 81, 0.03) 0%, transparent 35%),
                radial-gradient(circle at 85% 60%, rgba(55, 65, 81, 0.02) 0%, transparent 35%),
                radial-gradient(circle at 50% 80%, rgba(55, 65, 81, 0.015) 0%, transparent 35%);
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.partners .section-header h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.03), rgba(202, 138, 4, 0.02));
    pointer-events: none;
}

[data-theme="dark"] .partners::before {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.08), rgba(55, 65, 81, 0.04), rgba(55, 65, 81, 0.02));
}

.partners-container {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-track {
    display: flex;
    gap: 0;
    animation: scrollPartners 30s linear infinite;
    width: calc(120px * 48);
    will-change: transform;
}

.partners-track:hover {
    animation-play-state: paused;
}


.partner-card {
    flex: 0 0 180px;
    min-width: 180px;
    max-width: 180px;
    margin: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: center;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.partner-card:hover {
    transform: none;
}



.partner-logo {
    width: 180px;
    height: 180px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: none;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background: transparent;
    transform: scale(1.05);
    box-shadow: none;
}

.partner-logo:hover img {
    transform: scale(1.1);
}


.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: all 0.3s ease;
}

/* Remove title and description */
.partner-card h3,
.partner-card p {
    display: none;
}

/* Make partner card images square to fit logos */
.partner-card .partner-logo {
    height: 140px;
[data-theme="light"] .videos {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    animation: darkAboutMajesticFlow 32s ease-in-out infinite !important;
    box-shadow: inset 0 0 90px rgba(251, 191, 36, 0.015), 0 0 45px rgba(251, 191, 36, 0.008) !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    min-height: 300px !important;
    padding: 80px 0 !important;
}
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card .partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* Videos Section */
.videos {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkVideosMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 70px rgba(251, 191, 36, 0.009), 0 0 35px rgba(251, 191, 36, 0.004);
    position: relative;
    display: block;
    visibility: visible;
    min-height: 300px;
    padding: 80px 0;
}

/* Videos Section Light Mode */
[data-theme="light"] .videos {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    animation: subtleGradientShift 18s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    box-shadow: inset 0 0 90px rgba(251, 191, 36, 0.015), 0 0 45px rgba(251, 191, 36, 0.008) !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    min-height: 300px !important;
    padding: 80px 0 !important;
}

/* Videos Section Button Styling for Light Mode */
.videos .btn {
    background: #0f1419;
    color: white;
    border-color: #0f1419;
    box-shadow: 0 4px 12px rgba(15, 20, 25, 0.3);
}

.videos .btn:hover {
    background: #1a202c;
    border-color: #1a202c;
    box-shadow: 0 6px 20px rgba(15, 20, 25, 0.4);
}

/* Videos Dark Mode */
[data-theme="dark"] .videos {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkVideosMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 70px rgba(251, 191, 36, 0.009), 0 0 35px rgba(251, 191, 36, 0.004);
}

.video-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: block;
    width: 100%;
    opacity: 1;
    visibility: visible;
}

.video-card:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
}

.card-video {
    width: 100%;
    position: relative;
    background: var(--bg-secondary);
}

.video-content video {
    width: 100% !important;
    height: 180px !important;
    display: block !important;
    border-radius: 8px 8px 0 0 !important;
    object-fit: cover !important;
}

.card-video iframe {
    width: 100%;
    height: 315px;
    border: none;
    border-radius: 8px 8px 0 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px 8px 0 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px 8px 0 0;
}

.video-info {
    padding: 0.75rem;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
}

/* Videos Dark Mode */
[data-theme="dark"] .videos {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkVideosMajesticFlow 28s ease-in-out infinite;
    box-shadow: inset 0 0 70px rgba(251, 191, 36, 0.009), 0 0 35px rgba(251, 191, 36, 0.004);
}

/* Services Dark Mode */
[data-theme="dark"] .services {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 380% 380%;
    animation: darkAboutMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 90px rgba(251, 191, 36, 0.015), 0 0 45px rgba(251, 191, 36, 0.008);
}

/* Our Work Section */
.our-work {
    background: linear-gradient(135deg,
        rgba(15, 20, 25, 0.06) 0%,
        rgba(55, 65, 81, 0.08) 25%,
        rgba(15, 20, 25, 0.06) 50%,
        rgba(55, 65, 81, 0.08) 75%,
        rgba(15, 20, 25, 0.06) 100%);
    background-size: 190% 190%;
    animation: workGradientShift 19s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
}

[data-theme="light"] .our-work {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    box-shadow: inset 0 0 80px rgba(251, 191, 36, 0.011), 0 0 40px rgba(251, 191, 36, 0.005);
}

/* Our Work Dark Mode */
[data-theme="dark"] .our-work {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkWorkMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 80px rgba(251, 191, 36, 0.011), 0 0 40px rgba(251, 191, 36, 0.005);
}


/* Contact Section */
.contact {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkContactMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 55px rgba(251, 191, 36, 0.005), 0 0 28px rgba(251, 191, 36, 0.002);
    position: relative;
}

/* Contact Section Light Mode */
[data-theme="light"] .contact {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    animation: subtleGradientShift 18s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    box-shadow: inset 0 0 90px rgba(251, 191, 36, 0.015), 0 0 45px rgba(251, 191, 36, 0.008) !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    min-height: 300px !important;
    padding: 80px 0 !important;
}

/* Contact Dark Mode */
[data-theme="dark"] .contact {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkContactMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 55px rgba(251, 191, 36, 0.005), 0 0 28px rgba(251, 191, 36, 0.002);
}

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

[data-theme="dark"] .contact {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkContactMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 55px rgba(251, 191, 36, 0.005), 0 0 28px rgba(251, 191, 36, 0.002);
}

[data-theme="light"] .contact {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    box-shadow: inset 0 0 55px rgba(251, 191, 36, 0.005), 0 0 28px rgba(251, 191, 36, 0.002) !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    min-height: 300px !important;
    padding: 80px 0 !important;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

[data-theme="dark"] .contact::before {
    background: radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 50% 20%, rgba(139, 69, 19, 0.025) 0%, transparent 40%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

[dir="rtl"] .contact-item {
    order: 2;
}

[dir="rtl"] .contact-form {
    order: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: default;
}

.contact-item h4:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-item p {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.contact-item p:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.contact-form {
    background: var(--glass-bg);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: var(--backdrop-blur);
    backdrop-filter: var(--backdrop-blur);
}

[data-theme="dark"] .contact-form {
    background: linear-gradient(135deg, #2a2a2a 0%, rgba(55, 65, 81, 0.7) 50%, #2a2a2a 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    -webkit-backdrop-filter: var(--backdrop-blur);
    backdrop-filter: var(--backdrop-blur);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: 12px 12px 0 0;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #fbbf24;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    font-size: 1.1rem;
    background: var(--glass-bg);
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    font-family: inherit;
    font-weight: 400;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--glass-bg);
    transform: none;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: var(--text-primary);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
    background: var(--glass-bg);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 215, 0, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
}

.contact-form button {
    width: 100%;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.contact-form button:hover {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #1a365d;
    transform: none;
    box-shadow: var(--shadow-xl), 0 0 30px rgba(255, 215, 0, 0.4);
}

.contact-form button:active {
    transform: translateY(0);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* Location Section */
.location {
    background: linear-gradient(135deg,
        rgba(15, 20, 25, 0.05) 0%,
        rgba(55, 65, 81, 0.07) 30%,
        rgba(15, 20, 25, 0.05) 50%,
        rgba(55, 65, 81, 0.07) 70%,
        rgba(15, 20, 25, 0.05) 100%);
    background-size: 170% 170%;
    animation: locationGradientShift 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
}

/* Location Dark Mode */
[data-theme="dark"] .location {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkLocationMajesticFlow 32s ease-in-out infinite;
    box-shadow: inset 0 0 45px rgba(251, 191, 36, 0.004), 0 0 23px rgba(251, 191, 36, 0.002);
}
[data-theme="light"] .location {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    box-shadow: inset 0 0 45px rgba(251, 191, 36, 0.004), 0 0 23px rgba(251, 191, 36, 0.002);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.location-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.location-card:hover {
    transform: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
    border-color: var(--primary-color);
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.location-info {
    padding: 2rem 1.5rem 1rem;
    position: relative;
    z-index: 2;
}

[dir="rtl"] .location-info {
    order: 2;
}

[dir="rtl"] .location-map {
    order: 1;
}

.location-info h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.location-info h3:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
}

.location-info h3::before {
    content: '📍';
    font-size: 1.2em;
}

.location-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .location-info p {
    color: #ffffff;
}

.location-info p:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.location-info p i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 16px;
}

[data-theme="dark"] .location-info p i {
    color: #fbbf24;
}

.location-map {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 1;
    display: block;
}

.location-map-fallback {
    width: 100%;
    height: 280px;
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(212, 175, 55, 0.1));
}

.view-map-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    padding: 1rem;
    text-align: center;
}

.view-map-btn:hover {
    background: var(--accent-color);
    transform: none;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(212, 175, 55, 0.3);
    border-color: var(--primary-color);
}

.view-map-btn i {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.view-map-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

[data-theme="dark"] .view-map-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

[data-theme="dark"] .view-map-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
    border-color: var(--accent-color);
}

.view-map-btn i {
    margin-right: 0.5rem;
}

/* Location Dark Mode */

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .location-map {
        height: 200px;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg,
        rgba(15, 20, 25, 0.1) 0%,
        rgba(55, 65, 81, 0.15) 25%,
        rgba(15, 20, 25, 0.1) 50%,
        rgba(55, 65, 81, 0.15) 75%,
        rgba(15, 20, 25, 0.1) 100%);
    background-size: 200% 200%;
    animation: footerGradientShift 20s ease-in-out infinite;
    color: #2d1810;
    padding: 3rem 0 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(139, 69, 19, 0.15), 0 -5px 20px rgba(212, 175, 55, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(55, 65, 81, 0.08) 0%,
        rgba(15, 20, 25, 0.05) 25%,
        rgba(55, 65, 81, 0.06) 50%,
        rgba(15, 20, 25, 0.04) 75%,
        rgba(55, 65, 81, 0.08) 100%);
    animation: footerShimmer 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 1;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(15, 20, 25, 0.4) 20%,
        rgba(55, 65, 81, 0.3) 40%,
        rgba(15, 20, 25, 0.4) 60%,
        rgba(55, 65, 81, 0.3) 80%,
        transparent 100%);
    z-index: 2;
}

[data-theme="dark"] .footer {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(251, 191, 36, 0.02), 0 -30px 80px rgba(251, 191, 36, 0.12), 0 -20px 50px rgba(96, 165, 250, 0.06), 0 0 80px rgba(251, 191, 36, 0.05);
    animation: darkFooterMajesticFlow 35s ease-in-out infinite, yellowGlowPulse 6s ease-in-out infinite alternate;
}
[data-theme="light"] .footer {
    background: linear-gradient(135deg,
        #0a0f14 0%,
        #0f1419 15%,
        #1a1a2e 30%,
        #16213e 45%,
        #0f1419 60%,
        #1a1a2e 75%,
        #16213e 90%,
        #0a0f14 100%);
    background-size: 450% 450%;
    animation: darkFooterMajesticFlow 35s ease-in-out infinite;
    box-shadow: inset 0 0 100px rgba(251, 191, 36, 0.02), 0 -30px 80px rgba(251, 191, 36, 0.12), 0 -20px 50px rgba(96, 165, 250, 0.06), 0 0 80px rgba(251, 191, 36, 0.05);
}

/* Light mode text colors for light backgrounds */
[data-theme="light"] .hero .hero-title,
[data-theme="light"] .hero .hero-subtitle {
    color: var(--text-primary) !important;
}

[data-theme="light"] .section-header h2 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .section-header p {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .card h3 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .card p {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .footer-section h3,
[data-theme="light"] .footer-section h4,
[data-theme="light"] .footer-section p,
[data-theme="light"] .footer-section ul li a,
[data-theme="light"] .footer-bottom p,
[data-theme="light"] .footer-bottom .footer-copyright {
    color: var(--text-primary) !important;
}

[data-theme="light"] .contact-info p {
    color: var(--text-primary) !important;
}

[data-theme="light"] .contact-info i {
    color: var(--primary-color) !important;
}

[data-theme="light"] .location-info h3,
[data-theme="light"] .location-info p {
    color: var(--text-primary) !important;
}

[data-theme="light"] .location-info p i {
    color: var(--primary-color) !important;
}
[data-theme="light"] .footer {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #f1f5f9 15%,
        #e2e8f0 30%,
        #cbd5e1 45%,
        #f1f5f9 60%,
        #e2e8f0 75%,
        #cbd5e1 90%,
        #f8fafc 100%) !important;
    background-size: 380% 380% !important;
    box-shadow: inset 0 0 100px rgba(251, 191, 36, 0.02), 0 -30px 80px rgba(251, 191, 36, 0.12), 0 -20px 50px rgba(96, 165, 250, 0.06), 0 0 80px rgba(251, 191, 36, 0.05);
}

[data-theme="dark"] .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(251, 191, 36, 0.015) 0%,
        rgba(26, 26, 46, 0.08) 25%,
        rgba(251, 191, 36, 0.01) 50%,
        rgba(22, 33, 62, 0.06) 75%,
        rgba(251, 191, 36, 0.005) 100%);
    pointer-events: none;
    z-index: 1;
    animation: darkFooterShimmer 18s ease-in-out infinite;
}

[data-theme="dark"] .footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #D4AF37 20%,
        #8B4513 40%,
        #D4AF37 60%,
        #8B4513 80%,
        transparent 100%);
    z-index: 2;
}

[data-theme="dark"] .footer::before {
    background: linear-gradient(45deg,
        rgba(55, 65, 81, 0.15) 0%,
        transparent 25%,
        rgba(55, 65, 81, 0.08) 50%,
        transparent 75%,
        rgba(55, 65, 81, 0.15) 100%);
    animation: footerShimmer 8s ease-in-out infinite;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-main {
    max-width: 600px;
    text-align: center;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: none;
    cursor: default;
}

.footer-section h3:hover,
.footer-section h4:hover {
    color: var(--primary-color);
    transform: none !important;
}

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--primary-color);
    transition: none;
}

.footer-description p:hover {
    color: var(--text-primary);
    transform: none !important;
}

.footer-contact {
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--primary-color);
    transition: none;
}

.contact-info p:hover {
    color: var(--text-primary);
    transform: none !important;
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 0.5rem;
    width: 16px;
}

[data-theme="dark"] .contact-info i {
    color: #fbbf24;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .footer-section h3,
[data-theme="dark"] .footer-section h4 {
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .footer-section h3 {
    color: var(--text-primary);
    font-weight: 800;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    cursor: default;
}


.footer-section p:hover {
    color: var(--text-primary);
    transform: none !important;
    text-shadow: none !important;
}

.footer-section p:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: none;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    transform: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .footer-section ul li a {
    color: var(--text-light);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .footer-section ul li a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::before {
    width: 0 !important;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: none;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

[data-theme="dark"] .social-links a {
    background: var(--secondary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .social-links a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Newsletter Form */
.newsletter-form {
    margin: 1.5rem 0;
}

.newsletter-input {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
}

.newsletter-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px 0 0 25px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input input:focus {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

.newsletter-input input::placeholder {
    color: var(--text-light);
}

.btn-newsletter {
    padding: 12px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-newsletter:hover {
    background: var(--secondary-color);
    transform: translateX(2px);
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #666666;
}

[data-theme="dark"] .contact-info p {
    color: #ffffff;
}

.contact-info i {
    color: var(--primary-color);
    width: 18px;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--primary-color);
    margin: 0;
}

.footer-bottom p {
    color: var(--text-light);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: none;
    cursor: default;
}

.footer-bottom .footer-copyright {
    color: #0f1419 !important; /* Dark blue for light mode */
}

[data-theme="dark"] .footer-bottom .footer-copyright {
    color: #fbbf24 !important; /* Yellow for dark mode */
}


.footer-bottom p:hover {
    color: var(--text-primary);
    transform: none;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: none;
    font-size: 0.9rem;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    cursor: pointer;
}


.footer-links a:hover {
    color: var(--secondary-color);
    text-shadow: none !important;
    transform: none !important;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
    transform: none;
}

/* Enhanced Mobile Navbar Responsiveness for Very Small Screens */
@media (max-width: 480px) {
    .nav-container {
        height: 70px;
        padding: 0 10px;
    }

    .nav-logo h2 {
        font-size: 1.1rem;
        margin-left: 0.25rem;
    }

    .logo-img {
        height: 80px;
    }

    /* Ensure logo size is consistent across all themes and languages */
    [data-theme="light"] .logo-img,
    [data-theme="dark"] .logo-img,
    [dir="rtl"] .logo-img {
        height: 80px;
    }

    .nav-logo {
        gap: 0.25rem;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .theme-toggle,
    .lang-toggle,
    .hamburger {
        width: 20px;
        height: 20px;
        padding: 2px;
        font-size: 0.6rem;
        min-width: 20px;
        min-height: 20px;
    }

    /* Ensure hamburger button is fully visible in dark mode with consistent sizing */
    [data-theme="dark"] .hamburger {
        background: #fbbf24 !important;
        border: 2px solid #fbbf24 !important;
        border-color: #fbbf24 !important;
        border-radius: 4px !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 12px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1004 !important;
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.6) !important;
        position: relative !important;
    }

    [data-theme="dark"] .hamburger .bar {
        background: #000000 !important;
        width: 32px !important;
        height: 4px !important;
        border-radius: 2px !important;
    }

    /* Ensure hamburger button is fully visible in light mode with consistent sizing */
    [data-theme="light"] .hamburger {
        background: var(--primary-color) !important;
        border: 2px solid var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        border-radius: 4px !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 12px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1004 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        position: relative !important;
    }

    [data-theme="light"] .hamburger .bar {
        background: white !important;
        width: 32px !important;
        height: 4px !important;
        border-radius: 2px !important;
    }

    .bar {
        width: 22px;
        height: 3px;
    }

    .nav-menu.mobile-overlay .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .nav-container {
        height: 70px;
        padding: 0 8px;
    }

    .nav-logo h2 {
        font-size: 1rem;
    }

    .logo-img {
        height: 80px;
    }

    .theme-toggle,
    .lang-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
        font-size: 0.9rem;
        min-width: 40px;
        min-height: 40px;
    }

    .hamburger {
        width: 20px;
        height: 20px;
        padding: 4px;
        min-width: 20px;
        min-height: 20px;
    }

    .bar {
        width: 16px;
        height: 2px;
    }

    .nav-menu.mobile-overlay .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Force Mobile Navbar Visibility */
@media (max-width: 1024px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        position: relative !important;
    }

    .nav-logo {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }

    .nav-controls {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        order: 2 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    .hamburger {
        display: flex !important;
        order: 3 !important;
        z-index: 1002 !important;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-menu.active {
        display: flex !important;
        position: fixed !important;
        top: 120px !important; /* Position below navbar */
        left: 10px !important; /* Small margin from edges */
        right: 10px !important; /* Small margin from edges */
        width: auto !important; /* Full width minus margins */
        max-height: calc(100vh - 140px) !important; /* Leave space for navbar and bottom */
        flex-direction: column !important; /* Vertical layout */
        gap: 0 !important; /* No gap between items */
        background: var(--bg-primary) !important;
        padding: 1rem 0 !important; /* Vertical padding */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important; /* Allow scrolling if needed */
        z-index: 1001 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Enhanced Responsive Design with More Breakpoints */

/* Large Desktop (1440px and up) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4.5rem;
        letter-spacing: -0.08em;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 4rem;
            letter-spacing: 0.01em;
        }
    }

    .hero-subtitle {
        font-size: 1.7rem;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 1.5rem;
        }
    }

    .section-header h2 {
        font-size: 3.8rem;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 3.3rem;
        }
    }

    .products-grid,
    .services-grid,
    .partners-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 3.5rem;
    }

    .hero-content {
        max-width: 900px;
        padding: 4rem;
    }

    .hero {
        min-height: 100vh;
    }

    .card {
        padding: 4rem;
    }

    .btn {
        padding: 24px 48px;
        font-size: 1.3rem;
        /* Arabic button sizing */
        [dir="rtl"] & {
            font-size: 1.2rem;
            padding: 22px 44px;
        }
    }
}

/* Desktop Large (1200px - 1440px) */
@media (min-width: 1201px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }

    .hero-title {
        font-size: 4rem;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 3.7rem;
        }
    }

    .hero-subtitle {
        font-size: 1.6rem;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 1.5rem;
        }
    }

    .section-header h2 {
        font-size: 3.2rem;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 2.9rem;
        }
    }

    .products-grid,
    .services-grid,
    .partners-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
    }

    .hero-content {
        max-width: 750px;
        padding: 3.5rem;
    }

    .card {
        padding: 3.5rem;
    }

    .btn {
        padding: 22px 44px;
        font-size: 1.25rem;
        /* Arabic button sizing */
        [dir="rtl"] & {
            font-size: 1.2rem;
            padding: 20px 42px;
        }
    }
}

/* Desktop Medium (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 3.8rem;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 3.5rem;
        }
    }

    .hero-subtitle {
        font-size: 1.5rem;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 1.4rem;
        }
    }

    .section-header h2 {
        font-size: 3rem;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 2.7rem;
        }
    }

    .products-grid,
    .services-grid,
    .partners-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
    }

    .nav-menu {
        gap: 1.25rem;
    }

    .nav-controls {
        position: relative;
        gap: 0.5rem;
    }

    .theme-toggle,
    .lang-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
        font-size: 0.95rem;
    }

    .hero-content {
        max-width: 700px;
        padding: 3rem;
    }

    .card {
        padding: 3.5rem;
    }

    .btn {
        padding: 22px 44px;
        font-size: 1.25rem;
        /* Arabic button sizing */
        [dir="rtl"] & {
            font-size: 1.2rem;
            padding: 20px 42px;
        }
    }
}

/* Tablet Large (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 3.5rem;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 3.2rem;
        }
    }

    .hero-subtitle {
        font-size: 1.4rem;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 1.3rem;
        }
    }

    .section-header h2 {
        font-size: 2.8rem;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 2.5rem;
        }
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid,
    .services-grid,
    .partners-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }

    .newsletter-input {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-input input {
        border-radius: 25px;
        text-align: center;
        font-size: 1rem;
        /* Arabic input alignment */
        [dir="rtl"] & {
            text-align: right;
        }
    }

    .btn-newsletter {
        border-radius: 25px;
        align-self: center;
        width: fit-content;
        padding: 16px 36px;
        font-size: 1.2rem;
    }

    .hero-content {
        max-width: 650px;
        padding: 2.5rem;
    }

    .card {
        padding: 3rem;
    }

    .btn {
        padding: 20px 40px;
        font-size: 1.2rem;
        /* Arabic button sizing */
        [dir="rtl"] & {
            font-size: 1.15rem;
            padding: 18px 38px;
        }
    }
}

/* Prevent horizontal scrolling on mobile */
html, body {
overflow-x: hidden !important;
max-width: 100vw;
width: 100%;
}

/* Ensure consistent container max-widths across all breakpoints */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
        padding: 0 24px;
    }
}

@media (min-width: 1201px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
        padding: 0 24px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 24px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* Partners grid layout with scrolling animation on mobile */
@media (max-width: 768px) {
.partners-scroll {
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
}

.partners-scroll:hover {
    -webkit-animation-play-state: paused !important;
    animation-play-state: paused !important;
}
}

/* Additional mobile overflow fixes */
@media (max-width: 768px) {
* {
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    padding: 0 20px;
    max-width: 100%;
    overflow-x: hidden;
}

.nav-container {
    padding: 0 20px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevent horizontal scrolling on all elements */
section, .hero, .about, .products, .services, .our-work, .partners, .videos, .contact, .location, .footer {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix any potential table or wide content issues */
table, iframe, video {
    max-width: 100%;
}

/* Mobile Navigation Menu - Disabled since we're using hamburger menu */
@media (max-width: 1024px) {
    /* Disable body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Hamburger Button Styles */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        padding: 12px;
        background: #0f1419;
        border: 1px solid #0f1419;
        border-radius: 8px;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        order: 3;
        z-index: 1004 !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-width: 48px !important;
        min-height: 48px !important;
        width: 48px !important;
        height: 48px !important;
        align-items: center;
        justify-content: center;
        position: relative;
        box-sizing: border-box;
        visibility: visible !important;
        opacity: 1 !important;
        /* RTL Support */
        [dir="rtl"] & {
            order: 1;
        }
    }

    .hamburger:hover {
        background: #1a202c;
        transform: scale(1.05);
    }

    .hamburger:active,
    .hamburger:focus {
        transform: scale(0.95);
        outline: none;
    }

    [data-theme="dark"] .hamburger {
        background: #fbbf24 !important;
        border-color: #fbbf24 !important;
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.6) !important;
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
    }

    [data-theme="dark"] .hamburger .bar {
        background: white !important;
    }

    [data-theme="dark"] .hamburger:hover {
        background: #d4af37 !important;
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.8) !important;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .bar {
        width: 20px;
        height: 2px;
        background: white;
        transition: all 0.3s ease;
        border-radius: 1px;
    }

    /* Mobile Navigation Links - Horizontal layout under navbar */
    .nav-menu .nav-item {
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: none;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 0.3rem 0.15rem;
        font-size: 0.65rem;
        font-weight: 500;
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 4px;
        background: transparent;
        border: none;
        white-space: nowrap;
        min-height: 24px;
        text-align: center;
        box-sizing: border-box;
        overflow: visible;
        text-overflow: clip;
        line-height: 1;
        width: 100%;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: none;
        flex-shrink: 1;
        flex-basis: 0;
    }

    .nav-menu .nav-link:hover {
        background: var(--bg-secondary);
        color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    [data-theme="dark"] .nav-menu .nav-link {
        color: var(--text-light);
        background: var(--bg-secondary);
        border-color: var(--border-light);
    }

    [data-theme="dark"] .nav-menu .nav-link:hover {
        background: rgba(251, 191, 36, 0.1);
        color: var(--secondary-color);
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
    }
}

/* Mobile Navigation Links - Horizontal layout for hamburger menu */
@media (max-width: 768px) {
    /* Ensure consistent logo size for both light and dark modes on mobile */
    [data-theme="light"] .logo-img,
    [data-theme="dark"] .logo-img {
        height: 160px;
    }

    /* Ensure hamburger button is fully visible in dark mode */
    [data-theme="dark"] .hamburger {
        background: #fbbf24 !important;
        border: 2px solid #fbbf24 !important;
        border-color: #fbbf24 !important;
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        padding: 14px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1004 !important;
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.6) !important;
        position: relative !important;
    }

    [data-theme="dark"] .hamburger .bar {
        background: #000000 !important;
        width: 32px !important;
        height: 4px !important;
        border-radius: 2px !important;
    }
}

/* Hamburger Menu - Only shown on mobile screens */
@media (max-width: 1024px) {
.hamburger {
display: flex !important;
flex-direction: column;
cursor: pointer;
gap: 4px;
padding: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
transition: all 0.3s ease;
background: var(--primary-color) !important;
border: 2px solid var(--primary-color) !important;
width: 36px !important;
height: 36px !important;
min-width: 36px !important;
min-height: 36px !important;
align-items: center;
justify-content: center;
z-index: 1004 !important;
-webkit-appearance: none;
appearance: none;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
position: relative !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
visibility: visible !important;
opacity: 1 !important;
pointer-events: auto !important;
order: 3 !important;
flex-shrink: 0 !important;
box-sizing: border-box;
margin-left: auto !important;
}

[dir="rtl"] .hamburger {
margin-left: 0 !important;
margin-right: auto !important;
}
}

/* Hide hamburger on tablet, laptop and PC screens */
@media (min-width: 1025px) {
    .hamburger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        transform: scale(0) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
}

[data-theme="dark"] .hamburger {
    background: #fbbf24;
    border: 1px solid #fbbf24;
}

.hamburger:hover {
    background: rgba(15, 20, 25, 0.8);
    transform: scale(1.05);
}

[data-theme="dark"] .hamburger:hover {
    background: #d4af37;
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger.active {
    background: #0f1419;
}

[data-theme="dark"] .hamburger.active {
    background: #fbbf24;
}

.hamburger.active .bar:nth-child(1) {
    -webkit-transform: translateY(8px) rotate(45deg);
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    -webkit-transform: translateY(-8px) rotate(-45deg);
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    order: 2;
    margin-left: auto;
    z-index: 1002;
}

[dir="rtl"] .nav-controls {
    margin-left: 0;
    margin-right: auto;
    order: 2;
}

.theme-toggle,
.lang-toggle {
    width: 32px;
    height: 32px;
    padding: 6px;
    font-size: 0.9rem;
    min-width: 32px;
    min-height: 32px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .lang-toggle {
    background: var(--bg-accent);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.theme-toggle:hover,
.lang-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: none;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .lang-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

/* Language Toggle Text */
.lang-toggle .lang-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 0 4rem;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        /* Arabic text sizing */
        [dir="rtl"] & {
            font-size: 2.3rem;
            margin-bottom: 1.3rem;
        }
    }

    .nav-logo h2 {
        font-size: 1.3rem;
        /* Arabic logo sizing */
        [dir="rtl"] & {
            font-size: 1.2rem;
        }
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        line-height: 1.4;
        /* Arabic subtitle sizing */
        [dir="rtl"] & {
            font-size: 1.1rem;
            margin-bottom: 1.8rem;
        }
    }

    .hero-buttons {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        min-width: 140px;
        padding: 14px 24px;
        font-size: 1rem;
        /* Arabic button sizing */
        [dir="rtl"] & {
            font-size: 0.95rem;
            padding: 12px 22px;
            min-width: 130px;
        }
    }

    .hero-content {
        max-width: 95%;
        padding: 1.5rem;
        margin: 0.5rem;
        /* Arabic content spacing */
        [dir="rtl"] & {
            padding: 1.3rem;
            margin: 0.3rem;
        }
    }

    .section-header {
        margin-bottom: 4rem;
        padding: 0 10px;
    }

    .section-header h2 {
        font-size: 2.25rem;
        line-height: 1.3;
        /* Arabic section header sizing */
        [dir="rtl"] & {
            font-size: 2.1rem;
            line-height: 1.4;
        }
    }

    .section-header p {
        font-size: 1.125rem;
        line-height: 1.5;
        /* Arabic section description sizing */
        [dir="rtl"] & {
            font-size: 1.1rem;
            line-height: 1.6;
        }
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .products-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .partners-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card {
        padding: 2rem;
        margin-bottom: 1rem;
        /* Arabic card padding */
        [dir="rtl"] & {
            padding: 1.8rem;
        }
    }

    .card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        /* Arabic card title sizing */
        [dir="rtl"] & {
            font-size: 1.2rem;
            margin-bottom: 0.9rem;
        }
    }

    .card p {
        font-size: 0.95rem;
        line-height: 1.6;
        /* Arabic card text sizing */
        [dir="rtl"] & {
            font-size: 0.9rem;
            line-height: 1.7;
        }
    }

    .about-content {
        gap: 2.5rem;
    }

    .about-text h3 {
        font-size: 1.75rem;
        /* Arabic about title sizing */
        [dir="rtl"] & {
            font-size: 1.65rem;
        }
    }

    .about-text p {
        font-size: 1.1rem;
        line-height: 1.7;
        /* Arabic about text sizing */
        [dir="rtl"] & {
            font-size: 1.05rem;
            line-height: 1.8;
        }
    }

    .contact-form {
        padding: 2rem;
        margin: 0 -10px;
        /* Arabic contact form sizing */
        [dir="rtl"] & {
            padding: 1.8rem;
            margin: 0 -8px;
        }
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
        padding: 14px 18px;
        /* Arabic form input sizing */
        [dir="rtl"] & {
            font-size: 0.95rem;
            padding: 12px 16px;
        }
    }

    .footer-content {
        justify-content: center;
    }

    .footer-main {
        max-width: 100%;
        padding: 0 1rem;
    }

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

    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        /* Arabic footer title sizing */
        [dir="rtl"] & {
            font-size: 1.2rem;
            margin-bottom: 0.9rem;
        }
    }

    .footer-section ul li a::before {
        display: none;
    }

    .footer-section ul li a:hover {
        transform: none !important;
    }

    .newsletter-input {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-input input {
        border-radius: 25px;
        text-align: center;
        font-size: 1rem;
        padding: 16px 20px;
        min-height: 48px;
    }

    .btn-newsletter {
        border-radius: 25px;
        align-self: center;
        width: fit-content;
        padding: 16px 32px;
        font-size: 1.1rem;
        min-height: 48px;
    }

    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .footer-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    /* Better mobile touch targets */
    .nav-link {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .theme-toggle,
    .lang-toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
    }

    /* Improve mobile form inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        min-height: 48px;
        font-size: 1rem;
    }

    /* iPhone 16 Pro specific touch targets (393px width) */
    @media (max-width: 414px) {
        .nav-link {
            min-height: 48px;
            padding: 0.875rem 1rem;
            font-size: 1rem;
        }

        .theme-toggle,
        .lang-toggle {
            min-width: 50px;
            min-height: 50px;
            padding: 14px;
        }

        .hamburger {
            min-width: 50px;
            min-height: 50px;
            padding: 14px;
        }

        .btn {
            min-height: 50px;
            padding: 16px 28px;
            font-size: 1.1rem;
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        textarea,
        select {
            min-height: 50px;
            font-size: 1.1rem;
            padding: 16px 20px;
        }
    }

    /* Better mobile spacing */
    section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* iPhone 16 Pro specific spacing adjustments (393px width) */
    @media (max-width: 414px) {
        section {
            padding: 60px 0;
        }

        .section-header {
            margin-bottom: 2.5rem;
            padding: 0 15px;
        }

        .section-header h2 {
            font-size: 2rem;
            line-height: 1.2;
        }

        .section-header p {
            font-size: 1rem;
            line-height: 1.5;
        }

        .container {
            padding: 0 15px;
        }

        /* Prevent horizontal overflow */
        * {
            max-width: 100%;
            box-sizing: border-box;
        }

        /* Fix any potential text overflow */
        h1, h2, h3, h4, h5, h6, p, span, div {
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 18px 28px;
        font-size: 1.2rem;
    }

    .hero-content {
        max-width: 95%;
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .nav-logo h2 {
        font-size: 1.3rem;
        margin-left: 0.5rem;
    }

    .logo-img {
        height: 80px;
    }

    .nav-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Show nav-controls on very small screens */
    .nav-controls {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.5rem;
        order: 2;
        margin-left: auto;
        align-items: center;
        flex-shrink: 0;
    }

    [dir="rtl"] .nav-controls {
        margin-left: 0;
        margin-right: auto;
    }

    .theme-toggle,
    .lang-toggle {
        width: 44px;
        height: 44px;
        padding: 10px;
        font-size: 1rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }

    /* Ensure consistent logo size for both light and dark modes on mobile */
    [data-theme="light"] .logo-img,
    [data-theme="dark"] .logo-img {
        height: 80px;
    }

    /* Ensure hamburger button is fully visible in dark mode */
    [data-theme="dark"] .hamburger {
        background: #0f1419 !important;
        border: 1px solid #0f1419 !important;
        border-color: #0f1419 !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 12px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1004 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        position: relative !important;
    }

    [data-theme="dark"] .hamburger .bar {
        background: #000000 !important;
        width: 32px !important;
        height: 4px !important;
        border-radius: 2px !important;
    }
    
    section {
        padding: 60px 0;
    }

    .card {
        padding: 1.5rem;
    }

    /* iPhone 16 Pro specific optimizations (393px width) */
    @media (max-width: 414px) {
        .card {
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .card h3 {
            font-size: 1.125rem;
            margin-bottom: 0.75rem;
        }

        .card p {
            font-size: 0.875rem;
            line-height: 1.5;
        }

        .card-image {
            height: 160px;
            margin-bottom: 1rem;
        }

        .card-video {
            height: 160px;
            margin-bottom: 1rem;
        }
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form button {
        margin: 0 auto;
        display: block;
    }

    .newsletter-input input {
        font-size: 0.85rem;
        padding: 10px 12px;
        /* Arabic newsletter input sizing */
        [dir="rtl"] & {
            font-size: 0.8rem;
            padding: 8px 10px;
        }
    }

    .btn-newsletter {
        font-size: 0.9rem;
        padding: 10px 25px;
        /* Arabic newsletter button sizing */
        [dir="rtl"] & {
            font-size: 0.85rem;
            padding: 8px 22px;
        }
    }

    /* Ensure consistent logo size for both light and dark modes on mobile */
    [data-theme="light"] .logo-img,
    [data-theme="dark"] .logo-img {
        height: 80px;
    }

    /* Ensure hamburger button is fully visible in dark mode */
    [data-theme="dark"] .hamburger {
        background: #fbbf24 !important;
        border: 2px solid #fbbf24 !important;
        border-color: #fbbf24 !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 12px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1004 !important;
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.6) !important;
        position: relative !important;
    }

    /* Mobile theme and language toggle colors */
    [data-theme="dark"] .theme-toggle,
    [data-theme="dark"] .lang-toggle {
        background: #fbbf24 !important;
        border-color: #fbbf24 !important;
        color: #000000 !important;
    }

    [data-theme="light"] .theme-toggle,
    [data-theme="light"] .lang-toggle {
        background: #0f1419 !important;
        border-color: #0f1419 !important;
        color: #ffffff !important;
    }

    [data-theme="dark"] .hamburger .bar {
        background: #ffffff !important;
        width: 32px !important;
        height: 4px !important;
        border-radius: 2px !important;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
        /* Arabic contact info sizing */
        [dir="rtl"] & {
            font-size: 0.8rem;
        }
    }
}

/* Removed mobile-specific dark mode background overrides to match desktop exactly */

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Staggered Animations */
.animate-hero-title {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: heroTitleSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.animate-hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: heroSubtitleSlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

.animate-hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: heroButtonsSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards;
}

.animate-hero-btn-1 {
    animation: heroBtnBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.6s forwards;
    transform: translateY(20px) scale(0.8);
}

.animate-hero-btn-2 {
    animation: heroBtnBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.6s forwards;
    transform: translateY(20px) scale(0.8);
}

.animate-hero-image {
    opacity: 0;
    transform: translateX(50px) scale(0.8);
    animation: heroImageSlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.8s forwards;
}

/* Keyframe Animations for Hero */
@keyframes heroTitleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroSubtitleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroButtonsSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBtnBounce {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroImageSlideIn {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}


/* Typing Effect */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-color);
    font-weight: 100;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes buttonPulse {
    0% {
        box-shadow: var(--shadow-lg);
        transform: scale(1);
    }
    50% {
        box-shadow: var(--shadow-lg), 0 0 25px rgba(251, 191, 36, 0.5), 0 0 50px rgba(96, 165, 250, 0.3);
        transform: scale(1.02);
    }
    100% {
        box-shadow: var(--shadow-lg);
        transform: scale(1);
    }
}

@keyframes buttonMicroBounce {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.05) rotate(-1deg);
    }
    50% {
        transform: scale(1.08) rotate(1deg);
    }
    75% {
        transform: scale(1.03) rotate(-0.5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.section-transition {
    position: relative;
    overflow: hidden;
}

.section-transition::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-color) 20%,
        var(--secondary-color) 40%,
        var(--accent-color) 60%,
        var(--primary-color) 80%,
        transparent 100%);
    animation: sectionGlow 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes sectionGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

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

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-glow {
    animation: glow 3s infinite;
}

.smooth-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smooth-hover:hover {
    transform: none;
    box-shadow: none;
    animation: none;
}

/* Theme Transition Overlay */
.theme-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.theme-transition.active {
    opacity: 1;
    visibility: visible;
}

[data-theme="dark"] .theme-transition {
    background: rgba(0, 0, 0, 0.8);
}

/* Enhanced Dark Mode Text Styles */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] p {
    color: var(--text-light) !important;
    line-height: 1.7;
}

[data-theme="dark"] .section-header h2 {
    color: var(--text-light) !important;
    animation: sectionTitleGlow 3s ease-in-out infinite;
}

[data-theme="dark"] .section-header p {
    color: #9ca3af !important;
}

[data-theme="dark"] .card h3 {
    color: #fbbf24 !important;
}

[data-theme="dark"] .card p {
    color: #9ca3af !important;
}

/* Force visibility for all sections and cards */
section {
    opacity: 1 !important;
    visibility: visible !important;
}

.card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

[data-theme="dark"] .section-header p {
    color: var(--text-secondary);
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Link Styles */
[data-theme="dark"] a {
    color: var(--accent-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* Dark Mode Stats Enhancement */
[data-theme="dark"] .stat h4 {
    color: var(--accent-color);
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

[data-theme="dark"] .stat p {
    color: var(--text-secondary);
}


.slide-up {
    animation: slideUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

.animate-in {
    animation: slideUpFade 0.6s ease-out forwards;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.info {
    border-left: 4px solid var(--primary-color);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.1rem;
}

.notification.success .notification-content i {
    color: #10b981;
}

.notification.error .notification-content i {
    color: #ef4444;
}

.notification.info .notification-content i {
    color: var(--primary-color);
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.partners-grid {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    position: relative;
}

.partners-grid::before,
.partners-grid::after {
    display: none;
}

.partners-scroll {
    display: flex;
    gap: 1rem;
    -webkit-animation: scrollPartners 30s linear infinite;
    animation: scrollPartners 30s linear infinite;
    will-change: transform;
}

/* Ensure scrolling animation works on mobile */
@media (max-width: 768px) {
    .partners-scroll {
        display: flex !important;
        animation: scrollPartners 30s linear infinite !important;
        gap: 1rem !important;
        will-change: transform !important;
    }
}

.partners-scroll:hover {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

.partner-card {
    background: transparent;
    border-radius: 0;
    padding: 0.5rem;
    text-align: center;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
    flex: 0 0 180px;
    opacity: 1;
    transform: none;
    animation: none;
    aspect-ratio: 1;
}

/* Mobile responsive fixes for partners - Horizontal scrolling like PC */
@media (max-width: 768px) {
.partners-grid {
    display: flex !important;
    gap: 1rem !important;
    overflow: hidden !important;
    position: relative;
    padding: 1rem 0;
    min-height: 200px;
    animation: none !important;
    will-change: transform !important;
}

.partners-scroll {
    display: flex;
    gap: 1rem;
    animation: scrollPartners 30s linear infinite !important;
    will-change: transform;
}

.partners-scroll:hover {
    animation-play-state: paused;
}

.partners-track {
    animation: none !important;
    width: auto !important;
}

    .partner-card {
        flex: 0 0 120px;
        min-width: 120px;
        max-width: 120px;
        margin: 0;
        background: transparent;
        border-radius: 0;
        padding: 0.5rem;
        text-align: center;
        box-shadow: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        position: relative;
        overflow: hidden;
        z-index: 1;
        aspect-ratio: 1;
    }

    [data-theme="dark"] .partner-card {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .partner-card:hover {
        transform: none;
    }

    [data-theme="dark"] .partner-card:hover {
        border-color: var(--accent-color);
    }

    .partner-logo {
        width: 120px;
        height: 120px;
        background: transparent;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        flex-shrink: 0;
    }

    .partner-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 0;
        transition: transform 0.3s ease;
    }

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

@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 1.25rem;
    }

    .partner-card {
        flex: none;
        min-width: auto;
        max-width: none;
        margin: 0;
        background: transparent;
        border-radius: 0;
        padding: 0;
        text-align: center;
        box-shadow: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        position: relative;
        overflow: hidden;
        z-index: 1;
        aspect-ratio: 1;
    }

    .partner-logo {
        width: 100%;
        height: 100%;
        max-width: 110px;
        max-height: 110px;
        background: transparent;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        flex-shrink: 0;
    }

    .partners-scroll {
        display: flex;
        gap: 1rem;
        animation: scrollPartners 30s linear infinite;
        will-change: transform;
    }

    .partners-track {
        display: flex;
        gap: 0;
        animation: scrollPartners 30s linear infinite;
        width: calc(120px * 48);
        will-change: transform;
    }
}

@media (max-width: 360px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 1rem;
    }

    .partner-card {
        flex: none;
        min-width: auto;
        max-width: none;
        margin: 0;
        background: transparent;
        border-radius: 0;
        padding: 0;
        text-align: center;
        box-shadow: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        position: relative;
        overflow: hidden;
        z-index: 1;
        aspect-ratio: 1;
    }

    .partner-logo {
        width: 100%;
        height: 100%;
        max-width: 90px;
        max-height: 90px;
        background: transparent;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        flex-shrink: 0;
    }

    .partners-scroll {
        display: contents;
        animation: none;
        gap: 0;
    }

    .partners-track {
        width: auto;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: var(--text-secondary);
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: loadingShimmer 2s ease-in-out infinite;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.spinner::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(212, 175, 55, 0.1) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.skeleton-card {
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 250px;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 60%;
}

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

/* Content Reveal Animation */
.content-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: contentReveal 0.6s ease-out forwards;
}

@keyframes contentReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotateX(10deg);
    }
    50% {
        opacity: 0.7;
        transform: translateY(25px) scale(0.95) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Section revealed state */
.section-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.card-animated {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Morphing Shapes and Geometric Animations */
.morphing-shape {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.3), rgba(139, 69, 19, 0.4));
    animation: morphShape 8s ease-in-out infinite;
    border-radius: 50% 20% 50% 20%;
    z-index: 1;
}

.morphing-shape:nth-child(2) {
    animation-delay: 2s;
    animation-duration: 10s;
}

.morphing-shape:nth-child(3) {
    animation-delay: 4s;
    animation-duration: 12s;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 50% 20% 50% 20%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 20% 50% 20% 50%;
        transform: rotate(90deg) scale(1.2);
    }
    50% {
        border-radius: 50% 50% 20% 20%;
        transform: rotate(180deg) scale(0.8);
    }
    75% {
        border-radius: 20% 20% 50% 50%;
        transform: rotate(270deg) scale(1.1);
    }
}


/* SVG Morphing Animations - Removed unsupported 'd' path animation for Safari compatibility */

/* Liquid Morphing Effect */
.liquid-morph {
    position: relative;
    overflow: hidden;
}

.liquid-morph::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(212, 175, 55, 0.2) 0%,
        rgba(139, 69, 19, 0.3) 50%,
        rgba(255, 215, 0, 0.2) 100%);
    /* animation: liquidFlow 8s ease-in-out infinite; */
    border-radius: 50% 30% 70% 20% / 30% 70% 20% 50%;
    z-index: 1;
    display: none; /* Hidden as requested */
}

@keyframes liquidFlow {
    0%, 100% {
        border-radius: 50% 30% 70% 20% / 30% 70% 20% 50%;
        transform: scale(1) rotate(0deg);
    }
    25% {
        border-radius: 70% 20% 50% 30% / 20% 50% 30% 70%;
        transform: scale(1.1) rotate(90deg);
    }
    50% {
        border-radius: 30% 70% 20% 50% / 70% 20% 50% 30%;
        transform: scale(0.9) rotate(180deg);
    }
    75% {
        border-radius: 20% 50% 30% 70% / 50% 30% 70% 20%;
        transform: scale(1.05) rotate(270deg);
    }
}


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Magnetic Hover Effects */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic:hover {
    transform: none;
}

/* Advanced Hover Effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: none;
    box-shadow: none;
    animation: none;
}

.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.hover-glow:hover::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.hover-glow:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.3), 0 0 80px rgba(96, 165, 250, 0.2);
    animation: hoverGlowPulse 1.5s ease-in-out infinite;
}

/* Micro-interactions */
.pulse-on-hover {
    animation: none;
}

.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}

.bounce-on-hover {
    transition: transform 0.3s ease;
}

.bounce-on-hover:hover {
    animation: bounce 0.6s ease, bounceGlow 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-12px) scale(1.05);
    }
    60% {
        transform: translateY(-6px) scale(1.02);
    }
}

@keyframes bounceGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Performance optimizations for animations */
section::before,
section::after,
.hero::before,
.hero::after,
.about::before,
.products::before,
.services::before,
.partners::before,
.videos::before,
.contact::before,
.location::before {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    section::before,
    section::after,
    .hero::before,
    .hero::after,
    .about::before,
    .products::before,
    .services::before,
    /* Keep partners animation for accessibility */
    .videos::before,
    .contact::before,
    .location::before {
        animation: none;
    }

    section {
        transition: none;
    }

    .animate-fade-in-up,
    .animate-pulse,
    .animate-glow {
        animation: none;
    }

    /* Keep partners scrolling animation even with reduced motion */
    .partners-scroll {
        -webkit-animation: scrollPartners 8s linear infinite !important;
        animation: scrollPartners 8s linear infinite !important;
    }
}

/* Enhanced Section Transitions with Scroll Animations */
section {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    /* Removed animation to prevent unexpected movement */
    /* animation: sectionFadeInUp 1s ease-out forwards; */
}

/* Removed animation delays to prevent staggered movement */
/* section:nth-child(1) { animation-delay: 0.1s; } */
/* section:nth-child(2) { animation-delay: 0.3s; } */
/* section:nth-child(3) { animation-delay: 0.5s; } */
/* section:nth-child(4) { animation-delay: 0.7s; } */
/* section:nth-child(5) { animation-delay: 0.9s; } */
/* section:nth-child(6) { animation-delay: 1.1s; } */
/* section:nth-child(7) { animation-delay: 1.3s; } */
/* section:nth-child(8) { animation-delay: 1.5s; } */

section:hover {
    transform: none;
    box-shadow: none;
}

@keyframes sectionFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Parallax-like background effects */
section {
    background-attachment: local;
}

[data-theme="dark"] section {
    background-attachment: local;
}

/* Ensure proper layering for animated backgrounds */
section > * {
    position: relative;
    z-index: 2;
}

section::before,
section::after {
    z-index: 1;
}

/* Parallax-like background effects */
.hero {
    background-attachment: fixed;
}

.about {
    background-attachment: local;
}

/* Smooth gradient transitions between sections */
section + section {
    position: relative;
}

section + section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #fbbf24;
    opacity: 1;
    animation: smoothYellowLine 3s ease-in-out infinite;
}

.partners + .videos::before {
    background: #fbbf24;
    height: 3px;
    box-shadow: none;
}

[data-theme="light"] section + .partners::before {
    top: -40px !important;
}

[data-theme="light"] .partners::before {
    display: none;
}

@keyframes smoothYellowLine {
    0%, 100% {
        opacity: 0.7;
        transform: scaleX(0.95);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.05);
    }
}

[data-theme="dark"] section + section::before {
    background: #fbbf24;
    height: 3px;
    box-shadow: none;
    animation: none;
}

[data-theme="dark"] .partners + .videos::before {
    background: #fbbf24;
    height: 3px;
    box-shadow: none;
    animation: none;
}


/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

[data-theme="dark"] *:focus {
    outline: none;
    box-shadow: none;
}

[data-theme="dark"] button:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] a:focus {
    outline: none;
    box-shadow: none;
}

/* Dark Mode Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Cross-browser Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px; /* Webkit browsers (Chrome, Safari, Edge) */
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Dark Mode Selection */
[data-theme="dark"] ::selection {
    background: rgba(255, 215, 0, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] ::-moz-selection {
    background: rgba(255, 215, 0, 0.3);
    color: var(--text-primary);
}

/* Feedback Notification Styles */
.feedback-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color, #28a745);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    max-width: 350px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

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

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

@keyframes gradientPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

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

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

@keyframes floatingParticles {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 75% 25%, 25% 75%;
        opacity: 0.3;
    }
    25% {
        background-position: 10% 10%, 90% 90%, 60% 60%, 85% 35%, 35% 85%;
        opacity: 0.6;
    }
    50% {
        background-position: 20% 20%, 80% 80%, 70% 70%, 95% 45%, 45% 95%;
        opacity: 0.4;
    }
    75% {
        background-position: 10% 10%, 90% 90%, 60% 60%, 85% 35%, 35% 85%;
        opacity: 0.7;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-15px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 0.7;
    }
}

@keyframes waveAnimation {
    0% {
        transform: translateX(-100%) translateZ(0);
    }
    100% {
        transform: translateX(100%) translateZ(0);
    }
}

@keyframes geometricRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: var(--shadow);
    }
    50% {
        transform: scale(1.08);
        box-shadow: var(--shadow-lg), 0 0 20px rgba(251, 191, 36, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--shadow);
    }
}

@keyframes smoothHoverFloat {
    0%, 100% {
        transform: translateY(-8px) scale(1.02);
    }
    50% {
        transform: translateY(-12px) scale(1.04);
    }
}

@keyframes hoverLiftPulse {
    0%, 100% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 30px rgba(251, 191, 36, 0.15);
    }
    50% {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(251, 191, 36, 0.25);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 8px var(--accent-color), 0 0 16px rgba(96, 165, 250, 0.3);
    }
    33% {
        box-shadow: 0 0 25px var(--accent-color), 0 0 40px rgba(96, 165, 250, 0.5), 0 0 60px var(--accent-color);
    }
    66% {
        box-shadow: 0 0 15px var(--accent-color), 0 0 30px rgba(96, 165, 250, 0.4), 0 0 45px var(--accent-color);
    }
    100% {
        box-shadow: 0 0 8px var(--accent-color), 0 0 16px rgba(96, 165, 250, 0.3);
    }
}

@keyframes navLinkGlow {
    0% {
        text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
    }
    50% {
        text-shadow: 0 0 16px rgba(251, 191, 36, 0.6), 0 0 24px rgba(96, 165, 250, 0.4);
    }
    100% {
        text-shadow: 0 0 12px rgba(251, 191, 36, 0.4), 0 0 24px rgba(96, 165, 250, 0.2);
    }
}

@keyframes scrollPartners {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

/* Responsive animation speeds */
@media (min-width: 1025px) {
    .partners-scroll {
        animation: scrollPartners 25s linear infinite;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .partners-scroll {
        animation: scrollPartners 35s linear infinite;
    }
}

@media (max-width: 768px) {
    .partners-scroll {
        animation: scrollPartners 45s linear infinite;
    }
}

@keyframes footerShimmer {
    0%, 100% {
        opacity: 0.2;
        transform: translateX(-100%);
    }
    50% {
        opacity: 0.4;
        transform: translateX(100%);
    }
}

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

@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) scale(0.95);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-25px) translateX(5px) scale(1.02);
        opacity: 0.85;
    }
}

@keyframes shimmerMove {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateX(0%) translateY(-50%) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateX(100%) translateY(0%) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateX(0%) translateY(50%) rotate(270deg);
        opacity: 0.7;
    }
}

@keyframes morphingBackground {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 0%;
        filter: hue-rotate(0deg) brightness(1);
    }
    25% {
        background-position: 10% 10%, 90% 90%, 60% 60%, 25% 25%;
        filter: hue-rotate(15deg) brightness(1.1);
    }
    50% {
        background-position: 20% 20%, 80% 80%, 70% 70%, 50% 50%;
        filter: hue-rotate(30deg) brightness(0.9);
    }
    75% {
        background-position: 10% 10%, 90% 90%, 60% 60%, 75% 75%;
        filter: hue-rotate(15deg) brightness(1.05);
    }
}

@keyframes shimmerLine {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.4);
    }
}

/* New Elegant Gradient Animations */
@keyframes subtleGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes darkSectionMajesticFlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(0.75) contrast(1.15) saturate(0.9);
    }
    14.29% {
        background-position: 20% 20%;
        filter: brightness(0.88) contrast(1.08) saturate(1.1);
    }
    28.57% {
        background-position: 40% 80%;
        filter: brightness(0.8) contrast(1.12) saturate(0.95);
    }
    42.86% {
        background-position: 60% 30%;
        filter: brightness(0.92) contrast(1.06) saturate(1.05);
    }
    57.14% {
        background-position: 80% 70%;
        filter: brightness(0.83) contrast(1.11) saturate(0.98);
    }
    71.43% {
        background-position: 15% 40%;
        filter: brightness(0.87) contrast(1.09) saturate(1.02);
    }
    85.71% {
        background-position: 35% 90%;
        filter: brightness(0.85) contrast(1.1) saturate(0.97);
    }
}

@keyframes darkFooterMajesticFlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(0.7) contrast(1.2) saturate(0.85);
    }
    16.67% {
        background-position: 25% 15%;
        filter: brightness(0.85) contrast(1.1) saturate(1.15);
    }
    33.33% {
        background-position: 50% 85%;
        filter: brightness(0.75) contrast(1.18) saturate(0.9);
    }
    50% {
        background-position: 75% 25%;
        filter: brightness(0.9) contrast(1.08) saturate(1.1);
    }
    66.67% {
        background-position: 10% 75%;
        filter: brightness(0.78) contrast(1.15) saturate(0.95);
    }
    83.33% {
        background-position: 85% 35%;
        filter: brightness(0.87) contrast(1.12) saturate(1.05);
    }
}

@keyframes darkFooterShimmer {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-100%) translateY(-50%) rotate(0deg);
    }
    25% {
        opacity: 0.6;
        transform: translateX(0%) translateY(0%) rotate(90deg);
    }
    50% {
        opacity: 0.4;
        transform: translateX(100%) translateY(50%) rotate(180deg);
    }
    75% {
        opacity: 0.7;
        transform: translateX(0%) translateY(-25%) rotate(270deg);
    }
}

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

@keyframes darkAboutFlow {
    0%, 100% {
        background-position: 0% 0%;
    }
    20% {
        background-position: 30% 70%;
    }
    40% {
        background-position: 60% 30%;
    }
    60% {
        background-position: 90% 80%;
    }
    80% {
        background-position: 20% 20%;
    }
}

@keyframes darkAboutMajesticFlow {
    0%, 100% {
        background-position: 0% 0%;
        filter: brightness(0.78) contrast(1.15) saturate(0.92);
    }
    16.67% {
        background-position: 20% 80%;
        filter: brightness(0.88) contrast(1.08) saturate(1.08);
    }
    33.33% {
        background-position: 40% 20%;
        filter: brightness(0.82) contrast(1.12) saturate(0.95);
    }
    50% {
        background-position: 60% 60%;
        filter: brightness(0.9) contrast(1.06) saturate(1.05);
    }
    66.67% {
        background-position: 80% 40%;
        filter: brightness(0.85) contrast(1.1) saturate(0.98);
    }
    83.33% {
        background-position: 10% 90%;
        filter: brightness(0.87) contrast(1.09) saturate(1.02);
    }
}

@keyframes darkProductsFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    14.29% {
        background-position: 35% 15%;
    }
    28.57% {
        background-position: 70% 85%;
    }
    42.86% {
        background-position: 15% 35%;
    }
    57.14% {
        background-position: 85% 65%;
    }
    71.43% {
        background-position: 50% 20%;
    }
    85.71% {
        background-position: 20% 80%;
    }
}

@keyframes darkProductsMajesticFlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(0.8) contrast(1.15) saturate(0.92);
    }
    12.5% {
        background-position: 30% 10%;
        filter: brightness(0.88) contrast(1.08) saturate(1.08);
    }
    25% {
        background-position: 60% 90%;
        filter: brightness(0.82) contrast(1.12) saturate(0.95);
    }
    37.5% {
        background-position: 10% 40%;
        filter: brightness(0.9) contrast(1.05) saturate(1.05);
    }
    50% {
        background-position: 80% 60%;
        filter: brightness(0.85) contrast(1.1) saturate(0.98);
    }
    62.5% {
        background-position: 45% 15%;
        filter: brightness(0.87) contrast(1.07) saturate(1.02);
    }
    75% {
        background-position: 15% 85%;
        filter: brightness(0.83) contrast(1.11) saturate(0.97);
    }
    87.5% {
        background-position: 75% 35%;
        filter: brightness(0.89) contrast(1.06) saturate(1.01);
    }
}

@keyframes darkServicesFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 40% 10%;
    }
    50% {
        background-position: 80% 90%;
    }
    75% {
        background-position: 20% 30%;
    }
}

@keyframes darkServicesMajesticFlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(0.81) contrast(1.14) saturate(0.94);
    }
    12.5% {
        background-position: 30% 10%;
        filter: brightness(0.89) contrast(1.07) saturate(1.06);
    }
    25% {
        background-position: 60% 90%;
        filter: brightness(0.84) contrast(1.11) saturate(0.97);
    }
    37.5% {
        background-position: 10% 40%;
        filter: brightness(0.87) contrast(1.09) saturate(1.03);
    }
    50% {
        background-position: 80% 60%;
        filter: brightness(0.83) contrast(1.12) saturate(0.96);
    }
    62.5% {
        background-position: 45% 15%;
        filter: brightness(0.86) contrast(1.08) saturate(1.01);
    }
    75% {
        background-position: 15% 85%;
        filter: brightness(0.82) contrast(1.13) saturate(0.95);
    }
    87.5% {
        background-position: 75% 35%;
        filter: brightness(0.88) contrast(1.06) saturate(1.02);
    }
}

@keyframes darkContactFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    12.5% {
        background-position: 28% 20%;
    }
    25% {
        background-position: 56% 80%;
    }
    37.5% {
        background-position: 84% 40%;
    }
    50% {
        background-position: 12% 60%;
    }
    62.5% {
        background-position: 40% 10%;
    }
    75% {
        background-position: 68% 90%;
    }
    87.5% {
        background-position: 96% 30%;
    }
}

@keyframes darkContactMajesticFlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(0.77) contrast(1.19) saturate(0.88);
    }
    11% {
        background-position: 25% 15%;
        filter: brightness(0.85) contrast(1.1) saturate(1.12);
    }
    22% {
        background-position: 50% 85%;
        filter: brightness(0.79) contrast(1.16) saturate(0.91);
    }
    33% {
        background-position: 75% 25%;
        filter: brightness(0.87) contrast(1.08) saturate(1.09);
    }
    44% {
        background-position: 10% 75%;
        filter: brightness(0.81) contrast(1.14) saturate(0.94);
    }
    55% {
        background-position: 85% 35%;
        filter: brightness(0.84) contrast(1.11) saturate(1.06);
    }
    66% {
        background-position: 35% 65%;
        filter: brightness(0.8) contrast(1.15) saturate(0.92);
    }
    77% {
        background-position: 60% 15%;
        filter: brightness(0.86) contrast(1.09) saturate(1.04);
    }
    88% {
        background-position: 90% 85%;
        filter: brightness(0.82) contrast(1.13) saturate(0.96);
    }
}

@keyframes darkPartnersFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    11.11% {
        background-position: 22% 15%;
    }
    22.22% {
        background-position: 44% 85%;
    }
    33.33% {
        background-position: 66% 25%;
    }
    44.44% {
        background-position: 88% 75%;
    }
    55.56% {
        background-position: 10% 35%;
    }
    66.67% {
        background-position: 32% 65%;
    }
    77.78% {
        background-position: 54% 15%;
    }
    88.89% {
        background-position: 76% 85%;
    }
}

@keyframes darkPartnersMajesticFlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(0.79) contrast(1.16) saturate(0.91);
    }
    11.11% {
        background-position: 22% 15%;
        filter: brightness(0.87) contrast(1.08) saturate(1.09);
    }
    22.22% {
        background-position: 44% 85%;
        filter: brightness(0.81) contrast(1.13) saturate(0.94);
    }
    33.33% {
        background-position: 66% 25%;
        filter: brightness(0.89) contrast(1.06) saturate(1.06);
    }
    44.44% {
        background-position: 88% 75%;
        filter: brightness(0.83) contrast(1.11) saturate(0.96);
    }
    55.56% {
        background-position: 10% 35%;
        filter: brightness(0.86) contrast(1.09) saturate(1.03);
    }
    66.67% {
        background-position: 32% 65%;
        filter: brightness(0.82) contrast(1.12) saturate(0.95);
    }
    77.78% {
        background-position: 54% 15%;
        filter: brightness(0.88) contrast(1.07) saturate(1.04);
    }
    88.89% {
        background-position: 76% 85%;
        filter: brightness(0.84) contrast(1.1) saturate(0.97);
    }
}

@keyframes elegantGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    33% {
        background-position: 100% 0%;
    }
    66% {
        background-position: 0% 100%;
    }
}

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

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

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

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

@keyframes darkGentleFlow {
    0%, 100% {
        background-position: 0% 0%;
    }
    30% {
        background-position: 40% 60%;
    }
    60% {
        background-position: 80% 20%;
    }
}

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

@keyframes darkLocationFlow {
    0%, 100% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 60% 40%;
    }
    50% {
        background-position: 30% 80%;
    }
    75% {
        background-position: 90% 10%;
    }
}

@keyframes darkLocationMajesticFlow {
    0%, 100% {
        background-position: 0% 0%;
        filter: brightness(0.76) contrast(1.2) saturate(0.87);
    }
    16.67% {
        background-position: 40% 60%;
        filter: brightness(0.84) contrast(1.11) saturate(1.13);
    }
    33.33% {
        background-position: 80% 20%;
        filter: brightness(0.78) contrast(1.17) saturate(0.9);
    }
    50% {
        background-position: 20% 80%;
        filter: brightness(0.86) contrast(1.09) saturate(1.1);
    }
    66.67% {
        background-position: 60% 40%;
        filter: brightness(0.8) contrast(1.15) saturate(0.93);
    }
    83.33% {
        background-position: 90% 10%;
        filter: brightness(0.82) contrast(1.13) saturate(0.95);
    }
}

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

@keyframes darkVideosFlow {
    0%, 100% {
        background-position: 0% 0%;
    }
    15% {
        background-position: 30% 70%;
    }
    30% {
        background-position: 70% 30%;
    }
    45% {
        background-position: 20% 80%;
    }
    60% {
        background-position: 80% 20%;
    }
    75% {
        background-position: 40% 90%;
    }
    90% {
        background-position: 90% 40%;
    }
}

@keyframes darkVideosMajesticFlow {
    0%, 100% {
        background-position: 0% 0%;
        filter: brightness(0.78) contrast(1.18) saturate(0.89);
    }
    13% {
        background-position: 25% 75%;
        filter: brightness(0.86) contrast(1.09) saturate(1.11);
    }
    26% {
        background-position: 50% 25%;
        filter: brightness(0.8) contrast(1.15) saturate(0.92);
    }
    39% {
        background-position: 75% 50%;
        filter: brightness(0.88) contrast(1.07) saturate(1.08);
    }
    52% {
        background-position: 15% 85%;
        filter: brightness(0.82) contrast(1.13) saturate(0.95);
    }
    65% {
        background-position: 85% 15%;
        filter: brightness(0.85) contrast(1.1) saturate(1.05);
    }
    78% {
        background-position: 35% 90%;
        filter: brightness(0.81) contrast(1.14) saturate(0.93);
    }
    91% {
        background-position: 95% 35%;
        filter: brightness(0.87) contrast(1.08) saturate(1.02);
    }
}

@keyframes morphFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        border-radius: 50% 20% 50% 20%;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
        border-radius: 20% 50% 20% 50%;
    }
    50% {
        transform: translateY(-15px) translateX(-25px) rotate(180deg) scale(0.9);
        border-radius: 50% 50% 20% 20%;
    }
    75% {
        transform: translateY(-40px) translateX(15px) rotate(270deg) scale(1.05);
        border-radius: 20% 20% 50% 50%;
    }
}

@keyframes geometricFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    }
    25% {
        transform: translateY(-25px) translateX(-15px) rotate(120deg) scale(1.2);
        clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    }
    50% {
        transform: translateY(-10px) translateX(20px) rotate(240deg) scale(0.8);
        clip-path: polygon(0% 25%, 50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%);
    }
    75% {
        transform: translateY(-35px) translateX(-10px) rotate(360deg) scale(1.1);
        clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    }
}

@keyframes particleFloat1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(15px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-10px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-25px) translateX(5px) scale(1.1);
        opacity: 0.7;
    }
}

@keyframes particleFloat2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translateY(15px) translateX(-20px) rotate(90deg) scale(1.3);
        opacity: 0.7;
    }
    50% {
        transform: translateY(5px) translateX(25px) rotate(180deg) scale(0.7);
        opacity: 0.3;
    }
    75% {
        transform: translateY(20px) translateX(-15px) rotate(270deg) scale(1.2);
        opacity: 0.6;
    }
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.85) rotateX(15deg) rotateY(-5deg);
    }
    30% {
        opacity: 0.6;
        transform: translateY(30px) scale(0.92) rotateX(8deg) rotateY(-2deg);
    }
    70% {
        opacity: 0.9;
        transform: translateY(8px) scale(0.98) rotateX(2deg) rotateY(1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg) rotateY(0deg);
    }
}

@keyframes cardHoverPulse {
    0%, 100% {
        box-shadow: var(--shadow-xl), 0 0 80px rgba(251, 191, 36, 0.3), 0 0 40px rgba(96, 165, 250, 0.2);
    }
    50% {
        box-shadow: var(--shadow-xl), 0 0 100px rgba(251, 191, 36, 0.4), 0 0 60px rgba(96, 165, 250, 0.3);
    }
}

@keyframes navbarGradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    }
    25% {
        background: linear-gradient(135deg, #0f0f0f 0%, #0a0a0a 30%, #1a1a1a 70%, #0f0f0f 100%);
    }
    50% {
        background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 40%, #0a0a0a 60%, #1a1a1a 100%);
    }
    75% {
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 20%, #0a0a0a 80%, #0f0f0f 100%);
    }
}

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

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

@keyframes darkHeroMajesticFlow {
    0%, 100% {
        background-position: 0% 0%;
    }
    15% {
        background-position: 30% 70%;
    }
    30% {
        background-position: 60% 30%;
    }
    45% {
        background-position: 20% 80%;
    }
    60% {
        background-position: 80% 20%;
    }
    75% {
        background-position: 40% 90%;
    }
    90% {
        background-position: 90% 40%;
    }
}

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

@keyframes heroLuxuryFlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(0.15) contrast(1.2) saturate(0.8);
    }
    25% {
        background-position: 25% 75%;
        filter: brightness(0.18) contrast(1.1) saturate(0.9);
    }
    50% {
        background-position: 75% 25%;
        filter: brightness(0.12) contrast(1.3) saturate(0.7);
    }
    75% {
        background-position: 50% 100%;
        filter: brightness(0.16) contrast(1.15) saturate(0.85);
    }
}

@keyframes luxuryTextShimmer {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1) saturate(1);
    }
    25% {
        background-position: 100% 0%;
        filter: brightness(1.1) saturate(1.2);
    }
    50% {
        background-position: 100% 100%;
        filter: brightness(0.95) saturate(0.9);
    }
    75% {
        background-position: 0% 100%;
        filter: brightness(1.05) saturate(1.1);
    }
}

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

@keyframes heroOverlayFloat {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% {
        opacity: 0.6;
        transform: translateY(-10px) translateX(15px) scale(1.05);
    }
    50% {
        opacity: 0.4;
        transform: translateY(-5px) translateX(-10px) scale(0.95);
    }
    75% {
        opacity: 0.7;
        transform: translateY(-15px) translateX(5px) scale(1.02);
    }
}

@keyframes darkHeroOverlayGlow {
    0%, 100% {
        opacity: 0.4;
        filter: brightness(1) hue-rotate(0deg);
    }
    25% {
        opacity: 0.7;
        filter: brightness(1.1) hue-rotate(5deg);
    }
    50% {
        opacity: 0.5;
        filter: brightness(0.9) hue-rotate(10deg);
    }
    75% {
        opacity: 0.8;
        filter: brightness(1.05) hue-rotate(5deg);
    }
}

@keyframes darkHeroMajesticFlow {
    0%, 100% {
        background-position: 0% 0%;
        filter: brightness(0.85) contrast(1.1) saturate(0.9);
    }
    15% {
        background-position: 30% 70%;
        filter: brightness(0.95) contrast(1.05) saturate(1.1);
    }
    30% {
        background-position: 60% 30%;
        filter: brightness(0.8) contrast(1.15) saturate(0.95);
    }
    45% {
        background-position: 20% 80%;
        filter: brightness(0.9) contrast(1.08) saturate(1.05);
    }
    60% {
        background-position: 80% 20%;
        filter: brightness(0.85) contrast(1.12) saturate(0.98);
    }
    75% {
        background-position: 40% 90%;
        filter: brightness(0.92) contrast(1.06) saturate(1.02);
    }
    90% {
        background-position: 90% 40%;
        filter: brightness(0.88) contrast(1.09) saturate(0.97);
    }
}

@keyframes heroTopGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

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

@keyframes darkModeGlow {
    0% {
        text-shadow:
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(212, 175, 55, 0.9),
            0 0 60px rgba(255, 215, 0, 0.7),
            0 0 80px rgba(212, 175, 55, 0.5),
            0 0 100px rgba(255, 215, 0, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow:
            0 0 25px rgba(255, 215, 0, 1),
            0 0 50px rgba(212, 175, 55, 1),
            0 0 75px rgba(255, 215, 0, 0.8),
            0 0 100px rgba(212, 175, 55, 0.6),
            0 0 125px rgba(255, 215, 0, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
    100% {
        text-shadow:
            0 0 30px rgba(255, 215, 0, 1.1),
            0 0 60px rgba(212, 175, 55, 1.1),
            0 0 90px rgba(255, 215, 0, 0.9),
            0 0 120px rgba(212, 175, 55, 0.7),
            0 0 150px rgba(255, 215, 0, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% {
        background-position: 100% 50%;
        filter: brightness(1.1);
    }
}

@keyframes navbarGlowPulse {
    0%, 100% {
        background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.02) 0%, transparent 50%);
    }
    33% {
        background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 70% 70%, rgba(139, 69, 19, 0.03) 0%, transparent 50%);
    }
    66% {
        background: radial-gradient(circle at 10% 70%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
                    radial-gradient(circle at 90% 30%, rgba(139, 69, 19, 0.025) 0%, transparent 50%);
    }
}

@keyframes lightNavbarSubtle {
    0%, 100% {
        background: rgba(255, 255, 255, 0.95);
    }
    50% {
        background: rgba(255, 255, 255, 0.97);
    }
}

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

/* Connection Status Indicator */
.connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.connection-status:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.connection-status i {
    font-size: 12px;
    color: #28a745;
    animation: pulse 2s infinite;
}

.connection-status.connected i {
    color: #28a745;
    animation: pulse 2s infinite;
}

.connection-status.disconnected i {
    color: #dc3545;
    animation: none;
}

.connection-status.connecting i {
    color: #ffc107;
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

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

@keyframes yellowGlowPulse {
    0% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), 0 0 40px rgba(251, 191, 36, 0.2);
        background-position: 0% 50%;
    }
    50% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.8), 0 0 60px rgba(251, 191, 36, 0.4);
        background-position: 100% 50%;
    }
    100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), 0 0 40px rgba(251, 191, 36, 0.2);
        background-position: 0% 50%;
    }
}

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

@keyframes darkWorkMajesticFlow {
    0%, 100% {
        background-position: 0% 0%;
        filter: brightness(0.8) contrast(1.17) saturate(0.9);
    }
    14.29% {
        background-position: 30% 70%;
        filter: brightness(0.88) contrast(1.09) saturate(1.1);
    }
    28.57% {
        background-position: 60% 30%;
        filter: brightness(0.82) contrast(1.14) saturate(0.93);
    }
    42.86% {
        background-position: 20% 80%;
        filter: brightness(0.86) contrast(1.11) saturate(1.07);
    }
    57.14% {
        background-position: 80% 20%;
        filter: brightness(0.84) contrast(1.12) saturate(0.95);
    }
    71.43% {
        background-position: 40% 90%;
        filter: brightness(0.87) contrast(1.1) saturate(1.03);
    }
    85.71% {
        background-position: 90% 40%;
        filter: brightness(0.83) contrast(1.13) saturate(0.96);
    }
}

/* Work Card Layout */
.work-card-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

[dir="rtl"] .work-card-text {
    order: 2;
}

[dir="rtl"] .work-card-image {
    order: 1;
}

.work-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.work-card-image {
    flex: 0 0 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-card-image img:hover {
    transform: scale(1.05);
}

/* Work Details Button */
.work-details-btn {
    margin-top: 0.5rem;
    width: auto;
    padding: 6px 12px;
    font-size: 0.85rem;
    min-height: 32px;
    transition: all 0.3s ease;
}

.work-details-btn:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

/* Responsive Work Cards */
@media (max-width: 768px) {
    .work-card-content {
        flex-direction: column;
        gap: 1rem;
    }

    .work-card-image {
        flex: none;
        width: 100%;
        height: 180px;
    }

    .work-card-text {
        gap: 0.75rem;
    }
}

/* Work Modal Styles */
.work-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.work-modal {
    background: var(--bg-primary);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.work-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.work-modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: default;
}

.work-modal-header h2:hover {
    color: var(--primary-color);
    transform: scale(1.02);
}

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

.work-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.work-modal-content {
    padding: 2rem;
}

.work-modal-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.work-modal-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.work-modal-details {
    text-align: left;
}

.work-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.work-description:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.work-clients {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.work-clients h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.work-clients h3:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.work-clients h3::before {
    content: '👥';
    font-size: 1.2em;
}

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

.client-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.client-list li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
    background: rgba(251, 191, 36, 0.05);
}

.client-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

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

.work-client {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    transition: all 0.3s ease;
}

.work-client:hover {
    color: var(--primary-color);
    transform: scale(1.02);
}

.work-client strong {
    color: var(--primary-color);
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Dark Mode for Modal */
[data-theme="dark"] .work-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid var(--border-light);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .work-modal {
        width: 95%;
        margin: 1rem;
    }

    .work-modal-header {
        padding: 1rem 1.5rem;
    }

    .work-modal-content {
        padding: 1.5rem;
    }

    .work-modal-header h2 {
        font-size: 1.25rem;
    }
}


/* Floating Theme Toggle for Mobile */
.floating-theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    cursor: pointer;
    display: none; /* Hidden by default, shown on mobile */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1001; /* Above navbar */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.floating-theme-toggle:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-theme-toggle:active {
    transform: scale(0.95);
}

[data-theme="dark"] .floating-theme-toggle {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

/* Show nav-controls on mobile, hide floating theme toggle */
@media (max-width: 768px) {
    .nav-controls {
        display: flex !important;
        gap: 0.75rem;
        align-items: center;
        order: 2;
        margin-left: auto;
        z-index: 1002;
        flex-shrink: 0;
    }

    [dir="rtl"] .nav-controls {
        justify-content: flex-end;
        margin-left: 0;
        margin-right: 0;
        order: 2;
    }

    .hamburger {
        order: 3;
        display: flex !important;
        z-index: 1002;
        flex-shrink: 0;
    }

    .floating-theme-toggle {
        display: none;
    }

    /* Ensure dark mode navbar styles apply on mobile */
    [data-theme="dark"] .navbar {
        background: linear-gradient(135deg, #000000 0%, #1a1a1a 30%, #000000 70%, #1a1a1a 100%) !important;
        border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    }

    [data-theme="dark"] .nav-menu {
        background: var(--bg-secondary);
        border-right: 3px solid var(--accent-color);
    }

    [data-theme="dark"] .hamburger {
        background: #fbbf24 !important;
        border-color: #fbbf24 !important;
    }

    [data-theme="dark"] .hamburger .bar {
        background: #000000 !important;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    min-width: 300px;
    border-left: 4px solid var(--primary-color);
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.success {
    border-left-color: #10b981;
}

.toast-notification.error {
    border-left-color: #ef4444;
}

.toast-notification.warning {
    border-left-color: #f59e0b;
}

.toast-notification.info {
    border-left-color: var(--primary-color);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-content i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-notification.success .toast-content i {
    color: #10b981;
}

.toast-notification.error .toast-content i {
    color: #ef4444;
}

.toast-notification.warning .toast-content i {
    color: #f59e0b;
}

.toast-notification.info .toast-content i {
    color: var(--primary-color);
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .toast-notification {
    background: var(--bg-secondary);
    border-color: var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .toast-message {
    color: var(--text-primary);
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .theme-toggle,
    .lang-toggle,
    .hamburger,
    .floating-theme-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        background: none;
        color: black;
    }

    .feedback-notification {
        display: none;
    }
}
/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--backdrop-blur);
    backdrop-filter: var(--backdrop-blur);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none; /* Hidden by default */
    padding: 0;
    margin: 0;
}

[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.bottom-nav-menu {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    width: 100%;
}

.bottom-nav-item {
    min-width: 0;
    text-align: center;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 1px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 40px;
    gap: 0px;
    position: relative;
}

.bottom-nav-link:hover,
.bottom-nav-link:active {
    color: var(--secondary-color);
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.4), 0 0 24px rgba(251, 191, 36, 0.2);
    animation: navLinkGlow 0.8s ease-out;
}

.bottom-nav-link i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 0px;
}

.bottom-nav-link .nav-text {
    font-size: 0.45rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bottom-nav-link:hover i,
.bottom-nav-link:active i {
    transform: scale(1.1);
}

[data-theme="dark"] .bottom-nav-link {
    color: var(--text-light);
}

[data-theme="dark"] .bottom-nav-link:hover,
[data-theme="dark"] .bottom-nav-link:active {
    color: var(--secondary-color);
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.4), 0 0 24px rgba(251, 191, 36, 0.2);
    animation: navLinkGlow 0.8s ease-out;
}

/* Show bottom navigation on mobile screens */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    /* Hide desktop navbar on mobile */
    .navbar {
        display: none;
    }

    /* Adjust body padding for bottom nav */
    body {
        padding-bottom: 50px;
    }

    /* Responsive grid for different screen sizes */
    .bottom-nav-menu {
        grid-template-columns: repeat(9, 1fr);
    }
}

/* Tablet responsive grid */
@media (max-width: 640px) {
    .bottom-nav-menu {
        grid-template-columns: repeat(9, 1fr);
        gap: 1px;
    }
}

/* Small mobile responsive grid */
@media (max-width: 480px) {
    .bottom-nav-menu {
        grid-template-columns: repeat(9, 1fr);
        gap: 0;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .bottom-nav-link {
        padding: 3px 1px;
        min-height: 38px;
        font-size: 0.48rem;
    }

    .bottom-nav-link i {
        font-size: 0.85rem;
    }

    .bottom-nav-link .nav-text {
        font-size: 0.42rem;
    }

    body {
        padding-bottom: 48px;
    }
}

@media (max-width: 360px) {
    .bottom-nav-link {
        padding: 2px 1px;
        min-height: 35px;
        font-size: 0.45rem;
    }

    .bottom-nav-link i {
        font-size: 0.8rem;
    }

    .bottom-nav-link .nav-text {
        font-size: 0.4rem;
    }

    body {
        padding-bottom: 45px;
    }
}

/* Mobile overrides to match PC backgrounds exactly */
@media (max-width: 768px) {
    /* Body background to match PC */
    body {
        background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(251, 191, 36, 0.02) 50%, var(--bg-primary) 100%);
    }
    [data-theme="dark"] body {
        background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(251, 191, 36, 0.03) 50%, var(--bg-primary) 100%);
    }
    /* Hero background to match PC */
    .hero {
        background: linear-gradient(135deg,
            #f3f4f6 0%,
            rgba(243, 244, 246, 0.9) 15%,
            rgba(251, 191, 36, 0.05) 30%,
            rgba(229, 231, 235, 0.8) 45%,
            rgba(243, 244, 246, 0.7) 60%,
            rgba(251, 191, 36, 0.03) 75%,
            #f3f4f6 100%);
    }
    [data-theme="dark"] .hero {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="light"] .hero {
        background: linear-gradient(135deg,
            #f8fafc 0%,
            #f1f5f9 15%,
            #e2e8f0 30%,
            #cbd5e1 45%,
            #f1f5f9 60%,
            #e2e8f0 75%,
            #cbd5e1 90%,
            #f8fafc 100%);
    }
    /* General section background to match PC */
    section {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="dark"] section {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="light"] section {
        background: linear-gradient(135deg,
            #f8fafc 0%,
            #f1f5f9 15%,
            #e2e8f0 30%,
            #cbd5e1 45%,
            #f1f5f9 60%,
            #e2e8f0 75%,
            #cbd5e1 90%,
            #f8fafc 100%);
    }
    /* About section background to match PC */
    .about {
        background: linear-gradient(135deg,
            rgba(15, 20, 25, 0.04) 0%,
            rgba(55, 65, 81, 0.06) 25%,
            rgba(15, 20, 25, 0.04) 50%,
            rgba(55, 65, 81, 0.06) 75%,
            rgba(15, 20, 25, 0.04) 100%);
    }
    [data-theme="dark"] .about {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="light"] .about {
        background: linear-gradient(135deg,
            #f8fafc 0%,
            #f1f5f9 15%,
            #e2e8f0 30%,
            #cbd5e1 45%,
            #f1f5f9 60%,
            #e2e8f0 75%,
            #cbd5e1 90%,
            #f8fafc 100%);
    }
    /* Products section background to match PC */
    .products {
        background: linear-gradient(135deg,
            rgba(15, 20, 25, 0.08) 0%,
            rgba(55, 65, 81, 0.06) 25%,
            rgba(15, 20, 25, 0.08) 50%,
            rgba(55, 65, 81, 0.06) 75%,
            rgba(15, 20, 25, 0.08) 100%);
    }
    [data-theme="dark"] .products {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="light"] .products {
        background: linear-gradient(135deg,
            #f8fafc 0%,
            #f1f5f9 15%,
            #e2e8f0 30%,
            #cbd5e1 45%,
            #f1f5f9 60%,
            #e2e8f0 75%,
            #cbd5e1 90%,
            #f8fafc 100%);
    }
    /* Services section background to match PC */
    .services {
        background: linear-gradient(135deg,
            rgba(55, 65, 81, 0.07) 0%,
            rgba(15, 20, 25, 0.05) 25%,
            rgba(55, 65, 81, 0.07) 50%,
            rgba(15, 20, 25, 0.05) 75%,
            rgba(55, 65, 81, 0.07) 100%);
    }
    [data-theme="dark"] .services {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="light"] .services {
        background: linear-gradient(135deg,
            #f8fafc 0%,
            #f1f5f9 15%,
            #e2e8f0 30%,
            #cbd5e1 45%,
            #f1f5f9 60%,
            #e2e8f0 75%,
            #cbd5e1 90%,
            #f8fafc 100%);
    }
    /* Partners section background to match PC */
    .partners {
        background: linear-gradient(135deg,
            rgba(139, 69, 19, 0.06) 0%,
            rgba(255, 215, 0, 0.04) 25%,
            rgba(212, 175, 55, 0.06) 50%,
            rgba(139, 69, 19, 0.04) 75%,
            var(--bg-primary) 100%);
    }
    [data-theme="dark"] .partners {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="light"] .partners {
        background: linear-gradient(135deg,
            #f8fafc 0%,
            #f1f5f9 15%,
            #e2e8f0 30%,
            #cbd5e1 45%,
            #f1f5f9 60%,
            #e2e8f0 75%,
            #cbd5e1 90%,
            #f8fafc 100%);
    }
    /* Videos section background to match PC */
    .videos {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="dark"] .videos {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="light"] .videos {
        background: linear-gradient(135deg,
            #f8fafc 0%,
            #f1f5f9 15%,
            #e2e8f0 30%,
            #cbd5e1 45%,
            #f1f5f9 60%,
            #e2e8f0 75%,
            #cbd5e1 90%,
            #f8fafc 100%);
    }
    /* Contact section background to match PC */
    .contact {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="dark"] .contact {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="light"] .contact {
        background: linear-gradient(135deg,
            #f8fafc 0%,
            #f1f5f9 15%,
            #e2e8f0 30%,
            #cbd5e1 45%,
            #f1f5f9 60%,
            #e2e8f0 75%,
            #cbd5e1 90%,
            #f8fafc 100%);
    }
    /* Location section background to match PC */
    .location {
        background: linear-gradient(135deg,
            rgba(15, 20, 25, 0.05) 0%,
            rgba(55, 65, 81, 0.07) 30%,
            rgba(15, 20, 25, 0.05) 50%,
            rgba(55, 65, 81, 0.07) 70%,
            rgba(15, 20, 25, 0.05) 100%);
    }
    [data-theme="dark"] .location {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
        background-size: 450% 450%;
        animation: darkLocationMajesticFlow 32s ease-in-out infinite;
        box-shadow: inset 0 0 45px rgba(251, 191, 36, 0.004), 0 0 23px rgba(251, 191, 36, 0.002);
    }
    [data-theme="light"] .location {
        background: linear-gradient(135deg,
            #f8fafc 0%,
            #f1f5f9 15%,
            #e2e8f0 30%,
            #cbd5e1 45%,
            #f1f5f9 60%,
            #e2e8f0 75%,
            #cbd5e1 90%,
            #f8fafc 100%);
    }
    /* Footer background to match PC */
    .footer {
        background: linear-gradient(135deg,
            rgba(15, 20, 25, 0.1) 0%,
            rgba(55, 65, 81, 0.15) 25%,
            rgba(15, 20, 25, 0.1) 50%,
            rgba(55, 65, 81, 0.15) 75%,
            rgba(15, 20, 25, 0.1) 100%);
    }
    [data-theme="dark"] .footer {
        background: linear-gradient(135deg,
            #0a0f14 0%,
            #0f1419 15%,
            #1a1a2e 30%,
            #16213e 45%,
            #0f1419 60%,
            #1a1a2e 75%,
            #16213e 90%,
            #0a0f14 100%);
    }
    [data-theme="light"] .footer {
        background: linear-gradient(135deg,
            #f8fafc 0%,
            #f1f5f9 15%,
            #e2e8f0 30%,
            #cbd5e1 45%,
            #f1f5f9 60%,
            #e2e8f0 75%,
            #cbd5e1 90%,
            #f8fafc 100%);
    }
}

/* Additional responsive fixes for all screen sizes */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .section-header p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
        line-height: 1.2;
    }

    .section-header p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .card {
        padding: 1.25rem;
    }

    .card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}