.intro-wrap {
    position: fixed;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    overflow: hidden;
}
.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    flex-direction: column;
    row-gap: 30px;
    margin: 0;
    padding: 0;
    width: 100%;
}
.transparent-text {
    color: transparent; /* Make the text transparent */
    -webkit-text-stroke: 5px black; /* Add a black border around the text */
}
.intro .bg {
    position: absolute;
    z-index: 0;
    left: -5%;
    top: -5%;
    width: 110%;
    height: 110%;
    filter: opacity(0);
    background-image: url('../images/home/design3.jpg');
    background-size: 100%;
    background-position: center;
    transition: all 0.1s ease-in-out;
}
.bgAnimation {
    animation-name: addBG;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
    animation-duration: 1.5s;
    animation-delay: 5.5s;
    animation-fill-mode: forwards;
}

.a1, .a2, .a3, .a4, .a5, .a6, .a7, .a8, .a9, .a10 {
    position: relative;
    font-size: 10em;
    font-weight: 900;
    color: #d40303;
    text-transform: uppercase;
    transform: scale(0);
    filter: opacity(0);
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    transition: all 0.5s;
    margin: 0;
    padding: 0;
    margin-top: -20px;
    margin-bottom: -20px;
}

.add-a1-animation {
    animation-name: zoomIn, colors;
    animation-delay: 0s, 2.5s;
}
.add-a2-animation {
    animation-name: zoomIn, colors;
    animation-delay: .2s, 2.5s;
}
.add-a3-animation {
    animation-name: zoomIn, colors;
    animation-delay: .4s, 2.5s;
}
.add-a4-animation {
    animation-name: zoomIn, colors;
    animation-delay: .6s, 2.5s;
}
.add-a5-animation {
    animation-name: zoomIn;
    animation-delay: .8s;
}
.add-a6-animation {
    animation-name: zoomIn, colors;
    animation-delay: 1s, 2.5s;
}
.add-a7-animation {
    animation-name: zoomIn, colors;
    animation-delay: 1.2s, 2.5s;
}
.add-a8-animation {
    animation-name: zoomIn, colors;
    animation-delay: 1.4s, 2.5s
}
.add-a9-animation {
    animation-name: zoomIn, colors;
    animation-delay: 1.8s, 2.5s;
}
.add-a10-animation {
    animation-name: zoomIn, colors;
    animation-delay: 2s, 2.5s;
}

.intro > div > div span {
    transition: all .3s;
    position: relative;
    display: block;
}
.intro > div > div span:hover {
    transform: rotate(360deg) scale(1.4);
}

.border {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 20px;
    overflow: visible;
    border-radius: 2px;
    z-index: 4;
}
.border .top, .border .left, .border .right, .border .bottom {
    position: absolute;
    background-color: #d40303;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}
.border .top {
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
}
.topBorderAnimation {
    animation-delay: 3s;
    animation-duration: .5s;
    animation-name: topBottomBorder;
}
.border .right {
    width: 3px;
    height: 0;
    right: 0;
    top: 0;
}
.rightBorderAnimation {
    animation-delay: 3.5s;
    animation-duration: .5s;
    animation-name: rightLeftBorder;
}
.border .bottom {
    width: 0;
    height: 3px; 
    right: 0;
    bottom: 0;
}
.bottomRightAnimation {
    animation-delay: 4s;
    animation-duration: .5s;
    animation-name: topBottomBorder;
}
.border .left {
    left: 0;
    bottom: 0;
    height: 0;
    width: 3px;
}
.leftBorderAnimation {
    animation-delay: 4.5s;
    animation-duration: .3s;
    animation-name: rightLeftBorder;
}

.intro .btn-wrap {
    filter: opacity(0);
    transform: scale(0);
    overflow: hidden;
    position: relative;
    text-align: center;
    background-color: #000;
    cursor: pointer;
    border-radius: 2px;
}
.btnwrapAnimation {
    animation-name: zoomIn;
    animation-delay: 5s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}
.intro button {
    padding: 15px 25px;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
    border: none;
    font-weight: bold;
    transition: .3s;
    position: relative;
    display: block;
    font-size: 1.2em;
    z-index: 1;
    background: transparent;
    cursor: pointer;
}
.intro .btn-wrap .btn-eff {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    height: 100%;
    z-index: 0;
    transition: .5s;
    background-color: #d40303;
}
.intro .btn-wrap:hover .btn-eff {
    width: 100%;
    left: 0;
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
        filter: opacity(0);
    }
    70% {
        transform: scale(1.2);
        filter: opacity(1);
    }
    100% {
        transform: scale(1);
        filter: opacity(1);
    }
}
@keyframes colors {
    0% {
        color: #d40303;
    }
    100% {
        color: #000;
    }
}
@keyframes topLine {
    0% {
        border-top: 3px #d40303 solid;
    }
    25% {
        border-right: 3px #d40303 solid;
    }
    50% {
        border-bottom: 3px #d40303 solid;
    }
    100% {
        border-left: 3px #d40303 solid;
    }
}
@keyframes topBottomBorder {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}
@keyframes rightLeftBorder {
    0% {
        height: 0;
    }
    100% {
        height: 100%;
    }
}
@keyframes addBG {
    0% {
        filter: opacity(0);
    }
    100% {
        filter: opacity(.2);
    }
}

