.body{
    background: #f2f2f2;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
}

.flex{
    display: flex;
    align-items: center;
}

.container{
    position: relative;
    display: flex;
    width: 100%;
    margin: auto;
    z-index: 1;
    background: white;
    box-shadow: 0 0 10px 0 black;
}

.header-container {
    margin-right: 250px;
}

.generalInfo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: red;
    font-size: 12px;
    justify-content: center;
}

.mainTxt {
    justify-content: center;
    display: flex;
    position: relative;
    bottom: 100px;
    user-select: none;
    font-family: "Ubuntu", sans-serif;
    font-weight: 900;
    font-style: normal;
    text-transform: uppercase;
}

.mainbtn {
    display: inline-block;
    position: relative;
    height: 50px;
    width: 250px;
    border-radius: 1px;
    justify-content: center;
    align-items: center;
    margin: 10px;
    font-size: 20px;
    font-family: "Ubuntu", sans-serif;
    font-weight: 900;
    font-style: normal;
    cursor: pointer;
    user-select: none;
    background-color: rgb(255, 71, 71) !important;
    color: white;
    text-shadow: none;
    border: 2px solid transparent !important;
    transition: transform 0.5s;
}

.mainbtn:hover {
    background-color: white !important;
    color: red;
    transition: .5s;
    text-shadow: none;

    transform: scale(1.1);
    transition: transform 0.5s;
}

/* This is for the background image in the main home page */

.homepage{
    position: relative;
    height: 100vh;
    width: 100%;
    background: url("../images/backgrounds/Home_page_final_image.jpg");  /* This is to change the background image */
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    image-rendering: auto;
}

/*-------------------------------------------------------------*/

.homepage::before{
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.homepage .content{
    position: relative;
    height: 85%;
    flex-direction: column;
    justify-content: center;
}

.homepage .text{
    color: white;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 1px 1px 1px black;
}


.homepage .text h1{
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 10px;
}

.homepage a {

    text-decoration: none;
    background: #fff;
    padding: 10px 30px;
    border-radius: 5px;
    border: 2px solid #fff;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 10px;
    font-size: 18px;
    transition: 0.3s;
}

section {
    padding-top: 80px;
}

.services {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    background-position: center;
    background-size: cover;
}

.iconContainer{
    position: relative;
    width: 100%;
    margin: auto;
    z-index: 1;
    background: rgb(255, 71, 71);
    padding: 5px;
}


.features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
	gap: 5rem;
	margin: 0 auto;
	padding: 2rem 0;
    z-index: 1;
    max-width: 1400px;
}

.feature__item {
	display: grid;
	align-items: center;
	gap: 1rem;
	text-align: center;
	font-weight: 600;
}

.feature__icon {
	max-width: 3rem;
    height: 50px;
    width: 100px;
    filter: invert();
    justify-self: center;
}

