:root {
    --bg-col: #ffffff;
    --fg-col: #0d0d0d;
    --accent: #05445E;
    --primary: #C08C52;
    --secondary: #189AB4;
    --p-font: 1.2em;
    --h1-font: 1.5em;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Noto Sans Display;
    scroll-behavior: smooth;
    scroll-padding: 120px;
}


/* NAVBAR AND LOGO */
a {
    text-decoration: none;

}

button {
    font-family: Jost;
}

.log-bar {
    position: -webkit-sticky;
    position: sticky;
    top: .5em;
    height: 4em;
    margin-top: .5em;
    margin-left: 2em;
    margin-right: 2em;
    display: grid;
    grid-template-columns: 1fr 2fr
}



.logo {
    display: flex;
    word-wrap: none;
    flex-direction: column;
}

.brand {
    --h1-font: 2em;
    font-size: var(--h1-font);
    font-family: Fira Mono;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
}

.motto {
    font-family: poppins;
    color: grey;
    position: relative;
    left: 7em;
    font-size: smaller;
}

.navbar {
    display: flex;
    font-size: var(--h1-font);
    background-color: transparent;
    font-weight: 500;
    color: var(--primary);
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    z-index: 1;

}

.navbar>a {
    margin-left: 1em;
    color: var(--primary);
    font-family: Jost;
    font-weight: bolder;
    position: relative;
    /* border-bottom: .1em solid var(--primary); */
}

.navbar>a::after {
    position: absolute;
    content: "";
    height: 3px;
    width: 100%;
    border-radius: 48px;
    background-color: currentColor;
    left: 0;
    bottom: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms ease-in;

}

.navbar>a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* NAVBAR AND LOGO */






/* HERO */
.hero {
    --accent: rgba(26, 141, 255, 0.582);
    margin: 1em 2em;
    height: 600px;
    display: flex;
    background-color: var(--accent);
    background-image: url(img/books.jpg);
    color: var(--bg-col);
    background-blend-mode: multiply;
    background-size: cover;
    position: relative;
    z-index: -1;
    border-radius: 10px;

}



.topic {

    color: var(--bg-col);
    font-size: var(--h1-font);
    font-family: Jost;
    font-weight: 200;
    place-self: end;
    position: absolute;
    right: 0;
    bottom: 5em;
    margin-right: 1em;
    max-width: 30ch;
}

/* width: 16em;
    position: absolute;
    left: 38em;
    top: 18em;
    


/* HERO */





/* INTRO */

.intro {
    background: rgb(189, 188, 188);
    display: flex;
    margin: 4em 2em;
    padding: 2em 12em;
    flex-direction: column;
    text-align: center;



}

.intro a {
    color: var(--accent);
}

.intro>h1 {
    margin-bottom: .5em;
}


.intro p a {
    color: var(--secondary);
}

/* INTRO */

/* PRODUCTS */
.products {
    background: rgb(189, 188, 188);
    padding: 1.5em;
    margin: 1em 2em;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 1em;
    align-content: center;
    justify-content: center;
}

.product {
    display: flex;
    padding: 1em;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    align-self: center;
}

.product-body {
    align-self: center;
    text-align: center;
    width: 35ch;
    justify-self: center;
    margin-top: .5em;
    margin-bottom: 2.5em;
    color: rgb(80, 77, 77);
}


.product-btn {
    align-self: center;
    width: 8em;
    height: 4em;
    text-transform: uppercase;
    border: none;
    background: var(--secondary);
    color: var(--bg-col);
    font-size: var(1.3em);
    font-weight: bolder;
    cursor: pointer;
    position: relative;
}


.product-btn::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(135, 206, 250, 0.466);
    left: 0;
    top: 0;
    border-radius: 10px;
    transform: scale(0);
    transform-origin: top right;

    transition: transform 250ms ease-in,
        border-radius 250ms ease-in-out;
}


.product-btn:hover::after {
    transform: scale(1);
    transform-origin: bottom left;
}

.product-btn:hover {
    border-radius: 10px;
    transition: border-radius 250px ease-out;
}

/* PRODUCTS */

/* CAREER */

.careers {
    margin: 1em 2em;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1em;
    align-content: center;
    justify-content: center;
}

.careers-title {
    margin-top: 3em;
    margin-bottom: 0;
    text-align: center;
}

