:root {
    --primary: #a50044;
    --primary-light: #F7E8EB;
    --primary-dark: #8a2338;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --white: #ffffff;
    --gray: #f5f5f5;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}


.logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: 230px;

}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 0px 12px;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    border-radius: 4px;

}

nav .active a,
nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}


.membership-btn:hover {
    background-color: var(--primary-dark);
}

/* صورة رأسية */
.hero {
    position: relative;
    width: 100%;
    height: auto;
}

.hero img {
    width: 100%;
    display: block;
}


.hero-text {
    position: absolute;
    top: 45%;
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-size: 50px;
    margin-bottom: 300px;
    font-weight: bold;
    margin-top: -220px;
    font-family: 'El Messiri', serif;

}

.text_p p {
    font-size: 22px;
    font-weight: 300;
    margin-top: -300px;
}

/* المربع الوردي */
.contact-section {
    background-color: #F7E8EB;
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    border-radius: 12px;
    overflow: hidden;
    position: absolute;
    margin-top: -460px;
    /* يمكن تعديله حسب الحاجة */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.contact-form {
    flex: 1;
    padding: 40px;
    min-width: 400px;
}

.section-title {
    font-family: 'El Messiri', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.contact-form h3 {
    font-size: 22px;
    color: #000;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-form p {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    color: #000;
    margin-bottom: 6px;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 500px;
    max-width: 100%;
    height: 38px;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
}

.form-group textarea {
    height: 100px;
}

.submit-btn {
    background-color: #B23048;
    color: white;
    border: none;
    margin-right: 90px;
    border-radius: 8px;
    width: 160px;
    height: 51px;
    cursor: pointer;
    font-size: 16px;
}

.contact-image {
    flex: 1;
    min-width: 300px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .hero-text h1 {
        font-size: 30px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .contact-section {
        flex-direction: column;
        top: 85%;
        /* إعادة ضبط للموبايل */
    }

    .contact-form {
        padding: 20px;
    }

    /* أساسيات الاستجابة للصفحة */

    /* عند الشاشات المتوسطة والصغيرة */
    @media (max-width: 991px) {

        /* تجعل قسم التواصل يتحول من صف إلى عمود */
        .contact-section {
            flex-direction: column !important;
            width: 90% !important;
            margin-top: -350px !important;
            /* عدّل حسب حاجة */
            position: relative !important;
            /* مهم للحفاظ على الترتيب */
        }

        /* النموذج يحتل كامل العرض */
        .contact-form {
            min-width: 100% !important;
            padding: 20px !important;
        }

        /* الصورة الجانبية تأخذ عرض كامل وتكون أسفل النموذج */
        .contact-image {
            min-width: 100% !important;
            padding: 0 20px 40px 20px;
        }

        .contact-image img {
            width: 100% !important;
            height: auto !important;
        }

        /* تصغير حجم العناوين والنص */
        .hero-text h1 {
            font-size: 24px !important;
            margin-bottom: 100px !important;
            margin-top: -100px !important;
        }

        .text_p p {
            font-size: 14px !important;
            margin-top: -120px !important;
        }

        /* اجعل الحقول تأخذ العرض الكامل */
        .form-group input,
        .form-group textarea {
            width: 100% !important;
        }

        /* زر الإرسال يأخذ العرض الكامل */
        .submit-btn {
            width: 100% !important;
            margin-right: 0 !important;
        }
    }

    /* عند الشاشات الصغيرة جدا (جوال) */
    @media (max-width: 480px) {
        .container {
            padding: 10px !important;
        }

        nav ul {
            flex-wrap: wrap !important;
            gap: 10px !important;
        }

        nav a {
            font-size: 14px !important;
            padding: 6px 8px !important;
        }

        .hero-text h1 {
            font-size: 20px !important;
        }

        .text_p p {
            font-size: 13px !important;
        }

        /* تأثير تحويم على الأزرار والروابط */
        .submit-btn {
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .submit-btn:hover {
            background-color: #8a2338;
            /* لون أغمق شوي */
            transform: scale(1.05);
        }

        nav a {
            transition: color 0.3s ease;
        }

        nav a:hover {
            color: #7a2038;
        }

        /* ظل ناعم على قسم التواصل */
        .contact-section {
            box-shadow: 0 8px 20px rgba(178, 48, 72, 0.2);
            transition: box-shadow 0.3s ease;
        }

        .contact-section:hover {
            box-shadow: 0 12px 30px rgba(178, 48, 72, 0.35);
        }

        /* تأثير التركيز على حقول الإدخال */
        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border: 2px solid #B23048;
            box-shadow: 0 0 6px #B23048;
            transition: 0.3s;
        }

        /* ظهور ناعم للنص في قسم البطل (hero-text) */
        .hero-text {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 1s forwards ease-in-out;
            animation-delay: 0.5s;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* تأثير تحويم على أيقونات الفوتر الاجتماعية */
        footer a {
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        footer a:hover {
            background-color: #7a2038;
            color: white;
        }

    }

    /* ===== أنيميشن لظهور عنوان الهيرو "نحن دائمًا نستمع لكم" ===== */
    .hero-text h1 {
        animation: fadeSlideDown 1s ease-out forwards;
        opacity: 0;
    }

    @keyframes fadeSlideDown {
        0% {
            transform: translateY(-30px);
            opacity: 0;
        }

        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* ===== أنيميشن لخط أسفل العنوان ===== */
    .contact-form h2 {
        position: relative;
        overflow: hidden;
    }

    .contact-form h2::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        height: 3px;
        width: 0;
        background-color: #B23048;
        animation: growLine 1s ease-out 1.5s forwards;
    }

    @keyframes growLine {
        to {
            width: 100%;
        }
    }

    /* ===== أنيميشن دخول العناوين الأخرى ===== */
    .contact-form h3 {
        animation: fadeSlideRight 1s ease-out forwards;
        opacity: 0;
        animation-delay: 1s;
    }

    @keyframes fadeSlideRight {
        0% {
            transform: translateX(30px);
            opacity: 0;
        }

        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }

    /* ===== أنيميشن للنصوص ===== */
    .contact-form p {
        animation: fadeSlideUp 1s ease-out forwards;
        opacity: 0;
        animation-delay: 1.8s;
    }

    @keyframes fadeSlideUp {
        0% {
            transform: translateY(20px);
            opacity: 0;
        }

        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* ===== تأثير رائع للزر عند المرور ===== */
    .submit-btn {
        transition: transform 0.3s ease, background-color 0.3s ease;
    }

    .submit-btn:hover {
        transform: scale(1.05);
        background-color: #8a1e32;
    }

    /* ===== حركة دخول للمربع الوردي بالكامل ===== */
    .contact-section {
        animation: sectionReveal 1.5s ease-out forwards;
        opacity: 0;
    }

    @keyframes sectionReveal {
        from {
            opacity: 0;
            transform: translateY(50px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ===== تأثير الدخول عند التمرير (scroll reveal) ===== */
    .scroll-reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }


}

.submit-btn {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
    background-color: #B23048;
    color: white;
    transform: scale(1.05);
}

/* الحقول النصية وتكبير الظل */
.contact-form input,
.contact-form textarea {
    transition: border 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ccc;
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form input:focus,
.contact-form textarea:focus {
    border: 1px solid #B23048;
    box-shadow: 0 0 10px rgba(178, 48, 72, 0.3);
    outline: none;
}

/* العناوين - تغيير لون عند المرور */
.hero-text h1,
.contact-form h2,
.contact-form h3,
.contact-form p {
    transition: color 0.3s ease;

}

.hero-text h1:hover,
.contact-form h2:hover,
.contact-form h3:hover {
    color: #D94F67;
}



/* مربع الخريطة */
iframe {
    transition: transform 0.4s ease;
}

iframe:hover {
    transform: scale(1.01);
}

/* تأثير بسيط على المربعات بشكل عام */
.contact-form,
.contact-image,
.contact-section,
footer div {
    transition: transform 0.4s ease;
}

.contact-form:hover,
.contact-image:hover,
footer div:hover {
    transform: translateY(-3px);
}

/* تأثير دخول العناصر أثناء التمرير */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

.contact-info {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    position: relative;
    /* مهم لتحديد النطاق */
    overflow: hidden;
    /* يمنع ظهور الظل خارج العنصر */
}

.contact-info:hover {
    transform: translateY(-5px);
    /* رفع بسيط */
    transition: transform 0.3s ease;

}

.contact-form:hover {
    box-shadow: 0 10px 25px rgba(178, 48, 72, 0.25), 0 4px 8px rgba(178, 48, 72, 0.15);
    transform: translateY(-5px);
    background-color: #fff;


}

.contact-info:hover h2,
.contact-info:hover h3 {
    color: #B23048;
    transition: color 0.3s ease;
}

/* Footer Styles */
.footer-top {
    background-color: var(--primary-light);
    padding: 20px 0;
}

footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    margin-right: 60px;
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;

}

.social-link:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-link a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-link:hover {
    transform: translateX(-5px);
}

.footer-link:hover a {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transition: var(--transition);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content {
        width: 50%;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content {
        width: 60%;
        right: 5%;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form {
        padding: 40px;
    }

    .contact-image {
        min-height: 300px;
    }

    .info-container {
        flex-direction: column-reverse;
    }

    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 400px;
        margin-top: 60px;
    }

    .hero-content {
        width: 80%;
        right: 10%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-section {
        margin-top: -100px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.25rem;
    }

    .footer-container {
        gap: 30px;
    }

    .footer-col {
        min-width: 45%;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content {
        width: 90%;
        right: 5%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .footer-col {
        min-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}