:root {
    --linkedIn-color: #0077B5;
    --instagram-color: linear-gradient(to top right,#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.arimo {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: whitesmoke;
}

/* for images */
.img-fluid {
    width: 100%;
    height: auto;
}

/* font sizes */
.display-1 {
    font-size: 6vmin;
    font-weight: 500;
}

.display-2 {
    font-size: 4vmin;
    font-weight: 500;
}

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

/* Margins */
.m-1 {
    margin: 0.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* Padding */
.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.pt-1 {
    padding-top: 0.5rem;
}

.pt-2 {
    padding-top: 1rem;
}

/* Flex classes */
.flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

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

.row {
    flex-direction: row;
}

.col {
    flex-direction: column;
}

.wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 0.5rem;
}

.rounded-corner {
    border-radius: 16px;
}

/* Header */
.header {
    gap: 2.5vh;
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 0 8px gray;
    z-index: 2;
}

/* Nav bar*/
.nav {
    gap: 1.5vh;
}

a {
   text-decoration: none;
    color: black;
}

.underline-on-hover {
    position: relative;

    &:hover {
        &::after {
            content: '';
            width: 100%;
            background-color: black;
            height: 1px;
            position: absolute;
            top: 90%;
            left: 0;
        }
    }
}

/* Main */
.main-section {
    text-align: center;
}

.bg-img {
    background: url("./assets/bg-img.webp") no-repeat;
    background-size: cover;
    background-position: center;
}

.bg-mask {
    background: rgba(0, 0, 0, 0.3);
    background-size: cover;
}

/* Contact form */
input, textarea {
    width: 100%;
    padding: 1rem;
    font-family: "Arimo", sans-serif;
    border-radius: 10px;
    border: 1px solid black;

    &::placeholder {
        font-family: "Arimo", sans-serif;
    }
}

textarea {
    max-width: 100%;
}

input[type='submit'] {
    width: min-content;
    background: #0057A4;
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 16px;
    font-weight: 600;

    &:hover, &:focus {
        background: #004E93;
        cursor: pointer;
    }
}

/* Footer */
.footer {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-template-areas:
        "description"
        "contacts"
        "socials";
    gap: 1rem;

    & a {
        gap: 0.5rem;
    }
}

.description {
    grid-area: description;
}

.contacts {
    grid-area: contacts;
}

.socials {
    grid-area: socials;

    & a {
        transition: color 0.5s;

        & svg {
            transition: fill,background-color 0.5s;
        }
    }

    & a:first-child:hover, & a:first-child:focus {
        & svg {
            fill: var(--linkedIn-color);
        }
        & {
            color: var(--linkedIn-color);
        }
    }

    & a:last-child {
        & svg {
            background: black;
            fill: white;
            border-radius: 16%;
        }

        &:hover, &:focus {
            & svg {
                background: var(--instagram-color);
            }

            & {
                background: var(--instagram-color);
                color: transparent;
                background-clip: text;
                -webkit-background-clip: text;
            }
        }
    }
}

/* Media queries - Desktop */
@media screen and (min-width: 768px) {
    /* Flex classes */
    .lg-justify-content-center {
        justify-content: center;
    }

    .display-1 {
        font-size: 5vmin;
    }

    .lg-justify-space-between {
        justify-content: space-between;
    }

    .lg-justify-space-around {
        justify-content: space-around;
    }

    .lg-align-items-center {
        align-items: center;
    }

    .lg-row {
        flex-direction: row;
    }

    .lg-col {
        flex-direction: column;
    }

    .header {
        padding: 1rem 4% 1rem 4%;
    }

    .display-1 {
        font-size: 5vmin;
    }

    .display-2 {
        font-size: 4vmin;
    }

    .nav {
        flex-direction: row;
    }

    .main-section {
        width: 50%;
        margin-left: 50%;
    }

    .text-start {
        text-align: start;
    }

    .footer {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: "description contacts socials";
        gap: 1rem;
        align-items: center;
    }

    .contact-us {
        & img {
            width: 50%;
        }

        & .contact-form {
            width: 50%;
            gap: 3rem;
        }
    }

    .info-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        grid-template-areas: "main-info sub-info";

        & img {
            height: 20rem;
        }

        & section:last-child {
            width: 100%;
        }
    }

    .main-info-section {
        grid-area: main-info;
    }

    .sub-info-section {
        grid-area: sub-info;
    }
}