.feature__text {
    color: white;
    font-size: 20px;
    font-family: "Ubuntu", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.card-container {
    position: relative;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    width: 100%;
    height: auto;
    background: white;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    max-width: 1000px;
    padding-top: 20px;
    padding-bottom: 20px;
}


.card-service {
    position: relative;
    background: white;
    height: 250px;
    width: 250px;
    display: grid;
    margin: 30px;
    cursor: pointer;

    justify-content: center;
    justify-items: center;
    align-items: center;
    user-select: none;

    transition: transform 0.5s, box-shadow 0.5s;
}

.card-service:hover {
    color: black;
    transition: .5s;
    box-shadow: 1px 1px 10px 1px rgb(255, 84, 84);
    
    transform: scale(1.2);
    transition: transform 0.3s;
}

.card-1 {
    background: white;
}

.card-2 {
    background: white;
}

.card-3 {
    background: white;
}

.card-4 {
    background: white;
}

.card-5 {
    background: white;
}

.card-6 {
    background: white;
}

.card__icon {
    position: relative;
    height: 50px;
    width: 50px;
}

.cardDescTag {
    font-family: "Ubuntu", sans-serif;
    font-style: normal;
    text-transform: uppercase;
    text-align: center;
}

.cardDescTxt {
    color: black;
    font-family: "Ubuntu", sans-serif;
    font-style: normal;
    text-transform: uppercase;
    text-align: center;
}

.serviceTag {
    display: flex;
    font-size: 40px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    font-family: "Ubuntu", sans-serif;
    font-weight: 900;
    font-style: normal;
    text-transform: uppercase;
    font-weight: bold;
}
.serviceDesc {
    display: flex;
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    font-family: "Ubuntu", sans-serif;
    font-style: normal;
    text-transform: uppercase;
    color: grey;
}

.serviceBtn {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    font-size: 20px;
    height: 50px;
    width: 200px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    font-family: "Ubuntu", sans-serif;
    font-style: normal;
    cursor: pointer;
    user-select: none;
    background-color: rgb(255, 71, 71) !important;
    color: white;
    text-shadow: none;
    border: 2px solid transparent !important;
    transition: transform 0.5s;
    text-decoration: none;
    border-radius: 5px;
}

.serviceBtn:hover {
    background-color: white !important;
    color: red;
    transition: .5s;
    text-shadow: none;

    transform: scale(1.1);
    transition: transform 0.5s;
    box-shadow: 1px 1px 10px 1px rgb(255, 84, 84);
}

.bg-body-tertiary {
    box-shadow: 0 1px 50px rgba(0, 0, 0, 0.5);
}

/* This is the code for the animation on the home screen ------------------------------------------------------------------------------------- */

  /* Container for both static and rotating text */
.text__home__animation {
    text-align: center; /* Centers all text inside this container */
    margin-bottom: 50px;
}
  
  /* Static text styling */
.static-text {
    font-size: 25px;
    margin: 0;
    margin-bottom: 20px; /* Space between static text and rotating text */
    user-select: none;
    text-align: center; /* Ensures text itself is centered */
    font-weight: bold;
    color: white;
    text-shadow: -1px -1px 0 red, 1px -1px 0 red, -1px 1px 0 red, 1px 1px 0 red; 
}
  
  /* Rotating text container */
.rotating-text {
    position: relative;
    height: 40px; /* Ensures consistent height for the container */
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap; /* Prevents wrapping */
    overflow: visible; /* Allows space for the longest word */
    font-size: 100px;
    font-weight: bold;
    /* text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;     This is to add the border for the text animation*/
    text-shadow: none;
    opacity: 0.85;
}
  
  /* Individual words in the rotating text */
  .word {
    position: absolute;
    opacity: 0;
    width: auto; /* Adapts width to the content */
    text-align: center;
    white-space: nowrap; /* Prevents wrapping for individual words */
  }
  
  /* Animation letters */
  .letter {
    display: inline-block;
    position: relative;
    transform: translateZ(25px);
    transform-origin: 50% 50% 25px;
  }
  
  /* Animation states for letters */
  .letter.out {
    transform: rotateX(90deg);
    transition: transform 0.32s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  
  .letter.behind {
    transform: rotateX(-90deg);
  }
  
  .letter.in {
    transform: rotateX(0deg);
    transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  /* Word color styling */
  .wisteria {
    color: white;
    user-select: none;
  }
  
  .belize {
    color: white;
    user-select: none;
  }
  
  .pomegranate {
    color: white;
    user-select: none;
  }
  
  .green {
    color: white;
    user-select: none;
  }
  
  .midnight {
    color: white;
    user-select: none;
  }
@media (max-width: 1020px) { /* Changing min to max will fix the normal screen view, but will undo changes from mobile view, and vise-versa*/
    .text .mainbtn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 150px;
        width: 500px;
        font-size: 50px !important;
        margin-bottom: 200px !important;
        margin-top: 200px !important;
        margin: 75px;
    }

    .mainTxt {
        font-size: 130px !important;
        margin-top: 150px;
    }

    .homepage .text {
        text-shadow: 10px 10px 10px black;
    }
    
    .homepage {
        height: auto;
    }

    .features {
        display: flex;
        flex-direction: column;
    }

    .feature__text {
        font-size: 40px;
    }

    .card-container {
        display: flex;
        flex-direction: column;
    }

    .card-service {
        height: 350px;
        width: 550px;
    }

    .cardDescTag {
        font-size: 45px;
    }

    .cardDescTxt {
        font-size: 30px;
    }

    .card__icon {
        height: 100px;
        width: 100px;
    }

    .serviceTag {
        font-size: 65px;
    }

    .serviceDesc {
        font-size: 30px;
    }

    .serviceBtn {
        height: 100px;
        width: 500px;
        font-size: 40px;
    }

    .text__home__animation {
        text-align: center; /* Centers all text inside this container */
        margin-top: 200px;
    }
}

@media (max-width: 992px) {
    .feature__icon {
        max-width: 3rem;
        height: 50px;
        width: 100px;
        filter: invert();
        justify-self: center;
    }
    
    .feature__text {
        color: white;
        font-size: 20px;
        font-family: "Ubuntu", sans-serif;
        font-weight: 900;
        font-style: normal;
    }
}