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

/* Performance optimizations */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Optimize rendering */
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
    /* Prevent layout shift */
    aspect-ratio: attr(width) / attr(height);
    /* Responsive image handling */
    object-fit: contain;
    display: block;
}

/* Responsive image containers */
.image-container {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.image-container img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-normal);
}

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

/* Responsive text scaling */
.responsive-text {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
}

.responsive-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

:root {
    /* Primary Colors - Blue Palette */
    --primary-blue: #1E3A8A;
    --primary-blue-light: #3B82F6;
    --primary-blue-dark: #1E40AF;
    
    /* Secondary Colors */
    --success-green: #10B981;
    --danger-red: #EF4444;
    --warning-yellow: #F59E0B;
    
    /* Neutral Colors */
    --neutral-dark: #374151;
    --neutral-medium: #6B7280;
    --neutral-light: #9CA3AF;
    --neutral-lighter: #E5E7EB;
    --white: #FFFFFF;
    
    /* Background Colors */
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
}

/* Typography */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--neutral-dark);
    background: var(--bg-white);
    font-size: var(--text-base);
}

body[dir="ltr"] {
    font-family: 'Poppins', sans-serif;
}

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

h1 {
    font-size: var(--text-6xl);
    font-weight: 700;
}

h2 {
    font-size: var(--text-5xl);
}

h3 {
    font-size: var(--text-4xl);
}

h4 {
    font-size: var(--text-3xl);
}

h5 {
    font-size: var(--text-2xl);
}

h6 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-md);
    color: var(--neutral-medium);
    font-size: var(--text-lg);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* Large Desktop (max-width: 1400px) */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0 var(--space-xl);
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .hero-character {
        width: 420px;
        height: 630px;
    }
}

/* Medium Desktop (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 var(--space-lg);
    }
    
    .hero-text h1 {
        font-size: 3.2rem;
    }
    
    .hero-character {
        width: 400px;
        height: 600px;
    }
}

/* Responsive Grid System */
@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-cols-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

@media (max-width: 576px) {
    .grid-cols-6 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .grid-cols-8 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-lighter);
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px; /* Increased height to accommodate larger logo */
    min-height: 75px; /* Ensure minimum height */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-logo img {
    height: 60px;
    width: 60px;
    /* Ensure logo stays within navbar bounds */
    max-height: 65px;
    max-width: 65px;
    object-fit: contain;
}

.brand-name {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-left: var(--space-sm);
}

.brand-main {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.brand-pro {
    font-size: var(--text-sm);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    position: relative;
    top: -2px;
    opacity: 0.85; /* أخف قليلاً من كلمة فزاع */
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
    
    .nav-menu {
        position: static;
        background: none;
        backdrop-filter: none;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: var(--space-xl);
        transition: none;
        z-index: auto;
        padding: 0;
        width: auto;
        height: auto;
    }
    
    .nav-link {
        opacity: 1;
        transform: none;
        padding: var(--space-sm) 0;
        width: auto;
        text-align: left;
        background: none;
    }
    
    .nav-link::after {
        display: block;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
    font-size: var(--text-base);
}

.nav-link:hover {
    color: var(--primary-blue);
}

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

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--neutral-dark);
    padding: 8px 12px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    min-width: 80px;
    justify-content: center;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-toggle:active {
    transform: translateY(0);
}

/* Language States */
[dir="rtl"] .lang-toggle .sa-flag {
    display: flex;
}

[dir="rtl"] .lang-toggle .uk-flag {
    display: none;
}

[dir="ltr"] .lang-toggle .sa-flag {
    display: none;
}

[dir="ltr"] .lang-toggle .uk-flag {
    display: flex;
}

/* Responsive Design for Flags */
@media (max-width: 768px) {
    .flag-container {
        width: 20px;
        height: 14px;
        margin-right: 6px;
    }
    
    .lang-toggle {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .flag-sword {
        width: 10px;
        height: 1.5px;
    }
    
    .flag-sword::before {
        width: 1.5px;
        height: 3px;
    }
}

/* Medium Mobile Devices (max-width: 640px) */
@media (max-width: 640px) {
    .flag-container {
        width: 18px;
        height: 13px;
        margin-right: 5px;
    }
    
    .lang-toggle {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 65px;
    }
    
    .flag-sword {
        width: 9px;
        height: 1.3px;
    }
    
    .flag-sword::before {
        width: 1.3px;
        height: 2.6px;
    }
}

@media (max-width: 480px) {
    .flag-container {
        width: 18px;
        height: 12px;
        margin-right: 4px;
    }
    
    .lang-toggle {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 60px;
    }
    
    .flag-sword {
        width: 8px;
        height: 1px;
    }
    
    .flag-sword::before {
        width: 1px;
        height: 2px;
    }
}

/* Animation for Language Toggle */
.lang-toggle .fas.fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 10px;
    opacity: 0.7;
}

.lang-toggle:hover .fas.fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
}

/* Flag Animation */
.flag-container {
    transition: transform 0.3s ease;
}

.lang-toggle:hover .flag-container {
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: var(--space-xs);
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--neutral-dark);
    transition: var(--transition-normal);
    border-radius: 2px;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: var(--text-base);
    font-family: inherit;
    text-align: center;
    justify-content: center;
    min-height: 48px;
    /* Responsive button sizing */
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive button adjustments */
@media (max-width: 768px) {
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-sm);
        min-height: 44px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
        min-height: 40px;
    }
}

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

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    background: var(--primary-blue-dark);
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--neutral-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

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

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

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: var(--danger-red);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    animation: heroBackground 20s ease-in-out infinite;
}

.hero::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 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23CBD5E1" stroke-width="0.3" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    margin-bottom: var(--space-lg);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-blue);
    text-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
    position: relative;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 2px;
    animation: titleUnderline 2s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { width: 80px; }
    50% { width: 120px; }
}

.hero-text p {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    color: var(--neutral-medium);
    font-weight: 400;
    max-width: 600px;
}



.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.hero-buttons::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.hero-buttons:hover::before {
    opacity: 1;
}

