@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --text-dark: #222222;
    --text-light: #5C5C5C;

    --accent1: #3A79D9;
    --shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Work Sans', sans-serif;
    overflow-x: hidden;
    max-width: 2000px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    position: relative;
}

nav{
    display: none;
}

.cover-top-desktop{
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    width: 100%;
}

.cover-top-mobile{
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    max-height: 55vh;
    width: 100%;
}

.cover-bottom{
    display: none;
}

/* Landing page text */

.landing-page-text-container{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    padding-top: 95px;
    margin-bottom: 80px;
    padding-bottom: 100px;
    position: relative;
    width: 100%;
    background-image: url("assets/background/cover-top-desktop.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left bottom;
}

.bms-digital{
    font-size: 36px;
    color: white;
    font-weight: 700;
    grid-column: 2 / 12;
    grid-row: 1;
}

.slogan{
    color: white;
    font-size: 18px;
    font-weight: 400;
    margin-top: 27px;
    line-height: 125.8%;
    width: 80%;
    grid-row: 2;
    grid-column: 2/12;
}

/* Sections */
section{
    margin-bottom: 85px;
}

.section-heading{
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    width: max-content;
    margin: 0 auto;
    margin-bottom: 40px;
}

.section-heading::after{
    content: "";
    display: block;
    background-color: var(--accent1);
    width: 110%;
    height: 3px;
    transform: translateX(-5%);
}

/* Service Section */
.service-card-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    gap: 78px;
}

.service-card{
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 30px 24px;
    transition: all 0.2s ease-out;
}

.service-card:hover{
    box-shadow: 0 4px 10px var(--accent1);
    transition: all 0.2s ease-out;
}

.service-illustration{
    height: 101px;
}

.service-name{
    color: var(--accent1);
    font-size: 18px;
    font-weight: 500;
    margin: 15px 0;
}

.service-description{
    color: var(--text-light);
    font-size: 16px;
    font-weight: 400;
    line-height: 127.8%;
    text-align: center;
}

/* Portfolio Section */
.portfolio-card-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 78px;;
}

.portfolio-card-vertical{
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    background-color: white;
    box-shadow: var(--shadow);
    padding-bottom: 50px;
    padding-left: 18px;
    padding-right: 18px;
    transition: all 0.2s ease-out;
}

.portfolio-card-horizontal{
    width: 80%;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr 1fr;
    max-height: 300px;
    border-radius: 20px;
    background-color: white;
    box-shadow: var(--shadow);
    transition: all 0.2s ease-out;
}

.portfolio-card-vertical:hover, .portfolio-card-horizontal:hover{
    box-shadow: 0 4px 10px var(--accent1);
    transition: all 0.2s ease-out;
}

.portfolio-card-horizontal .portfolio-image{
    grid-column: 2;
    grid-row: 1 / 3;
    height: 90%;
    object-fit: contain;
    place-self: center;
}

.portfolio-card-horizontal .portfolio-name{
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    text-align: center;
}

.portfolio-card-horizontal .portfolio-description{
    grid-column: 1;
    grid-row: 2;
}

.portfolio-image{
    width: 100%;
    object-fit: cover;
}

.portfolio-name{
    color: var(--accent1);
    font-size: 18px;
    font-weight: 500;
    margin: 15px 18px;
}

.portfolio-card-horizontal .portfolio-name{
    color: var(--accent1);
    font-size: 18px;
    font-weight: 500;
    margin: 15px 18px;
}

.portfolio-description{
    color: var(--text-light);
    font-size: 16px;
    font-weight: 400;
    line-height: 127.8%;
    text-align: center;
}

/* Team section */
.team-card-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 44px;
    max-width: 400px;
    margin: 0 auto;
}

.team-card{
    display: grid;
    width: 80%;
    grid-template-columns: 1.5fr 2fr;
    grid-template-rows: 1fr 1fr;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease-out;
    background-color: white;
}

.team-card:hover{
    box-shadow: 0 4px 10px var(--accent1);
    transition: all 0.2s ease-out;
}
.team-profile-picture-wrapper{
    position: relative;
    grid-row: 1/3;
    grid-column: 1;
}
.team-profile-picture-wrapper:after{
    content:"";
    display: block;
    padding-bottom: 100%;
}


.team-profile-picture{
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.team-profile-picture:before{
    content:"";
    display: block;
    padding-top: 100%;
}

.team-name{
    grid-row: 1;
    grid-column: 2;
    margin-left: 45px;
    font-size: 18px;
    font-weight: 500;
    color: var(--accent1);
    align-self: center;
}
.team-skill-list{
    grid-row: 2;
    grid-column: 2;
    margin-left: 45px;
    list-style: disc;
    padding-bottom: 10px;
}
.team-skill-item{
    color: var(--text-light);
    font-size: 16px;
    font-weight: 400;
}

/* Contact Section */
form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.input-field-wrapper{
    position: relative;
    width: 80%;
}

.input-name{
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    left: 10px;
    background-color: white;
    padding-right: 0 5px;
    color: var(--text-dark);
}

input, textarea{
    border-radius: 10px;
    border: solid 1px var(--text-dark);
    height: 40px;
    width: 100%;
    font-family: 'Work Sans', sans-serif;
    padding-left: 10px;
    transition: border 0.2s ease-out;
}

textarea{
    height: auto;
    padding-top: 10px;
    padding-right: 5px;
}

.input-name:focus{
    color: var(--accent1);
}

input:focus, textarea:focus{
    border: solid 1px var(--accent1);
    transition: border 0.2s ease-out;
    color: var(--accent1);
    outline: none;
}

input:focus + .input-name, textarea:focus + .input-name{
    color: var(--accent1);
}

button{
    background-color: var(--accent1);
    box-shadow: none;
    border-radius: 5px;
    padding: 10px 15px;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.2s ease-out;
}

button:hover{
    box-shadow: 0 4px 10px var(--accent1);
    transition: all 0.2s ease-out;
    background-color: #2870db;
}

/* Impressum */
.impressum-wrapper{
    background-color: var(--accent1);
    padding: 17px 0;
    padding-left: 35px;
    margin-top: 100px;
}

.impressum-heading{
    font-size: 36px;
    font-weight: 500;
    color: white;
}

.impressum-subheading{
    font-size: 24px;
    font-weight: 500;
    color: white;
    margin-top: 38px;
    margin-bottom: 16px;
}

.impressum-text{
    font-size: 16px;
    font-weight: 400;
    color: white;
}