/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0A2647;
    /* Dark Blue */
    --secondary-color: #D4AF37;
    /* Gold */
    --light-color: #FFFFFF;
    /* White */

    /* --- تعديل --- */
    /* تم تغيير اللون الرمادي إلى لون زجاجي شبه شفاف لإعطاء عمق للتصميم */
    --glass-bg-color: rgba(255, 255, 255, 0.05);
    --glass-border-color: rgba(255, 255, 255, 0.2);

    --text-color: #333;
    /* Dark Gray for text inside cards */
    --light-text-color: #E0E0E0;
    /* Lighter gray for paragraphs on dark bg */

    --font-family-ar: 'Tajawal', sans-serif;
    --font-family-en: 'Roboto', sans-serif;
    --transition-speed: 0.3s ease;
}

main {
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url("src/images/Copper Piping1.jpg") no-repeat center center fixed;
    background-size: cover;
    color: var(--light-color);
    /* النص الافتراضي في main يكون أبيض */
    padding: 15px;
}

html {
    scroll-behavior: smooth;
}

/* --- Styling for Images in About Us Section --- */
.feature-item .feature-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* Makes the image circular */
    object-fit: cover;
    /* Ensures the image fills the circle without distortion */
    margin-bottom: 20px;
    border: 4px solid var(--secondary-color);
    /* Adds a golden border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Styling for Images in Services Section --- */
.service-card {
    padding: 0;
    /* Remove padding to allow image to be at the top */
    overflow: hidden;
    /* Hide anything that goes outside the border-radius */
    display: flex;
    flex-direction: column;
}

.service-card .service-image {
    width: 100%;
    height: 180px;
    /* Set a fixed height for all service images */
    object-fit: cover;
    /* Ensures the image covers the area well */
    display: block;
}





body {
    margin: 0;
    font-family: var(--font-family-ar);
    color: var(--text-color);
    background-color: var(--primary-color);
    /* --- تعديل --- الخلفية الأساسية للموقع أزرق داكن */
    line-height: 1.6;
    overflow-x: hidden;
}

body.en {
    font-family: var(--font-family-en);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
    border-radius: 15px;
    margin: 25px;

    /* --- تعديل --- */
    /* تطبيق الخلفية الزجاجية على كل الأقسام */
    background: var(--glass-bg-color);
    border: 1px solid var(--glass-border-color);
    backdrop-filter: blur(2px);
    /* تأثير البلور للخلفية */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;

    /* --- تعديل --- */
    /* تغيير لون العناوين الرئيسية لتكون ذهبية وواضحة على الخلفية الداكنة */
    color: var(--secondary-color);
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;

    /* --- تعديل --- */
    /* تغيير لون النصوص التمهيدية لتكون بيضاء فاتحة */
    color: var(--light-text-color);
}

/* --- Header --- */
.header {
    background: rgba(255, 255, 255, 0.9);
    /* --- تعديل --- جعل الهيدر شبه شفاف */
    backdrop-filter: blur(25px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition-speed);
    background-color: var(--light-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}






.logo-container {
    display: flex;
    /* يجعل العناصر (الصورة والنص) بجانب بعضها */
    align-items: center;
    /* يوسّط الصورة والنص عمودياً */
    text-decoration: none;
    /* يزيل الخط الذي يظهر تحت الروابط */
    gap: 12px;
    /* يضيف مسافة 12 بكسل بين الصورة والنص */
}

.logo-container img {
    height: 45px;
    /* يحدد ارتفاع اللوقو (يمكنك تعديل القيمة حسب حجم صورتك) */
    width: auto;
    /* يحافظ على أبعاد الصورة تلقائياً */
}

.logo-container .logo-text {
    font-size: 1.4rem;
    /* حجم الخط للنص بجانب الصورة */
    font-weight: 800;
    color: var(--primary-color);
}





.nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 0px 10px;
    font-weight: 700;
    transition: var(--transition-speed);
}

.nav ul li a:hover {
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 8px;
    transition: var(--transition-speed);
}

.contact-icons a:hover {
    color: var(--secondary-color);
}

.lang-switcher {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition-speed);
}

.lang-switcher:hover {
    background: var(--secondary-color);
    color: var(--light-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('src/images/Copper Piping2.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition-speed);
    border: 2px solid transparent;
    margin: 10px;
}

.btn i {
    margin-right: 8px;
}

html[dir="ltr"] .btn i {
    margin-right: 0;
    margin-left: 8px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c8a030;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--secondary-color);
    margin: 0 10px;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- About & Services Sections Common Styles --- */
/* --- تعديل --- إزالة الخلفيات من الأقسام الفردية لأنها موجودة في .section-padding */
.about-section,
.services-section,
.gallery-section,
.testimonials-section,
.faq-section {
    background: none;
    /* إزالة الخلفية المكررة */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: var(--light-color);
    /* خلفية بيضاء للبطاقات */
    color: var(--text-color);
    /* نص داكن داخل البطاقات */
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-speed);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-color);
    /* خلفية بيضاء */
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-speed);
    color: var(--text-color);
    /* نص داكن */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}



