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

:root {
    --primary-color: #1976D2;
    --primary-light: #42A5F5;
    --primary-dark: #0D47A1;
    --secondary-color: #26A69A;
    --secondary-light: #4DB6AC;
    --accent-color: #FF6B6B;
    --accent-light: #FFD93D;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-on-dark: #FFFFFF;
    --background: #F8F9FA;
    --card-background: #FFFFFF;
    --border: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-colored: rgba(25, 118, 210, 0.2);
}

[dir="rtl"] {
    --font-family: 'Cairo', sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: linear-gradient(to bottom, #F8F9FA 0%, #FFFFFF 100%);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Fluid Typography - Disabled to prevent automatic size changes */
/* @media (min-width: 320px) and (max-width: 1920px) {
    html {
        font-size: calc(14px + (18 - 14) * ((100vw - 320px) / (1920 - 320)));
    }
} */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #42A5F5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
    max-width: 100%;
    object-fit: contain;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(25, 118, 210, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

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

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

.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    background: var(--primary-color);
    color: var(--text-on-dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-switcher:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.go-to-app-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-on-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.35);
    position: relative;
    overflow: hidden;
}

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

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

.go-to-app-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.5);
}

.go-to-app-btn svg {
    transition: transform 0.3s ease;
}

.go-to-app-btn:hover svg {
    transform: translateX(4px);
}

[dir="rtl"] .go-to-app-btn:hover svg {
    transform: translateX(-4px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #42A5F5 100%);
    color: var(--text-on-dark);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(66, 165, 245, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(38, 166, 154, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.hero-logo-arabic {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-logo-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.hero-logo-english {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--text-on-dark);
    letter-spacing: 0.1em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.hero-logo-icon {
    width: clamp(3rem, 10vw, 7rem);
    height: clamp(3rem, 10vw, 7rem);
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    max-width: 100%;
}

.hero-logo-subtitle {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--text-on-dark);
    letter-spacing: 0.2em;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
    background: linear-gradient(to right, #FFFFFF, #E3F2FD);
    -webkit-background-clip: text;
    background-clip: text;
    word-wrap: break-word;
    hyphens: auto;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: fadeInDown 1s ease-out 0.2s both;
    word-wrap: break-word;
}

.hero-description {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    max-width: 750px;
    margin: 0 auto 2.5rem;
    opacity: 0.92;
    line-height: 1.9;
    animation: fadeInDown 1s ease-out 0.4s both;
    word-wrap: break-word;
    padding: 0 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInDown 1s ease-out 0.6s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--text-on-dark);
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

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

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-on-dark);
    border: 2px solid var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--text-on-dark);
    transition: width 0.3s ease;
    z-index: -1;
}

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

.btn-secondary:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--background);
}

.section-title {
    font-size: clamp(1.4rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
    word-wrap: break-word;
    hyphens: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    padding: 0 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-colored);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

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

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    transition: all 0.3s ease;
}

.feature-card:hover h3 {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Why Us Section */
.why-us {
    padding: 5rem 0;
    background: var(--card-background);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.03) 0%, rgba(38, 166, 154, 0.03) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px var(--shadow-colored);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.why-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.03) 0%, rgba(38, 166, 154, 0.03) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(66, 165, 245, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-text {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--background);
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--card-background);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(25, 118, 210, 0.05);
}

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

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* =========================================
   Book a Demo Section
   ========================================= */
.book-demo {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 55%, #42A5F5 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative blobs – same approach as hero/contact */
.book-demo::before,
.book-demo::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.book-demo::before {
    top: -60px;
    left: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.book-demo::after {
    bottom: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}

/* Title & subtitle override – white on dark bg */
.book-demo .section-title {
    background: transparent !important;
    background-image: none !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    position: relative;
    z-index: 1;
}

.book-demo .section-title::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
}

.book-demo .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

/* Centered container */
.book-demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* White form card floating on the blue background */
.book-demo-form {
    width: 100%;
    max-width: 560px;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28), 0 8px 20px rgba(0, 0, 0, 0.15);
    border: none;
    position: relative;
    overflow: hidden;
}

.book-demo-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.book-demo-form .form-group {
    margin-bottom: 1.5rem;
}

