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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

:root {
    /* Primary Colors */
    --color-primary: #75C044;
    --color-primary-dark: #5A9B35;
    --color-secondary: #D3A10F;
    --color-secondary-light: #F1C40F;
    
    /* Background Colors */
    --bg-primary: #245485;
    --bg-primary-dark: #0F1722;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #2D2D2D;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --text-light: #808080;
    
    /* UI Colors */
    --border: #333333;
    --error: #FF4444;
    --success: #75C044;
    --warning: #D3A10F;
    --shadow: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #75C044 0%, #5A9B35 100%);
    --gradient-secondary: linear-gradient(135deg, #D3A10F 0%, #F1C40F 100%);
    --gradient-background: linear-gradient(135deg, rgba(36, 84, 133, 0.8) 0%, rgba(15, 23, 34, 0.9) 100%);
    --gradient-star: linear-gradient(135deg, #0A1628 0%, #1A3A5C 100%);
    
    /* Spacing System (8px Grid) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-soft: 0 4px 8px var(--shadow);
    --shadow-hard: 0 8px 16px var(--shadow);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Legacy compatibility */
    --primary-color: var(--bg-primary);
    --secondary-color: var(--bg-primary-dark);
    --accent-color: var(--color-secondary);
    --accent-green: var(--color-primary);
    --text-light: var(--text-primary);
    --text-dark: var(--bg-secondary);
    --bg-light: #f7fafc00;
    --bg-dark: var(--bg-primary-dark);
    --border-radius: var(--radius-medium);
}

body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: url('2DA1F55F-AD68-4A74-BB8B-4A6535F76509.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
}

body.rtl {
    font-family: 'Tajawal', 'Cairo', 'Amiri', Arial, sans-serif;
    direction: rtl;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 {
    font-family: 'Tajawal', 'Cairo', 'Amiri', Arial, sans-serif;
    font-weight: 600;
}

/* Typography Scale */
.hero-title {
    font-size: clamp(32px, 5vw, 64px) !important;
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(24px, 3vw, 40px) !important;
    font-weight: 600;
}

.department-title {
    font-size: clamp(20px, 2.5vw, 28px) !important;
    font-weight: 600;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
}

.body-text {
    font-size: 16px;
    font-weight: 400;
}

.caption {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
}

.small-text {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-light);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle - Bottom Right */
.language-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.rtl .language-toggle {
    right: auto;
    left: 20px;
}

.lang-btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    min-width: 80px;
    text-align: center;
}

.lang-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hard);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile language toggle positioning */
@media (max-width: 768px) {
    .language-toggle {
        bottom: 25px;
        right: 15px;
    }

    .rtl .language-toggle {
        right: auto;
        left: 15px;
    }

    .lang-btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 15px;
        min-width: 50px;
        font-weight: 500;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: var(--space-md) 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
    transition: all 0.3s ease;
    transform: scale(2.5);
    margin-right: 60px;
}

.rtl .nav-logo img {
    margin-right: 0;
    margin-left: 60px;
}

.nav-logo h2 {
    color: var(--color-secondary);
    font-size: 28px;
    margin: 0;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.rtl .nav-menu {
    direction: rtl;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-small);
}

.nav-menu a:hover {
    color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    color: var(--color-primary);
    background: rgba(117, 192, 68, 0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 0;
}


/* Particles.js container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Particles canvas should be above background but below content */
#particles-js canvas {
    z-index: 1 !important;
    pointer-events: none !important;
    position: absolute !important;
}


@keyframes backgroundMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-100px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.rtl .hero-content {
    direction: rtl;
}

.hero-text {
    animation: slideInFromLeft 1s ease-out;
}

.rtl .hero-text {
    animation: slideInFromRight 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-features {
    list-style: none;
    margin: 30px 0;
}

.hero-features li {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.rtl .hero-features li {
    padding-left: 0;
    padding-right: 30px;
}

.hero-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-size: 1.5rem;
    top: 5px;
}

.rtl .hero-features li::before {
    left: auto;
    right: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

/* Buttons following design system */
.btn {
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-small);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    min-height: 44px; /* Touch target minimum */
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard);
    filter: brightness(1.1);
}

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

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard);
    filter: brightness(1.1);
}

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

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--color-primary);
}

/* Hero App Showcase */
.hero-app {
    position: relative;
    animation: slideInFromRight 1s ease-out;
}

.rtl .hero-app {
    animation: slideInFromLeft 1s ease-out;
}

.app-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Redesigned App Cards - Side by Side Layout */
.app-cards-deck {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 600px;
}

.app-card {
    width: 160px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    position: relative;
    z-index: 1;
}

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

/* Individual card positioning */
.app-card.card-1 {
    transform: translateY(20px) scale(0.95);
}

.app-card.card-2 {
    transform: translateY(0px) scale(1.1);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.4);
    z-index: 2;
}

.app-card.card-3 {
    transform: translateY(20px) scale(0.95);
}

/* Hover effects */
.app-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(117, 192, 68, 0.3);
    border-color: rgba(117, 192, 68, 0.5);
    z-index: 3;
}

.app-card.card-2:hover {
    transform: translateY(-15px) scale(1.15);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(212, 175, 55, 0.4);
    border-color: rgba(212, 175, 55, 0.6);
}

.app-card:hover img {
    transform: scale(1.02);
}

/* QR Code Section - More Prominent */
.app-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.qr-code {
    width: 150px;
    height: 150px;
    padding: 20px;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(212, 175, 55, 0.4);
    transition: all 0.4s ease;
    position: relative;
    z-index: 4;
}