.download-buttons-container {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.download-note {
    font-size: var(--text-sm);
    color: var(--neutral-medium);
    opacity: 0.8;
    margin-top: var(--space-sm);
}

/* Enhanced Download Buttons */
.download-btn {
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: var(--text-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 200px;
    height: 60px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.download-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;
}

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

.download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.download-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    z-index: 2;
    position: relative;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: var(--text-xl);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.download-btn:hover .btn-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-small {
    font-size: var(--text-xs);
    opacity: 0.9;
    font-weight: 400;
}

.btn-large {
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Google Play Button */
.google-play-btn {
    background: linear-gradient(135deg, var(--success-green), var(--accent-yellow));
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.google-play-btn:hover {
    background: linear-gradient(135deg, #059669, #D97706);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

.google-play-btn .btn-icon {
    color: var(--success-green);
    background: rgba(255, 255, 255, 0.95);
}

.google-play-btn:hover .btn-icon {
    color: #059669;
    background: var(--white);
    transform: scale(1.1) rotate(5deg);
}

/* App Store Button */
.app-store-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.app-store-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.app-store-btn .btn-icon {
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.95);
}

.app-store-btn:hover .btn-icon {
    color: var(--primary-blue-dark);
    background: var(--white);
    transform: scale(1.1) rotate(5deg);
}

/* Button Glow Effect */
.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.download-btn:hover .btn-glow {
    opacity: 1;
}

/* Enhanced Button States */
.download-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), var(--shadow-xl);
}

.download-btn:focus-visible {
    outline: 2px solid var(--primary-blue-light);
    outline-offset: 2px;
}

/* Button Loading State */
.download-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.download-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

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

/* Button Success State */
.download-btn.success {
    background: linear-gradient(135deg, var(--success-green), #059669);
    transform: scale(1.05);
}

.download-btn.success .btn-icon {
    background: var(--white);
    color: var(--success-green);
}

/* Pulse Animation for Buttons */
.download-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Click Animation */
.download-btn.clicked {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Enhanced Button Interactions */
.download-btn:hover .btn-text {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

[dir="rtl"] .download-btn:hover .btn-text {
    transform: translateX(-5px);
}

/* Button Shine Effect */
.download-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.download-btn:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* RTL Support for Download Buttons */
[dir="rtl"] .download-btn .btn-text {
    align-items: flex-end;
}

[dir="rtl"] .download-btn .btn-content {
    flex-direction: row-reverse;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    /* ضمان ظهور الصور بسرعة */
    contain: layout style paint;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: heroGlow 4s ease-in-out infinite;
    /* ضمان عدم تأخير الصورة */
    z-index: -1;
}

@keyframes heroGlow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* ضمان ظهور صورة الموبايل فوراً */
.hero .phone-section {
    /* منع التأخير */
    animation: none !important;
    transition: none !important;
}

.hero .phone-mockup {
    /* منع التأخير */
    animation: none !important;
    transition: none !important;
}

.hero .phone-screen {
    /* منع التأخير */
    animation: none !important;
    transition: none !important;
}

/* Hero Visual Container - New Layout */
.hero-visual-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
    z-index: 2;
    justify-content: center;
    transition: all 0.3s ease;
    /* ضمان ظهور الصور بسرعة */
    contain: layout style paint;
}

.hero-visual-container:hover {
    gap: var(--space-lg);
}

/* Disable hover-driven layout changes in hero to keep elements static */
.hero .hero-visual-container:hover {
    gap: var(--space-md) !important;
}

.hero .phone-section:hover {
    margin-left: -30px !important;
}

[dir="ltr"] .hero .phone-section:hover {
    margin-right: -30px !important;
}

/* Phone Section */
.phone-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: -30px;
    z-index: 2;
    transition: all 0.3s ease;
    /* ضمان ظهور صورة الموبايل بسرعة */
    contain: layout style paint;
}

.phone-section:hover {
    margin-left: -20px;
}

/* LTR adjustments: ensure full visibility and mirrored spacing */
[dir="ltr"] .phone-section {
    justify-content: flex-start;
    margin-right: -30px;
    margin-left: 0;
}

[dir="ltr"] .phone-section:hover {
    margin-right: -20px;
}

/* Disable hero phone-frame hover movement for English version */
[dir="ltr"] .hero .phone-section {
    transition: none;
}

[dir="ltr"] .hero .phone-section:hover {
    margin-right: -30px; /* keep fixed, no hover shift */
}

[dir="ltr"] .hero-character {
    margin-left: -50px;
    margin-right: 0;
}

/* Arabic version character positioning - make it closer to phone frame like English */
[dir="rtl"] .hero-character {
    margin-right: -60px; /* reduce from -80px to -60px to be slightly further */
    margin-left: 0;
}

/* Character Section */
.character-section {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-character {
    width: 400px;
    height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    margin-right: -50px;
    margin-top: -30px;
    z-index: 3;
}

.phone-mockup {
    width: 220px;
    height: 440px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 35px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    /* ضمان عدم تأخير الصورة */
    contain: layout style paint;
    /* تحسين الأداء */
    will-change: transform;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    /* ضمان ظهور الصورة بسرعة */
    contain: layout style paint;
    /* تحسين الأداء */
    will-change: transform;
}

.phone-screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    /* تحسينات للأداء السريع */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* ضمان الظهور السريع */
    opacity: 1;
    transition: none;
}

/* تحسين خاص لصورة الموبايل في الهيرو */
.hero .phone-screen-image {
    /* ضمان التحميل السريع */
    content-visibility: auto;
    contain-intrinsic-size: 220px 440px;
    /* منع التأخير في الظهور */
    animation: none;
    /* تحسين العرض */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* ضمان الظهور الفوري */
    opacity: 1 !important;
    visibility: visible !important;
    /* منع التأخير */
    transition: none !important;
    animation: none !important;
}

.screen-header {
    padding: 15px;
    background: var(--white);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 15px;
}

.signal-battery {
    display: flex;
    gap: 3px;
    font-size: 10px;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
}

.app-logo {
    width: 24px;
    height: 24px;
}

.app-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
}

.screen-content {
    padding: 20px 15px;
    text-align: center;
}

.welcome-text {
    margin-bottom: 25px;
}

.welcome-text h4 {
    font-size: 14px;
    color: var(--neutral-medium);
    margin-bottom: 5px;
}

.welcome-text h3 {
    font-size: 16px;
    color: var(--neutral-dark);
    font-weight: 600;
}

.service-categories {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 0 10px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--white);
}

.service-icon.electrical {
    background: var(--warning-yellow);
}

.service-icon.plumbing {
    background: var(--primary-blue-light);
}

.service-icon.cleaning {
    background: var(--success-green);
}

.service-item span {
    font-size: 10px;
    color: var(--neutral-dark);
    font-weight: 500;
}

.book-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.book-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
    color: var(--primary-blue);
}

.section-header p {
    font-size: var(--text-xl);
    max-width: 600px;
    margin: 0 auto;
    color: var(--neutral-medium);
}

/* Features Section */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.feature-card {
    background: var(--white);
    padding: var(--space-2xl) var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--neutral-lighter);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card.gradient-border {
    background: linear-gradient(135deg, var(--white), var(--bg-light));
    border: none;
    position: relative;
}

.feature-card.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue), var(--success-green));
    border-radius: var(--radius-lg);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue-light);
}

.feature-card.glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    transition: all var(--transition-normal), box-shadow 0.3s ease;
}

.feature-card.glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), 0 0 60px rgba(59, 130, 246, 0.1);
}

.feature-card.float {
    animation: float 3s ease-in-out infinite;
}

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

.feature-card.float:hover {
    animation: none;
    transform: translateY(-8px) scale(1.02);
}

.feature-card:active {
    transform: translateY(-4px) scale(1.01);
}

.feature-card.clicked {
    animation: cardClick 0.3s ease;
}

.feature-card.ripple {
    position: relative;
    overflow: hidden;
}

.feature-card.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

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

@keyframes cardClick {
    0% { transform: scale(1.02); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1.02); }
}

.feature-card.loading {
    position: relative;
}

.feature-card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    animation: loadingShine 1.5s infinite;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.feature-card:hover .feature-icon::before {
    width: 100%;
    height: 100%;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
    transition: all var(--transition-normal);
    z-index: 2;
    position: relative;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.4);
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
    color: var(--white);
}

.feature-icon.pulse {
    animation: iconPulse 0.6s ease;
}

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

.feature-card:hover .feature-icon.pulse {
    animation: none;
}

.feature-icon.rotate {
    transition: all var(--transition-normal), transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.feature-icon.bounce {
    animation: iconBounce 2s ease-in-out infinite;
}

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

.feature-card:hover .feature-icon.bounce {
    animation: none;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: var(--space-md);
    color: var(--primary-blue);
    font-size: var(--text-2xl);
    transition: all var(--transition-normal);
    position: relative;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue-light), var(--primary-blue));
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.feature-card:hover h3::after {
    width: 60%;
}

.feature-card:hover h3 {
    color: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.feature-card p {
    color: var(--neutral-medium);
    font-size: var(--text-lg);
    transition: all var(--transition-normal);
    line-height: 1.6;
}

.feature-card:hover p {
    color: var(--neutral-dark);
    transform: translateY(-1px);
}

.feature-card h3.highlight {
    animation: titleHighlight 0.8s ease;
}

@keyframes titleHighlight {
    0% { color: var(--primary-blue); }
    50% { color: var(--primary-blue-light); }
    100% { color: var(--primary-blue-dark); }
}

.feature-card p.fade-in {
    animation: textFadeIn 0.6s ease;
}

@keyframes textFadeIn {
    0% { opacity: 0.7; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.feature-card h3.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-blue);
    white-space: nowrap;
    animation: typewriter 2s steps(20) 1s forwards;
}

@keyframes typewriter {
    0% { width: 0; }
    100% { width: 100%; }
}

.feature-card h3.slide-in {
    animation: slideInFromLeft 0.8s ease forwards;
}

@keyframes slideInFromLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* How It Works Section */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue-light), var(--primary-blue), var(--success-green), var(--primary-blue-light));
    opacity: 0.4;
    z-index: 1;
    border-radius: 2px;
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.step {
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 250px;
    z-index: 2;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.step:hover {
    transform: translateY(-5px);
}

.step.active {
    transform: translateY(-3px);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--success-green), var(--primary-blue-light));
    animation: pulse 2s infinite;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
    position: relative;
    z-index: 3;
    transition: all var(--transition-normal);
}