.book-demo-form .form-group:last-of-type {
    margin-bottom: 1.75rem;
}

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

.book-demo-form input,
.book-demo-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.875rem 1.125rem;
    border: 2px solid #d0d7de;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #f5f7f9;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    /* Remove browser-specific icons and appearance */
    -webkit-appearance: none;
    appearance: none;
}

/* Prevent the email/tel input icon from shrinking the field in WebKit */
.book-demo-form input[type="email"]::-webkit-contacts-auto-fill-button,
.book-demo-form input[type="email"]::-webkit-credentials-auto-fill-button,
.book-demo-form input[type="tel"]::-webkit-contacts-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
}

.book-demo-form input:hover,
.book-demo-form textarea:hover {
    background: #edf0f3;
    border-color: #b0bbc7;
}

.book-demo-form input:focus,
.book-demo-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.15);
    background: #ffffff;
}

.book-demo-form input::placeholder,
.book-demo-form textarea::placeholder {
    color: #9aa5b1;
}

.book-demo-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.book-demo-form .form-message {
    display: none;
    margin-bottom: 1.25rem;
    padding: 0.875rem 1.125rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.book-demo-form .form-message-success {
    display: block !important;
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.book-demo-form .form-message-error {
    display: block !important;
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

.book-demo-form .form-message-info {
    display: block !important;
    background: #e3f2fd;
    color: var(--primary-dark);
    border: 1px solid #90caf9;
}

.book-demo-form .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.book-demo-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.5);
}

.book-demo-form .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 6px 24px rgba(25, 118, 210, 0.6);
    transform: translateY(-2px);
}

.book-demo-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #26A69A 100%);
    color: var(--text-on-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: min(500px, 80vw);
    height: min(500px, 80vw);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: min(600px, 90vw);
    height: min(600px, 90vw);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

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

.contact .section-title,
.contact .section-subtitle {
    color: var(--text-on-dark);
    position: relative;
    z-index: 1;
}

.contact .section-title::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
}

.contact-buttons {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--text-on-dark);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-on-dark);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-on-dark);
}