.service-card h3 {
    color: var(--primary-color);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--light-color);
    /* --- تعديل --- خلفية بيضاء للتوحيد */
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
}

.testimonial-rating {
    color: #f39c12;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    /* --- تعديل --- نص داكن متناسق */
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

html[dir="ltr"] .testimonial-author img {
    margin-right: 0;
    margin-left: 15px;
}

.testimonial-author span {
    font-weight: bold;
    color: var(--primary-color);
}

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 700px;
    margin: 0 auto;
}

.faq-accordion details {
    background: rgba(255, 255, 255, 0.9);
    /* --- تعديل --- خلفية بيضاء شفافة قليلاً */
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px 20px;
    border: 1px solid #eee;
}

.faq-accordion details[open] {
    border-color: var(--secondary-color);
}

.faq-accordion summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary i {
    transition: transform 0.3s;
}

.faq-accordion details[open] summary i {
    transform: rotate(180deg);
}

.faq-accordion p {
    margin-top: 15px;
    color: #666;
    padding-left: 10px;
    border-left: 3px solid var(--secondary-color);
}

html[dir="ltr"] .faq-accordion p {
    padding-left: 0;
    padding-right: 10px;
    border-left: none;
    border-right: 3px solid var(--secondary-color);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--primary-color);
    /* خلفية بلون أزرق داكن صلب للتباين */
    color: var(--light-color);
    text-align: center;
    border: none;
    backdrop-filter: none;
}

.contact-section .section-title,
.contact-section .section-intro {
    color: var(--light-color);
}

.contact-buttons .btn {
    margin: 10px;
}

/* --- Footer --- */
.footer {
    background: var(--primary-color);
    color: #ccc;
    padding: 50px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--light-color);
    margin-bottom: 15px;
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: var(--transition-speed);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

html[dir="ltr"] .footer-col ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-contact-info a {
    display: flex;
    align-items: center;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition-speed);
}

.footer-contact-info a:hover {
    color: var(--secondary-color);
}

.footer-contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
}

html[dir="ltr"] .footer-contact-info i {
    margin-right: 0;
    margin-left: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Floating Contact Icons --- */
.contacts-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.contacts-icons a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.contacts-icons a:hover {
    transform: scale(1.1);
}

.phone-btns {
    background: var(--primary-color);
    /* --- تعديل --- استخدام لون الهوية البصرية */
    border: 1px solid var(--secondary-color);
}

.whatsapp-btns {
    background: #25d366;
}

/* --- Responsive Design --- */
@media (max-width:850px) {
    .section-padding {
        padding: 40px 15px;
        /* --- تعديل --- إضافة padding جانبي للموبايل */
        margin: 15px 5px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        /* --- تعديل --- توحيد الخلفية */
        backdrop-filter: blur(10px);
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
    }

    .nav ul li {
        width: 100%;
    }

    .nav ul li a {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .header .container {
        padding: 0 15px;
    }

    .header-actions .contact-icons {
        display: none;
    }
}


.developer-credit {

    border-radius: 12px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /* للسماح بالالتفاف على الشاشات الصغيرة جداً */
    /* gap: 8px 8px; */
    /* مسافة عمودية وأفقية بين العناصر */
    margin-top: 12px;
    /* مسافة بينه وبين سطر الحقوق */
    font-size: 0.9rem;
    /* حجم خط أصغر قليلاً */
    color: var(--primary-color);

    /* لون رمادي فاتح لجعله غير مزعج */
}

.developer-credit span {
    display: flex;
    align-items: center;
    gap: 8px;
    /* مسافة بين النص والأيقونة */
}

.developer-credit .dev-logo {

    /* 1. إضافة خلفية بيضاء */
    padding: 3px;
    height: 40px;
    /* التحكم في ارتفاع الصورة */
    width: 40px;
    /* التحكم في عرض الصورة */
    border-radius: 50%;
    /* لجعل الصورة دائرية الشكل */
    vertical-align: middle;
    /* لمحاذاة الصورة عمودياً مع النص */

    /* إضافة هوامش بسيطة حول الصورة */
}

.developer-credit a {
    color: var(--primary-color);
    /* نفس لون النص */
    text-decoration: none;
    transition: var(--transition-speed);
    font-weight: bold;
}

.developer-credit a:hover {
    color: blue;
    /* تغيير اللون عند مرور الماوس */
}