
:root {
    --header-height: 80px;
    --size-small: 14px;
    --size-med: 16px;
    --size-big: 40px;
    --padding-default: clamp(8rem, calc(0.8889rem + 11.1111vw), 12rem);
}

html, body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

header {
    position: fixed;
    top: 0;
    box-sizing: border-box;
    padding: 0 var(--padding-default);
    width: 100%;
    color: #1a1a1a;
    background-color: #F0F0F0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 2;
    justify-content: start;
    box-shadow: 0 -10px 29px 9px rgba(0, 0, 0, 0.29);
    -webkit-box-shadow: 0 -10px 29px 9px rgba(0, 0, 0, 0.29);
    -moz-box-shadow: 0 -10px 29px 9px rgba(0, 0, 0, 0.29);
}

header .logo {
    /*height: 100%;*/
    /*width: auto;*/
    /*min-width: 60px;*/
    /*max-width: 100%;*/
    /*color: white;*/
    margin-right: 6rem;
    /*width: 100%;*/
    height: 90%;
}

header .logo img {
    height: 90%;
    width: auto;
}


header .spacer {
    flex-grow: 1;
}

header .nav-item {
    margin: 0 3rem;
    text-decoration: none;
    font-size: var(--size-med);
    font-weight: bold;
    /*margin-left: 3rem;*/
    transition: transform .5s ease-in-out;
}

header .nav-item a {
    color: inherit; /* blue colors for links too */
    text-decoration: inherit; /* no underline */
}

header .nav-item:hover {
    transform: scale(1.2);
}

main {
    margin-top: calc(var(--header-height));
    width: 100%;
    display: grid;
    grid-template-rows: 450px auto auto 1fr;
    overflow-y: auto;
}

.section {
    position: relative;
}

#item-1, #item-2, #item-3 {
    position: absolute;
    top: calc(-1 * var(--header-height));
}

.section-1-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("/assets/intellectual_property.jpg");
    background-size: cover;
    /*opacity: 0.6;*/
    transition: all 1s ease-in-out;
    opacity: 1;
}

#slider-image.pre-anim {
    opacity: 0.5 !important;
}

.section-1-darken {
    position: absolute;
    background-color: #1b1b1b;
    opacity: 0.7;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section-1-text {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    color: #F0F0F0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-content: center;
    justify-content: center;
    align-items: center;
    font-size: var(--size-big);
}

.s1t-header {
    font-weight: lighter;
    font-size: 32px;
}

#slider-text.pre-anim {
    opacity: 0 !important;
}

#slider-text {
    text-align: center;
}

#slider-text.anim {
    transition: all 1s ease-in-out;
    opacity: 1;
}

.s1t-item {
    font-weight: bold;
}


.section-2 {
    box-sizing: border-box;
    display: grid;
    grid-row-gap: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.s2i {
    box-sizing: border-box;
    padding: 16px;
    /*height: 100%;*/
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr 3fr;
    color: #1a1a1a;
    background-color: #ffffff;
    font-size: var(--size-small);
    line-height: 1.5;
    /*min-height: 220px;*/
    height: 220px;
    transition: transform .2s ease-in-out;
}

.s2i:hover {
    cursor: pointer;
}


.s2i:hover img {
    animation: pulse-white 2s infinite;
}

@keyframes pulse-white {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.s2i.bg-diff {
    background-color: #F0F0F0;
}

.s2i div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.s2i .headline {
    align-self: start;
    font-weight: bold;
    font-size: var(--size-small);
}

a:hover, a:visited, a:link, a:active {
    text-decoration: none;
}

.s2i img {
    width: 80%;
}

.s2i-text {
    justify-content: start !important;
    /*font-size: var(--size-small);*/
}

.section-3-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("/assets/about-us-bg.jpg");
    background-size: cover;
    /*opacity: 0.6;*/
}

.section-3-darken {
    position: absolute;
    background-color: #1b1b1b;
    opacity: 0.6;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section-3-text {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    color: white;
    height: 100%;
    width: 100%;
    text-align: left;
    /*padding: 4rem 4rem 2rem 4rem;*/

    font-size: 1.5rem;
}

.pad-right {
    padding-right: var(--padding-default);
}

.pad-left {
    padding-left: var(--padding-default);
}

.section-3-text .about-us-header {
    grid-row-start: 2;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.section-3-text .about-us-text {
    font-size: 20px;
    line-height: 1.8;
    grid-column-start: 1;
    grid-row-start: 3;
    grid-row: span 3;
    /*text-align: justify;*/
}

.section-3-text .infographic {
    display: flex;
    height: 120px;
    margin-top: 64px;
}

.info {
    flex: auto;
    /*height: 120px;*/
}

.info img {
    height: auto;
    fill: #F0F0F0;
    color: #F0F0F0;
    width: 80%;
}

.section-about-us {
    padding: 4rem var(--padding-default) 4rem var(--padding-default);
}

.section-4 {
    color: #F0F0F0;
    padding: 4rem var(--padding-default) 0 var(--padding-default);
    background-color: #1b1b1b;
    display: grid;
    grid-template-rows: 0.5fr minmax(350px, 3fr) 0.7fr;
    grid-template-columns: 1fr 1.5fr;
    grid-gap: 2rem;
}

.footer-contact-label {
    grid-row-start: 1;
    font-size: 3rem;
    font-weight: bold;
}

.contact-info {
    padding: 2rem;
    font-size: 1.5rem;
    grid-row-start: 2;
    grid-column-start: 2;
    display: grid;
    grid-template-columns: 1fr 3fr;
}

.contact-info a {
    color: #F0F0F0;
    /*text-decoration: none;*/
}

.cp {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: span 2;
    font-size: 1.2rem;
}

.mobile-header{
    display: none;
}

/* Greeting Modal Container */
#patent-modal, #trademark-modal, #design-modal, #other-modal {
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

/* Greeting Modal Container - when open */
#patent-modal:target, #trademark-modal:target, #design-modal:target, #other-modal:target {
    visibility: visible;
    opacity: 1;
}

/* Greeting Modal */
#patent-modal .modal, #trademark-modal .modal, #design-modal .modal, #other-modal .modal {
    opacity: 0;
    transform: translateY(-1rem);
    transition: all 0.5s ease-in-out;
    transition-delay: 0.2s;
}

/* Greeting Modal - when open */
#patent-modal:target .modal, #trademark-modal:target .modal, #design-modal:target .modal, #other-modal:target .modal {
    transform: translateY(0);
    opacity: 1;
}

/* Modal Container Styles */
.modal-container {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Background Styles */
.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Modal Body Styles */
.modal {
    z-index: 1100;
    background-color: white;
    width: 50%;
    height: 50%;
    /*border: 2px solid black;*/
    padding: 0;
    margin: 0;
    /*border-radius: 8px;*/
    border-radius: 24px;
    line-height: 1.8;
    display: grid;
    grid-template-columns: 1fr 3fr;
}

.modal-image {
    height: 100%;
    overflow-y: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
}

.modal-info {
    box-sizing: border-box;
    margin: 1.5rem 3rem;

}

.modal-info h3 {
    font-size: 30px;
    margin: 0.5rem 0;
}

.modal-info p {
    line-height: 2;
}

.pdf-container {
    margin-top: 3.5rem;
    display: flex;
}

.link {
    display: flex;
    /*justify-items: center;*/
    align-items: center;
}

.link:nth-of-type(2) {
    margin-left: 4rem;
}

.link .link-text {
    margin-left: 1rem;
}

.link-text p {
    line-height: 1.5;
    margin: 0;
}

.link img {
    width: 85px;
    height: 85px;
}
