/* --- التنسيقات الأساسية --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #0b1120;
    color: #fff;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, .9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #00bfff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* --- تنسيق أزرار تبديل اللغة الأنيقة --- */
.lang-switcher {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 15px;
}

.lang-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: #fff;
    color: #0b1120; /* متناسق مع لون خلفية موقعك */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

/* --- القائمة والروابط --- */
.menu {
    display: flex;
    gap: 25px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.menu a:hover {
    color: #00bfff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* --- الأقسام والعناصر --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .8)), url('https://images.unsplash.com/photo-1492691527719-9d1e07e534b4');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 70px;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 35px;
    color: #00bfff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 22px;
    line-height: 1.9;
    margin-bottom: 35px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: #00bfff;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: .3s;
}

.btn:hover {
    background: #0095d8;
    transform: translateY(-3px);
}

section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    color: #00bfff;
}

.about {
    text-align: center;
    max-width: 900px;
    margin: auto;
}

.about p {
    font-size: 20px;
    line-height: 2.2;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: #131c30;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #1e2b4a;
    transition: .4s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #00bfff;
}

.card h3 {
    margin-bottom: 15px;
    color: #00bfff;
}

.card p {
    line-height: 1.8;
}

/* --- معرض الأعمال الذكي --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 400px;
    border-radius: 15px;
    background-color: rgba(19, 28, 48, 0.5);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.02);
}

/* --- التواصل والتذييل --- */
.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.contact-box {
    background: #131c30;
    padding: 25px;
    border-radius: 15px;
}

.contact-box h3 {
    color: #00bfff;
    margin-bottom: 10px;
}

.contact-box a,
.contact-box p {
    color: #cfd8e3;
    text-decoration: none;
}

.contact-box a:hover {
    color: #00bfff;
}

.social {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social a {
    background: #00bfff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 700;
}

footer {
    background: #050913;
    text-align: center;
    padding: 25px;
    border-top: 1px solid #1e2b4a;
}

.whatsapp {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    text-decoration: none;
    color: white;
}

/* --- التجاوب مع الشاشات (Responsive) --- */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }

    .gallery img {
        max-height: 250px;
        border-radius: 10px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero p {
        font-size: 18px;
    }

    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(0, 0, 0, .95);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .menu.open {
        display: flex;
    }

    .menu a {
        padding: 15px 20px;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
}
