@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #2F59A2;
    --primary-green: #627A09;
    --accent-blue: #6D8BBD;
    --accent-green: #95A558;
    --light-bg: #0f172a; /* Default Dark Background */
    --white: #ffffff;
    --card-bg: #1e293b; /* Default Dark Card */
    --text-dark: #f1f5f9; /* Default Light Text */
    --text-light: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.9);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    direction: rtl;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    /* In RTL, items flow Right to Left. First item is Right, Second is Left. */
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

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

/* --- Theme Toggle --- */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.1);
}

[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(0,0,0,0.1);
}

.theme-toggle-btn:hover {
    background: rgba(0,0,0,0.05);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(0,0,0,0.05);
}

.theme-toggle-btn .fa-sun { display: block; color: #f59e0b; }
.theme-toggle-btn .fa-moon { display: none; }

[data-theme="light"] .theme-toggle-btn .fa-sun { display: none; }
[data-theme="light"] .theme-toggle-btn .fa-moon { display: block; color: var(--text-dark); }

/* --- Hero Section --- */
.hero {
    padding: 180px 5% 120px;
    background: #000 url('../images/hero-bg.png') no-repeat center center / cover; /* Premium Fallback */
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh; /* Premium tall hero */
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-background iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (min-aspect-ratio: 16/9) {
    .video-background iframe {
        width: 100vw;
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-background iframe {
        width: 177.78vh;
        height: 100vh;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 850px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(47, 89, 162, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 89, 162, 0.4);
}

.btn-green {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(98, 122, 9, 0.3);
}

.btn-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(98, 122, 9, 0.4);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.4rem;
}

/* --- Raed Badge (Trust Section) --- */
.trust-banner {
    background: var(--card-bg);
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .trust-banner {
    border-color: rgba(255,255,255,0.05);
}

.raed-badge, .maroof-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

[data-theme="light"] .raed-badge {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
    color: #166534;
}

.raed-badge {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border: 1px solid #059669;
    color: #ecfdf5;
}

[data-theme="light"] .maroof-badge {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
    color: #92400e;
}

.maroof-badge {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border: 1px solid #d97706;
    color: #fffbeb;
}

.raed-badge:hover, .maroof-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.raed-badge i { color: #22c55e; }
.maroof-badge i { color: #f59e0b; }
section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    color: var(--accent-blue);
}

[data-theme="light"] .section-title {
    color: var(--primary-blue);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Feature Cards / Service Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

[data-theme="light"] .card {
    background: var(--card-bg);
    border-color: rgba(0,0,0,0.05);
}

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

.card h3 {
    margin-bottom: 15px;
    color: var(--accent-blue);
}

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

.card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 20px 0;
}

/* --- How it Works --- */
.steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* --- Form --- */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--light-bg);
    color: var(--text-dark);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

[data-theme="light"] .form-group input, 
[data-theme="light"] .form-group textarea, 
[data-theme="light"] .form-group select {
    border-color: rgba(0,0,0,0.1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* --- Upsell Section --- */
.upsell {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-right: 4px solid var(--primary-green);
    border: 1px solid rgba(255,255,255,0.05);
}

[data-theme="light"] .upsell {
    border-color: rgba(0,0,0,0.05);
}

/* --- Trust elements --- */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* --- Footer --- */
footer {
    background: #0f172a;
    color: white;
    padding: 50px 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    nav {
        height: 70px;
        padding: 0 3%;
    }

/* --- Responsive --- */
@media (max-width: 768px) {
    nav {
        height: 70px;
        padding: 0 3%;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a:not(.btn) {
        display: none; /* Hide text links */
    }

    .nav-links a.btn {
        display: inline-block !important; /* Ensure Order button is ALWAYS visible */
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 120px 5% 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero {
        min-height: 70vh;
        padding: 120px 5% 60px;
        background: #000 url('../images/hero-bg.png') no-repeat center center / cover;
    }

    /* Ensure video covers even in narrow vertical orientation */
    .video-background iframe {
        width: 300%;
        height: 100%;
        left: -100%;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 1.2rem;
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
    }

    .btn-green {
        margin-right: 0 !important;
    }

    .trust-banner {
        flex-direction: column; /* Stack badges vertically */
        gap: 10px;
        padding: 20px;
    }
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    color: #FFF;
    filter: brightness(1.1);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 25px;
    }
}

    .raed-badge, .maroof-badge {
        font-size: 0.8rem;
        padding: 8px 15px;
        width: 100%;
        justify-content: center;
    }

    section {
        padding: 60px 5%;
    }

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