:root {
    --primary: #0061f2;
    --secondary: #00c6ff;
    --grad-main: linear-gradient(135deg, #0061f2 0%, #00c6ff 100%);
    --dark: #1e293b;
    --text: #334155;
    --white: #ffffff;
    --light-bg: #f8faff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--white);
    color: var(--text);
    overflow-x: hidden; width: 100%; line-height: 1.8;
}
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 0; position: fixed; width: 100%; top: 0; z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); border-bottom: 3px solid var(--secondary);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 900; color: var(--primary); }
.logo i { font-size: 28px; color: var(--secondary); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--dark); font-weight: 700; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-btn { background: var(--grad-main); color: white !important; padding: 8px 25px; border-radius: 50px; font-size: 14px; }
.hamburger { display: none; font-size: 26px; color: var(--primary); cursor: pointer; }
.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.7); z-index: 2000; opacity: 0; visibility: hidden;
    transition: all 0.4s ease; backdrop-filter: blur(4px);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.menu-box {
    position: absolute; top: 0; right: 0; width: 75%; max-width: 300px; height: 100%;
    background: white; padding: 30px; display: flex; flex-direction: column; gap: 20px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2); transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active .menu-box { transform: translateX(0); }
.close-btn { align-self: flex-end; font-size: 28px; color: #555; cursor: pointer; background: #f5f5f5; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-logo { font-size: 1.2rem; font-weight: 900; color: var(--primary); border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 10px; }
.menu-box a { color: var(--dark); font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid #f9f9f9; padding: 12px 0; display: block; }
.hero {
    height: 90vh; position: relative; display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; margin-bottom: 0;
    background: url('images/IMG-20251204-WA0001.jpg') no-repeat center center/cover; width: 100%;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, rgba(0, 30, 80, 0.8), rgba(0, 97, 242, 0.6)); z-index: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); line-height: 1.3; }
.hero-content p { font-size: 1.3rem; margin-bottom: 30px; color: #f0f0f0; }
.main-btn { background: white; color: var(--primary); padding: 15px 40px; border-radius: 50px; font-weight: bold; font-size: 1.1rem; display: inline-block; transition: 0.3s; }
.main-btn:hover { background: var(--secondary); color: white; transform: scale(1.05); }
.section { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary); font-weight: 800; margin-bottom: 15px; }
.section-title p { max-width: 700px; margin: 0 auto; color: #666; font-size: 1.1rem; }
.line { width: 100px; height: 5px; background: var(--grad-main); margin: 15px auto; border-radius: 10px; }
.about-wrapper { display: flex; gap: 50px; align-items: center; }
.about-text { flex: 1; }
.about-text p { margin-bottom: 20px; font-size: 1.1rem; text-align: justify; color: #555; }
.check-list li { margin-bottom: 12px; font-weight: bold; color: var(--dark); font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.check-list i { color: #27ae60; flex-shrink: 0; }
.about-image { flex: 1; position: relative; }
.about-image img { 
    width: 100%; 
    height: 400px; 
    object-fit: cover; 
    border-radius: 20px; 
    box-shadow: 15px 15px 0 var(--secondary); 
}

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; margin-top: 40px; }
.step-card { padding: 30px; background: white; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 5px solid var(--primary); transition: 0.3s; }
.step-card:hover { transform: translateY(-10px); }
.step-icon { width: 80px; height: 80px; background: #eef2ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: var(--primary); }
.step-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--dark); }
.services-wrapper { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.service-card { background: white; border-radius: 20px; overflow: hidden; width: 100%; max-width: 450px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: 0.3s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-10px); }
.card-img { height: 280px; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-card:hover .card-img img { transform: scale(1.1); }
.card-badge { position: absolute; top: 15px; right: 15px; background: var(--primary); color: white; padding: 6px 18px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; z-index: 2; }
.badge-green { background: #27ae60; }
.card-body { padding: 30px; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.read-more-btn { display: inline-block; padding: 10px 30px; border: 2px solid var(--primary); color: var(--primary); border-radius: 50px; margin-top: 20px; font-weight: bold; transition: 0.3s; }
.read-more-btn:hover { background: var(--primary); color: white; }

.tips-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tip-box { background: white; padding: 25px; border-radius: 10px; border-right: 4px solid var(--secondary); box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.tip-box h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.2rem; }

.contact-section { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: white; padding: 80px 0; }
.contact-cards-container { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.contact-box { background: rgba(255,255,255,0.05); padding: 40px; border-radius: 20px; text-align: center; width: 100%; max-width: 400px; border: 1px solid rgba(255,255,255,0.1); }
.c-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }
.phone-display { font-size: 2rem; font-weight: bold; margin: 15px 0; color: white; letter-spacing: 2px; }
.btn-row { display: flex; gap: 15px; justify-content: center; margin-top: 20px; }
.c-btn { flex: 1; padding: 12px; border-radius: 10px; font-weight: bold; color: white; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; }
.c-btn.call { background: var(--primary); }
.c-btn.whatsapp { background: #25D366; }
.c-btn:hover { transform: scale(1.05); opacity: 0.9; }

footer { background: #111; color: #888; padding: 30px 0; text-align: center; border-top: 1px solid #222; }
.dev-credits a { color: var(--secondary); font-weight: bold; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .about-wrapper { flex-direction: column; }
    .about-image img { height: 250px; } 
    .contact-cards-container { flex-direction: column; }
    .section-title h2 { font-size: 2rem; }
}
/* --- تنسيق الأحياء (شكل جديد ومنظم) --- */
.tags-wrapper {
    display: flex;
    flex-wrap: wrap; /* يسمح بالنزول للسطر التالي */
    gap: 12px; /* مسافة واضحة بين كل حي والآخر أفقياً وعمودياً */
    margin-top: 15px;
    margin-bottom: 25px;
}

.district-tag {
    background: #ffffff;
    color: var(--primary);
    padding: 8px 18px; 
    border-radius: 50px; 
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid #dbeafe; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); 
    transition: all 0.3s ease;
    cursor: default;
    display: inline-block; 
}

.district-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0, 97, 242, 0.2);
}
.details-content-wrapper {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 25px; 
}

.content-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); 
    border: 1px solid #f0f0f0;
    transition: transform 0.3s;
}

.content-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0, 97, 242, 0.08);
}

.content-card h2, .content-card h3 {
    margin-top: 0;
    color: var(--primary);
}
.specs-table {
    margin: 0; 
    border: none;
}
.specs-table td { background: transparent; 
}
.details-container {
    display: flex;
    gap: 40px;
    align-items: start; 
    position: relative;
}

.details-gallery {
    flex: 0.8; 
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    position: sticky; 
    top: 100px;
    z-index: 10;
}
.details-gallery img {
    width: 100%;
    object-fit: cover; 
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border: 4px solid white; 
    background-color: #f0f0f0; 
}
.details-gallery img:first-child {
    grid-column: span 2; 
    height: 320px; 
}
.details-gallery img:nth-child(2),
.details-gallery img:nth-child(3) {
    grid-column: span 1; 
    height: 180px; 
}
.details-gallery img:hover {
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .details-container {
        flex-direction: column; 
    }
    
    .details-gallery {
        width: 100%;
        position: static; 
        grid-template-columns: 1fr 1fr; 
    }

    .details-gallery img:first-child {
        height: 250px;
    }
}

@media (max-width: 500px) {
    .details-gallery {
        grid-template-columns: 1fr; 
    }
    .details-gallery img:first-child,
    .details-gallery img:nth-child(2),
    .details-gallery img:nth-child(3) {
        grid-column: span 1;
        height: 220px;
    }
}