* {
    margin: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: Lato;
    src: url(fonts/Lato-Regular.ttf);
}

@font-face {
    font-family: Fredoka;
    src: url(fonts/Fredoka-Medium.ttf);
}


body {
    background-color: #E5FFFE;
    overflow-x: hidden;
}

p, a {
    font-family: Lato;
}

h1, h2, h3, button {
    font-family: Fredoka;
}

#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    /* margin-bottom: -1em; */
}

#big-logo {
    width: 18em;
    z-index: 1;
}

#hero-button {
    border: none;
    cursor: pointer;
    margin-top: 1em;
    font-size: 1.2em;
    border-radius: 50px;
    padding: 10px;
    color: #E5FFFE;
    background-color: black;
    z-index: 1;
    transition: 0.3s;
}

#hero-button:hover {
    background-color: rgba(0, 0, 0, 0.782);
    transform: scale(1.1);
    transition: 0.3s;
}

#hero .blob {
    user-select: none;
    width: 40em;
    animation: morph 1s ease-in-out infinite;
    transform-origin: center;
    position: absolute;
    z-index: 0;
    margin: auto;
}

#hero .blob path, #approach .blob path {
    animation: morph 14s ease-in-out infinite;
}

@keyframes morph {
    0% {
        d: path("M60.8,-49.9C75.3,-33.1,81.3,-8.2,75.8,12.4C70.3,33,53.3,49.2,32.6,57.9C11.9,66.6,-12.6,67.8,-33.6,59.1C-54.5,50.4,-71.9,31.8,-76.1,9.7C-80.3,-12.4,-71.3,-38,-54.3,-54.8C-37.3,-71.6,-12.4,-79.6,7.1,-85.1C26.6,-90.6,46.3,-66.7,60.8,-49.9Z");
    }
    25% {
        d: path("M67.5,-46.5C81.3,-26.5,82.2,4.6,71.8,27.8C61.4,51,39.7,66.3,15.3,72.1C-9.1,77.9,-36.2,74.2,-54.6,58.8C-73,43.4,-82.7,16.3,-77.9,-7.2C-73.1,-30.7,-53.8,-50.7,-32.8,-67.4C-11.8,-84.1,10.9,-97.5,30.1,-87.7C49.3,-77.9,53.7,-66.5,67.5,-46.5Z");
    }
    50% {
        d: path("M54.3,-46.4C69.3,-29.1,80,-5.8,76.5,15.8C73,37.4,55.3,57.2,33.1,65.9C10.9,74.6,-15.8,72.2,-37.1,61.1C-58.4,50,-74.3,30.2,-77.1,8.3C-79.9,-13.6,-69.6,-37.6,-52.8,-55C-35.9,-72.3,-12.5,-83,4.7,-86.8C21.8,-90.6,39.3,-63.7,54.3,-46.4Z");
    }
    75% {
        d: path("M67.3,-58.9C83.1,-42.8,89.3,-14.7,84.1,10.2C78.9,35.1,62.3,56.8,40.4,68.1C18.5,79.4,-8.7,80.3,-33.6,71.1C-58.5,61.9,-81.1,42.6,-87.8,17.8C-94.4,-7,-85.1,-37.3,-67.3,-53.9C-49.6,-70.6,-24.8,-73.6,1,-74.4C26.8,-75.2,51.5,-75,67.3,-58.9Z");
    }
    100% {
        d: path("M60.8,-49.9C75.3,-33.1,81.3,-8.2,75.8,12.4C70.3,33,53.3,49.2,32.6,57.9C11.9,66.6,-12.6,67.8,-33.6,59.1C-54.5,50.4,-71.9,31.8,-76.1,9.7C-80.3,-12.4,-71.3,-38,-54.3,-54.8C-37.3,-71.6,-12.4,-79.6,7.1,-85.1C26.6,-90.6,46.3,-66.7,60.8,-49.9Z");
    }
}

#services, #projects, #approach, #contact, #team {
    margin-bottom: 2em;
    width: 100%;
    /* padding: 4em 0 2em 0; */
    display: flex;
    flex-direction: column;
}

.broketitle, .section-title {
    margin-left: 15rem;
    margin-bottom: 15px;
    user-select: none;
    width: fit-content;
}

.broketitle {
    display: flex;
    flex-direction: row;
}

.service-grid {
    padding-bottom: 2em;
    margin: auto;
    width: 67%;
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 2em 1em;
    align-items: center;
}

.service-grid h2 {
    font-weight: 500;
}

.service-grid hr {
    grid-column: span 2;
    width: 100%;
    border: none;
    border-top: 1px solid black;
}

h1 {
    color: #064E40;
    text-transform: uppercase;
    font-size: 3em;
}

.project1 {
    grid-area: photo1
}

.description1 {
    grid-area: description1
}

.description2 {
    grid-area: description2;
}

.photo2 {
    grid-area: photo2;
}

.description3 {
    grid-area: description3;
}

.photo3 {
    grid-area: photo3;
}

.description4 {
    grid-area: description4;
}

.photo4 {
    grid-area: photo4;
}

#projects {
    background-color: #ffffff;
    position: relative;
    padding: 2em 0;
}

#projects::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: linear-gradient(to bottom, #E5FFFE, #ffffff);
}

.button-pr-container {
    margin: auto;
    width: fit-content;
}

#projects::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: linear-gradient(to bottom, #ffffff, #E5FFFE);
}

.projects-grid {
    margin: auto;
    width: 67%;
    display: grid;
    margin-bottom: 1em;
    grid-template-columns: 2fr 2fr;
    grid-template-rows: auto;
    gap: 1em 3em;
    grid-template-areas:
        "photo1 description1"
        "description2 photo2"
        "photo3 description3"
        "description4 photo4";
}