.qr-code:hover {
    transform: scale(1.08);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.7);
}

.qr-code::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(212, 175, 55, 0.8);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.qr-code:hover::before {
    opacity: 1;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: contrast(1.2);
}

.download-text {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 4;
}

/* Enhanced Live Button */
.btn-live {
    background: #ff4757;
    color: white;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 8px 25px rgba(255, 71, 87, 0.3),
        0 0 20px rgba(255, 56, 56, 0.2);
    animation: livePulse 2s ease-in-out infinite;
}

.btn-live:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(255, 71, 87, 0.4),
        0 0 30px rgba(255, 56, 56, 0.3);
    filter: brightness(1.1);
}

.btn-live .live-indicator {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: liveIndicator 1.5s ease-in-out infinite;
}

.btn-live i {
    font-size: 14px;
}

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

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

@keyframes livePulse {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(255, 71, 87, 0.3),
            0 0 20px rgba(255, 56, 56, 0.2);
    }
    50% {
        box-shadow: 
            0 8px 25px rgba(255, 71, 87, 0.5),
            0 0 30px rgba(255, 56, 56, 0.4);
    }
}

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

/* LIVE SECTION - CLEAN VERSION */

/* Live section container */
.live-section {
    padding: 80px 0;
    position: relative;
}

/* Live content layout */
.live-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Live Player Container - matches .live-player in HTML */
.live-player {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    transition: all 0.3s ease;
}

/* TV Frame Container - matches .tv-frame-container in HTML */
.tv-frame-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.tv-frame-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Video screen positioned inside PNG frame */
.video-screen {
    position: absolute;
    top: 4px;
    left: 3px;
    right: 4px;
    bottom: -16px;
    background: #000;
    overflow: hidden;
}

.video-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 10;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Video overlay for controls */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.video-screen:hover .video-overlay {
    opacity: 1;
}

/* Fullscreen button */
.fullscreen-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    z-index: 15;
}

.fullscreen-btn:hover {
    background: rgba(117, 192, 68, 0.8);
    border-color: rgba(117, 192, 68, 0.6);
    transform: scale(1.05);
}

/* Screen reflection - ensure it doesn't block video controls */
.screen-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 25%,
        transparent 75%,
        rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Live text content */
.live-text {
    color: white;
    padding: 40px;
}

.live-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #d4af37;
}

/* Fullscreen mode */
.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: #000 !important;
    border-radius: 0 !important;
}

.fullscreen-mode video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .live-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px;
    }

    .tv-frame-container {
        max-width: 100%;
        order: 1;
    }

    .live-text {
        order: 2;
        padding: 20px;
        text-align: center;
    }

    .live-title {
        font-size: 2rem;
    }

    .video-screen {
    top: 4px;
    left: 3px;
    right: 4px;
    bottom: -16px;
    }

    .fullscreen-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

.section-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 40px);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--space-sm));
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}


/* Services Section - Ultra Creative 3D Layout */
.services {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    perspective: 1500px;
    padding: 40px 0;
}

/* Dynamic Particle System Background */



.services .container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
}

.services-header {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    z-index: 3;
}

.services .section-title {
    color: var(--text-primary);
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.services .section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: var(--space-lg);
}

/* Diagonal Services Layout */
.services-diagonal-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 70vh;
}

/* Morphing Diagonal Split with Liquid Animation */
.services-diagonal-split {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

/* Animated Liquid Diagonal Line */
.services-diagonal-split::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: 
        linear-gradient(135deg, 
            rgba(36, 84, 133, 0.2) 0%, 
            rgba(36, 84, 133, 0.05) 30%,
            transparent 50%, 
            rgba(15, 23, 34, 0.05) 70%,
            rgba(15, 23, 34, 0.15) 100%
        );
    clip-path: polygon(0 0, 65% 0, 35% 100%, 0% 100%);
    animation: morphDiagonalLeft 8s ease-in-out infinite;
    filter: blur(1px);
}

.services-diagonal-split::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: 
        linear-gradient(225deg, 
            rgba(15, 23, 34, 0.18) 0%,
            rgba(15, 23, 34, 0.08) 30%, 
            transparent 50%, 
            rgba(36, 84, 133, 0.06) 70%,
            rgba(36, 84, 133, 0.12) 100%
        );
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 65% 100%);
    animation: morphDiagonalRight 8s ease-in-out infinite reverse;
    filter: blur(1px);
}

/* Central Flowing Line Animation */
.services-diagonal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 45%;
    width: 10%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(117, 192, 68, 0.3) 20%,
        rgba(212, 175, 55, 0.4) 50%,
        rgba(117, 192, 68, 0.3) 80%,
        transparent 100%
    );
    clip-path: polygon(20% 0%, 80% 0%, 60% 100%, 40% 100%);
    animation: liquidFlow 6s ease-in-out infinite;
    z-index: 2;
    filter: blur(2px);
}

@keyframes morphDiagonalLeft {
    0%, 100% { 
        clip-path: polygon(0 0, 65% 0, 35% 100%, 0% 100%);
        transform: translateX(0) scaleY(1);
    }
    25% { 
        clip-path: polygon(0 0, 70% 0, 40% 100%, 0% 100%);
        transform: translateX(5px) scaleY(1.02);
    }
    50% { 
        clip-path: polygon(0 0, 60% 0, 30% 100%, 0% 100%);
        transform: translateX(-3px) scaleY(0.98);
    }
    75% { 
        clip-path: polygon(0 0, 68% 0, 38% 100%, 0% 100%);
        transform: translateX(2px) scaleY(1.01);
    }
}

