:root {
    --bg-color: #0b0e11;
    --card-bg: #151921;
    --primary-color: #7d2ae8;
    --secondary-color: #00d4ff;
    --text-color: #ffffff;
    --gray-text: #a0a6b1;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Cairo', sans-serif; /* الخط العربي الأساسي */
    line-height: 1.8;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(11, 14, 17, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #242933;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
}

.logo span { color: var(--primary-color); }

/* إصلاح التداخل هنا */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px; /* هذه المساحة التي طلبتها بين الخدمات والزر */
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}

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

.btn-nav {
    text-decoration: none;
    color: white;
    background: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-nav:hover { background: #6a24c5; box-shadow: 0 0 15px rgba(125, 42, 232, 0.4); }

/* Hero Section */
.hero {
    padding: 140px 20px;
    text-align: center;
    background: radial-gradient(circle at center, #1a1033 0%, #0b0e11 80%);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
}

.btn-primary, .btn-secondary {
    padding: 16px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    margin: 10px;
    transition: 0.3s;
}

.btn-primary { background: var(--primary-color); color: white; border: none; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(125, 42, 232, 0.3); }

.btn-secondary { border: 1.5px solid #30363d; color: white; }
.btn-secondary:hover { border-color: var(--secondary-color); background: #1c2128; }

/* Services Grid */
.services { padding: 100px 8%; }
.section-title { text-align: center; margin-bottom: 60px; font-size: 2.5rem; font-weight: 900; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid #242933;
    transition: 0.4s ease;
}

.service-card:hover { border-color: var(--primary-color); transform: translateY(-10px); }

.icon-box { font-size: 3.5rem; color: var(--secondary-color); margin-bottom: 25px; display: block; }

/* Footer */
footer {
    background: #080a0d;
    padding: 60px 8% 30px;
    border-top: 1px solid #1c2128;
    text-align: center;
}

.footer-logo { font-size: 1.5rem; font-weight: 800; font-family: 'Poppins', sans-serif; margin-bottom: 10px; }
.footer-logo span { color: var(--primary-color); }
.footer-rights { margin-top: 30px; padding-top: 20px; border-top: 1px solid #1c2128; font-size: 0.9rem; color: var(--gray-text); }