.projects-grid img {
    width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    background-color: white;
}

.projects-grid>article {
    margin: auto;
}

.projects-grid p {
    width: 73%;
}

.button-pr-container {
    transition: 0.3s;
    cursor: pointer;
}

.button-pr-container:hover {
    transform: scale(1.1);
}

.button-pr-container a {
    text-decoration: none;
    color: black;
    cursor: pointer;
}

.button-pr-container button {
    background-color: black;
    color: white;
    border-radius: 50%;
    padding: .5em;
    border: none;
    font-size: 1em;
    cursor: pointer;
}

.approach-title {
    grid-area: approach-title;
}

.firstpillar {
    grid-area: firstpillar;
    z-index: 1;
}

.secondpillar {
    grid-area: secondpillar;
    z-index: 1;
}

.thirdpillar {
    grid-area: thirdpillar;
    z-index: 1;
}

.approach-grid {
    width: 67%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto;
    grid-template-areas:
        ". firstpillar"
        "approach-title secondpillar"
        ". thirdpillar";
    position: relative;
    gap: 1em 20em;
    align-items: center;
}

#approach .blob {
    user-select: none;
    width: 200%;
    height: 150%;
    animation: morph 4s ease-in-out infinite;
    transform-origin: center;
    position: absolute;
    z-index: 0;
    top: -25%;
    left: -50%;
    margin-left: 20em;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.photos {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.photos:before {
  position: absolute;
  top: 0;
  width: 15rem;
  height: 100%;
  content: "";
  z-index: 2;
  background-color: #E5FFFE;
}

.photos:after {
    position: absolute;
    top: 0;
    right: 0;
    width: 15rem;
    height: 100%;
    content: "";
    z-index: 2;
    background-color: #E5FFFE;
}

.photos-slide {
  display: inline-block;
  animation: 45s slide infinite linear;
}

.photo-container {
    display: inline-block;
    text-align: center;
    margin: 5px 40px;
}

.photos-slide img {
  height: 300px;
  width: 200px;
  object-fit: cover;
}

.team-name {
    margin-top: 10px;
    color: #000000;
    /* font-weight: bold; */
    white-space: nowrap;
    font-family: Lato;
}

#contact form {
    width: 67%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.form-control {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.form-control label {
    font-family: Fredoka;
    color: #000000;
}

.form-control input, 
.form-control textarea {
    padding: 1em;
    border: 1px solid #064E40;
    border-radius: 8px;
    background-color: rgba(6, 78, 64, 0.05);
    font-family: Lato;
    transition: 0.3s;
}

.form-control input:focus, 
.form-control textarea:focus {
    outline: none;
    border-color: #064E40;
    background-color: rgba(6, 78, 64, 0.1);
    box-shadow: 0 0 0 3px rgba(6, 78, 64, 0.1);
}

.form-control textarea {
    min-height: 150px;
    resize: vertical;
}

#contact button[type="submit"] {
    background-color: black;
    color: #E5FFFE;
    border: none;
    padding: 1em 2em;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    align-self: flex-start;
    transition: 0.3s;
}

#contact button[type="submit"]:hover {
    background-color: rgba(0, 0, 0, 0.782);
    transform: scale(1.05);
}

[data-reveal="left"] {
    clip-path: inset(0 100% 0 0);
}

[data-reveal="right"] {
    clip-path: inset(0 0 0 100%);
}

[data-reveal="left"].revealed {
    animation: reveal-left 0.8s cubic-bezier(0.17, 0.97, 0.38, 1) forwards 300ms;
}

[data-reveal="right"].revealed {
    animation: reveal-right 0.8s cubic-bezier(0.17, 0.97, 0.38, 1) forwards 300ms;
}

@keyframes reveal-left {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes reveal-right {
    0% {
        clip-path: inset(0 0 0 100%);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* Base responsive adjustments */
@media (max-width: 1200px) {
    .service-grid, .projects-grid, .approach-grid, #contact form {
        width: 80%;
    }

    .broketitle, .section-title {
        margin-left: 10rem;
    }

    .projects-grid img {
        width: 400px;
        height: 240px;
    }

    #approach .blob {
        display: none
    }
}

/* Tablet */
@media (max-width: 768px) {

    body {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .service-grid, .projects-grid, .approach-grid, #contact form {
        width: 90%;
    }

    .broketitle, .section-title {
        margin-left: 5rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .service-grid hr {
        grid-column: span 1;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo1"
            "description1"
            "photo2"
            "description2"
            "photo3"
            "description3"
            "photo4"
            "description4";
        gap: 2em;
    }

    .projects-grid img {
        width: 100%;
        height: auto;
    }

    .projects-grid p {
        width: 100%;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "approach-title"
            "firstpillar"
            "secondpillar"
            "thirdpillar";
        gap: 2em;
        text-align: center;
    }

    #big-logo {
        width: 14em;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .broketitle, .section-title {
        margin-left: 2rem;
    }

    #big-logo {
        width: 12em;
    }

    h1 {
        font-size: 2em;
    }

    #hero .blob {
        width: 100%;
    }

    .photos-slide img {
        height: 250px;
        width: 167px;
    }

    .photo-container {
        margin: 0 20px;
    }

    #contact button[type="submit"] {
        align-self: center;
        width: 100%;
    }

    #approach .blob {
        display: none;
    }

    .photos:after, .photos:before {
        display: none;
    }

    .photos {
        margin: 0 2rem;
        border-radius: 10px;
        padding: 2rem 0;
    }
}

/* Large screens */
@media (min-width: 1600px) {
    .service-grid, .projects-grid, .approach-grid, #contact form {
        width: 60%;
    }

    #big-logo {
        width: 22em;
    }

    .projects-grid img {
        width: 600px;
        height: 360px;
    }
}