* {
    font-family: "Montserrat";
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    padding: 0;
    margin: 0;
}

h1 {
    font-weight: 700;
    font-size: 48px;
    margin: 0 0 16px 0;
}

a {
    text-decoration: none;
    color: black;
    font-size: 24px;
}

p {
    color: #979797;
    margin: 0 0 16px 0;
    font-size: 24px;
}

.btn {
    background-color: #FFC108;
    color: white;
    padding: 8px 24px;
    border: 2px solid #FFC108;
}

.btn-alt {
    background-color: white;
    color: black;
    margin-right: 16px;
    border: 2px solid #FFC108;
}

#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 128px;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 5;
}

#header h1 {
    margin: 0;
    /* animation: flash 1s infinite; */
    animation: bounceIn 1s;
}

@keyframes bounceIn {
    0% {
        filter: opacity(0);
        transform: translateY(-20px);
    }

    35% {
        filter: opacity(0.25);
        transform: translateY(0);
    }

    70% {
        filter: opacity(0.5);
        transform: translateY(-10px);
    }

    100% {
        filter: opacity(1);
        transform: translateY(0);
    }
}

@keyframes flash {
    from {
        filter: opacity(0);
    }

    to {
        filter: opacity(1);
    }
}

section {
    padding: 64px 128px;
}

img,
iframe {
    width: 100%;
}

#landing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 16px;
}

#landing p {
    margin-bottom: 32px;
}

#landing>div {
    width: 50%;
}

nav>a {
    margin-left: 12px;
}

nav>a:hover {
    color: #FFC108;
}

#about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 16px;
}

#about>div {
    width: 50%;
}

#about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    margin-top: 72px;
}

.about-stats-items {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-stats-items div {
    width: 75px;
    height: 10px;
    background-color: #FFC108;
    margin-bottom: 16px;
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-header h1 {
    position: relative;
}

.service-header h1::before {
    content: "";
    width: 60px;
    height: 60px;
    background: url("./images/accent1.svg");
    position: absolute;
    left: -20px;
    top: -10px;
    z-index: -1;
}

.service-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 128px;
    margin-top: 72px;
}

.service-detail-items {
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.service-detail-items:hover {
    transform: scale(1.15);
}

.service-detail-items img {
    width: 100%;
    filter: grayscale(1);
}

.service-detail-items img:hover {
    filter: grayscale(0);
}

.service-detail-items h2 {
    padding: 0 16px;
}

.service-detail-items p {
    font-size: 16px;
    padding: 0 16px;
}

#contact h1 {
    position: relative;
}

#contact>h1::before {
    content: "";
    width: 60px;
    height: 60px;
    background: url("./images/accent2.svg");
    position: absolute;
    left: -20px;
    top: -10px;
    z-index: -1;
}

.contact-detail {
    display: flex;
    justify-content: space-between;
    margin-top: 72px;
    column-gap: 72px;
}

.contact-detail>div,
.contact-detail>form {
    width: 50%;
}

form {
    display: flex;
    flex-direction: column;
    border: 3px solid #FFC108;
    padding: 64px 32px;
}

form button:hover {
    cursor: pointer;
}

form h1 {
    font-size: 32px;
    text-align: center;
}

.form-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    margin-top: 32px;
    grid-template-areas: "name subject"
        "email phone"
        "message message";
}

#input-name {
    grid-area: name;
}

#input-subject {
    grid-area: subject;
}

#input-email {
    grid-area: email;
}

#input-phone {
    grid-area: phone;
}

#input-message {
    grid-area: message;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.input-group label {
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 24px;
}

.input-group input {
    border: none;
    outline: none;
    border-bottom: 1px solid black;
    font-size: 20px;
}

.input-group input:focus {
    border-bottom: 2px solid #FFC108;
}


footer {
    padding: 16px 128px;
    background-color: #FFC108;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: white;
    width: 50%;
}

.social-icon {
    display: flex;
    gap: 32px;
}

@media only screen and (max-width: 1200px) {
    .service-detail {
        gap: 24px;
    }

    .contact-detail {
        gap: 24px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
    }
}

@media only screen and (max-width: 992px) {

    #header,
    footer {
        padding: 16px 32px;

    }

    section {
        padding: 16px 32px;
    }

    #landing {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    #landing>div {
        width: 100%;
    }

    #about {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    #about>div {
        width: 100%;
    }

    .service-detail {
        gap: 16px;
    }

    .contact-detail {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 64px;
    }

    .contact-detail form,
    .contact-detail div {
        width: 100%;
    }
}

@media only screen and (max-width: 480px) {

    #header,
    footer {
        padding: 32px 64px;

    }

    section {
        padding: 32px 64px;
    }

    #header nav {
        display: none;
    }

    #landing h1 {
        font-size: 24px;
    }

    #landing p {
        font-size: 18px;
    }

    #landing div>div {
        display: flex;
        justify-content: space-around;
        /* justify-content: space-between; */
    }

    #landing div>a {
        font-size: 12px;
    }

    #about h1 {
        font-size: 24px;
    }

    #about p {
        font-size: 18px;
    }

    .service-header h1 {
        font-size: 24px;
    }

    .service-header p {
        font-size: 18px;
    }

    .service-header a {
        display: none;
    }

    .service-header h1::before {
        content: "";
        width: 30px;
        height: 30px;
        background: url("./images/accent1.svg");
        position: absolute;
        left: -10px;
        top: -5px;
        z-index: -1;
    }

    .service-detail {
        display: grid;
        margin-top: 16px;
        grid-template-columns: repeat(1, 1fr);
    }

    .service-detail-items h2 {
        font-size: 18px;
    }

    .service-detail-items p {
        font-size: 12px;
    }

    #contact h1 {
        font-size: 24px;
    }

    #contact p {
        font-size: 18px;
    }

    #contact>h1::before {
        content: "";
        width: 30px;
        height: 30px;
        background: url("./images/accent2.svg");
        position: absolute;
        left: -10px;
        top: -5px;
        z-index: -1;
    }

    .contact-detail form {
        padding: 32px 32px;
    }

    .input-group label {
        font-size: 18px;
    }

    .input-group input {
        font-size: 14px;
    }

    .social-icon {
        display: flex;
        flex-direction: column;
    }
}