/* =================================================================== */
/*                       RAMZAD - BROCHURE STYLE                       */
/* =================================================================== */

/* --- 1. Global Settings & Variables --- */
:root {
    --primary-color: #F8E448;
    /* Yellow from brochure */
    --dark-bg: #F8E448;
    /* --dark-bg: transparent; */
    /* Dark grey from brochure */
    --darker-bg: #333333;
    --text-color: #f5f5f5;
    --text-secondary: #a0a0a0;
    --border-color: #444;
    --font-en: 'Montserrat', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --header-height: 80px;

}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}



body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    /* background-image: url('assets/images/favicon.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-attachment: fixed;
    background-position: center; */
}

#particles-js {
    position: fixed;
    /* يجعل الخلفية ثابتة وتغطي الشاشة */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    /* الأهم: يضع الخلفية وراء كل المحتوى */
}

html[lang="ar"] body {
    font-family: var(--font-ar);
}

html[lang="en"] body {
    font-family: var(--font-en);
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    background-color: var(--darker-bg);
    border-radius: 15px;

}

.section {
    padding: 50px 0;
    position: relative;


    /* Added margin to create space between sections */


}

.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}


















/* --- 2. Reusable Components --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #000;
    padding: 12px 35px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}



.section-title-wrapper {
    background-color: var(--primary-color);
    color: #000;
    padding: 20px 70px;
    display: inline-block;
    position: relative;
    margin-bottom: 60px;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    border-radius: 10px;
}

html[lang="en"] .section-title-wrapper {
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

.section-title {
    font-size: 2.2rem;
    margin: 0;
}

/* --- 3. Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s, box-shadow 0.4s;
}

.header.scrolled {
    background-color: var(--darker-bg);
    /* -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); */
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 45px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    padding: 5px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    font-family: inherit;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-en);
}

.lang-toggle:hover {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- 4. Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 0 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/service2.jpg') no-repeat center center/cover;
    /* صورة من البروشور */
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero .container {
    background-color: transparent;
}

/* --- 5. Sections --- */
/* About Us */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
}

.about-content blockquote {
    border-right: 4px solid var(--primary-color);
    padding-right: 20px;
    margin-top: 25px;
    font-style: italic;
    font-size: 1.1rem;
}

html[lang="en"] .about-content blockquote {
    border-right: none;
    border-left: 4px solid var(--primary-color);
    padding-right: 0;
    padding-left: 20px;
}

/* --- 5. Sections (NEW STYLES) --- */

/* --- OUR VALUES V2 --- */
.values-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--darker-bg);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.value-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.value-card:hover .value-card-icon {
    transform: scale(1.2);
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}


/* --- SERVICES V2 --- */
.tabs-nav-v2 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-link-v2 {
    background-color: var(--darker-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-link-v2:hover {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.tab-link-v2.active {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 209, 0, 0.2);
}

.tab-pane-v2 {
    display: none;
    animation: fadeIn 0.6s;
}

.tab-pane-v2.active {
    display: block;
}

.tab-pane-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--darker-bg);
    border-radius: 10px;
    overflow: hidden;
}

.tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-details {
    padding: 40px;
}

.tab-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-details li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.tab-details li i {
    color: var(--primary-color);
    margin-top: 5px;
}

/* --- WHY US V2 --- */
.why-us-grid-v2 {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.why-us-image {
    border-radius: 50%;
    width: 350px;
    height: 350px;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 209, 0, 0.3);
}

.why-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-us-feature {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.why-us-features-left .why-us-feature {
    flex-direction: row-reverse;
    text-align: right;
}

html[lang="en"] .why-us-features-left .why-us-feature {
    flex-direction: row;
    text-align: left;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.feature-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}


/* --- RESPONSIVE ADJUSTMENTS for V2 --- */
@media (max-width: 992px) {

    /* Services V2 */
    .tab-pane-content {
        grid-template-columns: 1fr;
    }

    .tab-image img {
        height: 300px;
    }

    /* Why Us V2 */
    .why-us-grid-v2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .why-us-image {
        order: -1;
        /* Puts image on top */
        margin: 0 auto;
    }

    .why-us-features-left .why-us-feature,
    .why-us-features-right .why-us-feature {
        flex-direction: row;
        text-align: left;
    }

    html[lang="ar"] .why-us-features-left .why-us-feature,
    html[lang="ar"] .why-us-features-right .why-us-feature {
        flex-direction: row-reverse;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .why-us-image {
        width: 280px;
        height: 280px;
    }

    .tab-details {
        padding: 30px;
    }
}

/* Our Work (Gallery) */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* --- Styling for "Our Work" Section Gallery --- */

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* تحسين للتجاوب */
    gap: 20px;
}

.work-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    /* -- هام جداً -- لتموضع الطبقة الشفافة */
    cursor: pointer;
    /* تغيير شكل المؤشر للإشارة إلى أن العنصر قابل للنقر (اختياري) */
}

/* 
  الطبقة السوداء الشفافة (Overlay)
  هذه هي الطبقة التي ستغطي الصورة.
*/
.work-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 
      لون أسود بشفافية 40%. يمكنك تعديل قيمة 0.4 
      (e.g., 0.3 لشفافية أكثر, 0.6 لشفافية أقل).
    */
    background-color: rgba(0, 0, 0, 0.4);

    /* 
      لإضافة تأثير انتقال سلس إذا قررت تغييرها عند الـ hover مستقبلاً.
    */
    transition: background-color 0.4s ease;

    /* 
      هذا السطر مهم لضمان أن الطبقة لا تمنع تأثير الـ hover 
      عن الصورة نفسها إذا أردت إضافة تأثيرات أخرى.
    */
    pointer-events: none;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* 
  تأثير الـ hover يطبق على الصورة فقط (التكبير)، 
  بينما الطبقة الشفافة تبقى كما هي.
*/
.work-item:hover img {
    transform: scale(1.1);
}


.work-item:hover::after {
    background-color: rgba(0, 0, 0, 0);
}





/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 700;
}

html[lang="en"] .faq-question {
    text-align: left;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 10px 25px;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-item h4 {
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-map iframe {
    border-radius: 8px;
    filter: grayscale(1) invert(0.9);
}

/* --- 6. Footer --- */
.footer {
    background: var(--darker-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-about p {
    color: var(--text-secondary);
    max-width: 350px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 10px;
}

html[lang="en"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- 7. Animations & Responsive --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--darker-bg);
        transition: right 0.4s ease-in-out;
    }

    html[lang="en"] .nav-menu {
        right: auto;
        left: -100%;
        transition: left 0.4s ease-in-out;
    }

    .nav-menu.active {
        right: 0;
    }

    html[lang="en"] .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        justify-content: center;
        height: 100%;
        gap: 35px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .tab-pane ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 30px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section-title-wrapper {
        padding: 10px 30px;
        clip-path: none;
        border-radius: 5px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .tabs-nav {
        flex-wrap: wrap;
    }

    .tab-link {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about p {
        margin: 0 auto 20px;
    }

    .social-links,
    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}