@keyframes morphDiagonalRight {
    0%, 100% { 
        clip-path: polygon(35% 0, 100% 0, 100% 100%, 65% 100%);
        transform: translateX(0) scaleY(1);
    }
    25% { 
        clip-path: polygon(30% 0, 100% 0, 100% 100%, 60% 100%);
        transform: translateX(-5px) scaleY(1.02);
    }
    50% { 
        clip-path: polygon(40% 0, 100% 0, 100% 100%, 70% 100%);
        transform: translateX(3px) scaleY(0.98);
    }
    75% { 
        clip-path: polygon(32% 0, 100% 0, 100% 100%, 62% 100%);
        transform: translateX(-2px) scaleY(1.01);
    }
}

@keyframes liquidFlow {
    0%, 100% {
        transform: translateY(0) scaleX(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-10px) scaleX(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(5px) scaleX(0.8);
        opacity: 1;
    }
    75% {
        transform: translateY(-5px) scaleX(1.1);
        opacity: 0.7;
    }
}

.services-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: var(--space-lg);
}

.services-side.left {
    padding-right: 10%;
}

.services-side.right {
    padding-left: 10%;
}

.department-title {
    font-size: clamp(20px, 2.5vw, 32px);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-xl);
    font-weight: 700;
    position: relative;
}

.department-title.tv-media::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.department-title.marketing::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.services-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: var(--space-md);
    width: 100%;
    max-width: 500px;
    height: 50vh;
}

/* Flowing Wave Service Cards */
.service-card {
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--space-md);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    transform-style: preserve-3d;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    border-radius: var(--radius-medium);
}

/* Left side - flowing waves going right */
.service-card.left-side {
    clip-path: polygon(
        0% 10%, 
        30% 0%, 
        70% 5%, 
        100% 0%, 
        100% 90%, 
        70% 100%, 
        30% 95%, 
        0% 100%
    );
    transform: perspective(800px) rotateY(2deg) rotateX(1deg);
}

/* Right side - flowing waves going left */
.service-card.right-side {
    clip-path: polygon(
        0% 0%, 
        30% 5%, 
        70% 0%, 
        100% 10%, 
        100% 100%, 
        70% 95%, 
        30% 100%, 
        0% 90%
    );
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
}

/* Animated wave morphing */
.service-card.left-side:hover {
    clip-path: polygon(
        0% 5%, 
        25% 0%, 
        75% 10%, 
        100% 5%, 
        100% 95%, 
        75% 90%, 
        25% 100%, 
        0% 95%
    );
}

.service-card.right-side:hover {
    clip-path: polygon(
        0% 5%, 
        25% 10%, 
        75% 0%, 
        100% 5%, 
        100% 95%, 
        75% 100%, 
        25% 90%, 
        0% 95%
    );
}

/* Magnetic Hover Effects */
.service-card:hover {
    transform: 
        perspective(800px) 
        rotateY(0deg) 
        rotateX(0deg) 
        translateY(-15px) 
        translateZ(20px) 
        scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(117, 192, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(117, 192, 68, 0.4);
}

.service-card.marketing-card:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Holographic Overlay Effects */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            transparent 30%, 
            rgba(117, 192, 68, 0.1) 40%,
            rgba(117, 192, 68, 0.2) 50%,
            rgba(117, 192, 68, 0.1) 60%,
            transparent 70%
        );
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateX(-100%);
}

.service-card.marketing-card::before {
    background: 
        linear-gradient(45deg, 
            transparent 30%, 
            rgba(212, 175, 55, 0.1) 40%,
            rgba(212, 175, 55, 0.25) 50%,
            rgba(212, 175, 55, 0.1) 60%,
            transparent 70%
        );
}

.service-card:hover::before {
    opacity: 1;
    transform: translateX(100%);
    animation: holographicSweep 1.5s ease-in-out;
}

/* Animated Holographic Light Sweep */
@keyframes holographicSweep {
    0% { transform: translateX(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) rotate(45deg); opacity: 0; }
}

/* Particle Trail Effect */
.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(117, 192, 68, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    pointer-events: none;
}

.service-card.marketing-card::after {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
}

.service-card:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(117, 192, 68, 0.3);
}

.service-card.marketing-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.service-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    height: 100%;
    justify-content: center;
}

/* 3D Floating Service Icons with Energy Effects */
.service-card .service-icon {
    font-size: 2rem;
    color: var(--color-primary);
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at 30% 30%, rgba(117, 192, 68, 0.25) 0%, rgba(117, 192, 68, 0.1) 70%);
    border: 2px solid rgba(117, 192, 68, 0.3);
    border-radius: var(--radius-round);
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(117, 192, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: var(--space-xs);
}

.service-card.marketing-card .service-icon {
    color: var(--color-secondary);
    background: 
        radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.1) 70%);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Icon Energy Ring Animation */
.service-card .service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: var(--radius-round);
    background: rgba(117, 192, 68, 0.4);
    background-clip: padding-box;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.service-card.marketing-card .service-icon::before {
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.6), transparent, rgba(212, 175, 55, 0.6));
}