.step-number:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
    background: linear-gradient(135deg, var(--primary-blue-light), var(--success-green));
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--white), var(--bg-light));
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.step-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.step-icon:hover::before {
    left: 100%;
}

.step-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue-light);
    background: linear-gradient(135deg, var(--white), rgba(59, 130, 246, 0.05));
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    transition: all var(--transition-normal);
    z-index: 2;
    position: relative;
}

.step-icon:hover i {
    transform: scale(1.1);
    color: var(--primary-blue-dark);
}

.step h3 {
    margin-bottom: var(--space-md);
    color: var(--primary-blue);
    transition: all var(--transition-normal);
    position: relative;
}

.step h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue-light), var(--success-green));
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.step:hover h3::after {
    width: 60%;
}

.step:hover h3 {
    color: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.step p {
    color: var(--neutral-medium);
    transition: all var(--transition-normal);
    line-height: 1.6;
}

.step:hover p {
    color: var(--neutral-dark);
    transform: translateY(-1px);
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-light);
}

.testimonials-slider {
    display: flex;
    gap: var(--space-xl);
    overflow: hidden;
    position: relative;
}

.testimonial {
    flex: 0 0 100%;
    transition: var(--transition-normal);
}

.testimonial-content {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--neutral-lighter);
}

.stars {
    margin-bottom: var(--space-lg);
}

.stars i {
    color: var(--warning-yellow);
    font-size: var(--text-xl);
    margin: 0 2px;
}

.testimonial-content p {
    font-size: var(--text-lg);
    font-style: italic;
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    color: var(--neutral-medium);
}

.customer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.customer-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.customer-avatar i {
    font-size: var(--text-2xl);
    color: var(--white);
}

