@layer Fonts{
/* bellefair-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Bellefair';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/bellefair-v14-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-condensed-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/barlow-condensed-v12-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/barlow-v12-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
}

@layer Color{
  :root{
    --color-blue-900: hsl(230, 35%, 7%);
    --color-blue-300: hsl(231, 77%, 90%);
    --color-white: hsl(0, 0%, 100%);
    --color-black: hsl(0, 0%, 0%);
    --color-white-50: hsla(0, 0%, 100%, 0.5);
    --color-white-25: hsla(0, 0%, 100%, 0.25);
    --color-white-06: hsla(0, 0%, 100%, 0.6);
  }
}

@layer Typography{

    a{
        font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
        font-weight: 300;
    }

    .preset-1{
        font-size: 80px;
        line-height: 171%;
        text-transform: uppercase;
        color: var(--color-white);
        font-family: 'Bellefair', Arial, Helvetica, sans-serif;
        font-weight: 300;
        font-weight: 300;

        @media(min-width: calc(700 / 16 * 1rem)){
           font-size: 144px;
        }
    }

    .preset-2{
        font-size: 56px;
        line-height: 114%;
        text-transform: uppercase;
        color: var(--color-white);
        font-family: 'Bellefair', Arial, Helvetica, sans-serif;
        font-weight: 300;

        @media(min-width: calc(700 / 16 * 1rem)){
           font-size: 80px;
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
           font-size: 96px;
        }
    }

    .preset-3{
        font-size: 24px;
        line-height: 36%;
        text-transform: uppercase;
        color: var(--color-white);
        font-family: 'Bellefair', Arial, Helvetica, sans-serif;
        font-weight: 300;

        @media(min-width: calc(700 / 16 * 1rem)){
           font-size: 40px;
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
           font-size: 56px;
        }
    }

    .preset-4{
        font-size: 18px;
        line-height: 36%;
        text-transform: uppercase;
        color: var(--color-white);
        font-family: 'Bellefair', Arial, Helvetica, sans-serif;
        font-weight: 300;

        @media(min-width: calc(700 / 16 * 1rem)){
           font-size: 24px;
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
           font-size: 32px;
        }
    }

    .preset-5{
        font-size: 20px;
        line-height: 33%;
        letter-spacing: 4px;
        text-transform: uppercase;
        color: var(--color-blue-300);
        font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
        font-weight: 300;

        @media(min-width: calc(700 / 16 * 1rem)){
           font-size: 20px;
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
           font-size: 28px;
        }
    }

    .preset-6{
        font-size: 16px;
        line-height: 32%;
        text-transform: uppercase;
        color: var(--color-white);
        font-family: 'Bellefair', Arial, Helvetica, sans-serif;
        font-weight: 300;

        @media(min-width: calc(700 / 16 * 1rem)){
           font-size: 28px;
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
           font-size: 28px;
        }
    }

    .preset-7{
        font-size: 14px;
        line-height: 16%;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--color-white);
        font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
        font-weight: 300;

        @media(min-width: calc(700 / 16 * 1rem)){
           font-size: 14px;
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
           font-size: 14px;
        }
    }

    .preset-8{
        font-size: 14px;
        line-height: 19%;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--color-white);
        font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
        font-weight: 300;

        @media(min-width: calc(700 / 16 * 1rem)){
           font-size: 16px;
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
           font-size: 16px;
        }
    }

    .preset-9{
        font-size: 15px;
        line-height: 180%;
        color: var(--color-blue-300);
        font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
        font-weight: 300;

        @media(min-width: calc(700 / 16 * 1rem)){
           font-size: 16px;
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
           font-size: 18px;
        }
    }
}

@layer Global{
    *,
    ::before,
    ::after{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body{
        font-family: 'Bellefair', Arial, Helvetica, sans-serif; /* TEMP */
        font-weight: 300;
    }

    body, section{
        overflow-x: clip;
    }

    a{
        text-decoration: none;
    }

    button{
        cursor: pointer;
    }

    a, button{
        -webkit-tap-highlight-color: transparent;
        -webkit-focus-ring-color: transparent;
    }
    
    img{
        display: block;
        width: 100%;
        height: auto;
    }

    .visually-hidden {
        position: absolute;
        left: -10000px;
        top: auto;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }
}

@layer Layout{

    .Wrapper{
        display: grid;
        grid-template-columns: 6.5% 1fr 6.5%;
        height: 100%;

        @media(min-width: calc(700 / 16 * 1rem)){
            grid-template-columns: 5.5% 1fr 5.5%;
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
            grid-template-columns: 11.5% 1fr 11.5%;
        }
    }

    .page{
        display: grid;
        grid-template-rows: auto 1fr;   
        height: 100vh;
        height: 100dvh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-color: hsl(226, 33%, 7%);
    }
}

