/* Variables and Initialization */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --var1: brown;
    --header-bg: white;
    --off-white: rgb(241, 241, 241);
    --grey: rgb(26, 26, 26);
    --hero-text-color: white;
    --button-bg: #3ECEF6;
    --info-bg: rgb(10, 12, 17);
}

/* Accessibility - motion reduction */

@media screen and (prefers-reduced-motion: reduce) {
    .animate {
        animation: none !important;
    }
}

/* CSS Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
    border: none;
}

html,
body {
    min-height: 100%;
    /* scroll-behavior: smooth; */
}

.white-out {
    position: absolute;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: fade-out-white 1s forwards;
}

@keyframes fade-out-white {
    100% {
        opacity: 0%;
        display: none;
    }
}

body,
ul,
ol {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

p {
    line-height: 1.8rem;
}

/* Header */

header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--header-bg);
    background-color: rgba(48, 48, 48, 0);
    text-transform: lowercase;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    padding: 2.2rem 0;
    transition: 0.4s;

    backdrop-filter: blur(0px);

    animation: fade-in 2s;
    animation-delay: 500ms;
    animation-fill-mode: backwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
}

/* TODO: Fix backdrop filter in Safari */

.header-logo h1 {
    font-weight: normal;
    font-size: 2rem;
    margin: 0;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    font-size: 1.2rem;
}

.nav-links li {
    display: inline-block;
    padding: 0 1rem;
}

.nav-links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

header a {
    text-decoration: none;
}

/* Hero */

.hero {
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
    height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 0 1000px rgba(1, 2, 19, 0.6);
}

.hero-content {
    padding: 0 0 0 2rem;
}

.hero-text {
    padding: 0.5rem;
    color: var(--hero-text-color);
    font-weight: normal;
}

.hero-button {
    background-color: var(--button-bg);
    padding: 1rem;
    margin: 2rem 0.5rem;
    border-radius: 0.5rem;
    width: 20rem;
    color: var(--hero-text-color);
    font-size: 1.2rem;
}

.hero h1 {
    font-size: 2.5rem;
}

/* Info Box */

.info-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 2rem;
    background-color: var(--info-bg);
    color: white;
}

.info-header {
    border-top: solid;
    margin: 0 2rem;
    text-transform: uppercase;
}

.info-header h1 {
    font-weight: 500;
    padding: 1rem;
    letter-spacing: .25rem;
}

.info-body {
    padding: 0 2rem;
    font-weight: 100;

}

.info-body p {
    padding: 0;
    margin: 0;
}

/* Our Technology */
.our-technology {
    background-image: url('./media/doctor1resize.jpeg');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
    margin: 0;
    padding: 0;
}

.our-technology h1 {
    margin: 0 4rem;
    padding: 4rem 0 1rem 0;
    border-bottom: 1px solid black;
    font-weight: 500;
    width: 60%;
    max-width: 500px;
}


.our-technology-content {
    width: 60%;
    margin: 4rem 4rem;
    max-width: 500px;
    font-weight: 300;
}

.our-technology button {
    margin: 1rem 0 4rem 4rem;
}

/* Stay Updated */
.stay-updated {
    background-color: var(--info-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.stay-updated h1 {
    color: var(--off-white);
    font-weight: 500;
    font-size: 3rem;
    margin: 2rem 0 0 0;
}

.stay-updated p {
    color: var(--off-white);
    margin: 0;
    font-weight: 200;
}

.stay-updated form {
    margin: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}



.stay-updated form input[type=text] {
    background-color: var(--grey);
    height: 50px;
    font-size: 1rem;
    color: lightgray;
    padding-left: 1rem;
    min-width: 500px;
    margin: 2rem 0;
}

.stay-updated form input[type=submit] {
    background-color: var(--off-white);
    padding: 0.8rem;
    margin: 0;
    height: 50px;
    font-size: 1rem;
    min-width: 150px;
    font-weight: 700;
}


/* Footer */
footer {
    background-color: var(--grey);
    margin: 0;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    font-size: 1.1rem;
}

footer p {
    color: lightgray;
}

footer a {
    color: rgba(225, 15, 113, 0.761);
    text-decoration: none;
}





/* TECHNOLOGY PAGE */

/* Intro */

.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--info-bg);
    color: var(--off-white);
    min-height: 100vh;
}



.intro-text {
    padding: 25vh 0rem 8rem 8rem;
    animation: fade-in-slide 1s;
    animation-delay: 500ms;
    animation-fill-mode: backwards;
}

.intro-text h2 {
    font-weight: 300;
    font-size: 1rem;
}

.dotted {
    font-weight: 200;
    font-size: 0.6rem;
    text-transform: uppercase;
}

.intro-text p {
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.4rem;
}

.intro-text h1 {
    font-weight: 400;
    font-size: 3rem;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
    animation: fade-in-slide 1.5s;
}

@keyframes fade-in-slide {
    0% {
        opacity: 0;
        transform: translateX(-20%);
    }
}



.intro-container {
    background-image: url('./media/model6resize.jpeg');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 1000px rgba(1, 2, 19, 0.25);
}

.intro-image2 {
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 1000px rgba(1, 2, 19, 0.25);
}

.intro-text button {
    min-width: 50%;
    padding: 1rem;
    background-color: rgba(93, 93, 93, 0.369);
    color: white;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 10px 5px 5px black;
}


/* Intro Transition */

.body-start {
    /*display: grid;
    grid-template-columns: 1fr 1fr;*/
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    padding: 4rem;
    margin: 2rem;
}

.body-start p {
    padding-left: 3rem;
    max-width: 30rem;
    font-weight: 200;
    line-height: 1.5rem;
}