.customer-details h4 {
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.customer-details span {
    color: var(--neutral-medium);
    font-size: var(--text-sm);
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.testimonial-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Download Section */
.download {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--white);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-text h2 {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.download-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
}

.download-buttons {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--white);
    color: var(--neutral-dark);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-btn i {
    font-size: 2rem;
}

.btn-text .small {
    display: block;
    font-size: var(--text-sm);
    color: var(--neutral-medium);
}

.btn-text .large {
    display: block;
    font-size: var(--text-lg);
    font-weight: 600;
}

.download-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-group {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.phone-group .phone-mockup {
    width: 180px;
    height: 360px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 30px;
    padding: 6px;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: none;
    cursor: default;
}

/* Disable hover effects for English version */
[dir="ltr"] .phone-group .phone-mockup:hover {
    transform: none;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Keep hover effects for Arabic version */
[dir="rtl"] .phone-group .phone-mockup:hover {
    transform: translateY(-8px) scale(1.03) rotateY(3deg);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.phone-group .phone-mockup:nth-child(2) {
    margin-top: 20px;
}

.phone-group .phone-mockup:nth-child(3) {
    margin-top: -20px;
}

.phone-group .phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Disable hover effects for English version */
[dir="ltr"] .phone-group .phone-mockup:hover .phone-screen {
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 50%, #f1f5f9 100%);
}

/* Keep hover effects for Arabic version */
[dir="rtl"] .phone-group .phone-mockup:hover .phone-screen {
    box-shadow: inset 0 0 25px rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, var(--white) 0%, #f0f4ff 50%, #e6f0ff 100%);
}

.phone-group .phone-screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    transition: all 0.3s ease;
}

/* Disable hover effects for English version */
[dir="ltr"] .phone-group .phone-mockup:hover .phone-screen-image {
    transform: none;
    filter: none;
}

/* Keep hover effects for Arabic version */
[dir="rtl"] .phone-group .phone-mockup:hover .phone-screen-image {
    transform: scale(1.02);
    filter: brightness(1.1) contrast(1.05);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

/* Contact Visual Section */
.contact-visual-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.call-center-character {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.call-center-character::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.call-center-character:hover::before {
    opacity: 1;
}

.call-center-character img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
    border-radius: 50%;
}

.call-center-character:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(59, 130, 246, 0.2);
}

.call-center-character:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    box-shadow: var(--shadow-md);
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.info-item p {
    color: var(--neutral-medium);
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light), var(--success-green));
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.form-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--white);
    font-size: var(--text-xl);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.form-header h3 {
    color: var(--primary-blue);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.form-header p {
    color: var(--neutral-medium);
    font-size: var(--text-base);
    margin: 0;
}

.contact-links {
    margin-top: var(--space-lg);
    text-align: center;
}

.faq-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-blue-light);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all var(--transition-normal);
}

.faq-link:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-link i {
    font-size: 1.1rem;
}

.faq-link span {
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: var(--space-xl);
    position: relative;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: var(--space-md);
    color: var(--neutral-medium);
    font-size: var(--text-lg);
    transition: all 0.3s ease;
    z-index: 2;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: var(--space-lg) var(--space-lg) var(--space-lg) 50px;
    border: 2px solid var(--neutral-lighter);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

.input-wrapper textarea {
    min-height: 120px;
    padding-top: var(--space-lg);
}

.input-wrapper label {
    position: absolute;
    top: var(--space-lg);
    left: 50px;
    color: var(--neutral-medium);
    font-size: var(--text-base);
    font-weight: 500;
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--white);
    padding: 0 var(--space-xs);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-wrapper input:focus + label,
.input-wrapper textarea:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: var(--space-md);
    font-size: var(--text-sm);
    color: var(--primary-blue);
    font-weight: 600;
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper textarea:focus ~ .input-icon {
    color: var(--primary-blue);
}
/* Submit Button */
.submit-btn {
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.submit-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;
}

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

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-text {
    z-index: 2;
    position: relative;
}

.btn-icon {
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
    opacity: 0;
}

.submit-btn.loading .btn-loading {
    opacity: 1;
}

.submit-btn.success {
    background: linear-gradient(135deg, var(--success-green), #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.submit-btn.success .btn-icon {
    transform: scale(1.2);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--text-dark);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    border-left: 4px solid var(--primary-blue);
}

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

.notification-success {
    border-left-color: var(--success-green);
}

.notification-error {
    border-left-color: var(--danger-red);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.notification-content i {
    font-size: var(--text-lg);
    color: var(--primary-blue);
}

.notification-success .notification-content i {
    color: var(--success-green);
}

.notification-error .notification-content i {
    color: var(--danger-red);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--neutral-dark);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo .brand-name {
    color: var(--white) !important;
}

.footer-logo .brand-main {
    color: var(--white) !important;
}

.footer-logo .brand-pro {
    color: var(--white) !important;
}

/* ضمان ظهور اسم الموقع في الفوتر باللون الأبيض */
.footer-logo a {
    color: var(--white) !important;
}

.footer-logo a:hover {
    color: var(--white) !important;
}

.footer-logo a:visited {
    color: var(--white) !important;
}

.footer-logo a:active {
    color: var(--white) !important;
}

/* ضمان ظهور جميع النصوص في الفوتر باللون الأبيض */
.footer-logo * {
    color: var(--white) !important;
}

.footer-logo img {
    height: 30px;
    width: 30px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white) !important;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: var(--text-base);
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.footer-social a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-blue-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: var(--text-sm);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-text h1 {
        color: var(--primary-blue);
    }
    
    .hero-text p {
        color: var(--neutral-medium);
    }
    
    .hero-visual-container {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .phone-section,
    .character-section {
        flex: none;
        margin-left: 0;
        justify-content: center;
    }
    
    .hero-character {
        width: 360px;
        height: 540px;
        margin-right: 0;
        margin-top: -20px;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .phone-group {
        gap: var(--space-md);
    }
    
    .phone-group .phone-mockup {
        width: 160px;
        height: 320px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-visual-section {
        order: -1;
    }
    
    .call-center-character {
        width: 200px;
        height: 200px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 75px; /* Updated to match new navbar height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px); /* Updated to match new navbar height */
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .phone-group {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .phone-group .phone-mockup {
        width: 140px;
        height: 280px;
    }
    
    .phone-group .phone-mockup:nth-child(2),
    .phone-group .phone-mockup:nth-child(3) {
        margin-top: 0;
    }

    .faq-link {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
    }

    .faq-link span {
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    h1 {
        font-size: var(--text-5xl);
    }
    
    h2 {
        font-size: var(--text-4xl);
    }
    
    .hero {
        padding: 105px 0 60px; /* Increased top padding to accommodate larger navbar */
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: var(--text-lg);
    }
    

    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .hero-buttons {
        justify-content: center;
        align-items: center;
    }
    
    .download-buttons-container {
        flex-direction: column;
        width: 100%;
    }
    
    .download-btn {
        width: 100%;
        min-width: auto;
        justify-content: center;
    }
    
    .btn-content {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
        gap: var(--space-xl);
        align-items: center;
    }

    .steps-container::before {
        display: none;
    }

    .step {
        max-width: 300px;
        width: 100%;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cols-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-cols-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    h1 {
        font-size: var(--text-4xl);
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: var(--text-base);
    }
    
    .call-center-character {
        width: 180px;
        height: 180px;
    }
    
    .brand-main {
        font-size: var(--text-xl);
    }
    
    .brand-pro {
        font-size: var(--text-xs);
    }
    
    .nav-logo img {
        height: 55px;
        width: 55px;
        /* Ensure logo stays within navbar bounds on mobile */
        max-height: 60px;
        max-width: 60px;
        object-fit: contain;
    }
    

    
    .phone-mockup {
        width: 180px;
        height: 360px;
    }
    
    .hero-character {
        width: 300px;
        height: 450px;
        margin-top: -15px;
    }
    
    /* Arabic version character positioning for tablet */
    [dir="rtl"] .hero-character {
        margin-right: -40px; /* reduce from -50px to -40px to be slightly further */
    }
    
    .hero-visual-container {
        gap: var(--space-md);
    }
    
    .phone-section,
    .character-section {
        margin-left: 0;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .steps-container {
        gap: var(--space-lg);
    }

    .step {
        max-width: 100%;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }

    .step-icon {
        width: 80px;
        height: 80px;
    }

    .step-icon i {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .contact-form {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .form-header h3 {
        font-size: var(--text-xl);
    }
    
    .form-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
        max-width: 250px;
        height: 56px;
        padding: var(--space-sm) var(--space-md);
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
        font-size: var(--text-lg);
    }
    
    .btn-large {
        font-size: var(--text-base);
    }
    
    .btn-small {
        font-size: var(--text-xs);
    }
    
    .grid-cols-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .grid-cols-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cols-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* RTL Specific Styles */
[dir="rtl"] .nav-link::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(5px, -5px);
}

[dir="rtl"] .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(7px, 6px);
}

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

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

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

/* Print Styles for Privacy Policy */
@media print {
    .navbar,
    .footer,
    .print-btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    p {
        page-break-inside: avoid;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Services Section */
.services {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: var(--space-2xl) 0;
    position: relative;
}

.services::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23e2e8f0" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.services .section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 2;
}

.services .section-header h2 {
    color: var(--primary-blue);
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services .section-header p {
    color: var(--neutral-medium);
    font-size: var(--text-xl);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Service Card - Circular Design */
.service-card {
    background: var(--white);
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(59, 130, 246, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.1);
    padding: var(--space-lg);
    cursor: pointer;
}

/* Service Tooltip */
.service-tooltip {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translate(-50%, 10px);
    background: var(--white);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    min-width: 220px;
    max-width: 260px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.service-tooltip.show {
    opacity: 1;
    transform: translate(-50%, -12px);
    pointer-events: auto;
}

.service-tooltip h4 {
    margin: 0 0 6px 0;
    color: var(--primary-blue);
    font-size: var(--text-base);
}

.service-tooltip p {
    margin: 0;
    color: var(--neutral-medium);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(30, 58, 138, 0.05));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Service Icon */
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--white);
    font-size: var(--text-xl);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 35px rgba(59, 130, 246, 0.4),
        0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Service Content */
.service-card h3 {
    color: var(--primary-blue);
    font-size: var(--text-sm);
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.service-card:hover h3 {
    color: var(--primary-blue-dark);
}

/* Responsive Design for Services */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
        max-width: 1000px;
    }
    
    .service-card {
        padding: var(--space-md);
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
    }
    
    .service-card h3 {
        font-size: var(--text-xs);
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
        max-width: 800px;
    }
    
    .services .section-header h2 {
        font-size: var(--text-4xl);
    }
    
    .services .section-header p {
        font-size: var(--text-lg);
    }
}

@media (max-width: 768px) {
    .services {
        padding: var(--space-xl) 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
        max-width: 500px;
    }
    
    .service-card {
        padding: var(--space-md);
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: var(--text-base);
        margin-bottom: var(--space-sm);
    }
    
    .service-card h3 {
        font-size: var(--text-xs);
    }
    
    .services .section-header h2 {
        font-size: var(--text-3xl);
    }
    
    .services .section-header p {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .service-card {
        padding: var(--space-sm);
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-sm);
    }
    
    .service-card h3 {
        font-size: var(--text-xs);
    }
}

/* Dark Mode Support for Services */
@media (prefers-color-scheme: dark) {
    .services {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }
    
    .service-card {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(59, 130, 246, 0.2);
    }
    
    .service-card h3 {
        color: var(--neutral-light);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--primary-blue);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-icon {
        transition: none;
    }
    
    .service-card:hover,
    .service-card:hover .service-icon {
        transform: none;
    }
    
    .service-icon::before {
        display: none;
    }
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: var(--space-3xl) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.contact-hero::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 100 100"><defs><pattern id="contact-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-pattern)"/></svg>');
    pointer-events: none;
}

.contact-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-hero-text h1 {
    color: var(--white);
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.contact-hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xl);
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-visual-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.contact-hero-character {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Contact Section */
.contact-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Info */
.contact-info h2 {
    color: var(--primary-blue);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.contact-info > p {
    color: var(--neutral-medium);
    font-size: var(--text-lg);
    margin-bottom: var(--space-2xl);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-xl);
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.info-content h3 {
    color: var(--primary-blue);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.info-content p {
    color: var(--neutral-dark);
    font-size: var(--text-base);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.info-content span {
    color: var(--neutral-medium);
    font-size: var(--text-sm);
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(59, 130, 246, 0.1);
    max-width: 720px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-2xl);
    margin: 0 auto var(--space-lg);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.3);
}

.form-header h2 {
    color: var(--primary-blue);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.form-header p {
    color: var(--neutral-medium);
    font-size: var(--text-base);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.input-wrapper {
    position: relative;
}

.input-wrapper.full-width {
    grid-column: 1 / -1;
}

.input-wrapper label {
    display: block;
    color: var(--neutral-dark);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg) var(--space-md) 3rem;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    background: var(--white);
    transition: all var(--transition-normal);
    font-family: inherit;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: var(--neutral-light);
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: var(--space-md);
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-wrapper i {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: var(--text-base);
    pointer-events: none;
}

.input-wrapper textarea + i {
    top: 2rem;
    transform: none;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
    border: none;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    margin-top: var(--space-lg);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* FAQ Link Section */
.faq-link-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: var(--space-2xl) 0;
}

.faq-link-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.faq-link-text h2 {
    color: var(--primary-blue);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.faq-link-text p {
    color: var(--neutral-medium);
    font-size: var(--text-base);
    margin: 0;
}

.faq-link-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
    text-decoration: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.faq-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Responsive Design for Contact Page */
@media (max-width: 992px) {
    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .contact-hero-text h1 {
        font-size: var(--text-4xl);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .faq-link-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: var(--space-2xl) 0 var(--space-xl);
    }
    
    .contact-hero-text h1 {
        font-size: var(--text-3xl);
    }
    
    .contact-hero-text p {
        font-size: var(--text-lg);
    }
    
    .contact-section {
        padding: var(--space-2xl) 0;
    }
    
    .contact-form-container {
        padding: var(--space-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .info-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .contact-hero-text h1 {
        font-size: var(--text-2xl);
    }
    
    .contact-hero-text p {
        font-size: var(--text-base);
    }
    
    .contact-form-container {
        padding: var(--space-lg);
    }
    
    .form-header h2 {
        font-size: var(--text-xl);
    }
    
    .faq-link-content {
        padding: var(--space-lg);
    }
}

/* Dark Mode Support for Contact Page */
@media (prefers-color-scheme: dark) {
    .contact-section {
        background: var(--neutral-dark);
    }
    
    .info-item,
    .contact-form-container,
    .faq-link-content {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(59, 130, 246, 0.2);
    }
    
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(59, 130, 246, 0.3);
        color: var(--neutral-light);
    }
    
    .input-wrapper label {
        color: var(--neutral-light);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .info-item,
    .contact-form-container,
    .faq-link-content {
        border: 2px solid var(--primary-blue);
    }
    
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        border: 2px solid var(--primary-blue);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .info-item,
    .submit-btn,
    .faq-link-btn {
        transition: none;
    }
    
    .info-item:hover,
    .submit-btn:hover,
    .faq-link-btn:hover {
        transform: none;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: var(--text-xl);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.scroll-to-top:hover::before {
    opacity: 1;
}

.scroll-to-top i {
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal);
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* RTL Support for Scroll to Top */
[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 30px;
}

/* Responsive Design for Scroll to Top */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
    }
    
    [dir="rtl"] .scroll-to-top {
        right: auto;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: var(--text-base);
    }
    
    [dir="rtl"] .scroll-to-top {
        right: auto;
        left: 15px;
    }
}

/* Dark Mode Support for Scroll to Top */
@media (prefers-color-scheme: dark) {
    .scroll-to-top {
        background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    }
    
    .scroll-to-top:hover {
        background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
        box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .scroll-to-top {
        border: 2px solid var(--white);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: none;
    }
    
    .scroll-to-top:hover {
        transform: none;
    }
    
    .scroll-to-top:hover i {
        transform: none;
    }
}

/* ----- Responsive Enhancements (global, non-intrusive) ----- */
@media (max-width: 1200px) {
    .container { padding: 0 var(--space-md); }
    .hero-text h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); }
    .hero-text p { font-size: clamp(1rem, 2.2vw, 1.125rem); }
    .features-grid { gap: var(--space-lg); }
    .services-grid { gap: var(--space-lg); }
}

@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .download-content { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer-content { gap: var(--space-lg); }
}

@media (max-width: 768px) {
    .grid { gap: var(--space-md); }
    .nav-logo img { width: 52px; height: 52px; }
    .features-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .download-buttons { flex-direction: column; align-items: stretch; }
    .download-btn { width: 100%; justify-content: center; }
}

@media (max-width: 576px) {
    html { font-size: 15px; }
    .container { padding: 0 var(--space-sm); }
    h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
    h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
    p { font-size: clamp(0.95rem, 3.8vw, 1rem); }

    .hero-text h1 { font-size: clamp(1.9rem, 7.5vw, 2.3rem); }
    .hero-text p { font-size: clamp(1rem, 3.8vw, 1.1rem); }

    .features-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .services-grid { grid-template-columns: 1fr; gap: var(--space-md); }

    .btn, .download-btn { width: 100%; max-width: 100%; }
    .footer-links { gap: var(--space-md); justify-content: center; }
}

/* Development Message */
.development-message {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.development-message.show {
    opacity: 1;
    transform: translateX(0);
}

.development-message .message-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
}

.development-message .message-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--warning-yellow), #F59E0B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-lg);
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.development-message .message-text {
    flex: 1;
}

.development-message .message-text h4 {
    color: var(--primary-blue);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    margin-top: 0;
}

.development-message .message-text p {
    color: var(--neutral-medium);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin: 0;
}

.development-message .message-close {
    background: none;
    border: none;
    color: var(--neutral-light);
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.development-message .message-close:hover {
    color: var(--neutral-medium);
    background: rgba(0, 0, 0, 0.05);
}

/* RTL Support for Development Message */
[dir="rtl"] .development-message {
    right: auto;
    left: 20px;
    transform: translateX(-100%);
}

[dir="rtl"] .development-message.show {
    transform: translateX(0);
}

/* Responsive Design for Development Message */
@media (max-width: 768px) {
    .development-message {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .development-message.show {
        transform: translateY(0);
    }
    
    [dir="rtl"] .development-message {
        right: 15px;
        left: 15px;
        transform: translateY(-100%);
    }
    
    [dir="rtl"] .development-message.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .development-message {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    [dir="rtl"] .development-message {
        right: 10px;
        left: 10px;
    }
    
    .development-message .message-content {
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .development-message .message-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }
    
    .development-message .message-text h4 {
        font-size: var(--text-base);
    }
    
    .development-message .message-text p {
        font-size: var(--text-xs);
    }
}

/* Dark Mode Support for Development Message */
@media (prefers-color-scheme: dark) {
    .development-message {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(59, 130, 246, 0.3);
    }
    
    .development-message .message-text h4 {
        color: var(--primary-blue-light);
    }
    
    .development-message .message-text p {
        color: var(--neutral-light);
    }
    
    .development-message .message-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .development-message {
        border: 2px solid var(--primary-blue);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    }
    
    .development-message .message-close {
        border: 1px solid var(--neutral-medium);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .development-message {
        transition: none;
    }
    
    .development-message.show {
        transform: none;
    }
}

/* Privacy Page Styles */
.privacy-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: var(--space-3xl) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.privacy-hero::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 100 100"><defs><pattern id="privacy-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23privacy-pattern)"/></svg>');
    pointer-events: none;
}

.privacy-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.privacy-hero-text h1 {
    color: var(--white);
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.privacy-hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xl);
    line-height: 1.6;
    margin-bottom: 0;
}

.privacy-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy-visual-container {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.privacy-hero-icon {
    width: 100%;
    height: auto;
    color: var(--white);
    font-size: 8rem;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    opacity: 0.9;
}

/* Privacy Section */
.privacy-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Policy Section */
.policy-section {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: var(--space-2xl);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(30, 58, 138, 0.05));
    padding: var(--space-2xl);
    text-align: center;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.section-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-2xl);
    margin: 0 auto var(--space-lg);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.3);
}

.section-header h2 {
    color: var(--primary-blue);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section-header p {
    color: var(--neutral-medium);
    font-size: var(--text-lg);
    line-height: 1.6;
    margin: 0;
}

.policy-content {
    padding: var(--space-2xl);
}

.policy-item {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.policy-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.policy-item h3 {
    color: var(--primary-blue);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.policy-item h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.policy-item p {
    color: var(--neutral-dark);
    font-size: var(--text-base);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    text-align: justify;
}

.policy-list {
    margin: var(--space-md) 0;
    padding-right: var(--space-xl);
    list-style: none;
}

.policy-list li {
    color: var(--neutral-dark);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    position: relative;
    padding-right: var(--space-lg);
}

.policy-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--success-green);
    font-weight: 600;
    font-size: var(--text-sm);
}

[dir="ltr"] .policy-list {
    padding-right: 0;
    padding-left: var(--space-xl);
}

[dir="ltr"] .policy-list li {
    padding-right: 0;
    padding-left: var(--space-lg);
}

[dir="ltr"] .policy-list li::before {
    right: auto;
    left: 0;
}

/* Last Updated Section */
.last-updated-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: var(--space-2xl);
}

.last-updated-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    color: var(--neutral-medium);
    font-style: italic;
}

.last-updated-content i {
    color: var(--primary-blue);
    font-size: var(--text-lg);
}

.last-updated-content p {
    margin: 0;
    font-size: var(--text-base);
}

/* Action Buttons Section */
.action-buttons-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: var(--space-2xl) 0;
}

.action-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: var(--text-base);
    min-width: 200px;
    justify-content: center;
}

.print-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.print-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.back-btn {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Responsive Design for Privacy Page */
@media (max-width: 992px) {
    .privacy-hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .privacy-hero-text h1 {
        font-size: var(--text-4xl);
    }
    
    .privacy-content {
        max-width: 100%;
        padding: 0 var(--space-lg);
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .privacy-hero {
        padding: calc(var(--space-2xl) + 60px) 0 var(--space-xl);
        margin-top: 60px;
    }
    
    .privacy-hero-text h1 {
        font-size: var(--text-3xl);
    }
    
    .privacy-hero-text p {
        font-size: var(--text-lg);
    }
    
    .privacy-hero-icon {
        font-size: 6rem;
    }
    
    .privacy-section {
        padding: var(--space-2xl) 0;
    }
    
    .section-header {
        padding: var(--space-xl);
    }
    
    .section-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-xl);
    }
    
    .section-header h2 {
        font-size: var(--text-2xl);
    }
    
    .policy-content {
        padding: var(--space-xl);
    }
    
    .policy-item h3 {
        font-size: var(--text-lg);
    }
}

@media (max-width: 480px) {
    .privacy-hero {
        padding: calc(var(--space-2xl) + 80px) 0 var(--space-xl);
        margin-top: 80px;
    }
    
    .privacy-hero-text h1 {
        font-size: var(--text-xl);
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .privacy-hero-text p {
        font-size: var(--text-base);
    }
    
    .privacy-hero-icon {
        font-size: 4rem;
    }
    
    .section-header {
        padding: var(--space-lg);
    }
    
    .section-header h2 {
        font-size: var(--text-xl);
    }
    
    .privacy-hero-content {
        gap: var(--space-lg);
    }
    
        .privacy-visual-container {
        max-width: 200px;
    }
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 360px) {
    .privacy-hero {
        padding: calc(var(--space-2xl) + 100px) 0 var(--space-xl);
        margin-top: 100px;
    }
    
    .privacy-hero-text h1 {
        font-size: var(--text-lg);
        line-height: 1.4;
    }
    
    .privacy-hero-text p {
        font-size: var(--text-sm);
    }
    
    .privacy-visual-container {
        max-width: 150px;
    }
}
    
    .section-header p {
        font-size: var(--text-base);
    }
    
    .policy-content {
        padding: var(--space-lg);
    }
    
    .policy-item h3 {
        font-size: var(--text-base);
    }
    
    .policy-item p {
        font-size: var(--text-sm);
    }
    
    .policy-list li {
        font-size: var(--text-sm);
    }
    
    .action-btn {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--text-sm);
        min-width: 180px;
    }
}

/* Dark Mode Support for Privacy Page */
@media (prefers-color-scheme: dark) {
    .privacy-section {
        background: var(--neutral-dark);
    }
    
    .policy-section,
    .last-updated-section {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(59, 130, 246, 0.2);
    }
    
    .section-header {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 58, 138, 0.1));
        border-color: rgba(59, 130, 246, 0.2);
    }
    
    .policy-item p,
    .policy-list li {
        color: var(--neutral-light);
    }
    
    .action-buttons-section {
        background: linear-gradient(135deg, var(--neutral-dark) 0%, rgba(255, 255, 255, 0.05) 100%);
    }
    
    .back-btn {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--primary-blue);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .policy-section,
    .last-updated-section {
        border: 2px solid var(--primary-blue);
    }
    
    .section-header {
        border-color: var(--primary-blue);
    }
    
    .policy-item {
        border-color: var(--primary-blue);
    }
    
    .action-btn {
        border: 2px solid var(--primary-blue);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .action-btn {
        transition: none;
    }
    
    .action-btn:hover {
        transform: none;
    }
}

/* ===== RESPONSIVE DESIGN - FULLY RESPONSIVE ===== */

/* Desktop First Approach - Base styles are for desktop */

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
        max-width: 100%;
    }
    
    .nav-container {
        padding: 0 var(--space-md);
        height: 70px;
    }
    
    .nav-logo img {
        height: 50px;
        width: 50px;
    }
    
    .brand-main {
        font-size: var(--text-xl);
    }
    
    .brand-pro {
        font-size: var(--text-xs);
    }
    
    .hero {
        padding: 120px 0 80px;
        min-height: 90vh;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: clamp(2.5rem, 5vw, 3rem);
    }
    
    .hero-text p {
        font-size: var(--text-lg);
        max-width: 500px;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: var(--space-md);
    }
    
    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-sm);
        min-height: 44px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
    
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .contact-hero-content-new {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .contact-hero-image-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .email-contact-section {
        padding: var(--space-lg);
    }
    
    .email-contact-form {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation - Mobile Menu */
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        transition: right var(--transition-normal);
        z-index: 1000;
        padding: var(--space-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
        animation: slideInFromRight 0.4s ease forwards;
    }
    
    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.4s; }
    
    .nav-link {
        opacity: 0;
        transform: translateY(20px);
        transition: all var(--transition-normal);
        font-size: var(--text-lg);
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-md);
        width: 100%;
        text-align: center;
        position: relative;
    }
    
    .nav-link:hover {
        background: rgba(30, 58, 138, 0.1);
        color: var(--primary-blue);
    }
    
    .nav-link::after {
        display: none;
    }
    
    @keyframes slideInFromRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-controls {
        gap: var(--space-sm);
    }
    
    .lang-toggle {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: var(--space-md);
    }
    
    .hero-text p {
        font-size: var(--text-base);
        margin-bottom: var(--space-lg);
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: var(--space-md) var(--space-lg);
        font-size: var(--text-base);
        min-height: 48px;
    }
    
    /* Visual Elements */
    .hero-visual-container {
        flex-direction: row;
        gap: var(--space-sm);
        align-items: center;
        justify-content: center;
    }
    
    .phone-section,
    .character-section {
        margin: 0;
        justify-content: center;
    }
    
    .hero-character {
        width: 250px;
        height: 375px;
    }
    
    .phone-mockup {
        width: 140px;
        height: 280px;
    }
    
    /* Features & Services */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature-card,
    .service-card {
        padding: var(--space-lg);
        text-align: center;
    }
    
    .feature-card h3,
    .service-card h3 {
        font-size: var(--text-xl);
    }
    
    .feature-card p,
    .service-card p {
        font-size: var(--text-base);
    }
    
    /* Download Section */
    .download-section {
        padding: var(--space-xl) 0;
    }
    
    .download-content {
        gap: var(--space-lg);
        text-align: center;
    }
    
    .download-text h2 {
        font-size: var(--text-3xl);
    }
    
    .download-text p {
        font-size: var(--text-base);
    }
    
    .download-buttons {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Footer */
    .footer {
        padding: var(--space-xl) 0 var(--space-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: var(--text-lg);
    }
    
    .footer-section p,
    .footer-section li {
        font-size: var(--text-sm);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    /* Contact Page */
    .contact-hero-new {
        padding: var(--space-xl) 0;
        text-align: center;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-card {
        padding: var(--space-lg);
        text-align: center;
    }
    
    .contact-card h3 {
        font-size: var(--text-xl);
    }
    
    .contact-card p {
        font-size: var(--text-base);
    }
    
    .email-contact-section {
        padding: var(--space-lg);
    }
    
    .email-contact-form {
        gap: var(--space-md);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-base);
    }
    
    .submit-btn {
        width: 100%;
        padding: var(--space-md) var(--space-lg);
        font-size: var(--text-base);
    }
    
    /* FAQ Page */
    .faq-hero {
        padding: var(--space-xl) 0;
        text-align: center;
    }
    
    .faq-hero h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .faq-hero p {
        font-size: var(--text-base);
    }
    
    .faq-section {
        padding: var(--space-lg) 0;
    }
    
    .faq-item {
        padding: var(--space-md);
    }
    
    .faq-question {
        font-size: var(--text-base);
        padding: var(--space-sm) var(--space-md);
    }
    
    .faq-answer {
        font-size: var(--text-sm);
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Privacy Page */
    .privacy-hero {
        padding: var(--space-xl) 0;
        text-align: center;
    }
    
    .privacy-hero h1 {
        font-size: var(--text-2xl);
    }
    
    .privacy-section {
        padding: var(--space-lg) 0;
    }
    
    .policy-section {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }
    
    .section-header {
        padding: var(--space-md);
    }
    
    .section-header h2 {
        font-size: var(--text-lg);
    }
    
    .policy-content {
        padding: var(--space-md);
    }
    
    .policy-item h3 {
        font-size: var(--text-base);
        margin-bottom: var(--space-sm);
    }
    
    .policy-item p {
        font-size: var(--text-sm);
    }
    
    .action-buttons-section {
        padding: var(--space-lg);
    }
    
    .action-btn {
        width: 100%;
        max-width: 280px;
        padding: var(--space-md) var(--space-lg);
        font-size: var(--text-base);
    }
    
    /* Technician Register Page */
    .tech-hero {
        padding: var(--space-xl) 0;
        text-align: center;
    }
    
    .tech-hero h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .tech-hero p {
        font-size: var(--text-base);
    }
    
    .tech-content {
        gap: var(--space-lg);
    }
    
    .tech-section {
        padding: var(--space-lg);
    }
    
    .tech-section h2 {
        font-size: var(--text-2xl);
    }
    
    .tech-section p {
        font-size: var(--text-base);
    }
    
    .phone-group {
        flex-direction: column;
        gap: var(--space-lg);
        align-items: center;
    }

    /* Homepage Download section: show three phone frames side-by-side on mobile */
    .download .phone-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
        justify-items: center;
        align-items: end;
    }

    /* Technician Register page: show two phone frames side-by-side on mobile */
    .tech-section .phone-group {
        display: flex;
        flex-direction: row;
        gap: var(--space-sm);
        justify-content: center;
        align-items: center;
    }

    .tech-section .phone {
        width: 120px;
        height: 240px;
    }

    .tech-section .phone-frame {
        width: 100px;
        height: 200px;
    }

    .tech-section .phone-screenshot {
        width: 80px;
        height: 160px;
    }

    .download .phone-mockup {
        width: min(28vw, 110px);
        height: calc(min(28vw, 110px) * 2);
    }
    
    .phone {
        width: 200px;
        height: 400px;
    }
    
    .phone-frame {
        width: 180px;
        height: 360px;
    }
    
    .phone-screenshot {
        width: 160px;
        height: 320px;
    }
    
    .register-form {
        padding: var(--space-lg);
        gap: var(--space-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-base);
    }
    
    .submit-btn {
        width: 100%;
        padding: var(--space-md) var(--space-lg);
        font-size: var(--text-base);
    }
}

/* Extra Small Mobile Devices (max-width: 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 var(--space-xs);
    }
    
    .nav-container {
        padding: 0 var(--space-xs);
        height: 60px;
    }
    
    .nav-logo img {
        height: 40px;
        width: 40px;
    }
    
    .brand-main {
        font-size: var(--text-base);
    }
    
    .brand-pro {
        font-size: 0.5rem;
    }
    
    .hero {
        padding: 80px 0 40px;
        min-height: 65vh;
    }
    
    .hero-text h1 {
        font-size: clamp(1.5rem, 6vw, 1.75rem);
    }
    
    .hero-text p {
        font-size: var(--text-xs);
        margin-bottom: var(--space-sm);
    }
    
    .btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
        min-height: 40px;
    }
    
    .hero-character {
        width: 180px;
        height: 270px;
    }
    
    /* Arabic version character positioning for extra small mobile */
    [dir="rtl"] .hero-character {
        margin-right: -15px; /* adjust for extra small screens */
    }
    
    .phone-mockup {
        width: 100px;
        height: 200px;
    }
    
    .feature-card,
    .service-card {
        padding: var(--space-sm);
    }
    
    .feature-card h3,
    .service-card h3 {
        font-size: var(--text-base);
    }
    
    .feature-card p,
    .service-card p {
        font-size: var(--text-xs);
    }
    
    .download-text h2 {
        font-size: var(--text-xl);
    }
    
    .download-text p {
        font-size: var(--text-xs);
    }
    
    .contact-card {
        padding: var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .contact-card h3 {
        font-size: var(--text-base);
    }
    
    .contact-card p {
        font-size: var(--text-xs);
    }
    
    .submit-btn {
        width: 100%;
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }
}

/* Ultra Small Mobile Devices (max-width: 320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--space-xs);
    }
    
    .nav-container {
        padding: 0 var(--space-xs);
        height: 55px;
    }
    
    .nav-logo img {
        height: 35px;
        width: 35px;
    }
    
    .brand-main {
        font-size: var(--text-sm);
    }
    
    .brand-pro {
        font-size: 0.4rem;
    }
    
    .hero {
        padding: 70px 0 30px;
        min-height: 60vh;
    }
    
    .hero-text h1 {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
    
    .hero-text p {
        font-size: var(--text-xs);
        margin-bottom: var(--space-xs);
    }
    
    .btn {
        padding: var(--space-xs);
        font-size: var(--text-xs);
        min-height: 36px;
    }
    
    .hero-character {
        width: 160px;
        height: 240px;
    }
    
    /* Arabic version character positioning for ultra small mobile */
    [dir="rtl"] .hero-character {
        margin-right: -10px; /* adjust for ultra small screens */
    }
    
    .phone-mockup {
        width: 90px;
        height: 180px;
    }
    
    .feature-card,
    .service-card {
        padding: var(--space-xs);
    }
    
    .feature-card h3,
    .service-card h3 {
        font-size: var(--text-sm);
    }
    
    .feature-card p,
    .service-card p {
        font-size: var(--text-xs);
    }
    
    .download-text h2 {
        font-size: var(--text-lg);
    }
    
    .download-text p {
        font-size: var(--text-xs);
    }
    
    .contact-card {
        padding: var(--space-xs);
        margin-bottom: var(--space-xs);
    }
    
    .contact-card h3 {
        font-size: var(--text-sm);
    }
    
    .contact-card p {
        font-size: var(--text-xs);
    }
    
    .submit-btn {
        width: 100%;
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }
}

/* Small Mobile Devices (max-width: 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .nav-container {
        padding: 0 var(--space-sm);
        height: 65px;
    }
    
    .nav-logo img {
        height: 45px;
        width: 45px;
    }
    
    .brand-main {
        font-size: var(--text-lg);
    }
    
    .brand-pro {
        font-size: 0.6rem;
    }
    
    .hero {
        padding: 90px 0 50px;
        min-height: 70vh;
    }
    
    .hero-text h1 {
        font-size: clamp(1.75rem, 7vw, 2rem);
    }
    
    .hero-text p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-md);
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
        min-height: 44px;
    }
    
    .hero-character {
        width: 200px;
        height: 300px;
    }
    
    /* Arabic version character positioning for mobile */
    [dir="rtl"] .hero-character {
        margin-right: -20px; /* reduce from -30px to -20px to be slightly further */
    }
    
    .phone-mockup {
        width: 120px;
        height: 240px;
    }
    
    .feature-card,
    .service-card {
        padding: var(--space-md);
    }
    
    .feature-card h3,
    .service-card h3 {
        font-size: var(--text-lg);
    }
    
    .feature-card p,
    .service-card p {
        font-size: var(--text-sm);
    }
    
    .download-text h2 {
        font-size: var(--text-2xl);
    }
    
    .download-text p {
        font-size: var(--text-sm);
    }
    
    .contact-card {
        padding: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    .contact-card h3 {
        font-size: var(--text-lg);
    }
    
    .contact-card p {
        font-size: var(--text-sm);
    }
    
    .email-contact-section {
        padding: var(--space-md);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-sm);
    }
    
    .submit-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }
    
    .faq-hero h1 {
        font-size: clamp(1.75rem, 7vw, 2rem);
    }
    
    .faq-hero p {
        font-size: var(--text-sm);
    }
    
    .faq-item {
        padding: var(--space-sm);
    }
    
    .faq-question {
        font-size: var(--text-sm);
        padding: var(--space-xs) var(--space-sm);
    }
    
    .faq-answer {
        font-size: var(--text-xs);
        padding: var(--space-xs) var(--space-sm);
    }
    
    .privacy-hero h1 {
        font-size: clamp(1.75rem, 7vw, 2rem);
    }
    
    .policy-section {
        padding: var(--space-md);
    }
    
    .section-header {
        padding: var(--space-sm);
        margin-bottom: var(--space-md);
    }
    
    .section-header h2 {
        font-size: var(--text-base);
    }
    
    .policy-content {
        padding: var(--space-sm);
    }
    
    .policy-item h3 {
        font-size: var(--text-sm);
    }
    
    .policy-item p {
        font-size: var(--text-xs);
    }
    
    .action-buttons-section {
        padding: var(--space-md);
    }
    
    .action-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }
    
    .tech-hero h1 {
        font-size: clamp(1.75rem, 7vw, 2rem);
    }
    
    .tech-hero p {
        font-size: var(--text-sm);
    }
    
    .tech-section {
        padding: var(--space-md);
    }
    
    .tech-section h2 {
        font-size: var(--text-xl);
    }
    
    .tech-section p {
        font-size: var(--text-sm);
    }
    
    .phone {
        width: 160px;
        height: 320px;
    }
    
    .phone-frame {
        width: 140px;
        height: 280px;
    }
    
    .phone-screenshot {
        width: 120px;
        height: 240px;
    }
    
    /* Tighter sizing for homepage download on very small screens */
    .download .phone-mockup {
        width: min(26vw, 100px);
        height: calc(min(26vw, 100px) * 2);
    }

    /* Smaller phone frames for technician page on very small screens */
    .tech-section .phone {
        width: 100px;
        height: 200px;
    }

    .tech-section .phone-frame {
        width: 80px;
        height: 160px;
    }

    .tech-section .phone-screenshot {
        width: 60px;
        height: 120px;
    }
    
    .register-form {
        padding: var(--space-md);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-sm);
    }
    
    .submit-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        gap: var(--space-lg);
    }
    
    .hero-text h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .hero-text p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-md);
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: var(--space-sm);
    }
    
    .btn {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-sm);
        min-height: 40px;
    }
    
    .hero-character {
        width: 180px;
        height: 270px;
    }
    
    .phone-mockup {
        width: 100px;
        height: 200px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::after {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23CBD5E1" stroke-width="0.2" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero::before,
    .hero::after,
    .scroll-to-top,
    .btn {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        padding: 20px 0 !important;
        min-height: auto !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .hero-text h1 {
        color: black !important;
        font-size: 24pt !important;
    }
    
    .hero-text p {
        color: black !important;
        font-size: 12pt !important;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .feature-card,
    .service-card {
        border: 1px solid #ccc !important;
        background: white !important;
        padding: 15px !important;
    }
    
    .feature-card h3,
    .service-card h3 {
        color: black !important;
        font-size: 16pt !important;
    }
    
    .feature-card p,
    .service-card p {
        color: black !important;
        font-size: 10pt !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero-text h1::after,
    .btn:hover,
    .nav-link::after,
    .feature-card:hover,
    .service-card:hover {
        animation: none !important;
        transition: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
}

/* Focus Visible for Keyboard Navigation */
.btn:focus-visible,
.nav-link:focus-visible,
.lang-toggle:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .nav-link::after {
        height: 3px;
    }
    
    .hero-text h1::after {
        height: 5px;
    }
}

/* ===== RESPONSIVE FORM IMPROVEMENTS ===== */

/* Enhanced Form Responsiveness */
@media (max-width: 768px) {
    .input-wrapper input,
    .input-wrapper textarea {
        padding: var(--space-md) var(--space-md) var(--space-md) 45px;
        font-size: var(--text-sm);
        min-height: 100px;
    }
    
    .input-wrapper textarea {
        min-height: 100px;
    }
    
    .input-wrapper label {
        font-size: var(--text-sm);
        top: var(--space-md);
        left: 45px;
    }
    
    .input-wrapper input:focus + label,
    .input-wrapper textarea:focus + label,
    .input-wrapper input:not(:placeholder-shown) + label,
    .input-wrapper textarea:not(:placeholder-shown) + label {
        top: -8px;
        left: var(--space-sm);
        font-size: var(--text-xs);
    }
    
    .input-icon {
        left: var(--space-sm);
        font-size: var(--text-base);
    }
    
    .submit-btn {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--text-base);
        min-height: 48px;
    }
}

@media (max-width: 576px) {
    .input-wrapper input,
    .input-wrapper textarea {
        padding: var(--space-sm) var(--space-sm) var(--space-sm) 40px;
        font-size: var(--text-sm);
        min-height: 80px;
    }
    
    .input-wrapper textarea {
        min-height: 80px;
    }
    
    .input-wrapper label {
        font-size: var(--text-xs);
        top: var(--space-sm);
        left: 40px;
    }
    
    .input-wrapper input:focus + label,
    .input-wrapper textarea:focus + label,
    .input-wrapper input:not(:placeholder-shown) + label,
    .input-wrapper textarea:not(:placeholder-shown) + label {
        top: -6px;
        left: var(--space-xs);
        font-size: 0.7rem;
    }
    
    .input-icon {
        left: var(--space-xs);
        font-size: var(--text-sm);
    }
    
    .submit-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
        min-height: 44px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */

/* Touch-friendly button sizes */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        padding: var(--space-md) var(--space-lg);
    }
    
    .nav-link {
        padding: var(--space-sm) var(--space-md);
        min-height: 44px;
    }
    
    .hamburger {
        padding: var(--space-sm);
    }
    
    .hamburger span {
        width: 28px;
        height: 4px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero-text h1::after,
    .btn:hover,
    .nav-link::after,
    .feature-card:hover,
    .service-card:hover,
    .image-container:hover img {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* ===== PRINT OPTIMIZATIONS ===== */

@media print {
    .navbar,
    .hero::before,
    .hero::after,
    .scroll-to-top,
    .btn,
    .hamburger {
        display: none !important;
    }
    
    .nav-menu {
        position: static !important;
        background: none !important;
        backdrop-filter: none !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: var(--space-md) !important;
        transition: none !important;
        z-index: auto !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
    }
    
    .nav-link {
        opacity: 1 !important;
        transform: none !important;
        padding: var(--space-sm) var(--space-md) !important;
        width: auto !important;
        text-align: left !important;
        background: none !important;
        color: black !important;
    }
}

/* ===== LANGUAGE TOGGLE FLAGS ===== */

/* Flag Container */
.flag-container {
    position: relative;
    width: 24px;
    height: 16px;
    margin-right: 8px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Saudi Arabia Flag */
.sa-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    display: flex;
}

/* UK Flag */
.uk-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    display: none;
}

/* Language Toggle Button Updates */
.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--neutral-dark);
    padding: 8px 12px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    min-width: 80px;
    justify-content: center;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-toggle:active {
    transform: translateY(0);
}

/* Language States */
[dir="rtl"] .lang-toggle .sa-flag {
    display: flex;
}

[dir="rtl"] .lang-toggle .uk-flag {
    display: none;
}

[dir="ltr"] .lang-toggle .sa-flag {
    display: none;
}

[dir="ltr"] .lang-toggle .uk-flag {
    display: flex;
}

/* Responsive Design for Flags */
@media (max-width: 768px) {
    .flag-container {
        width: 20px;
        height: 14px;
        margin-right: 6px;
    }
    
    .lang-toggle {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .flag-sword {
        width: 10px;
        height: 1.5px;
    }
    
    .flag-sword::before {
        width: 1.5px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .flag-container {
        width: 18px;
        height: 12px;
        margin-right: 4px;
    }
    
    .lang-toggle {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 60px;
    }
    
    .flag-sword {
        width: 8px;
        height: 1px;
    }
    
    .flag-sword::before {
        width: 1px;
        height: 2px;
    }
}

/* Animation for Language Toggle */
.lang-toggle .fas.fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 10px;
    opacity: 0.7;
}

.lang-toggle:hover .fas.fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
}

/* Flag Animation */
.flag-container {
    transition: transform 0.3s ease;
}

.lang-toggle:hover .flag-container {
    transform: scale(1.1);
}