.service-card:hover .service-icon {
    transform: 
        perspective(500px) 
        rotateX(15deg) 
        rotateY(15deg) 
        scale(1.2) 
        translateZ(20px);
    background: 
        radial-gradient(circle at 30% 30%, rgba(117, 192, 68, 0.4) 0%, rgba(117, 192, 68, 0.2) 70%);
    box-shadow: 
        0 0 40px rgba(117, 192, 68, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

.service-card.marketing-card:hover .service-icon {
    background: 
        radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.2) 70%);
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.service-card:hover .service-icon::before {
    opacity: 1;
    transform: scale(1.2);
    animation: energyRing 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: perspective(500px) rotateX(15deg) rotateY(15deg) scale(1.2) translateZ(20px); }
    50% { transform: perspective(500px) rotateX(15deg) rotateY(15deg) scale(1.25) translateZ(25px); }
}

@keyframes energyRing {
    0% { transform: scale(1.2) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.4) rotate(180deg); opacity: 0.7; }
    100% { transform: scale(1.2) rotate(360deg); opacity: 1; }
}

.service-text {
    flex: 1;
}

.service-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.service-card p {
    display: none; /* Hide descriptions for compact layout */
}

/* Why Choose Us Section within Services */
.why-choose-section {
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    z-index: 3;
    margin-top: 0;
}

/* Responsive Design for Services */
@media (max-width: 1024px) {
    .services-diagonal-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .services-diagonal-split {
        display: none;
    }
    
    .services-side {
        padding: var(--space-lg) var(--space-md);
    }
    
    .services-side.left,
    .services-side.right {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    .services-stack {
        max-width: 100%;
    }
    
    .service-card {
        clip-path: none;
        border-radius: var(--radius-medium);
    }
    
    .service-card.left-side,
    .service-card.right-side {
        clip-path: none;
    }
    
    .service-card.left-side .service-card-content {
        flex-direction: row;
        text-align: left;
    }
    
    .why-choose-section {
        position: relative;
        margin-top: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .services {
        min-height: auto;
        padding: var(--space-xl) 0;
    }
    
    .services-header {
        padding: var(--space-md);
    }
    
    .services .section-title {
        font-size: clamp(24px, 6vw, 32px);
    }
    
    .department-title {
        font-size: clamp(18px, 4vw, 24px);
        margin-bottom: var(--space-lg);
    }
    
    .service-card {
        padding: var(--space-md);
        margin: var(--space-xs) 0;
    }
    
    .service-card .service-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .service-card h4 {
        font-size: 16px;
    }
    
    .service-card p {
        font-size: 13px;
    }
}

.why-choose-section .department-title {
    color: var(--text-primary);
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: var(--space-md);
}

.why-choose-section .section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    font-size: 18px;
    margin-bottom: var(--space-2xl);
}

/* Why Choose Us Section (Standalone) */
.why-choose {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}


.why-choose .section-title {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 10px;
}

.why-choose .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 60px;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    z-index: 2;
    border-radius: 20px;
    margin: 40px 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    box-sizing: border-box;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    opacity: 0;
    transform: translateX(-100px);
}

/* Very Wide Cards */
.reason-card-wide {
    width: 95%;
    max-width: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 60px 200px;
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
    position: relative;
}

.reason-card-wide .reason-icon {
    width: 120px;
    height: 120px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reason-card-wide .reason-icon i {
    font-size: 3rem;
    color: var(--text-dark);
}

.reason-card-wide .reason-content {
    flex: 1;
}

.reason-card-wide h3 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.reason-card-wide p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 20px;
}

.carousel-nav:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.carousel-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #d4af37;
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: rgba(212, 175, 55, 0.7);
}

/* Progress Bar */
.carousel-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #d4af37;
    transition: width 0.1s linear;
    z-index: 10;
}

/* Badges styling */
.support-badge,
.innovation-badge,
.excellence-badge,
.luxury-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.innovation-badge {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.excellence-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.luxury-badge {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

/* Live Section Title Styling */
.live-section .section-title {
    color: var(--text-primary);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.live-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Live Section Layout */
.live-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}



/* Live Text Styling */
.live-text {
    padding: 20px 0;
    background: none;
    box-shadow: none;
    border: none;
    transition: none;
}

.live-text:hover {
    transform: none;
    box-shadow: none;
}

.live-title {
    color: var(--color-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.typing-section {
    text-align: center;
    position: relative;
}

.fixed-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.typing_text, .typing_text_en {
    display: inline-block;
    color: #d4af37;
    font-size: 2rem;
    font-weight: 600;
    min-height: 60px;
    position: relative;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.typing_text::after, .typing_text_en::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 0;
    width: 3px;
    height: 100%;
    background: #d4af37;
    animation: blink 1s infinite;
}

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

/* Live version carousel - smaller */
.carousel-container.live-version {
    height: 400px;
    margin: 0;
}

.carousel-container.live-version .reason-card-wide {
    padding: 40px 80px;
    gap: 40px;
}

.carousel-container.live-version .reason-card-wide .reason-icon {
    width: 80px;
    height: 80px;
}

.carousel-container.live-version .reason-card-wide .reason-icon i {
    font-size: 2rem;
}

.carousel-container.live-version .reason-card-wide h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.carousel-container.live-version .reason-card-wide p {
    font-size: 1.1rem;
}


.carousel-container.live-version {
    height: 350px;
}

.carousel-container.live-version .reason-card-wide {
    padding: 30px 60px;
    gap: 30px;
}


.reason-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition);
}

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

.reason-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.reason-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.reason-card:hover .reason-icon {
    transform: rotate(360deg) scale(1.1);
}

.reason-icon i {
    font-size: 2rem;
    color: var(--text-dark);
}

.reason-card h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.reason-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.support-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.rtl .support-badge {
    right: auto;
    left: 20px;
}

/* Global Presence Section */
.global-presence {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
}

.global-presence::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(45, 82, 130, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(212, 175, 55, 0.05) 0%, transparent 30%);
    animation: floatShapes 20s ease-in-out infinite alternate;
    z-index: 1;
}


.global-presence .container {
    position: relative;
    z-index: 2;
}

.global-presence .section-title {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.global-presence .section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #d4af37;
    margin: 20px auto;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.global-presence .section-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@keyframes floatShapes {
    0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-30px) scale(1.1) rotate(180deg); opacity: 1; }
    100% { transform: translateY(0) scale(1) rotate(360deg); opacity: 0.8; }
}

