* {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
    
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
    font-family: "Trebushet MS", Helvetica, sans-serif;
}

body {
    background-color: #ADC7B9;
    height: 100vh;
    width: 100wv;
    transform-style: preserve-3d;
    
}

.container {
    display: grid;
    width: 100vw;
    height: 100vh;
    text-align: center;
    grid-template-columns: 1fr max-content 1fr;
    grid-template-rows: 3fr max-content max-content 3fr;
    position: relative;
    
}


.first {
    color: #FFF;
    font-size: 7rem;
    grid-column: 2/3;
    grid-row: 2;
    animation: moveInbottom 1s ease-in-out
}

/*Navigation Start*/

.navigation {
   grid-column: 2/3;
   grid-row: 3;
   height: 13vh;
   z-index: 150;
}

.navigation::after {
    display: table;
    content: "";
    clear: both;
}

.navigation__checkbox {
    display: none; 
}

.navigation__button {
    font-size: 1.8rem;
    margin: 4rem auto;
    padding: .5rem;
    border: solid 3px #FFF;
    border-radius: 7rem; 
    color: #FFF;
    z-index: 100;
    display: inline-block;
    width: 55%;
    animation: moveInbottom 1s ease-in-out;  
}
 

.navigation__background {
    position: fixed;
    width: 100vw;
    height: 5vh;
    background-color: #ADC7B9;
    z-index: 150;
    top: 95%;
    right: 0%;
    transition: transform 1s ease-in-out;
    opacity: 0;
    
}
.navigation__nav {
    height: 100vh;
    position: fixed;
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    grid-template-rows: 1fr max-content 1fr;
    top: 0;
    right: 0;
    z-index: 150;
    opacity: 0;
    width: 0; 
}

.navigation__list {
    grid-column: 2/3;
    grid-row: 2;
    list-style: none;
    text-align: center;
    
}

.navigation__item {
    margin: 0 1.5rem;
}

.navigation__link:link,
.navigation__link:visited {
    display: inline-block;
    font-size: 2.6rem;
    font-weight: 400;
    padding: 1rem;
    color: #FFF;
    text-decoration: none;
    text-transform: uppercase;
    
}

.navigation__item:last-child {
    border: solid .3rem #FFF;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    margin: 1.5rem auto 0 auto;
    position: relative;
}

