
.text-1 {
    animation: text1;
}
.text-2 {
    animation: text2;
}
.text-1,
.text-2 {
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    position: relative;
    animation-duration: 20s;
    animation-timing-function: steps(25, end);
    animation-iteration-count: infinite;
}
.text-1::after,
.text-2::after {
    content: "|";
    position: absolute;
    right: 0;
    animation: caret infinite;
    animation-duration: 1s;
    animation-timing-function: steps(1, end);
}
@keyframes text2 {
    0%,
    50%,
    100% {
        width: 0;
    }
    60%,
    90% {
        width: 21.2em;
    }
}
@keyframes text1 {
    0%,
    50%,
    100% {
        width: 0;
    }
    10%,
    40% {
        width: 17em;
    }
}


@keyframes caret {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.header-menu .menu-nav > .menu-item.menu-item-active > .menu-link .menu-text {
    color: #342781 !important;
}
.header-menu .menu-nav > .menu-item.menu-item-active > .menu-link {
    background-color: white !important;
}
.btn.btn-primary {
    color: #FFFFFF;
    background-color: #342781;
    border-color: #342781;
}

.my-header {
    background-color: #342781;
}

.subheader-area::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgb(36, 36, 36);
    z-index: -1;
    opacity: 0.75;
}

.subheader-area{
    width: 100%;
    position: relative;
    z-index: 0;
    overflow: hidden;
    height: auto;
    display: block;
    color: white;
    background-size: cover;
    background-attachment: scroll;

}


.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
    bottom: 120px;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-metronic {
    background-color: #3699FF;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-metronic:hover {
    background-color: #187DE4;
    color: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }

    .carousel-caption {
        bottom: 80px;
        padding: 15px;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}