@keyframes starFloat {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(20px) translateY(-10px); }
    50% { transform: translateX(-10px) translateY(-20px); }
    75% { transform: translateX(-20px) translateY(10px); }
    100% { transform: translateX(0) translateY(0); }
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
    padding: 0 20px;
}

.country-card {
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.country-card::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.6s ease;
    z-index: 1;
}

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

.country-card:hover {
    transform: translateY(-15px) rotateY(5deg) rotateX(5deg);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.4),
        0 0 30px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border-color: rgba(212, 175, 55, 0.6);
}

.country-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="2" fill="rgba(212,175,55,0.1)"/></svg>');
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
}

.country-rank {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, #d4af37 0%, #f1c40f 50%, #d4af37 100%);
    color: #1a365d;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 
        0 4px 20px rgba(212, 175, 55, 0.4),
        inset 0 2px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.2);
    border: 3px solid rgba(255,255,255,0.2);
    z-index: 10;
    transition: all 0.3s ease;
    animation: rankPulse 3s ease-in-out infinite;
}

.country-rank:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 
        0 6px 30px rgba(212, 175, 55, 0.6),
        inset 0 2px 0 rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(0,0,0,0.3);
}

@keyframes rankPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6); }
}

.rtl .country-rank {
    right: auto;
    left: -15px;
}

.country-card h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.country-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    border-radius: 1px;
}

.country-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    font-size: 16px;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-weight: 400;
}

.country-icon {
    font-size: 2rem;
    margin: 20px 0;
    display: block;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.country-card:hover .country-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

/* Vision Mission Goals Section */
.vision-mission {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.vision-mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
    opacity: 0.7;
}

.vision-mission .container {
    position: relative;
    z-index: 2;
}

.vision-mission .section-title {
    color: var(--text-light);
}

.vision-mission .section-title::after {
    background: var(--gradient-accent);
}

.vmg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.vmg-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-lg);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--color-secondary);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.rtl .vmg-card {
    border-left: none;
    border-right: 5px solid var(--color-secondary);
}

.vmg-card:hover {
    box-shadow: var(--shadow-hard);
    transform: translateY(-5px);
}

.vmg-card h3 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.vmg-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
    font-size: 16px;
}

.vmg-card ul {
    list-style: none;
    padding: 0;
}

.vmg-card li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
}

.rtl .vmg-card li {
    padding-left: 0;
    padding-right: var(--space-lg);
}

.vmg-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.rtl .vmg-card li::before {
    content: '←';
    left: auto;
    right: 0;
}

/* Contact Section */
.contact {
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><rect x="20" y="20" width="30" height="30" fill="rgba(117,192,68,0.04)" transform="rotate(20 35 35)"/><rect x="100" y="60" width="25" height="25" fill="rgba(117,192,68,0.03)" transform="rotate(-15 112.5 72.5)"/><rect x="60" y="110" width="20" height="20" fill="rgba(117,192,68,0.05)" transform="rotate(45 70 120)"/></svg>');
    animation: floatElements 25s ease-in-out infinite;
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

@keyframes floatElements {
    0%, 100% { transform: translateX(0) translateY(0) scale(1); }
    25% { transform: translateX(10px) translateY(-10px) scale(1.05); }
    50% { transform: translateX(-5px) translateY(-15px) scale(0.95); }
    75% { transform: translateX(-10px) translateY(5px) scale(1.02); }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    box-shadow: var(--shadow-hard);
    transform: translateX(5px);
}

.rtl .contact-item:hover {
    transform: translateX(-5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
    padding: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-lg);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-medium);
    padding: var(--space-md);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
    backdrop-filter: blur(5px);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(117, 192, 68, 0.2);
}

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

/* Footer */
.footer {
    color: var(--text-primary);
    padding: var(--space-3xl) 0 var(--space-md);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-about p {
    line-height: 1.7;
    opacity: 0.9;
}

.footer-links h4,
.footer-social h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-links a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Platform-specific hover colors */
.social-links a:nth-child(1):hover {
    background: #1877f2; /* Facebook */
    color: white;
}

.social-links a:nth-child(2):hover {
    background: #000000; /* X (Twitter) */
    color: white;
}

.social-links a:nth-child(3):hover {
    background: #ff0000; /* YouTube */
    color: white;
}

.social-links a:nth-child(4):hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); /* Instagram */
    color: white;
}

.social-links a:nth-child(5):hover {
    background: #000000; /* Threads */
    color: white;
}

.social-links a:hover svg {
    fill: white;
    transform: scale(1.1);
}

/* Ripple effect */
.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.social-links a:hover::before {
    width: 100px;
    height: 100px;
}

.footer-logo-section {
    text-align: center;
    padding: 60px 0 40px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 40px;
    position: relative;
}