.career {
    display: flex;
    padding: 1em;
    flex-direction: column;
    justify-content: center;
    border: 3px solid var(--primary);
    border-radius: 10px;
    background: var(--primary);
    color: white;
    transition: transform 300ms ease-in;
}

.career:hover {
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 18px 0px 87px 0px rgb(0 0 0 / 20%);
    border-radius: 12px;
    will-change: transform;
    transform: perspective(1000px) rotateX(4.8deg) rotateY(10.23deg) scale3d(1.0, 1.0, 1.0) scale3d(1.05, 1.05, 1.05);
}

.career-thumbnail {
    align-self: center;
}

.career-thumbnail img {
    align-self: center;
    justify-self: center;
    width: 18em;
    height: 15em;
    border-radius: 12px;
}

.career-thumbnail:nth-of-type(3) {
    width: 15em;
}

.career-title {
    align-self: center;
    text-align: center;
}

.career-body {
    margin-top: .5em;
    text-align: center;
    margin-bottom: .5em;
}

.career-btn {
    margin-top: 1em;
    border: 2px solid var(--accent);
    height: 4em;
    width: 8em;
    align-self: center;
    font-weight: bolder;
    background: white;
    position: relative;
    text-transform: uppercase;
    font-weight: bolder;
}


.career-btn::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: #87cefa77;
    left: 0;
    top: 0;
    transform: scaleY(0);
    transform-origin: top;

    transition: transform 250ms ease-in;
}

.career-btn:hover::after,
.career-btn:hover {
    transform: scale(1);
    transform-origin: bottom;
    color: var(--primary);
    border: none;
    border-radius: 12px;
}




/* CAREER */



/* CONTACT */

.contacts {
    margin: 4em 2em 0 2em;
    display: grid;
    height: 18em;
    background: #E3F0F7;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    grid-gap: 1em;
    align-items: center;
    justify-items: center;
    color: var(--accent);
}



.contacts>div>i {
    font-size: 3em;
    margin-bottom: 1em;
}

.contacts>div {
    transform: scale(1);
    transition: transform 250ms ease;
}


.contacts>div:hover {
    transform: scale(1.1);
}

/* CONTACT */


/* FOOTER */
.footer {
    font-family: Jost;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    background: var(--primary);
    margin: 0em 2em;
    text-align: center;
    height: 12em;
    color: var(--accent);
    align-content: center;
    justify-content: center;
}


.credits {
    margin-top: 1em;
}

.social {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    gap: 2em;
}

.social i {
    transform: scale(1);
    transition: transform 250ms ease-in-out;
}

.social i:hover {
    transform: scale(1.5);
    transition: transform 300ms ease-in-out;
}


.social a:visited {
    text-decoration: none;
    color: var(--accent);
}

/* FOOTER */


/* RESPONSIVENESS */

@media (max-width:860px) {
    section {
        border-radius: 10px;
    }

    /* .log-bar {
        grid-template-columns: 1fr;
        position: relative;

    } */

    .log-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20em;
        position: relative;
    }

    .navbar {
        display: grid;
        grid-template-columns: 1fr;
        background: transparent;
        z-index: 1;
        margin-top: 1em;
        width: 50%;
        justify-self: center;
        border-radius: 10px;
    }

    .brand {
        font-size: 1.5em;
    }

    .navbar a {
        color: var(--accent);
    }

    .hero {
        width: auto;
        display: flex;

    }

    .topic {
        position: absolute;
        left: 5em;
        top: 8em;
    }

    .intro {
        border-radius: 10px;
        height: auto;
        padding: 3em;

    }

    .intro h1 {
        line-height: .9;
        padding: 0;
    }

    .intro p {
        margin-top: 2em;
        line-height: 1.5;
        padding: 1em;
    }

    .products {
        padding-left: 1em;
        padding-right: 1em;
    }

    .products,
    .careers {
        padding-top: 1.7em;
        padding-bottom: 1.7em;
        display: flex;
        flex-direction: column;
    }
    .product-body{
        margin-left: .5em;
        margin-right: .5em;
    }

    .career {
        margin-top: 2em;
    }

    .contacts {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        padding: 2em;

    }

    .contacts>div {
        margin-bottom: 1em;
    }


    .contacts>div>i {
        margin-bottom: 1em;
    }
}




/* RESPONSIVENESS */