.contact-link {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

[dir="rtl"] .whatsapp-float {
    left: 30px;
    right: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 15px var(--shadow-colored);
}

[dir="rtl"] .scroll-to-top {
    left: 30px;
    right: auto;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px var(--shadow-colored);
}

/* Responsive Design - Large Screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

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

    .section-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1320px;
    }
}

/* Responsive Design - Tablets and Medium Screens */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .features-grid,
    .why-us-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    }

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

    .section-title {
        font-size: 2.5rem;
    }

    .hero {
        padding: 6rem 0;
    }
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-content {
        flex-wrap: nowrap;
    }

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

    .nav-actions {
        order: 3;
        gap: 0.5rem;
    }

    .nav-actions .go-to-app-btn span {
        display: none;
    }

    .nav-actions .go-to-app-btn svg {
        margin: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card-background);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: 2px 0 20px var(--shadow);
        transition: left 0.3s ease;
        z-index: 1000;
        gap: 0;
        order: unset;
        margin: 0;
        flex: unset;
    }

    [dir="rtl"] .nav-links {
        left: auto;
        right: -100%;
        transition: right 0.3s ease;
    }

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

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

    /* Overlay when menu is open */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        font-size: 1.1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(25, 118, 210, 0.05);
        padding-right: 1.5rem;
    }

    [dir="rtl"] .nav-links a:hover {
        padding-right: 1rem;
        padding-left: 1.5rem;
    }

    .lang-switcher {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 4rem 0 5rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero-logo-english {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .hero-logo-icon {
        width: clamp(2.5rem, 8vw, 5rem);
        height: clamp(2.5rem, 8vw, 5rem);
    }

    .hero-logo-arabic {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }

    .hero-logo-subtitle {
        font-size: clamp(0.7rem, 2vw, 1rem);
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about-text {
        font-size: 1rem;
        padding: 1rem;
    }

    .features-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card,
    .why-card {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .btn {
        width: 100%;
        max-width: 300px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lang-switcher {
        min-width: 48px;
        min-height: 48px;
    }

    .whatsapp-float,
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        min-width: 48px;
        min-height: 48px;
    }

    [dir="rtl"] .whatsapp-float,
    [dir="rtl"] .scroll-to-top {
        left: 20px;
        right: auto;
    }

    .scroll-to-top {
        bottom: 80px;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* Responsive Design - Small Tablets */
@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }

    .features-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card,
    .why-card {
        padding: 1.75rem 1.25rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding: 3.5rem 0 4.5rem;
    }

    .features,
    .why-us,
    .about,
    .faq {
        padding: 3.5rem 0;
    }

    .contact,
    .book-demo {
        padding: 4rem 0;
    }

    .footer {
        padding: 2.5rem 0 1rem;
    }

    .book-demo-form {
        padding: 2rem 1.75rem;
    }
}

/* Responsive Design - Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

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

    .hero-description {
        font-size: 0.9rem;
        padding: 0 0.75rem;
        line-height: 1.7;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .go-to-app-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: 48px;
        min-height: 48px;
    }

    .mobile-menu-toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 0.4rem;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .nav-links {
        width: 100%;
        padding: 4.5rem 1.5rem 2rem;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.875rem;
    }

    .go-to-app-btn {
        padding: 0.5rem;
        min-width: 44px;
    }

    .feature-icon,
    .why-icon {
        font-size: 2.25rem;
    }

    .feature-card h3,
    .why-card h3 {
        font-size: 1.3rem;
    }

    .feature-card p,
    .why-card p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .about-text {
        font-size: 0.95rem;
        padding: 1rem 0.75rem;
        line-height: 1.8;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-question {
        padding: 1.25rem 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1.25rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .contact-link {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .book-demo-form {
        padding: 1.75rem 1.25rem;
    }
}

/* Responsive Design - Very Small Phones */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }

    .hero-logo-english {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .hero-logo-icon {
        width: clamp(1.8rem, 6vw, 3.5rem);
        height: clamp(1.8rem, 6vw, 3.5rem);
    }

    .hero-logo-arabic {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }

    .hero-logo-subtitle {
        font-size: clamp(0.65rem, 1.8vw, 0.9rem);
    }

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

    .hero-description {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .feature-card,
    .why-card {
        padding: 1.5rem 1rem;
    }

    .feature-card h3,
    .why-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p,
    .why-card p {
        font-size: 0.85rem;
    }

    .nav-links {
        padding: 4rem 1.25rem 1.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

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

    .logo-img {
        width: 28px;
        height: 28px;
    }

    .whatsapp-float,
    .scroll-to-top {
        width: 52px;
        height: 52px;
        bottom: 15px;
        right: 15px;
    }

    [dir="rtl"] .whatsapp-float,
    [dir="rtl"] .scroll-to-top {
        left: 15px;
        right: auto;
    }

    .scroll-to-top {
        bottom: 75px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .loading-logo {
        width: 100px;
        height: 100px;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
    }
}

/* Responsive Design - Extra Small Phones */
@media (max-width: 320px) {
    .hero-logo-english {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }

    .hero-logo-icon {
        width: clamp(1.5rem, 5vw, 3rem);
        height: clamp(1.5rem, 5vw, 3rem);
    }

    .hero-logo-arabic {
        font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    }

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

    .hero-description {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .feature-card,
    .why-card {
        padding: 1.25rem 0.875rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .nav-links {
        padding: 3.5rem 1rem 1.25rem;
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 3rem 0;
    }

    .hero-logo-english {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .hero-logo-icon {
        width: clamp(2rem, 6vw, 4rem);
        height: clamp(2rem, 6vw, 4rem);
    }

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

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .features,
    .why-us,
    .about,
    .faq {
        padding: 3rem 0;
    }

    .contact {
        padding: 3.5rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .scroll-to-top,
    .loading-screen {
        display: none !important;
    }

    body {
        background: white;
    }

    .hero,
    .contact {
        background: white !important;
        color: black !important;
    }
}

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

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8) { animation-delay: 0.8s; }
.feature-card:nth-child(9) { animation-delay: 0.9s; }
.feature-card:nth-child(10) { animation-delay: 1s; }
.feature-card:nth-child(11) { animation-delay: 1.1s; }
.feature-card:nth-child(12) { animation-delay: 1.2s; }
.feature-card:nth-child(13) { animation-delay: 1.3s; }
.feature-card:nth-child(14) { animation-delay: 1.4s; }
