/* Typographies */
header {
    padding-top: 12rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 span {
    font-family: 'sans-serif';
}

header h1,
p {
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.spark {
    height: 3rem;
    margin-bottom: 0.5rem;
}

.mouse-div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5rem;
}

.mouse {
    height: 2.5rem;
}

.hero-img {
    height: 28rem;
    position: absolute;
    transform: translatey(-3rem);
}

.title img {
    margin-top: 0.3rem;
}

.light:hover {
    cursor: pointer;
}

@media (max-width: 872px) {
    header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 777px) {
    .hero-img {
        transform: translatey(-4rem);
        height: 30rem;
    }

    header {
        padding-top: 25rem;
    }

    .mouse-div {
        padding-top: 5rem;
    }
}

@media (max-width: 550px) {
    header img {
        display: none;
    }

    header {
        padding-top: 10rem;
    }

    .nav-logo {
        height: 1.5rem;
        top: 2.5rem;
        left: 2rem;
    }
}

.buttons {
    padding-top: 1rem;
    display: flex;
    gap: 2rem;
}

/* welcome Section */
.welcome {
    padding-top: 4rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.welcome p {
    color: var(--gray);
}

.bubble-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    @media (max-width: 900px) {
        grid-template-columns: repeat(2, 1fr);
    }
    @media (max-width: 660px) {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

.bubble {
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    box-shadow: 5px 30px 15px rgba(0, 0, 0, 0.2);
}

.p-container {
    width: 90%;
    text-align: center;
}

.bubble p {
    color: var(--green);
}

.side-heading {
    font-size: 4.5rem;
    font-weight: bold;
}

.center-heading {
    font-size: 2rem;
}

.p-container p {
    margin-bottom: 3rem;
    font-size: 22px;
}

/* Services Section */
.services {
    padding: 3rem 0rem 5rem 0rem;
}

.services-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 2rem;
}

.left-services {
    transform: rotate(-30deg);
}

.right-services {
    transform: rotate(-30deg);
    width: 20rem;
}

.right-services .service {
    transform: rotate(30deg);
    margin-top: 3rem;
}

.r-bottom {
    width: 25rem;
    transform: translateX(-10rem) translateY(-5rem);
}

.left-services .service {
    transform: rotate(30deg);
    margin-top: 3rem;
    width: 20rem;
}

h4 {
    font-size: 20px;
}

.backend-left {
    display: none;
}

.left-services h2 {
    transform: rotate(30deg);
    font-size: 3rem;
    color: var(--light-green);
}

.title {
    display: flex;
    gap: 0.5rem;
    align-items: start;
}

.phone-img {
    height: 30rem;
    margin-right: 4rem;
}

.service {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
}

.service i {
    margin-top: 0.4rem;
    color: var(--green);
}

.service p {
    font-size: 15px;
}

.title img {
    height: 1.5rem;
}

.button-div {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.t {
    display: none;
}

/* Our Process Section */
.process {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.process h2 {
    color: var(--light-green);
}

.text {
    color: var(--gray);
    text-align: center;
}

.stats-container {
    margin: 3rem;
    width: 60%;
}

.outer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-img {
    width: 20rem;
    margin-left: 2rem;
}

.stat {
    padding: 2rem;
    border-radius: 2rem;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.number {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 2rem;
}

.number h2 {
    font-size: 3rem;
}

.stat-text {
    margin-right: 2rem;
}

.stat-p {
    margin-right: 1rem;
}

/* Our work Section */
.our-work {
    display: flex;
    padding: 5rem 0rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.our-work p {
    color: var(--gray);
}

.work-container {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem;
}

.work {
    background-color: var(--green);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 2rem;
}

.work h5 {
    color: var(--white);
    text-align: center;
    font-size: 24px;
}

.work p {
    text-align: center;
    color: var(--white);
    font-size: 18px;
}

.work-img img {
    width: 100%;
    margin-top: 3rem;
}

/* Places Section*/
.places {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.grid {
    margin-top: 3rem;
    display: grid;
    grid-gap: 3rem;
    grid-template-columns: repeat(3, 1fr);
}

.cell {
    padding: 10px;
    text-align: center;
}

.cell p {
    font-size: 18px;
}

.cell h5 {
    font-size: 24px;
}

@media (max-width: 1588px) {
    .service {
        width: 80%;
    }

    .left-services h2 {
        transform: translateX(100px) rotate(30deg);
    }

    .right-services .service {
        width: 100%;
    }
}

@media (max-width: 1280px) {
    .phone-img {
        height: 20rem;
    }
}

@media (max-width: 1140px) {
    .phone-img {
        display: none;
    }

    .backend-left {
        display: flex;
    }

    .services-container {
        justify-content: space-around;
        gap: 1rem;
        align-items: start;
    }

    .backend {
        display: none;
    }

    .t {
        display: flex;
    }

    .last {
        display: none;
    }

    .left-services {
        transform: rotate(0deg);
    }

    .left-services .service {
        transform: rotate(0deg);
    }

    .left-services h2 {
        transform: rotate(0deg);
    }

    .button-div {
        align-items: center;
    }

    .r-bottom {
        transform: rotate(0deg) translateX(0) translateY(0);
    }

    .right-services {
        transform: rotate(0deg);
    }

    .right-services .service {
        transform: rotate(0deg);
    }
}

@media (max-width: 1100px) {
    .p-container p {
        width: 100%;
    }

    .outer-container {
        justify-content: space-around;
    }

    .stat {
        padding: 2rem 0rem;
    }
}

@media (max-width: 1100px) {
    .outer-container {
        flex-direction: column;
    }

    .stat-img {
        margin-left: 0;
        margin-top: 4rem;
    }
}

@media (max-width: 768px) {
    .stat-img {
        margin-left: 0;
        margin-top: 4rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        width: 100%;
        padding: 0rem 3rem;
    }

    .work-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .bubble-container {
        margin: 2rem;
    }

    .left-services .service,
    .right-services .service,
    .right-services .r-bottom {
        width: 100%;
    }

    .services-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .right-services,
    .left-services,
    .last {
        width: 80%;
        justify-content: center;
        align-items: center;
    }

    .stat {
        width: 100%;
    }

    .welcome {
        padding: 2rem;
    }

    .welcome h2 {
        text-align: center;
    }
}

@media (max-width: 500px) {
    .stat {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .work-container {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
    }

    .stat-text {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .inputs-container {
        gap: 0;
    }

    .number {
        margin-left: 0;
    }

    .form-container {
        padding-bottom: 5rem;
    }

    .places h2 {
        text-align: center;
        margin: 0rem 2rem;
    }

    .services {
        margin-bottom: 0;
    }

    .outer-container {
        margin-top: 2rem;
    }

    .stat p .stat h4 {
        text-align: center;
        margin-top: 0.5rem;
    }

    .welcome {
        padding: 0.5rem 0.5rem 2rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .stat-img {
        width: 15rem;
    }
}

@media (prefers-color-scheme: light) {
    .welcome h2 {
        color: var(--black);
        padding-bottom: 1rem;
    }

    .welcome {
        background-image: url('../assets/white-square-texture.png');
    }

    .p-container p {
        color: var(--gray);
    }

    .stat:hover {
        background-color: var(--light-pastel-green);
    }

    .cell p {
        color: var(--gray);
    }

    .service p {
        color: var(--gray);
    }

    .stat-p {
        color: var(--black);
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--black);
    }

    .welcome h2 {
        color: var(--white);
    }

    .welcome span {
        color: var(--white);
    }

    .welcome {
        background-image: url('../assets/black-sqr.png');
        background-size: 150%;
    }

    .bubble {
        background: linear-gradient(
                to bottom,
                transparent 50%,
                var(--forest-green)
        );
    }

    .service h4 {
        color: var(--white);
    }

    button {
        background-color: var(--black);
    }

    .light {
        background-color: var(--white);
    }

    .light-color {
        color: var(--white);
    }

    .p-container p {
        color: var(--green-gray);
    }

    .cell h5 {
        color: var(--white);
    }

    p {
        color: var(--white);
    }

    .stat-text h3 {
        color: var(--white);
    }

    .stat:hover {
        background-color: rgba(85, 187, 102, 0.18);
    }

    .cell p {
        color: var(--green-gray);
    }

    .service p {
        color: var(--green-gray);
    }

    .stat-p {
        color: var(--white);
    }
}
