/* =========================================================
   HITECH ANIMATED HERO
   ========================================================= */

.hitech-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}


/* =========================================================
   SLIDER
   ========================================================= */

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

.hitech-hero .carousel-inner {
    overflow: hidden;
}

.hitech-hero .carousel-item {
    position: relative;
}

.hitech-hero-slide {
    position: relative;
    min-height: 720px;
    overflow: hidden;
}


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

.hitech-hero-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.04);

    transition:
        transform 7s cubic-bezier(.2,.6,.2,1);
}


/*
 * Every active slide slowly moves forward.
 */

.hitech-hero .carousel-item.active
.hitech-hero-image {
    transform: scale(1.12);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.hitech-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8,18,32,.82) 0%,
            rgba(8,18,32,.62) 38%,
            rgba(8,18,32,.20) 72%,
            rgba(8,18,32,.05) 100%
        );

    z-index: 1;
}


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

.hitech-hero-container {
    position: relative;
    min-height: 720px;

    display: flex;
    align-items: center;

    z-index: 2;
}

.hitech-hero-content {
    width: 650px;
    max-width: 70%;

    padding-bottom: 20px;

    color: #fff;
}


/* =========================================================
   KICKER
   ========================================================= */

.hitech-hero-kicker {
    display: block;

    margin-bottom: 22px;

    color: #32b57f;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 3px;
    text-transform: uppercase;
}


/* =========================================================
   HEADING
   ========================================================= */

.hitech-hero-content h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(48px, 5vw, 78px);
    line-height: 1.02;

    font-weight: 600;
    letter-spacing: -1.5px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.hitech-hero-content p {
    max-width: 520px;

    margin: 25px 0 32px;

    color: rgba(255,255,255,.88);

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   BUTTON
   ========================================================= */

.hitech-hero-button {
    display: inline-flex;

    align-items: center;
    gap: 22px;

    padding: 14px 25px;

    border: 1px solid rgba(255,255,255,.7);

    color: #fff;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background .3s ease,
        border-color .3s ease,
        gap .3s ease;
}

.hitech-hero-button span {
    font-size: 20px;
    line-height: 1;
}

.hitech-hero-button:hover {
    background: #32b57f;
    border-color: #32b57f;
    color: #fff;
    gap: 28px;
}


/* =========================================================
   TEXT ANIMATION
   ========================================================= */

.hitech-hero .carousel-item
.hitech-hero-content {
    opacity: 0;
    transform: translateY(35px);
}

.hitech-hero .carousel-item.active
.hitech-hero-content {
    animation:
        hitechHeroTextIn
        .9s
        cubic-bezier(.2,.7,.2,1)
        .25s
        forwards;
}

@keyframes hitechHeroTextIn {

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

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

}


/* =========================================================
   CONTROLS
   ========================================================= */

.hitech-hero-controls {
    position: absolute;

    right: 6%;
    bottom: 45px;

    z-index: 5;

    display: flex;
    align-items: center;
    gap: 18px;
}


.hitech-hero-control {
    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.5);

    background: transparent;

    color: #fff;

    font-size: 18px;

    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease;
}

.hitech-hero-control:hover {
    background: #32b57f;
    border-color: #32b57f;
}


.hitech-hero-counter {
    display: flex;

    align-items: center;
    gap: 10px;

    color: #fff;

    font-size: 12px;
    letter-spacing: 2px;
}

.hitech-current-slide {
    color: #32b57f;
}

.hitech-counter-line {
    width: 35px;
    height: 1px;
    background: rgba(255,255,255,.6);
}


/* =========================================================
   PROGRESS BAR
   ========================================================= */

.hitech-hero-progress {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

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

    z-index: 6;
}

.hitech-hero-progress span {
    display: block;

    width: 0;
    height: 100%;

    background: #32b57f;
}


/*
 * Progress restarts on every active slide.
 */

.hitech-hero .carousel-item.active
~ .hitech-hero-progress span {
    animation: none;
}

.hitech-hero-progress span {
    animation:
        hitechHeroProgress
        6.5s
        linear
        infinite;
}

@keyframes hitechHeroProgress {

    from {
        width: 0;
    }

    to {
        width: 100%;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991px) {

    .hitech-hero-slide,
    .hitech-hero-container {
        min-height: 650px;
    }

    .hitech-hero-content {
        max-width: 85%;
    }

    .hitech-hero-content h1 {
        font-size: 52px;
    }

    .hitech-hero-controls {
        right: 30px;
        bottom: 30px;
    }

}


@media (max-width: 767px) {

    .hitech-hero-slide,
    .hitech-hero-container {
        min-height: 600px;
    }

    .hitech-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8,18,32,.82),
                rgba(8,18,32,.40)
            );
    }

    .hitech-hero-content {
        max-width: 100%;
    }

    .hitech-hero-content h1 {
        font-size: 43px;
        letter-spacing: -1px;
    }

    .hitech-hero-content p {
        font-size: 16px;
    }

    .hitech-hero-controls {
        right: 20px;
        bottom: 25px;
    }

}