@layer Navbar{
    .nav-container{
        display: flex;
        justify-content: end;
        align-items: center;

        .logo{
            width: 48px;
            height: 48px;
        }

        ul{
            display: flex;
            list-style: none;
            background-color: hsl(0deg 0% 100% / 6%);
            backdrop-filter: blur(65px);
            column-gap: 48px;
        }

        li{
            display: flex;
        }
        
        li a{
            padding-inline: 5px;
            color: var(--color-white);
            display: flex;
            column-gap: 12px;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding-block: min(38px, 4vh);
        }

        a:active{
            background-color: hsla(0, 0%, 100%, 0.12);
        }

        a span{
            font-weight: bold;
        }

        .active-page{
            border-bottom: 2px solid var(--color-white);
        }

        .line{
            display: none;
        }

        #close-sidebar-button{
            background: none;
            border: none;
            cursor: pointer;
            margin-inline-start: auto;
            margin-inline-end: 24px;
            margin-block: 32px 80px;
            display: none;
        }

        #open-sidebar-button{
            background: none;
            border: none;
            cursor: pointer;
            margin-inline-start: auto;
            margin-inline-end: 24px;
            margin-block-start: 24px;
            display: none;
        }

        @media(width < calc(700 / 16 * 1rem)){
            margin-block-end: 25px;

            #close-sidebar-button, #open-sidebar-button{
                display: block;
            }

            .logo{
                margin-inline-end: auto;
                margin-inline-start: 24px;
                margin-block-start: 24px;
                align-self: self-start;
                width: 40px;
                height: 40px;
            }
            
            ul{
                position: fixed;
                flex-direction: column;
                height: 100vh;
                height: 100dvh;
                right: -100%;
                top: 0;
                z-index: 10;
                width: 68%;
                background-color: hsla(0, 0%, 100%, 0.06);
                transition: right 300ms ease-in-out;
            }

            .show{
                right: 0;
            }

            .full-nav{
                width: 100%;
                background-color: var(--color-black);
            }

            li{
                display: flex;
                position: relative;
            }
            
            li a{
                padding-inline-start: 32px;
                padding-inline-end: 100%;
            }

            .active-page{
                border-bottom: unset;
            }

            .active-page::after{
                content: '';
                position: absolute;
                width: 4px;
                height: 20px;
                background-color: var(--color-white);
                right: 0;
                top: 50%;
                transform: translateY(-50%);
            }

            ul.show ~ .layout{
                position: fixed;
                inset: 0;
                z-index: 9;
            }
        }

        @media(min-width: calc(700 / 16 * 1rem)){
            ul{
                padding-inline: 30px;
            }
            a.logo-link{
                margin-inline: auto;
            }
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
            padding-block-start: min(40px, 4vh);

            ul{
                padding-inline: 65px;
            }

            a.logo-link{
                margin-inline-end: auto;
                margin-inline-start: 64px;
            }

            .line{
                display: block;
                width: 25vw;
                height: 1px;
                background-color: hsla(0, 0%, 100%, 0.25);
                position: absolute;
                z-index: 11;
                right: 700px;
            }

            li:not(.active-page){
                transition: border-bottom 150ms ease-in-out;
            }

            li:not(.active-page):hover{
                border-bottom: 2px solid var(--color-white-50);
            }
        }

    }
}

@layer HomePage{
    .home{
        background-image: url(assets/home/background-home-mobile.jpg);

        @media(min-width: calc(700 / 16 * 1rem)){
            background-image: url(assets/home/background-home-tablet.jpg);
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
            background-image: url(assets/home/background-home-desktop.jpg);
        }
    }
    .home-content{
        grid-column: 2;
        display: grid;
        grid-template-rows: auto 1fr;

        .title{
            margin-block-start: 24px;
            align-items: center;
            justify-content: center;
            display: flex;
            flex-direction: column;
            text-align: center;
        }

        .circle{
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--color-white);
            height: 144px;
            width: 144px;
            align-self: center;
            justify-self: center;
            border-radius: 50%;
            margin-block-start: -30px;
            position: relative;
        }

        .circle::before{
            content: '';
            position: absolute;
            width: 150%;
            height: 150%;
            border-radius: 50%;
            pointer-events: none;
            background-color: rgba(255, 255, 255, 0.15);
            opacity: 0;
            transition: opacity 150ms ease-in-out;
        }

        a{
           color: var(--color-blue-900);
        }

        h3{
           color: var(--color-blue-300);
           font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
           letter-spacing: 2px;
        }

        p{
            max-width: 38ch;
            
        }

        @media(min-width: calc(700 / 16 * 1rem)){
            margin-block: auto;

            h1{
                line-height: 115%;
                margin-block: 24px;
            }

            .circle{
                width: 272px;
                height: 272px;
                margin-block-start: 50px; /* 80px */
            }

            p{
                max-width: 58ch;
            }

            a{
                font-size: 32px;
            }
        }
        
        @media(min-width: calc(1025 / 16 * 1rem)){
            grid-template-columns: 1fr 1fr;
            height: 70%;
            margin-block: unset;
            align-self: center;


            .title{
                align-items: start;
                justify-content: end;
                grid-row: 2;
            }

            .circle{
                align-self: end;
                justify-self: end;
                grid-row: 2;
            }

            .circle-active::before{
                opacity: 1;
            }

            p{
                max-width: 54ch;
            }
        }
    } 
}

