/* ===== Reset بسيط ===== */


/* إخفاء القائمة في الجوال */
.nav-links {
    display: flex;
    list-style: none;
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
        cursor: pointer;
    }
}




* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    text-align: right;
    background-color: #f3f4f6;
    color: #111827;
}

/* ===== متغيرات ألوان للموقع الجديد ===== */
:root {
    --primary: #0f766e;      /* أخضر مزرق */
    --primary-light: #14b8a6;
    --primary-dark: #115e59;
    --accent: #f97316;       /* برتقالي */
    --bg-soft: #e5f3f1;
    --card-bg: #ffffff;
}

/* ===== حاوية أساسية ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== الهيدر والنافبار ===== */
header {
    background: radial-gradient(circle at top, var(--primary-light), var(--primary-dark));
    color: #f9fafb;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.logo img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    border: 2px solid rgba(248, 250, 252, 0.6);
    object-fit: cover;
    background-color: #fff;
}

.logo span {
    font-weight: 700;
    font-size: 1.05rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.3rem;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
    padding-bottom: 0.15rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: #fef3c7;
    border-color: var(--accent);
}

/* زر القائمة للموبايل */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(243, 244, 246, 0.4);
    color: #f9fafb;
    padding: 0.3rem 0.7rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
}

/* ===== قسم البانر (Hero) ===== */
.hero {
    background: linear-gradient(to bottom, #0f172a, #082f49);
    color: #f9fafb;
    padding: 3.2rem 0 3.6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset-inline-start: -120px;
    top: 40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 60%);
    opacity: 0.7;
}

.hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -100px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(248, 250, 252, 0.12), transparent 60%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 2.3rem;
    align-items: center;
    z-index: 1;
}

.hero-tag {
    font-size: 0.85rem;
    color: #a5f3fc;
    margin-bottom: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    background-color: rgba(15, 118, 110, 0.35);
    border-radius: 999px;
}

.hero-tag span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: #22c55e;
}

.hero h1 {
    font-size: 2.05rem;
    line-height: 1.35;
    margin-bottom: 0.8rem;
}

.hero p {
    margin-bottom: 1.5rem;
    color: #e5e7eb;
    line-height: 1.9;
    font-size: 0.98rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.3rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #e5e7eb;
    opacity: 0.9;
}

/* مربع المعلومات في الهيرو */
.hero-card {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 1.25rem;
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
}

.hero-card h3 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
    color: #e5e7eb;
}

.hero-card ul {
    list-style: none;
    font-size: 0.88rem;
    color: #cbd5f5;
}

.hero-card li {
    margin-bottom: 0.4rem;
}

/* ===== الأزرار ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}

.btn-primary {
    background: linear-gradient(to left, var(--primary-light), var(--primary));
    color: #ecfeff;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(248, 250, 252, 0.7);
}

.btn-ghost {
    background-color: transparent;
    color: var(--primary-dark);
    border: 1px dashed var(--primary);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.25);
}

/* ===== الأقسام العامة ===== */
section {
    padding: 3rem 0;
}

.section-alt {
    background-color: #ffffff;
}

.section-soft {
    background-color: var(--bg-soft);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.section-subtitle {
    color: #4b5563;
    margin-bottom: 1.6rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== كروت الخدمات ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 1.1rem;
    border-inline-start: 4px solid var(--primary-light);
    padding: 1.4rem 1.3rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.card p {
    font-size: 0.9rem;
    color: #4b5563;
}

.list {
    margin-top: 0.4rem;
    padding-right: 1.1rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.list li {
    margin-bottom: 0.35rem;
}

/* ===== معرض الصور ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
}

.gallery-item {
    background-color: #ffffff;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.gallery-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.gallery-item .caption {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
    color: #374151;
}

/* ===== فورم التواصل ===== */
.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2rem;
}

form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #111827;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 0.7rem;
    border: 1px solid #d1d5db;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

form textarea {
    min-height: 130px;
}

/* ===== الفوتر ===== */
footer {
    background-color: #020617;
    color: #9ca3af;
    padding: 1.4rem 0;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content a {
    color: #e5e7eb;
    text-decoration: none;
}

/* بصمتك كمبرمج */
.dev-credit {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 600;
}

.dev-credit strong {
    color: #fde68a;
}

/* ===== Responsive ===== */
@media (max-width: 840px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        inset-inline-end: 5%;
        top: 60px;
        padding: 0.8rem 1rem;
        background-color: #020617;
        border-radius: 0.9rem;
        border: 1px solid #1f2937;
        flex-direction: column;
        gap: 0.75rem;
        z-index: 40;
    }

    .nav-links.mobile-show {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}
