@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');

:root {
    --primaryColor: #212223;
    --middleColor: #F6672A;
    --helperColor: #223651;
    --lightHelper: #bbd9ff;
    --hrColor: rgb(222, 184, 135);
    --transparentColor: rgba(0, 0, 0, 0.699);
    --shadow: rgba(189, 188, 188, 0.514);
    /* --------------------------------- */
    --whatsappColor: #25D366;
    --white: #ffff;
    --blue: #1877F2;
    --green: #25D366;
    --gray: #f8f8f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}


/* may-hero Section */
.may-hero {
    background: linear-gradient(135deg, var(--helperColor) 0%, #044caa 50%, var(--primaryColor) 100%);

    color: #fff;
    margin: 0 0 270px 0;
    padding: 10px 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.may-hero .hero-overlay {
    max-width: 50%;
    text-align: start;
    line-height: 1.6;
    padding: 0 80px;
}

.may-hero .hero-img {
    width: 50%;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.may-hero .hero-img img {
    width: 60%;
}

.may-hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.may-hero h1::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20%;
    height: 3px;
    background: var(--middleColor);
    border-radius: 2px;
}

.may-hero p {
    font-size: 22px;
    margin-bottom: 20px;
}

.hero-overlay a {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    gap: 5px;
    width: fit-content;
    margin: auto;
    padding: 10px;
    background: var(--gray);
    color: var(--whatsappColor);
    font-weight: 400;
    font-size: large;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid var(--whatsappColor);
    /* box-shadow: 0px 4px 6px var(--shadow); */
    transition: transform 0.5s ease-in-out;
    direction: ltr;
}

.hero-overlay a:hover {
    transform: scaleX(1.02);
}

.icon {
    background-color: rgba(255, 255, 255, 0);
    font-size: large;
}

.may-stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    background: var(--helperColor);
    padding: 50px;
    gap: 50px;
    border-radius: 10px 150px 10px 150px;
    position: absolute;
    left: 5%;
    bottom: -30%;
    width: 50%;
    border-bottom: 4px solid var(--lightHelper);
}

/* .may-stats::after{
    content: "";
    position: absolute;
    left: 51.2%;
    bottom: 0;
    transform: translateX(-50%);
    width: 73%;
    height: 3px;
    background: var(--primaryColor);
    border-radius: 150px;
} */
.may-stats h2 {
    font-size: 24px;
    margin: 10px 0;
    color: white;
}

.may-stats p {
    font-size: 14px;
    color: #ccc;
}

.may-stats i {
    font-size: 30px;
    color: var(--middleColor);
    margin-bottom: 8px;
    display: block;
}



/* ====== Animations إضافية ====== */

/* حركة ظهور للفوق عند التحميل */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* حركة تكبير بسيطة عند المرور */
@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* تأثير دخول العناصر الرئيسية */
.may-hero,
.may-about,
.may-contact,
.address-container {
    animation: fadeUp 1s ease forwards;
}

/* ترتيب الظهور */
.may-hero {
    animation-delay: 0.2s;
}

.may-about {
    animation-delay: 0.4s;
}

.may-contact {
    animation-delay: 0.6s;
}

.address-container {
    animation-delay: 0.8s;
}

/* حركة على الكروت عند المرور */
.service-card,
.may-stats div {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover,
.may-stats div:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* حركة أيقونات التواصل */
.icon-contact {
    transition: transform 0.3s ease;
}

.icon-contact:hover {
    animation: pop 0.4s ease;
}


/* Responsive Design */


/* للشاشات المتوسطة مثل التابلت */
@media (max-width: 1500px) {
    .may-hero {
        flex-direction: column;
        padding: 50px 20px;
        text-align: center;
        align-items: center;
        margin-bottom: 20px;
    }

    .may-hero .hero-img {
        width: 100%;
        padding: 20px;
    }

    .may-hero .hero-overlay {
        max-width: 100%;
        padding: 0 20px;
        text-align: center;
    }

    .may-hero h1 {
        font-size: 47px;
        font-weight: 700;
    }

    .may-hero p {
        font-size: 30px;
    }

    .may-hero h1::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .hero-overlay a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 25%;
        padding: 12px 24px;
        background: var(--gray);
        color: var(--whatsappColor);
        font-weight: 600;
        font-size: 20px;
        text-decoration: none;
        border-radius: 25px;
        border: 1px solid var(--whatsappColor);
        transition: transform 0.3s ease-in-out;
        margin-top: 20px;
    }

    .hero-overlay a i {
        font-weight: 500;
        font-size: 20px;
    }

    .hero-overlay a:hover {
        transform: scale(1.05);
    }

    .may-stats {
        flex-wrap: wrap;
        width: 100%;
        bottom: 0;
        margin-top: 20px;
        padding: 30px 10px;
        gap: 20px;
        border-radius: 20px;
        position: static;
    }

    .may-stats div {
        width: 45%;
        min-width: 150px;
    }

    .may-stats h2 {
        font-size: 34px;
    }

    .may-stats p {
        font-size: 25px;
    }

    .may-stats::after {
        display: none;
    }
}

@media (min-width: 1200px) and (max-width: 1499px) {
    .may-hero .hero-img img {
        width: 45%;
    }
}

@media (min-width: 993px) and (max-width: 1199px) {
    .may-hero .hero-img img {
        width: 55%;
    }
}

@media (min-width: 577px) and (max-width: 992px) {
    .hero-overlay a {
        width: 50%;
    }

}

/* للشاشات الصغيرة مثل الموبايل */
@media (max-width: 576px) {
    .may-hero {
        padding: 30px 15px;
    }

    .hero-overlay a {
        width: 50%;
    }

    .may-hero h1 {
        font-size: 32px;
    }

    .may-hero p {
        font-size: 20px;
    }

    .may-hero .hero-img img {
        width: 85%;
    }

    .hero-overlay a {
        font-size: 15px;
        padding: 8px 12px;
    }

    .may-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .may-stats::after {
        display: none;
    }

    .may-stats div {
        width: 100%;
    }

    .may-stats h2 {
        font-size: 20px;
    }

    .may-stats p {
        font-size: 15px;
    }
}