@layer Destination{
    .destination-html{
        background-image: url(assets/destination/background-destination-mobile.jpg);

        @media(min-width: calc(700 / 16 * 1rem)){
            background-image: url(assets/destination/background-destination-tablet.jpg);
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
            background-image: url(assets/destination/background-destination-desktop.jpg);
        }
    }

    .destination-content{
        grid-column: 2;
        margin-block: 24px;
        display: grid;
        grid-template-rows: auto 1fr;

        h4{
            text-align: center;
            font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
        }

        h4 span{
            color: hsla(0, 0%, 100%, 0.6);
            margin-inline-end: 10px;
        }

        .planets{
            margin-block-start: 24px;
            display: grid;
        }

        picture{
            height: 200px;
        }

        img{
            width: 150px;
            margin-inline: auto;
            margin-block: 32px;
        }

        .planets-intro{
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;

        }

        .planets-btn{
            display: flex;
            justify-content: space-around;
        }

        .active-slide{
            border-bottom: 2px solid var(--color-white);
        }

        button{
            background: transparent;
            border: none;
            padding-block-end: 10px;
        }

        button:not(.active-slide){
            color: var(--color-white-50);
        }

        .planets-text{
            height: 215px;
            margin-block-start: 24px;
            text-align: center;
        }

        h1{
            font-size: 56px;
            line-height: 110%;
            margin-block-end: 16px;
        }

        p{
            max-width: 40ch;
            margin-inline: auto;
        }

        .details{
            border-top: 1px solid var(--color-blue-300);
            display: flex;
            flex-direction: column;
            padding-block-start: 10px;
            justify-content: start;
            align-items: center;
            row-gap: 24px;
            text-align: center;
            text-transform: uppercase;
            
            h3{
                margin-block-start: 14px;
                font-size: 28px;
            }
        }

        @media(min-width: calc(700 / 16 * 1rem)){
            margin-block: 40px;
            
            .planets{
                grid-template-rows: auto 1fr;
            }
            
            h4{
                text-align: start;
                font-size: 20px;
            }

            picture{
                height: 380px;
            }

            img{
                width: 300px;
                margin-block-start: 24px;
                margin-block-end: 32px;
            }

            .planets-intro{
                display: flex;
                flex-direction: column;
                justify-content: unset;
                row-gap: 10%;
                margin-block-start: 32px;
            }

            .planets-btn{
                justify-content: center;
                column-gap: 32px;
            }

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

            h1{
                font-size: 80px;
            }

            p{
                max-width: 56ch;
            }

            .details{
                flex-direction: row;
                justify-content: space-around;
                width: 415px;
                margin-inline: auto;
                padding-block-start: 15px;
            }
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
            margin-block: 48px;

            .planets{
                grid-template-columns: 1fr 1fr;
                grid-template-rows: 65vh;
                align-items: center;
                margin-block-start: 35px;
            }

            picture{
                height: fit-content;
            }

            img{
                width: 480px;
            }

            .planets-intro{
                row-gap: 40px;
                margin-block-start: unset;
            }

            .details{
                margin-block-start: unset;
            }

            button:not(.active-slide):hover{
                border-bottom: 2px solid var(--color-white-50);
            }

            h1{
                font-size: 96px;
            }

            h3{
                margin-block-start: 25px;
            }

        }
    }
}

