/* الألوان الجديدة: الأبيض والنحاسي الأنيق */
:root {
    --copper: #c88141;
    --copper-dark: #a6652c;
    --copper-light: #fdf5ef;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-muted: #aaaaaa;
    --text-light: #f4f4f4;
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.05);
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* ========================================= */
/* --- شاشة التحميل (Preloader) --- */
/* ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e5e5e5; /* الشاشة بقت رصاصي */
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
}

/* الدايرة النحاسي اللي بتلف حوالين اللوجو */
.preloader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(200, 129, 65, 0.2); /* نحاسي شفاف */
    border-top-color: var(--copper); /* نحاسي صريح من فوق */
    animation: spin 1s linear infinite;
}

.preloader-logo {
    width: 110px; 
    border-radius: 50%; /* عشان لو اللوجو ليه خلفية بيضاء يتقص بشكل دائري */
    animation: heartbeat 1.2s infinite alternate ease-in-out;
}

/* حركة اللف */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* حركة النبض */
@keyframes heartbeat {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 0px rgba(200, 129, 65, 0)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 10px 20px rgba(200, 129, 65, 0.4)); }
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
html {
    overflow-x: hidden;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch; 
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.copper-text { color: var(--copper); }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn-copper {
    background: var(--copper);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(200, 129, 65, 0.2);
}
.btn-copper:hover {
    background: var(--copper-dark);
    transform: translateY(-3px);
}
.btn-outline {
    border-color: var(--copper);
    color: var(--copper);
}
.btn-outline:hover {
    background: var(--copper);
    color: var(--white);
}
.w-100 { width: 100%; }

/* Glassmorphism Header */
.glass-header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}
.header-wrap {
    display: flex; justify-content: space-between; align-items: center;
    height: 80px;
}
.logo-box {
    display: flex; align-items: center; gap: 15px;
}
.logo { height: 50px; border-radius: 50%; }
.logo-text { font-size: 1.5rem; font-weight: 900; color: var(--copper); }

/* --- هنا كان الخطأ: ده الكود اللي بيرصهم جنب بعض في الديسكتوب --- */
.desktop-nav .nav-links { 
    display: flex; 
    gap: 30px; 
    align-items: center;
    list-style: none;
}

/* --- تنسيق لينكات الناف بار --- */
.nav-links a { 
    font-weight: 600; 
    color: var(--text-gray); 
    transition: var(--transition); 
    position: relative; 
    padding-bottom: 5px; 
    display: inline-block;
}
.nav-links a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    right: 0; 
    width: 0; 
    height: 2px; 
    background-color: var(--copper); 
    transition: width var(--transition); 
}
.nav-links a:hover, .nav-links a.active { 
    color: var(--copper); 
}
.nav-links a.active::after, .nav-links a:hover::after { 
    width: 100%; 
}

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--copper); cursor: pointer; }

/* Split Hero Section */
.hero-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}
.hero-split .hero-content {
    flex: 1; padding: 5%;
}
.hero-split .hero-visual {
    flex: 1; display: flex; justify-content: center; align-items: center;
}
.badge {
    display: inline-block; background: var(--copper-light); color: var(--copper);
    padding: 5px 15px; border-radius: 20px; font-weight: 700; margin-bottom: 20px;
}
.hero-content h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero-content h1 span { color: var(--copper); }
.hero-content p { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 40px; max-width: 500px; }
.hero-actions { display: flex; gap: 15px; }

/* Visual Frame */
.visual-frame {
    position: relative; width: 80%;
}
.decorative-box {
    position: absolute; top: -20px; right: -20px; width: 100%; height: 100%;
    border: 3px solid var(--copper); border-radius: 20px; z-index: -1;
}
.visual-frame img {
    width: 100%; border-radius: 20px; box-shadow: var(--shadow-soft);
}

