/* ==========================================
   HERO SECTION
========================================== */

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    background:var(--background-color);
    overflow:hidden;
}

.hero-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:80px;
}

/* ==========================================
   HERO CONTENT
========================================== */

.hero-content{
    max-width:550px;
}

.hero-tag{
    display:inline-block;
    padding:10px 20px;
    margin-bottom:25px;
    background: var(--secondary-light);
    color:var(--secondary-color);

    border-radius:50px;

    font-size:.9rem;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
}

.hero-content h1{
    font-size:clamp(3.5rem,8vw,6rem);
    margin-bottom:20px;
    line-height:.95;
}

.hero-content p{
    font-size:1.1rem;
    max-width:500px;
    margin-bottom:40px;
    line-height:1.8;
}

.hero-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

/* ==========================================
   HERO IMAGE
========================================== */

.hero-image{
    position:relative;
    width:100%;
    height:750px;
    animation:floatImage 5s ease-in-out infinite;
}

.hero-slider{
    position:relative;
    width:100%;
    height:100%;
}

.slide{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;

    opacity:0;

    transition:opacity .8s ease;
}

.slide.active{
    opacity:1;
}

.hero-image img{
    border-radius:25px;
    box-shadow:var(--shadow-lg);
}

/* ==========================================
   ARROWS
========================================== */

.hero-arrow{
    position:absolute;
    top:50%;

    transform:translateY(-50%);

    width:50px;
    height:50px;

    border-radius:50%;

    background:rgba(255,255,255,.85);

    cursor:pointer;

    font-size:1.3rem;

    transition:.3s;
}

.hero-arrow:hover{
    background:var(--secondary-color);
    color:#fff;
}

.prev{
    left:20px;
}

.next{
    right:20px;
}

/* ==========================================
   DOTS
========================================== */

.hero-dots{
    position:absolute;

    left:50%;
    bottom:25px;

    transform:translateX(-50%);

    display:flex;
    gap:10px;
}

.dot{
    width:12px;
    height:12px;

    border-radius:50%;

    background:var(--dot-color);

    cursor:pointer;

    transition:.3s;
}

.dot.active{
    background:var(--secondary-color);
}

/* ==========================================
   HERO ANIMATIONS
========================================== */

.hero-tag,
.hero-content h1,
.hero-content p,
.hero-buttons{
    opacity:0;
    transform:translateY(40px);
    animation:fadeUp .8s ease forwards;
}

.hero-tag{
    animation-delay:.2s;
}

.hero-content h1{
    animation-delay:.4s;
}

.hero-content p{
    animation-delay:.6s;
}

.hero-buttons{
    animation-delay:.8s;
}

.slide.active{
    animation:zoomImage 5s linear;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

@keyframes zoomImage{

    from{
        transform:scale(1);
    }

    to{
        transform:scale(1.08);
    }

}

@keyframes floatImage{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-15px);
    }

    100%{
        transform:translateY(0);
    }
}


/* ==========================================
   HERO RESPONSIVE
========================================== */

@media (max-width: 992px){

    .hero{
        padding:120px 0 70px;
        min-height:auto;
    }

    .hero-container{
        grid-template-columns:1fr;
        gap:50px;
    }

    .hero-image{
        order:1;
        height:500px;
    }

    .hero-content{
        order:2;
        text-align:center;
        max-width:100%;
    }

    .hero-content p{
        max-width:100%;
        margin:25px auto 35px;
    }

    .hero-buttons{
        justify-content:center;
    }

}

@media (max-width:768px){

    .hero{
    position:relative;
    overflow:hidden;
    }

    .hero-background{
        position:absolute;
        inset:0;

        background-image:url("../images/hero/model-1.42584354c0a2.jpg");
        background-size:cover;
        background-position:center;
        background-repeat:no-repeat;

        z-index:1;

        transition:background-image .8s ease-in-out;
    }

    .hero-container{
        display:block;
        position:relative;
        z-index:2;
    }

    /* Hide the desktop slider */
    .hero-image{
        display:none;
    }

    /* Mobile background slider */
    .hero{
        background-image:url("../images/hero/model-1.42584354c0a2.jpg");
        background-size:cover;
        background-position:center;
        background-repeat:no-repeat;

        transition:background-image .8s ease-in-out;
    }

    /* Dark Overlay */
    .hero-container{
        position:relative;
        z-index:2;
    }
    
    .hero-background::after{
        content:"";
        position:absolute;
        inset:0;
        background:rgba(0,0,0,.45);
    }

    .hero-content{
        position:relative;
        z-index:2;
        max-width:100%;
    }

    .hero-tag{
        color:var(--white-color);
        border:1px solid rgba(255,255,255,.3);
        background:rgba(255,255,255,.12);
    }

    .hero-content h1{
        color:var(--white-color);
        font-size:3rem;
    }

    .hero-content p{
        color:var(--white-color);
        margin:25px 0 35px;
    }

    .hero-buttons{
        display:flex;
        flex-direction:column;
        gap:15px;
    }

    .hero-buttons .btn{
        width:100%;
    }

}

@media (max-width:480px){

    .hero-image{
        height:340px;
    }

    .hero-content h1{
        font-size:2.4rem;
    }

    .hero-tag{
        font-size:.75rem;
    }

    .hero-content p{
        font-size:.95rem;
    }

    .hero-dots{
        bottom:15px;
    }

}