/* Add this CSS to your existing stylesheet */
.rotateUpAndFade {
    animation-name: fadeOutUp;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-delay: 0s;
    animation-timing-function: linear;
    filter: opacity(1);
    transform: rotate(0deg);
    transition: none;
}

@keyframes fadeOutUp {
    0% {
        transform: translateY(0) rotate(0deg);
        filter: opacity(1);
    }
    100% {
        transform: translateY(-350px) rotate(360deg);
        filter: opacity(0);
    }
}

/* Remove Border animations */
.right-left-border {
    animation-name: removeLRBorders !important;
    animation-duration: .5s !important;
    animation-delay: 0s !important;
    animation-timing-function: linear !important;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    transition: none;
    height: 100%
}
.top-bottom-border {
    animation-name: removeTBBorders !important;
    animation-duration: .8s !important;
    animation-delay: 0s !important;
    animation-timing-function: linear !important;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    transition: none;
    width: 100%;
}
@keyframes removeLRBorders {
    0% {
        height: 100%;
    }
    100% {
        height: 0;
    }
}
@keyframes removeTBBorders {
    0% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

.zoomOutBTN {
    animation-name: zoomOutBTN !important;
    animation-duration: 1s !important;
    animation-delay: 0s !important;
    animation-timing-function: linear !important;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    transition: none;
    filter: opacity(1);
    transform: scale(1);
}
@keyframes zoomOutBTN {
    0% {
        transform: scale(1);
        filter: opacity(1);
    }
    100% {
        transform: scale(1.5);
        filter: opacity(0);
    }
}

.zoomOutBG {
    animation-name: zoomOutBG !important;
    animation-duration: 1s !important;
    animation-delay: 0s !important;
    animation-timing-function: linear !important;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    transition: none;
    filter: opacity(1);
    transform: scale(1);
}
@keyframes zoomOutBG {
    0% {
        transform: scale(1);
        filter: opacity(.2);
    }
    100% {
        transform: scale(1.5);
        filter: opacity(0);
    }
}

.animate-intro {
    animation-name: fadeOutIntro;
    animation-iteration-count: 1;
    animation-timing-function: linear;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    filter: opacity(1);
}
@keyframes fadeOutIntro {
    0% {
        filter: opacity(1);
    }
    100% {
        filter: opacity(0);
    }
}

@media screen and (max-width: 768px) {
    .intro .bg {
        background-size: cover;
    }
    .intro button {
        font-size: 1em;
    }
    .a1, .a2, .a3, .a4, .a5, .a6, .a7, .a8, .a9, .a10 {
        font-size: 3.5em;
    }
    .border {
        height: 50px;
    }
    .border .top, .border .bottom {
        height: 2px;
    }
    .border .left, .border .right {
        width: 2px;
    }
}