@layer Crew{
    .crew-html{
        background-image: url(assets/crew/background-crew-mobile.jpg);

        @media(min-width: calc(700 / 16 * 1rem)){
            background-image: url(assets/crew/background-crew-tablet.jpg);
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
            background-image: url(assets/crew/background-crew-desktop.jpg);
        }
    }

    .crew-content{
        grid-column: 2;
        margin-block-start: 24px;
        display: grid;
        grid-template-rows: 19px 1fr;

        h4{
            text-align: center;
            font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
            align-self: center;
        }

        h4 span{
            color: hsla(0, 0%, 100%, 0.6);
            margin-inline-end: 10px;
        }

        .members{
            grid-row: 2;
            display: flex;
            flex-direction: column;
        }

        .description{
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            margin-block-start: 40px;
            margin-block-end: 32px;
        }

        h3{
            color: var(--color-white-50);
            margin-block-end: 22px;
        }

        h2{
            margin-block-end: 24px;
        }
        
        p{
            max-width: 39ch;
            margin-bottom: 40px;
            height: 155px;
        }

        button{
            margin-inline: 10px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: none;
        }

        button:not(.active-slide){
            background-color: var(--color-white-25);
        }

        button:not(.active-slide):hover{
            background-color: var(--color-white-50);
        }

        picture{
            margin-block-start: auto;
            margin-block-end: 20px;
        }

        img{
            width: auto;
            height: 38.5vh; /* 325px */
            height: 38.5dvh;
            margin-inline: auto;
        }


        @media(min-width: calc(700 / 16 * 1rem)){
            h4{
                text-align: start;
                font-size: 20px;
            }

            h3{
                margin-block-start: 24px;
            }

            h2{
                margin-block: 40px;
            }

            p{
                max-width: 60ch;
                height: 115px;
                margin-inline: auto;
            }

            picture{
               margin-block-start: auto;
               margin-block-end: unset;
            }

            img{
                height: 47vh; /* 485px */
                height: 47dvh;
                margin-block-start: 24px;
            }
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
            margin-block: 48px;

            .members{
                display: grid;
                grid-template-rows: 69.4vh;
                grid-template-columns: 1fr 1fr;
            }

            .description{
                margin-block-end: 60px;
                display: grid;
                grid-template-rows: 1fr 65px;
            }

            .text{
                height: 425px;
                text-align: start;
            }

            h2{
                line-height: 1.3;
                margin-block-start: 25px;
            }

            p{
                margin-inline: unset;
            }

            .crew-btn{
                align-self: start;
                justify-self: start;
            }

            picture{
                margin-block: auto;
            }

            img{
                height: min(66vh, 50vw); /* 676px */
            }
            
        }
    }
}

@layer Technology{
    .technology-html{
        background-image: url(assets/technology/background-technology-mobile.jpg);

        @media(min-width: calc(700 / 16 * 1rem)){
            background-image: url(assets/technology/background-technology-tablet.jpg);
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
            background-image: url(assets/technology/background-technology-desktop.jpg);
        }
    }

    .technology-container{
        margin-block-start: 24px;
        margin-block-end: 48px;
        display: grid;
        height: 95%;
        
        h4{
            text-align: center;
            font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
            align-self: center;
            margin-block-end: 24px;
        }

        h4 span{
            color: var(--color-white-06);
            margin-inline-end: 10px;
        }

        img{
            height: 260px;
            object-fit: cover;
            margin-block-start: 20px;
        }

        .tech-btn{
            text-align: center;
            margin-block-start: 30px;
            margin-block-end: 30px;
        }

        button{
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-inline: 12px;
            background: none;
            border: 1px solid var(--color-white-25);
        }

        button.active-slide{
            background-color: var(--color-white);
            color: var(--color-blue-900);
        }

        button:not(.active-slide):hover{
            border: 1px solid var(--color-white);
        }

        .text{
            text-align: center;
            margin-inline: 6.5%;
            display: flex;
            flex-direction: column;
            height: 210px;
            justify-content: space-between;
        }

        h3{
            color: var(--color-white-50);
        }

        p{
            height: 135px;
        }


        @media(min-width: calc(700 / 16 * 1rem)){
            margin-block-start: 40px;

            h4{
                text-align: start;
                font-size: 20px;
                margin-inline-start: 6.5%;
            }

            img{
                margin-block-start: 40px;
                height: 357px;
            }

            button{
                width: 56px;
                height: 56px;
            }

            .text{
                margin-block-start: 15px;
                height: 280px;
                justify-content: start;
            }

            h2{
                margin-block-start: 35px;
                margin-block-end: 45px;
            }

            p{
                max-width: 58ch;
                margin-inline: auto;
            }
        }

        @media(min-width: calc(1025 / 16 * 1rem)){
            display: grid;
            grid-template-rows: 19px 1fr;
            grid-template-columns: auto auto auto;
            grid-template-areas: 
            'h4 h4 h4'
            "buttons text image";
            margin-block-start: 44px;
            margin-block-end: unset;
            align-items: center;
            height: min(800px, 79vh);

            h4{
                grid-area: h4;
            }

            img{
                grid-area: image;
                height: min(600px, 68.5vh);
                width: min(608px, 69.5vh);
                margin-block-start: unset;
                justify-self: flex-end;
            }

            .tech-btn{
                grid-area: buttons;
                display: flex;
                flex-direction: column;
                align-items: end;
            }

            button{
                margin-block: 15px;
                width: 80px;
                height: 80px;
            }

            .text{
                grid-area: text;
            }

            h2, h3{
                line-height: 1;
            }

            h2{
                margin-block-start: 12px;
                margin-block-end: 30px;
            }
          
        }
    }
}