.footer-logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: logoFloat 6s ease-in-out infinite;
}

.footer-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.3));
    transition: all 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 25px rgba(212, 175, 55, 0.5));
}

.footer-logo h2 {
    color: #d4af37;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #d4af37, #f1c40f, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
}

/* Animations */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
    }
}

/* Animation Classes */
.animate-pulse {
    animation: pulse 2s infinite;
}

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

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

/* Mobile Background Optimization */
@media (max-width: 768px) {
    body {
        background: none;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('2DA1F55F-AD68-4A74-BB8B-4A6535F76509.jpeg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        z-index: -1;
    }
}

/* Enhanced Mobile-First Responsive Design */
@media (max-width: 1024px) {
    .nav-logo img {
        transform: scale(2.2);
        margin-right: 50px;
    }

    .rtl .nav-logo img {
        margin-left: 50px;
        margin-right: 0;
    }

    .nav-logo h2 {
        font-size: 24px;
    }

    .hero-content {
        gap: 50px;
        padding: 0 30px;
    }

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

    .app-cards-deck {
        gap: 18px;
    }

    .app-card {
        width: 150px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    /* Enhanced Navigation */
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger span {
        background: var(--color-secondary);
        border-radius: 2px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        background: rgba(15, 23, 34, 0.98);
        backdrop-filter: blur(30px);
        width: 100%;
        justify-content: center;
        align-items: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-hard);
        padding: 40px 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInMenu 0.6s ease forwards;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { animation-delay: 0.6s; }

    .nav-menu a {
        font-size: 1.5rem;
        padding: 15px 30px;
        border-radius: 15px;
        display: block;
        transition: all 0.3s ease;
    }

    /* Enhanced Logo for Mobile */
    .nav-logo img {
        transform: scale(1.8);
        margin-right: 40px;
    }

    .rtl .nav-logo img {
        margin-left: 40px;
        margin-right: 0;
    }

    .nav-logo h2 {
        font-size: 20px;
    }

    /* Creative Hero Section Mobile Layout */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 40px;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-text {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        animation: fadeInUp 1s ease-out both;
        position: relative;
        z-index: 10;
    }

    .hero-app {
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        animation: fadeInUp 1s ease-out 0.3s both;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
        line-height: 1.2;
        margin-bottom: 20px;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        text-align: center;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        margin-bottom: 20px;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
    }

    .hero-features {
        margin: 20px 0;
        text-align: left;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-features li {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        padding: 6px 0;
        padding-left: 20px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .rtl .hero-features li {
        padding-left: 0;
        padding-right: 20px;
        text-align: right;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-top: 25px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
        position: relative;
        z-index: 10;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 20px;
        font-size: clamp(14px, 3.5vw, 16px);
        border-radius: 25px;
        box-sizing: border-box;
        min-height: 48px;
        position: relative;
        z-index: 10;
        cursor: pointer;
        pointer-events: auto;
    }
    
    /* Creative Mobile App Showcase */
    .app-showcase {
        gap: 35px;
    }

    .app-cards-deck {
        gap: 12px;
        max-width: 100%;
        flex-wrap: nowrap;
        justify-content: center;
        padding: 0 10px;
    }

    .app-card {
        width: 120px;
        height: 220px;
        border-radius: 18px;
    }

    .app-card.card-1,
    .app-card.card-3 {
        transform: translateY(10px) scale(0.85);
    }

    .app-card.card-2 {
        transform: translateY(0px) scale(1.0);
        z-index: 2;
    }

    .app-card:hover {
        transform: translateY(-8px) scale(0.95);
    }

    .app-card.card-2:hover {
        transform: translateY(-10px) scale(1.05);
    }

    .app-download {
        padding: 25px 20px;
        margin-top: 35px;
        border-radius: 20px;
    }

    .qr-code {
        width: 120px;
        height: 120px;
        padding: 12px;
        border-radius: 20px;
    }

    .download-text {
        font-size: 15px;
        font-weight: 500;
    }

    /* Enhanced Mobile Services Section */
    .services {
        min-height: auto;
        padding: 60px 0;
    }

    .services-header {
        padding: 30px 20px;
    }

    .services .section-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
        margin-bottom: 15px;
        padding: 0 15px;
        word-wrap: break-word;
    }

    .services .section-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        margin-bottom: 35px;
        padding: 0 20px;
        line-height: 1.4;
    }

    .services-diagonal-container {
        flex-direction: column;
        min-height: auto;
        gap: 40px;
    }

    .services-diagonal-split,
    .services-diagonal-container::before {
        display: none;
    }

    .services-side {
        padding: 30px 20px;
        width: 100%;
    }

    .services-side.left,
    .services-side.right {
        padding-left: 20px;
        padding-right: 20px;
    }

    .department-title {
        font-size: clamp(1.2rem, 4.5vw, 1.6rem);
        margin-bottom: 25px;
        text-align: center;
        padding: 0 15px;
        word-wrap: break-word;
    }

    .services-stack {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        height: auto;
    }

    .service-card {
        clip-path: none;
        border-radius: 15px;
        padding: 25px 20px;
        transform: none;
        flex-direction: row;
        text-align: left;
        min-height: 80px;
        align-items: center;
        gap: 15px;
        transition: all 0.3s ease;
    }

    .rtl .service-card {
        text-align: right;
    }

    .service-card.left-side,
    .service-card.right-side {
        clip-path: none;
        transform: none;
    }

    .service-card-content {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        align-items: center;
        height: auto;
        justify-content: flex-start;
    }

    .rtl .service-card-content {
        text-align: right;
    }

    .service-card .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .service-text {
        flex: 1;
    }

    .service-card h4 {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        margin-bottom: 5px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .service-card p {
        display: block;
        font-size: clamp(0.75rem, 3vw, 0.85rem);
        color: var(--text-secondary);
        line-height: 1.3;
        margin: 0;
        word-wrap: break-word;
    }

    .service-card:hover {
        transform: translateY(-3px) scale(1.02);
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* Enhanced Mobile Live Section */
    .live-section {
        padding: 60px 0;
    }

    .live-section .section-title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
        margin-bottom: 15px;
        padding: 0 15px;
        word-wrap: break-word;
    }

    .live-section .section-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        margin-bottom: 30px;
        padding: 0 20px;
        line-height: 1.4;
    }

    .live-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .live-player {
        order: 1;
        max-width: 100%;
        padding: 15px;
    }

    .tv-frame-image {
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    }

    .video-screen {
        position: absolute;
        
    top: 4px;
    left: 3px;
    right: 4px;
    bottom: 20px;
        overflow: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    /* iPhone Safari specific fixes */
    @supports (-webkit-touch-callout: none) {
        .video-screen {
            transform: translate3d(0, 0, 0);
            -webkit-transform: translate3d(0, 0, 0);
        }

        .video-screen video {
            transform: translate3d(0, 0, 0);
            -webkit-transform: translate3d(0, 0, 0);
            -webkit-mask-image: -webkit-radial-gradient(white, black);
            mask-image: radial-gradient(white, black);
        }
    }

    .fullscreen-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .live-text {
        order: 2;
        padding: 30px 20px;
        text-align: center;
    }

    .live-title {
        font-size: clamp(1.5rem, 5.5vw, 2rem);
        margin-bottom: 25px;
        padding: 0 15px;
        word-wrap: break-word;
    }

    .typing-section {
        margin-top: 25px;
    }

    .fixed-text {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        margin-bottom: 15px;
        padding: 0 15px;
    }

    .typing_text, .typing_text_en {
        font-size: clamp(1.2rem, 4.5vw, 1.6rem);
        min-height: 45px;
        padding: 0 10px;
    }

    /* Enhanced Mobile Carousel */
    .carousel-container {
        height: 450px;
        margin: 30px 0;
        border-radius: 15px;
    }

    .carousel-slide {
        padding: 30px 20px;
    }

    .reason-card-wide {
        width: 100%;
        max-width: none;
        padding: 30px 25px;
        gap: 25px;
        flex-direction: column;
        text-align: center;
        border-radius: 20px;
    }

    .reason-card-wide .reason-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .reason-card-wide .reason-icon i {
        font-size: 2rem;
    }

    .reason-card-wide .reason-content {
        text-align: center;
    }

    .reason-card-wide h3 {
        font-size: clamp(1.3rem, 4.5vw, 1.6rem);
        margin-bottom: 12px;
        padding: 0 10px;
        word-wrap: break-word;
    }

    .reason-card-wide p {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
        line-height: 1.4;
        padding: 0 10px;
        word-wrap: break-word;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .carousel-prev {
        left: 15px;
    }

    .carousel-next {
        right: 15px;
    }

    .carousel-dots {
        bottom: 20px;
        gap: 12px;
    }

    .carousel-dot {
        width: 12px;
        height: 12px;
    }

    /* Mobile Badge Positioning */
    .support-badge,
    .innovation-badge,
    .excellence-badge,
    .luxury-badge {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    /* Mobile Why Choose Us Section */
    .why-choose {
        padding: 60px 0;
    }

    .why-choose .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 15px;
        padding: 0 15px;
        word-wrap: break-word;
    }

    .why-choose .section-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        margin-bottom: 35px;
        padding: 0 20px;
        line-height: 1.4;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .countries-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }
    
    .global-presence {
        padding: 60px 0;
        min-height: auto;
    }
    
    .global-presence .section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
        padding: 0 15px;
        word-wrap: break-word;
    }

    .global-presence .section-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        margin-bottom: 30px;
        padding: 0 20px;
        line-height: 1.4;
    }
    
    .country-card {
        padding: 30px 20px;
    }
    
    .country-icon {
        font-size: 1.6rem;
        margin: 15px 0;
    }
    
    .country-rank {
        width: 60px;
        height: 60px;
        top: -10px;
        right: -10px;
        font-size: 0.9rem;
    }
    
    .rtl .country-rank {
        left: -10px;
    }
    
    .vmg-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-social h4 {
        text-align: center;
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center;
        gap: 20px;
    }
    
    .footer-logo-section {
        padding: 40px 0 30px 0;
    }
    
    .footer-logo img {
        width: 100px;
        height: 100px;
    }
    
    .footer-logo h2 {
        font-size: clamp(1.6rem, 5vw, 2rem);
        padding: 0 15px;
    }

    .footer-logo p {
        font-size: clamp(0.9rem, 3vw, 1rem);
        padding: 0 15px;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
        padding: 0 15px;
        word-wrap: break-word;
    }

    .why-choose .section-title {
        font-size: clamp(1.8rem, 6.5vw, 2.5rem);
        padding: 0 15px;
        word-wrap: break-word;
    }
}

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

    /* iPhone specific typography fixes */
    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
        line-height: 1.2;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1rem);
        line-height: 1.4;
        padding: 0 5px;
    }

    .hero-features li {
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
        padding: 6px 0;
        padding-left: 20px;
        line-height: 1.3;
    }

    .rtl .hero-features li {
        padding-left: 0;
        padding-right: 20px;
    }

    /* Navigation adjustments */
    .nav-logo h2 {
        font-size: clamp(14px, 4vw, 18px);
    }

    .nav-logo img {
        transform: scale(1.5);
        margin-right: 30px;
    }

    .rtl .nav-logo img {
        margin-left: 30px;
        margin-right: 0;
    }

    /* Section titles */
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding: 0 10px;
    }

    .section-subtitle {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        padding: 0 15px;
    }

    /* Service cards */
    .service-card {
        padding: 20px 15px;
        margin: 8px 0;
    }

    .service-card h4 {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        line-height: 1.2;
    }

    .service-card p {
        font-size: clamp(0.75rem, 3vw, 0.85rem);
        line-height: 1.3;
    }

    /* Cards general */
    .reason-card,
    .country-card,
    .vmg-card {
        padding: 20px 15px;
        margin: 10px 0;
    }

    /* Department titles */
    .department-title {
        font-size: clamp(1.1rem, 4.5vw, 1.4rem);
        margin-bottom: 25px;
        padding: 0 10px;
    }

    /* Live section */
    .live-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .fixed-text {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        padding: 0 10px;
    }

    .typing_text, .typing_text_en {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem);
        min-height: 40px;
    }

    /* Carousel adjustments */
    .reason-card-wide h3 {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem);
        margin-bottom: 12px;
        padding: 0 5px;
    }

    .reason-card-wide p {
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
        line-height: 1.4;
        padding: 0 5px;
    }

    /* Country cards */
    .country-card h3 {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        margin: 15px 0 10px 0;
    }

    .country-card p {
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
        line-height: 1.5;
        padding: 0 5px;
    }

    /* Contact form */
    .contact-form {
        padding: 20px 15px;
    }

    .contact-item h4 {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }

    .contact-item p {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }

    /* Footer */
    .footer-logo-section {
        padding: 25px 0 15px 0;
    }

    .footer-logo img {
        width: 70px;
        height: 70px;
    }

    .footer-logo h2 {
        font-size: clamp(1.4rem, 5vw, 1.6rem);
        padding: 0 10px;
    }

    .footer-logo p {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        padding: 0 10px;
    }

    .footer-about p {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        line-height: 1.5;
        padding: 0 5px;
    }

    /* Vision mission cards */
    .vmg-card h3 {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        margin-bottom: 15px;
    }

    .vmg-card p {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        line-height: 1.5;
    }

    .vmg-card li {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        line-height: 1.4;
        padding: 6px 0;
        padding-left: 20px;
    }

    .rtl .vmg-card li {
        padding-left: 0;
        padding-right: 20px;
    }

    /* Language toggle - even smaller on tiny screens */
    .lang-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 45px;
    }

    /* Additional iPhone SE and very small screen optimizations */
    body {
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Ensure all text elements have proper wrapping */
    h1, h2, h3, h4, h5, h6, p, li, span, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Global section spacing optimization */
    section {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Improved button sizing for tiny screens */
    .btn {
        font-size: clamp(13px, 3.5vw, 15px);
        padding: 12px 16px;
        min-height: 44px;
    }

    /* Country cards text optimization */
    .country-card h3 {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding: 0 8px;
    }

    .country-card p {
        font-size: clamp(0.75rem, 3vw, 0.85rem);
        padding: 0 8px;
        line-height: 1.4;
    }

    /* Navigation logo further reduced */
    .nav-logo img {
        transform: scale(1.3);
        margin-right: 25px;
    }

    .rtl .nav-logo img {
        margin-left: 25px;
        margin-right: 0;
    }

    .nav-logo h2 {
        font-size: clamp(12px, 3.5vw, 16px);
    }
}

/* AOS Animation Overrides */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition-property: opacity, transform;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

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

/* Mobile Menu Animation */
@keyframes slideInMenu {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .carousel-nav,
    .carousel-dot,
    .fullscreen-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 16px;
    }

    /* Enhanced scroll behavior */
    html {
        scroll-padding-top: 100px;
    }

    /* Better spacing for touch */
    .nav-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile-optimized animations */
    .hero-text,
    .hero-app {
        animation-duration: 0.8s;
    }

    /* Reduce motion for better performance */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Enhanced WhatsApp Button Styling */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    border-radius: 25px;
    padding: 16px 24px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    min-height: 56px;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 35px rgba(37, 211, 102, 0.4),
        0 0 30px rgba(37, 211, 102, 0.3);
    filter: brightness(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-whatsapp i {
    font-size: 24px;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.btn-whatsapp .btn-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

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

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* RTL Support for WhatsApp Button */
.rtl .btn-whatsapp {
    flex-direction: row-reverse;
}

/* Mobile Responsive WhatsApp Button */
@media (max-width: 768px) {
    .btn-whatsapp {
        padding: 14px 20px;
        gap: 10px;
        min-height: 52px;
    }

    .btn-whatsapp i {
        font-size: 20px;
    }

    .btn-whatsapp .btn-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .btn-whatsapp {
        padding: 12px 18px;
        gap: 8px;
        min-height: 48px;
        width: 100%;
        max-width: 280px;
    }

    .btn-whatsapp i {
        font-size: 18px;
    }

    .btn-whatsapp .btn-text {
        font-size: 14px;
    }
}
