/* hero Section */
.hero {
    height: calc(100vh - 100px);
    min-height: 650px;
    overflow: hidden;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 100px;
}

/* Slider */
.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    animation: fade 1s ease-in-out;
    height: 100%;
    position: relative;
}

.slide.active {
    display: block;
}

/* الخلفيات */
.hero .slider .slide1 .slide-bg{
    background-image: url("../img/hero-bg1.jpeg");
}

.hero .slider .slide2 .slide-bg{
    background-image: url("../img/hero-bg2.jpeg");
}

.hero .slider .slide3 .slide-bg{
    background-image: url("../img/hero-bg3.jpeg");
}

.hero .slider .slide4 .slide-bg{
    background-image: url("../img/hero-bg4.jpeg");
}

/* حركة تكبير الخلفية */
@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.4); }
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.slide.active .slide-bg {
    animation: slowZoom 20s ease-in-out forwards;
}

/* Overlay */
.hero .bg-hero-overlay {
    background-color: #00000080;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* المحتوى */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 60px;
}

.hero .hero-overlay {
    max-width: 50%;
    line-height: 1.6;
}

.hero .hero-img {
    width: 50%;
    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: 28px;
    margin-bottom: 25px;
    max-width: 90%;
}

/* زر الواتساب */
.hero-overlay a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 320px;
    padding: 12px;
    background: var(--gray);
    color: var(--whatsappColor);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid var(--whatsappColor);
    transition: transform 0.4s ease;
    direction: ltr;
}

.hero-overlay a:hover {
    transform: scale(1.05);
}

.icon i {
    font-size: 20px;
}

/* الشريط الصغير */
.hero .top-quote {
    background-color: var(--primaryColor);
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 35px;
}
.slider-indicators{
    display: none;
}
/* Fade */
@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* أنيميشن النص */
.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; }

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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;
    cursor: pointer;
    z-index: 10;
}

.slider-controls span:hover {
    color: var(--primaryColor);
    transform: scale(1.1);
}

/* dots */
.hero{
    position: relative;
}
.slider-indicators {
    position: absolute;
    bottom: 3px;   /* 3px من نهاية السكشن */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: auto;
}

.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);
}
/* Responsive */
@media (max-width:1500px){

    .hero-container{
        flex-direction:column;
        text-align:center;
        padding:40px 20px;
        justify-content:center;
    }

    .hero .hero-overlay{
        max-width:100%;
    }

    .hero .hero-img{
        display:none;
    }

    .hero h1{
        font-size:48px;
    }

    .hero p{
        font-size:24px;
        margin:auto;
        margin-bottom:25px;
    }

    .hero h1::after{
        left:50%;
        transform:translateX(-50%);
        right:auto;
    }

    .hero-overlay a{
        margin:auto;
    }

}

@media (max-width:576px){

    .hero{
        min-height:550px;
    }

    .hero h1{
        font-size:36px;
    }

    .hero p{
        font-size:18px;
    }

    .hero-overlay a{
        width:90%;
        font-size:15px;
    }

}