/* Floating Stats */
.stats-section { margin-top: -50px; position: relative; z-index: 10; }
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    background: var(--white); padding: 40px; border-radius: 20px;
    box-shadow: var(--shadow-soft);
}
.stat-card { text-align: center; border-right: 1px solid #eee; }
.stat-card:last-child { border: none; }
.stat-card i { font-size: 2rem; color: var(--copper); margin-bottom: 10px; }
.stat-card h3 { font-size: 2.5rem; color: var(--text-dark); line-height: 1; }
.stat-card p { color: var(--text-gray); }

/* Modern Services */
.section-head { margin-bottom: 60px; }
.section-head h2 { font-size: 2.5rem; font-weight: 900; }
.services-showcase {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.service-block {
    background: var(--white); padding: 40px 30px; border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02); transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.service-block:hover {
    transform: translateY(-10px); box-shadow: var(--shadow-soft); border-color: var(--copper);
}
.icon-wrap {
    width: 70px; height: 70px; background: var(--copper-light); color: var(--copper);
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    font-size: 1.8rem; margin-bottom: 25px;
}
.service-block h3 { margin-bottom: 15px; font-size: 1.4rem; }
.service-block p { color: var(--text-gray); }

/* --- خطوات العمل (Process) --- */
.process-section { background-color: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; position: relative; }
.process-step { text-align: center; padding: 20px; position: relative; }
.step-number { width: 60px; height: 60px; background: var(--copper); color: var(--white); font-size: 1.5rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 10px 20px rgba(200, 129, 65, 0.3); }
.process-step h3 { margin-bottom: 10px; color: var(--text-dark); }
.process-step p { color: var(--text-gray); font-size: 0.95rem; }

/* --- معرض الأعمال (Portfolio) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    height: 250px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    bottom: -100%; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px; transition: bottom 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
    bottom: 0;
}
.gallery-overlay h4 {
    color: var(--white); font-size: 1.2rem; margin-bottom: 10px;
}
.view-btn {
    align-self: flex-start;
    background: var(--copper); color: var(--white);
    width: 40px; height: 40px; display: flex; align-items: center;
    justify-content: center; border-radius: 50%;
}

.mt-40 { margin-top: 40px; }
.hidden-gallery-item { display: none !important; }
.fade-in-item { animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow-soft); border-right: 4px solid var(--copper); }
.stars { color: #f5b301; margin-bottom: 15px; font-size: 1.1rem; }
.review-text { font-style: italic; color: var(--text-gray); margin-bottom: 20px; line-height: 1.8; }
.client-name { color: var(--text-dark); font-weight: bold; }

/* Contact Section */
.split-contact { display: flex; gap: 50px; align-items: center; }
.contact-info { flex: 1; }
.info-list { margin-top: 40px; }
.info-list li { display: flex; gap: 20px; margin-bottom: 30px; align-items: center; }
.info-icon {
    width: 50px; height: 50px; background: var(--copper); color: var(--white);
    display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.2rem;
}
.info-list strong { display: block; font-size: 1.1rem; }
.info-list span { color: var(--text-gray); }

.contact-form-card {
    flex: 1; background: var(--white); padding: 50px;
    border-radius: 20px; box-shadow: var(--shadow-soft);
}
.input-group { position: relative; margin-bottom: 30px; width: 100%; text-align: right; }
.input-group input, .input-group textarea {
    width: 100%; display: block; padding: 15px 0; border: none; border-bottom: 2px solid #eee;
    background: transparent; outline: none; font-family: inherit; font-size: 1rem;
    transition: var(--transition);
}
.input-group label {
    position: absolute; right: 0; top: 15px; color: var(--text-gray);
    transition: var(--transition); pointer-events: none;
}
.input-group input:focus, .input-group textarea:focus { border-color: var(--copper); }
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px; font-size: 0.85rem; color: var(--copper);
}

/* --- الخريطة المزخرفة המدمجة (Location Edge Fade) --- */
.location-image-style {
    background-color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
}

.pre-map-title {
    font-size: 1.6rem;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    z-index: 5; 
}

.relative-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 600px;
}

/* الحافة العلوية المتدرجة */
.relative-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 20%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* الحافة السفلية المتدرجة */
.relative-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.relative-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: contrast(1.05) brightness(0.95);
}

/* الكارت الأبيض العائم فوق الخريطة */
.map-floating-card {
    position: absolute;
    bottom: 30px;
    right: 10%; 
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 380px;
    text-align: center;
    z-index: 2; 
}

.map-floating-card h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 900;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 600;
}

.info-row i {
    color: #cb8864;
    font-size: 1.2rem;
}

.btn-map-dir {
    display: block;
    width: 100%;
    background-color: #cb8864;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 25px;
    transition: 0.3s;
    text-decoration: none;
    border: none;
}

.btn-map-dir:hover {
    background-color: #b37351;
    color: #fff;
}

.contact-card-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.btn-card-wa, .btn-card-call {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    text-decoration: none;
}

