body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.dropdown-menu {
    --bs-dropdown-min-width: 4rem;
}

section {
    margin-bottom: 75px;
    overflow: hidden;
}

#semi {
    animation: fadeIn 1.5s ease-in forwards;
}

.snow-container {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

#snowflake {
    position: absolute;
    top: -40px;
    animation: fall-and-sway linear infinite;
}

@keyframes fall-and-sway {
    0% {
        transform: translateY(-5vh) translateX(0);
        opacity: 0.7;
    }
    25% {
        transform: translateY(25vh) translateX(20px);
    }
    50% {
        transform: translateY(50vh) translateX(-20px);
    }
    75% {
        transform: translateY(75vh) translateX(20px);
    }
    100% {
        transform: translateY(110vh) translateX(-20px);
        /*opacity: 0.2;*/
    }

}

.img-container {
    position: relative;
}

.animated-container {
    position: absolute;
    top: 31.61%;
    left: 33%;
    display: flex;
    flex-wrap: wrap;
    width: 180px;
    row-gap: 0.53rem;
}

.animated-blocks {
    position: relative;
    background-color: #FF644B;
    height: 4px;
    border-radius: 10px;
    margin-right: 3px;
    opacity: 0;
    animation: fadeIn 0.2s ease-in forwards;
}

.wheel-1 {
    position: absolute;
    width: 65px;
    height: 60px;
    top: 54%;
    left: 20%;
    animation: spin 2.3s 7 linear;
}

.wheel-2 {
    position: absolute;
    top: 58%;
    left: 26%;
    width: 55px;
    height: 50px;
    animation: spin-reverse 2.3s 7 linear;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: rotate(-360deg);
    }
}

.typed {
    overflow: hidden;
    border-right: 7px solid;
    white-space: nowrap;
    width: 0;
    animation: typing 2.5s steps(40, end) forwards ;
}

@keyframes typing {
    from { width: 0 }
    to { width: 430px; }
    100%{
        border-color: transparent;
    }
}

#hero-text1 {
    background: -webkit-linear-gradient(0.25turn, #FF644B, #8CBBE5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 120px;
}

#hero-text2 {
    color: #8CBBE5;
}

#hero-text3 {
    color: #FF644B;
    animation-delay: 0.5s;
}

#hero-text4 {
    color: #8CBBE5;
    animation-delay: 1s;
}

.enlarge-animation {
    animation: enlarge 2s forwards;
}

.slide-left {
    animation: slideInLeft 3s forwards;
}

.slide-right {
    animation: slideInRight 3s forwards;
}

@keyframes enlarge {
    from {
        transform: scale(0%);
    }

    to {
        transform: scale(100%);
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(100%);
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(-100%);
    }
}

.card {
    box-shadow: 0 0 1rem lightgray;
    width: 19rem;
    height: 24rem;
    border: none;
}

/* Container for the steps */
  .steps-container {
      display: flex;
      flex-direction: column;
      align-items: start;
      position: relative;
  }

/* Line connecting the steps */

.steps-container .line {
    position: absolute;
    left: 10px;
    top: 40px;
    bottom: 80px;
    width: 5px;
    background-color: #555;
}
/* Each step circle */
.step {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

/* Circle */
.step-circle {
    width: 25px;
    height: 25px;
    background-color: #555;
    border-radius: 50%;
    margin-right: 10px;
}

.mask {
    position: absolute;
    width: 300px;
    height: 300px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
    transition: transform 0.5s ease;
}

.mask:hover {
    transform: scale(1.2);
}

#wide-img {
    width: 500px;
}

#wider-img {
    width: 600px;
}

.test-carousel {
    overflow: hidden;
    width: 80%;
    margin: auto;
}

.car-track {
    display: flex;
    transition: transform 0.5s ease;
}

.car-item {
    min-width: 33.33%; /* Each item takes up 1/3 of the track container */
    transition: ease;
}

.car-item:hover {
    scale: 1.1;
}

.car-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 3rem;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.form-floating > label {
    left: auto !important;
}

@media (max-width: 481px) {
    #hero-section {
        margin-top: 55px;
    }

    #hero-text1 {
        font-size: 80px;
    }

    #hero-text-row {
        padding-left: 5px !important;
    }

    #md-wheel-1, #md-wheel-1, .sm-hide {
        display: none;
    }

    #services-section p {
        margin: 0 0 25px 0 !important;
        padding: 0 !important;
    }

    #services-section .card {
        margin: auto !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
        height: 16rem;
        width: 26rem;
    }

    #services-section .card-body {
        padding: 1px !important;
    }

    #services-section h4 {
        margin: 0 !important;
    }

    #how-section {
        height: fit-content !important;
    }

    #how-section .container{
        margin: 0 !important;
        padding: 0 !important;
    }

    #how-square {
        padding: 1rem !important;
    }

    #how-section .steps-container {
        left: 10% !important;
    }

    .why-card{
        width: 100%;
        height: auto !important;
        margin-bottom: 20px;
    }

    .why-card img {
        display: none;
    }

    .whys {
        margin-top: 0!important;
    }

    .car-item {
        min-width: 100%; /* Show 1 item per slide on phones */
        font-size: 16px;
        padding: 10px;
    }

    #contact-img {
        display: none;
    }

    #contact-form {
        width: 100%;
    }
    .mask {
        scale: 0.5;
        transform: translateY(-20%);
    }
    .why-card p{
        font-size: 1rem !important;
    }
}

@media (max-width: 1100px) and (min-width: 482px) {
    #md-wheel-1, #md-wheel-1, .sm-hide {
        display: none;
    }

    .md-justify-center {
        justify-content: center !important;
    }

    #services-section .card {
        margin-bottom: 20px !important;
        height: 16rem;
        width: 100%;
    }

    #how-section {
        height: max-content !important;
        .container {
            margin: 0 !important;
            padding: 0 !important;
        }
    }

    .car-item {
        min-width: 50%; /* Show 1 item per slide on phones */
        font-size: 16px;
        padding: 10px;
    }

    #how-section .steps-container {
        left: 5rem;
    }
    .mask {
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 100%);
    }

    .larger {
        scale: 1.4;
        transform: translateY(8%);
    }

    #wide-img {
        scale: 0.7;
        transform: translateY(-10%);
    }

    .why-card{
        width: 100%;
        height: 20rem;
        margin-bottom: 20px;
    }

    .why-card p{
        font-size: 1rem !important;
    }
}

.ltr {
    direction: ltr;
}