.body-start h1 {
    text-align: left;
    padding-right: 3rem;
    font-weight: 300;
    font-size: 3rem;
    letter-spacing: .2rem;
}

/* Product Showcase */

/*.showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: 500px;
}*/
.showcase {
    display: flex;
    justify-content: center;
}

.showcase-img {
    background: url('./media/bf-device2.png') center no-repeat;
    background-size: contain;
    max-height: 75%;
    min-width: 50%;
}

.showcase-text {
    background-color: var(--grey);
    width: 100%;
    color: white;
    padding: 2rem 0 4rem 4rem;
}

/* Contact */

.contact-container {
    background: url('./media/model5resize.jpeg');
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: inset 0 0 0 1000px rgba(1, 2, 19, 0.4);
}

.contact-container h1 {
    color: white;
    margin: 0;
    padding: 0 0 1rem 0;
    font-weight: 600;
    font-size: 2rem;
}

.input-box-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 2rem;
    color: white;
    width: 100%;
}

.input-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-box span,
.message-box {
    font-size: 0.8rem;
    font-weight: 300;
    color: white;
}

.input-box input {
    margin: 0;
    padding-left: 0.4rem;
    height: 2rem;
    border-radius: 0.1rem;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

.message-box {
    display: flex;
    flex-direction: column;
}

.message-box textarea {
    margin: 0;
    padding: 0;
    height: 6rem;
    border-radius: 0.25rem;
    width: 100%;
    padding-left: 0.4rem;
    padding-top: 0.4rem;
    box-sizing: border-box;
    resize: none;
}

.message-box input[type=submit] {
    margin-top: 2rem;
    background-color: white;
    width: 35%;
    height: 2.5rem;
    font-size: 1rem;
    border-radius: 0.25rem;
}

.message-box {
    width: 100%;
    padding-top: 2rem;
}

.contact-container form {
    background-color: rgba(255, 255, 255, 0.274);
    min-height: 100px;
    width: 50%;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    border-radius: 0.25rem;
}

/* Before and After */

.bna {
    padding: 0;
    margin: 0;
    background: url("./media/doctor1resize.jpeg");
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 0 0 1000px rgba(1, 2, 19, 0.6);

    display: grid;
    grid-template-columns: 1fr 1fr;
}

.bna-text {
    padding: 4rem 4rem 4rem 0;
}

.bna-slider {
    padding: 4rem 0 4rem 4rem;
}

.bna-slider img {
    max-height: 400px;
}

.bna-slider,
.bna-text {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

.bna h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 500;
}

.bna p {
    color: white;
    font-size: 1rem;
}

.bna-slider-bar {
    width: 500px;
    position: absolute;
    z-index: 1000;
}

.bna-slider-img-container {
    width: 500px;
    height: 500px;
    position: relative;
}

.bna-bg-img {
    background-image: url("./media/model3resize.jpeg");
    height: 100%;
    width: 100%;
    background-size: cover;
    position: absolute;
}



.bna-fg-img {
    background-image: url("./media/model2resize.jpeg");
    width: 70%;
    height: 100%;
    background-size: cover;
    position: absolute;
}

/* Info Block */
.info-block {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin: 1rem 0;
}

.text-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.info-block h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

.text-split p {
    margin: 1rem;
    text-align: justify;
    font-size: 1rem;
    font-weight: 300;
}

/* Bullets and Boxes Components */

.bullets-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 10rem 0 10rem;
}

.bullets {
    display: flex;
}

.bullets ul {
    margin: 0.8rem;
}

.bullets-header h1 {
    font-weight: 300;
    font-size: 2.5rem;
    animation-delay: 10.5s;
    animation-fill-mode: backwards;
    animation: fade-in-slide 1.5s;
    margin-right: 10rem;
}

.bullets-header h3 {
    font-weight: 200;
    font-size: 1rem;
}

.boxes-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.box {
    background-color: var(--grey);
    margin: 2rem 1rem 1rem 1rem;
    max-width: 450px;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--off-white);
    border-radius: 2px;
}

.box p {
    font-weight: 200;
}

.bullets li {
    font-weight: 200;
    font-size: 1rem;
    margin-top: 12px;
}

.box h2 {
    font-weight: 400;
    letter-spacing: 0.05rem;
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
}

footer {
    padding: 3rem;
}

footer h3 a,
footer h3 {
    font-weight: 100;
    color: white;
    font-size: 1rem;
    margin: 0;
}

footer h4 {
    color: grey;
    font-weight: 200;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Legal Pages */

.legal {
    background-image: url('./media/model5resize.jpeg');
    opacity: 0.9;
    position: sticky;
}

.legal-container {
    padding: 1rem 15% 4rem 15%;
}

.legal-container h1 {
    font-weight: 600;
    font-size: 2.5rem;
}

.legal-container h2 {
    font-weight: 500;
    font-size: 2rem;
}

/*.legal-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--info-bg);
    color: var(--off-white);
    min-height: 25vh;
    background-image: url('./media/model6.jpeg');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
*/
/*
.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--info-bg);
    color: var(--off-white);
    min-height: 100vh;
}*/

/* Dialogs */

.dialog-box {
    padding: 1rem;
    width: 50%;
    min-width: 32rem;
    border-radius: 0.6rem;
    margin: 1rem;
    animation: fade-dialog 8s forwards;
}

.success-box {
    background-color: rgb(12, 233, 78);
}

.fail-box {
    background-color: rgb(233, 12, 12);
}

@keyframes fade-dialog {
    75% {
        opacity: 100%;
    }

    99% {
        opacity: 0%;
        display: block;
        position: relative;
        z-index: 1;
    }

    100% {
        display: none;
        position: fixed;
        opacity: 0%;
        z-index: -10;
    }
}