.btn-card-wa { background-color: #25D366; }
.btn-card-wa:hover { background-color: #1eab52; color: #fff; }
.btn-card-call { background-color: #333333; }
.btn-card-call:hover { background-color: #000000; color: #fff; }

/* --- الفوتر الضخم (Mega Footer) --- */
.mega-footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding-top: 80px;
    border-top: 5px solid var(--copper);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
.footer-title {
    color: var(--copper); font-size: 1.5rem; margin-bottom: 25px;
    position: relative; padding-bottom: 10px;
}
.footer-title::after {
    content: ''; position: absolute; right: 0; bottom: 0;
    width: 50px; height: 2px; background: var(--copper);
}
.footer-desc {
    color: var(--text-muted); line-height: 1.8;
}
.footer-links li, .footer-contact li {
    margin-bottom: 15px; color: var(--text-muted);
}
.footer-links a {
    transition: var(--transition); display: inline-block;
}
.footer-links a:hover {
    color: var(--copper); transform: translateX(-5px);
}
.footer-links i { margin-left: 8px; font-size: 0.8rem; }
.footer-contact li {
    display: flex; align-items: center; gap: 10px;
}

.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { width: 45px; height: 45px; background: rgba(255,255,255,0.05); color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.2rem; transition: var(--transition); }
.social-icon:hover { transform: translateY(-5px); }
.social-icon.fb:hover { background: #1877F2; }
.social-icon.insta:hover { background: #E1306C; }
.social-icon.tiktok:hover { background: #ff0050; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 30px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.copyright p { color: var(--text-muted); font-size: 0.95rem; }
.developer-credit { text-align: left; }
.developer-credit p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.dev-name { color: var(--copper); font-size: 1.1rem; font-weight: 700; display: block; margin-top: 5px; letter-spacing: 0.5px; }

/* Animations */
.reveal-up { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal-left { opacity: 0; transform: translateX(40px); transition: 0.8s ease-out; }
.reveal-right { opacity: 0; transform: translateX(-40px); transition: 0.8s ease-out; }
.reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0); }

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-split { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-actions { justify-content: center; }
    
    /* إظهار الإطار النحاسي وتظبيط مقاسه للموبايل */
    .visual-frame { width: 85%; margin: 30px auto 0; }
    .decorative-box { 
        display: block; 
        top: -15px; 
        right: -15px; 
        border-width: 2px;
    }
    
    /* إصلاح استمارة التواصل (تداخل العناصر والخطوط المقطوعة) */
    .split-contact { 
        flex-direction: column; 
        align-items: stretch; /* مهم جداً عشان الكارت ياخد عرض الشاشة بالكامل ومينكمش */
        gap: 40px;
    }
    .contact-info { text-align: right; }
    .contact-form-card { 
        padding: 35px 20px; /* تقليل الحواف الداخلية عشان ندي مساحة للخطوط */
        width: 100%; 
    }
    
    /* إصلاح تداخل الإحصائيات مع الصورة */
    .stats-section { margin-top: 40px; }
    .stats-grid { grid-template-columns: 1fr; margin-top: 0; }
    
    .stat-card { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; }
    
    /* -- إصلاح قائمة الموبايل (الناف بار) بشكل جذري -- */
    .desktop-nav { 
        position: absolute; 
        top: 80px; 
        left: 0; 
        width: 100%; 
        background: var(--white); 
        box-shadow: 0 15px 25px rgba(0,0,0,0.08); 
        display: none; 
        border-top: 1px solid #f0f0f0;
        z-index: 1001;
    }
    .desktop-nav.open { display: block; }
    .desktop-nav .nav-links { 
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 0; 
    }
    .desktop-nav .nav-links li {
        width: 100%;
        text-align: right;
        border-bottom: 1px solid #f5f5f5;
    }
    .desktop-nav .nav-links li:last-child {
        border-bottom: none;
    }
    .nav-links a {
        display: block;
        font-size: 1.15rem; 
        padding: 15px 25px;
        color: var(--text-dark);
    }
    .desktop-nav .nav-links a::after {
        display: none;
    }
    .desktop-nav .nav-links a:hover, 
    .desktop-nav .nav-links a.active {
        color: var(--copper);
        background-color: var(--bg-light);
        padding-right: 35px;
    }
    
    .mobile-toggle { display: block; }
}

@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; text-align: center; }
    .developer-credit { text-align: center; margin-top: 15px; }
    
    .map-floating-card {
        right: 5%;
        left: 5%;
        width: 90%;
        bottom: 20px;
        padding: 30px 20px;
    }
    .pre-map-title {
        font-size: 1.3rem;
        padding: 0 15px;
    }
}