/* hero Section */
.hero {
    /* background: linear-gradient(135deg, var(--helperColor) 0%, #0b1930 50%, var(--primaryColor) 100%); */
    background-attachment: fixed;
    color: #fff;
    /* margin: 0 0 240px 0; */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    z-index: 0;
    background-position: center;
    background-attachment: fixed;
    margin-top: 100px;
    /* height: 75vh; */
}

.hero .slider .slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    z-index: 0;
    background-position: center;
    background-attachment: fixed;
}

.hero .slider .slide1 .slide-bg{
    background-image: url("../img/hero-bg1.jpg");
}

.hero .slider .slide2 .slide-bg{
    background-image: url("../img/hero-bg2.jpg");
}

.hero .slider .slide3 .slide-bg{
    background-image: url("../img/hero-bg3.jpg");
}
@keyframes slowZoom {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(1.5);
    }
  }
  
  /* الخلفية */
  .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
  }
  
  /* كل مرة السلايد تبقى active يشتغل الأنيميشن من الأول */
  .slide.active .slide-bg {
    animation: slowZoom 20s ease-in-out forwards;
  }
  
.hero .bg-hero-overlay {
    background-color: #00000080;
    padding: 10px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero .hero-overlay {
    max-width: 50%;
    text-align: start;
    line-height: 1.6;
    padding: 20px 80px;
    /* height: 80vh; */
    align-content: center;
}

.hero .hero-img {
    width: 50%;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .hero-img img {
    width: 60%;
}

.hero h1 {
    font-size: 80px;
    margin-block: 25px;
    position: relative;
    padding-bottom: 8px;
    color: var(--white);
}

.hero h1::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20%;
    height: 3px;
    background: var(--primaryColor);
    border-radius: 2px;
}

.hero p {
    font-size: 32px;
    margin-bottom: 20px;
}

.hero-overlay a {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 80%;
    margin: auto;
    padding: 10px;
    background: var(--gray);
    color: var(--whatsappColor);
    font-weight: 700;
    font-size: 20px;
    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 i {
    font-weight: 700;
    font-size: 20px;
}

.stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    background: var(--helperColor);
    padding: 50px;
    gap: 50px;
    border-radius: 30px;
    position: absolute;
    left: 10%;
    bottom: -30%;
    width: 35%;
    border-bottom: 2px solid var(--primaryColor);
    z-index: 99;
    display: none;
}

/* .stats::after{
    content: "";
    position: absolute;
    left: 51.2%;
    bottom: 0;
    transform: translateX(-50%);
    width: 73%;
    height: 3px;
    background: var(--primaryColor);
    border-radius: 150px;
} */
.stats h2 {
    font-size: 24px;
    margin: 10px 0;
    color: white;
}

.stats p {
    font-size: 14px;
    color: #ccc;
}

.stats i {
    font-size: 30px;
    color: var(--primaryColor);
    margin-bottom: 8px;
    display: block;
}

/* Slider Base */
.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slide {
    display: none;
    animation: fade 1s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* Controls */
.slider-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.slider-controls span:hover {
    color: var(--primaryColor);
    transform: scale(1.1);
}

/* Indicators (dots) */
.slider-indicators {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.slider-indicators span {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.slider-indicators span.active {
    background-color: var(--primaryColor);
}
/* العناصر اللي جوه السلايد */
.slide .hero-overlay > * {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
  }
  /* ترتيب التأخيرات */
.slide.active .top-quote {
    animation-delay: 0.3s;
  }
  .slide.active h1 {
    animation-delay: 0.6s;
  }
  .slide.active p {
    animation-delay: 0.9s;
  }
  .slide.active a {
    animation-delay: 1.2s;
  }
.hero .top-quote {
    background-color: var(--primaryColor);
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 35px;
}


/* ====== 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);
    }
}

/* تأثير دخول العناصر الرئيسية */
.hero,
.about,
.contact,
.address-container {
    animation: fadeUp 1s ease forwards;
}

/* ترتيب الظهور */
.hero {
    animation-delay: 0.2s;
}

.about {
    animation-delay: 0.4s;
}

.contact {
    animation-delay: 0.6s;
}

.address-container {
    animation-delay: 0.8s;
}

/* حركة على الكروت عند المرور */
.service-card,
.stats div {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}


/* حركة أيقونات التواصل */
.icon-contact {
    transition: transform 0.3s ease;
}

.icon-contact:hover {
    animation: pop 0.4s ease;
}


/* Responsive Design */


/* للشاشات المتوسطة مثل التابلت */
@media (max-width: 1500px) {
    .hero {
        flex-direction: column;
        padding: 50px 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        margin-top: 70px;
    }

    .hero .hero-img {
        display: none;
    }

    .hero .hero-overlay {
        max-width: 100%;
        padding: 0 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 47px;
        font-weight: 700;
    }

    .hero p {
        font-size: 30px;
    }

    .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: 70%;
        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);
    }

    .stats {
        flex-direction: row;
        width: 80%;
        bottom: -17%;
        padding: 30px 10px;
        gap: 20px;
    }

    .stats div {
        width: 45%;
        min-width: 150px;
    }

    .stats h2 {
        font-size: 24px;
    }

    .stats p {
        font-size: 18px;
    }

    .stats::after {
        display: none;
    }
}

@media (max-width: 1200px){
    .stats {
        flex-direction: row;
        width: 95%;
        left: auto;
        bottom: -17%;
        padding: 30px 10px;
        gap: 20px;
    }
}

@media (max-width: 993px){
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        position: static;
        border-radius: 0px;
    }
    .slider-controls{
        display: none;
    }
    .slider-indicators{
        display: none;
    }

}


/* للشاشات الصغيرة مثل الموبايل */
@media (max-width: 576px) {
    .hero {
        padding: 0px;
        margin-bottom: 0;
    }
    .hero .bg-hero-overlay{
        padding: 40px 0;
    }
    .hero-overlay a {
        width: 80%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 20px;
    }

    .hero .hero-img img {
        width: 85%;
    }

    .hero-overlay a {
        font-size: 15px;
        padding: 8px 12px;
    }

    .stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .stats::after {
        display: none;
    }

    .stats div {
        width: 100%;
    }

    .stats h2 {
        font-size: 20px;
    }

    .stats p {
        font-size: 15px;
    }
}