/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #6366f1;
    /* Indigo */
    --accent: #10b981;
    /* Emerald */
    --pink: #ec4899;
    --dark: #0f172a;
    /* Slate 900 */
    --darker: #020617;
    --light: #f8fafc;
    --glass: rgba(30, 41, 59, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

html {
    overflow: auto;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    margin-top: 10px;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* --- ANIMATED BACKGROUND --- */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #ec4899;
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* --- NAVBAR --- */
nav {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

nav.scrolled {
    background: var(--glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- HERO SECTION --- */
header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff 20%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- STATS SECTION (NEW) --- */
.stats-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent);
    font-weight: 800;
}

.stat-item p {
    color: #cbd5e1;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- FEATURES SECTION --- */
.features {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), transparent);
    transition: 0.5s;
    z-index: -1;
}

.card:hover::before {
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* --- HOW IT WORKS (NEW) --- */
.steps-section {
    padding: 100px 0;
    background: var(--darker);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--primary), var(--primary) 10px, transparent 10px, transparent 20px);
    z-index: 0;
    opacity: 0.3;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.step-item:hover .step-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(10deg);
}

/* --- PRICING PLANS (NEW) --- */
.pricing-section {
    padding: 100px 0;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: 0.3s;
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--accent);
    background: rgba(16, 185, 129, 0.05);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 20px 0;
    color: white;
}

.price span {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: normal;
}

.features-list {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.features-list li i {
    color: var(--accent);
    margin-right: 10px;
}

/* --- SHOWCASE / PRODUCTS --- */
.product-row {
    display: flex;
    align-items: center;
    margin: 100px 0;
    gap: 50px;
}

.product-row.reverse {
    flex-direction: row-reverse;
}

.product-text {
    flex: 1;
}

.product-visual {
    flex: 1;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Animated UI Elements inside Visuals */
.ui-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: floatUI 6s infinite ease-in-out;
}

.ui-card-1 {
    width: 180px;
    height: 100px;
    top: 30%;
    left: 20%;
    z-index: 2;
}

.ui-card-2 {
    width: 180px;
    height: 100px;
    top: 50%;
    left: 40%;
    z-index: 3;
    background: var(--dark);
    border-color: var(--primary);
    animation-delay: 1s;
}

.ui-card-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    z-index: 1;
    background: var(--darker);
    animation-delay: 2s;
}

@keyframes floatUI {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 100px 0;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
}

.contact-item {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-item a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form {
    flex: 1.5;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    outline: none;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .product-row {
        flex-direction: column;
        text-align: center;
    }

    .product-row.reverse {
        flex-direction: column;
    }

    .steps-container::before {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-item {
        margin-bottom: 30px;
    }
}



/* --- RTL Support (Arabic Mode) --- */
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    /* خط عربي مميز */
}

/* عكس الهوامش في وضع العربي */
body.rtl .logo img {
    margin-right: 0 !important;
    margin-left: 10px !important;
}

body.rtl .btn {
    font-family: 'Cairo', sans-serif;
}

/* عكس الأزرار في الهيدر */
body.rtl .hero-content .btn:last-child {
    margin-left: 0 !important;
    margin-right: 10px !important;
}

/* عكس قوائم المميزات */
body.rtl .features-list,
body.rtl ul {
    padding-right: 0;
}

body.rtl .features-list li i,
body.rtl ul li i {
    margin-right: 0;
    margin-left: 10px;
}

/* عكس بطاقة التواصل */
body.rtl .contact-item {
    flex-direction: row;
    /* التأكد من أن الأيقونة تظل بجانب النص */
}

/* تعديل حقل الإدخال ليكون من اليمين */
body.rtl input,
body.rtl textarea {
    text-align: right;
}

@media (max-width: 500px) {
    .nav-content {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }
}