.close.icon {
  color: #FFF;
  position: absolute;
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 50%;
  
}
.close.icon:before {
  content: '';
  position: absolute;
  top: 1.7rem;
  left: .64rem;
  width: 2.3rem;
  height: .3rem;
  border-radius: 10rem;
  background-color: currentColor;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.close.icon:after {
  content: '';
  position: absolute;
  top: 1.7rem;
  left: .64rem;
  width: 2.3rem;
  height: .3rem;
  border-radius: 10rem;
  background-color: currentColor;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.navigation__checkbox:checked ~ .navigation__background {
    transform: scale(200);
    opacity: 1;
    
}

.navigation__checkbox:checked ~ .navigation__nav {
    opacity: 1;
    width: 100%;
    animation: moveInbottom 1s ease-in-out;
    
}

/*Navigation End*/

.preview {
    display: grid;
    grid-template-columns: auto max-content auto;
    grid-template-rows: max-content max-content;
    color: #FFF;
    backface-visibility: hidden;
}

.heading {
    grid-row: 1;
    grid-column: 2/3;
    margin: 1.7rem 1rem ;  
    font-size: 2.7rem;
    font-weight: 600;
    padding: 1rem; 
    z-index: 90;
    text-align: center;
    backface-visibility: hidden;
    animation: moveInbottom 1s ease-in-out; 
}

.navigation_1 {
    grid-column: 3/4;
    grid-row: 1;
    background-color: #ADC7B9;
}

.navigation__button_1 {
    background-color: #ADC7B9;
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    width: 6rem;
    height: 6rem;
    border-radius: 7rem;
    z-index: 1600;
    border: solid #FFF .4rem;
    animation: moveInbottom 1s ease-in-out; 
    backface-visibility: hidden;
}

.close.icon_1 {
  background-color: #FFF;
  position: absolute;
  border-radius: 10rem;
  top: 2.5rem;
  left: 1.1rem;
  width: 3rem;
  height: .4rem;
}

.close.icon_1:before {
  content: '';
  position: absolute;
  top: -1.1rem;
  width: 3rem;
  height: .4rem;
  border-radius: 10rem;
  transition: all .2s ease-in-out;
  background-color: currentColor;
  transform: rotate(0deg);
}

.close.icon_1:after {
  content: '';
  position: absolute;
  top: 1.1rem;
  width: 3rem;
  height: .4rem;
  border-radius: 10rem;
  transition: all .2s ease-in-out;
  background-color: currentColor;
  transform-origin: left;
  transform: rotate(0deg);
}

.navigation__background_1 {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 2.4rem;
    background-color: #ADC7B9;
    transition: all 1s ease-in-out;
    z-index: 600;
}

.navigation__nav_1 {
    height: 100vh;
    position: fixed;
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    grid-template-rows: 1fr max-content 1fr;
    top: 0;
    right: 0;
    z-index: 1500;
    opacity: 0;
    width: 0; 
    background-color: #ADC7B9;
}

.navigation__list_1 {
    grid-column: 2/3;
    grid-row: 2;
    list-style: none;
    text-align: center;
    
}

.navigation__item_1 {
    margin: 1.5rem;
}

.navigation__link_1:link,
.navigation__link_1:visited {
    display: inline-block;
    font-size: 2.6rem;
    font-weight: 400;
    padding: 1rem;
    color: #FFF;
    text-decoration: none;
    text-transform: uppercase; 
}

.navigation__checkbox_1 {
    display: none;
}

.navigation__checkbox_1:checked ~ .navigation__background_1 {
    transform: scale(50);
   
    
}

.navigation__checkbox_1:checked ~ .navigation__nav_1 {
    opacity: 1;
    width: 100%;
    animation: moveInbottom 1s ease-in-out;  
}

.navigation__checkbox_1:checked ~ .navigation__button_1 {
   position: fixed;
    
}

.navigation__checkbox_1:checked ~ .navigation__button_1 .close.icon_1 {
   width: 0;
}

.navigation__checkbox_1:checked ~ .navigation__button_1 .close.icon_1:before {
    transform-origin: left;
    transform: rotate(45deg);
    left: .4rem;
     
}

.navigation__checkbox_1:checked ~ .navigation__button_1 .close.icon_1:after {
    transform-origin: left;
    transform: rotate(-45deg);
    left: .4rem;
    
}

.portfolio {
    grid-column: 2/3;
    grid-row: 2;
    font-size: 2rem;
    font-weight: 600;
    background-color: #E9D0A6;
    padding: 1rem 2rem;
    border-radius: 3rem;
    border: solid .4rem;
    z-index: 50;
    text-align: center;
    backface-visibility: hidden;
    animation: moveInbottom 1s ease-in-out; 
    
}

.logo_back {
    grid-column: 1/2;
    grid-row: 1;
    background-color: #ADC7B9;
}

.logo_link {
    position: absolute;
    top: 1.5rem;
    left: 1rem;
    height: 6rem;
    width: 6rem;
    border-radius: 9rem;
    animation: moveInbottom 1s ease-in-out; 
    z-index: 90;
    backface-visibility: hidden;
    
}

.logo {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 7rem;
   border: solid #FFF .4rem;
}

main {
   width: 100vw;
   height: 100vh;
   
}

.photos {
    display: grid;
    padding: 1rem;
    width: 100%;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    animation: moveInbottom 1s ease-in-out; 
}

.photos img {
    width: 100%;
    height: 40rem;
    display: block;
    border-radius: 2rem;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.2);
}

 .popup {
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(173, 199, 185, 0.9);
    z-index: 1800;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0; 
} 

.popup:target {
    visibility: visible;
    opacity: 1;
    animation: moveInbottom .5s ease-in-out;
} 

.popup img {
    max-width: 30rem;
    height: auto;
    box-shadow: 0 0 2rem rgb(0, 0, 0, .8);
    border-radius: 1.5rem;
    display: block; 
} 

.back {
    position: absolute;
    top: 1.7rem;
    right: .9rem;
    width: 6rem;
    height: 6rem;
}

.close.icon_2 {
  color: #FFF;
  position: absolute;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  
}
.close.icon_2:before {
  content: '';
  position: absolute;
  top: 2.7rem;
  left: 1.4rem;
  width: 3rem;
  height: .4rem;
  border-radius: 10rem;
  background-color: currentColor;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.close.icon_2:after {
  content: '';
  position: absolute;
  top: 2.7rem;
  left: 1.4rem;
  width: 3rem;
  height: .4rem;
  border-radius: 10rem;
  background-color: currentColor;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.wow {
    overflow-y: hidden;
    }

.blank {
    max-height: 100vh;
    max-width: 80vw;
    background-color: #FFF;
    border-radius: 2rem;
    margin: 4rem auto;
    animation: moveInbottom 1s ease-in-out;
    box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.1);
    }

.blank a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
    padding: 2rem 2.5rem;
    font-size: 1.5rem; 
    display: block;
    cursor: pointer;
    }

.photos {
        grid-gap: 1.5rem;
        padding: 1.5rem; 
    }
        
.back {
    top: 1.7rem;
    right: 1.4rem;
    }

span {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.7rem;
}

.alone {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    padding: 2rem 0;
    
}

.first {
        font-size: 7rem;
    }
    
/*.navigation__button {
        font-size: 2.7rem;
        font-weight: 500;
        padding: 1rem;
    }
*/

.logo_link {
        left: 1.5rem;
    }
    
.navigation__button_1 {
        right: 1.5rem;
    }

.why:link, .why:visited {
    font-size: 1.5rem;
    line-height: 1.3;
}

.border, .border_1 {
    max-height: 10vh;
    max-width: 50vw;
    text-align: center;
    margin: 8rem auto 1rem auto;
    
}

.border_1 {
    max-width: 80vw;
    max-height: 25vh;
}

.section, .section_1 {
    color: #FFF;
    font-size: 2.5rem;
    border: solid .4rem currentColor;
    font-weight: 600;
    border-radius: 3rem;
    padding: 1rem 1.5rem;
    margin: 0 auto;
    background-color: #E9D0A6;
}

.section_1 {
   width: 90%; 
}

.bg-video {
    position: absolute;
    top:0;
    left:0;
    bottom: 0;
    right: 0;
    height:100%;
    width:100%;
    z-index: -1;
}

.bg-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.bg-video__content {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* ------- Keyframes Start -------- */
@keyframes moveInbottom {
    0% {
        opacity: 0;
        transform: translateY(6rem);
    }
    
    60% {
        opacity: 0;
    }
    
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------- Keyframes End ---------- */


/* ----------- Media Start ---------- */

    
    
    
    

@media all and (min-width:370px) {
    
    .popup img {
        max-width: 35rem;
    }
    
    .heading {
        font-size: 3.5rem;
         margin: 1.5rem 1rem ;  
    }
    
    .blank a {
        font-size: 2rem;
    }
    
    span {
        font-size: 2.1rem;
    }
    
    .alone {
        font-size: 2.1rem;
        padding: 2rem 1rem;
        text-align: center;
    } 
    
    .why:link, .why:visited {
    font-size: 2rem;
}
    
    .navigation__link_1:link,
    .navigation__link_1:visited,
    .navigation__link:link,
    .navigation__link:visited {
        font-size: 2.7rem;
        font-weight: 600;
    }
    
    .navigation__button {
        font-size: 1.6rem;
        padding: .6rem;
        width: 50%;
        font-weight: 600;
    }
}
    
@media all and (min-width:768px) {
    .first {
        font-size: 9rem;
    }
    
    .navigation__button {
        font-size: 2.3rem;
        padding: .8rem;
        width: 55%;
    }
    
    .heading {
        font-size: 4rem; 
    }
    
    .popup .land {
        max-width: 48rem;
    }
    
    .alone {
        font-size: 3.5rem;
        padding: 2rem 2.5rem;
        text-align: left;
    }
    .border {
        margin: 9rem auto 1rem auto;
    }
    .section {
        max-width: 60%; 
        font-size: 2.9rem;
    }
    
    .section_1 {
        max-width: 60%;
        font-size: 2.9rem;
    }
    
    .why:link, .why:visited {
    font-size: 2.5rem;
  
}
    
    .blank a {
        font-size: 2.5rem;
    }
    
    span {
        font-size: 2.9rem;
        margin-bottom: 1.5rem;
    }
    
    .navigation__link_1:link,
    .navigation__link_1:visited,
    .navigation__link:link,
    .navigation__link:visited {
        font-size: 3.5rem;
    }

}
    
   
@media all and (min-width: 1024px)  {
    .first {
        font-size: 10rem;
    }   
    
    
    .navigation__link:link,
    .navigation__link:visited {
        font-size: 3.5rem;
    }
    
    .navigation__button {
        font-size: 2.4rem;
        padding: .7rem;
        width: 50%;
    }
    
    .heading {
        font-size: 5rem;
        padding: 0;
    }
    
    .portfolio {
        font-size: 2.5rem;
    }
    
    .blank {
    max-width: 60vw;
    }
    
    .section {
        max-width: 40%; 
        font-size: 2.9rem;
    }
    
    .section_1 {
       max-width: 50%; 
    }
}



/* ---------- Media End --------- */