@font-face {
    font-family: 'Avgardo';
    src: url(fonts/avantgarde-bk-bt-2/AVGARDD_2.TTF) format('truetype');
}
@font-face {
    font-family: 'Avgardo_2';
    src: url(fonts/avantgarde-bk-bt-2/AVGARDDO_2.TTF) format('truetype');
}
@font-face {
    font-family: 'Avgardo_3';
    src: url(fonts/avantgarde-bk-bt-2/AVGARDN_2.TTF) format('truetype');
}

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
html {
  scroll-behavior: smooth;
}
/* Make sure padding is counted correctly everywhere */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}
body {
  position: relative;
  margin: 0;
  padding: 0;
}


.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;                
  height: 70px;
  background-color: white;
  z-index: 100;
  display: flex;
  justify-content: center; 
  align-items: center;
}
.hamburger{
    display: none;}
.hamburger__bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #101010;
}
.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;     
  padding-inline: 150px;   
}

.menu__img {
  width: 50px;
}

.navBar {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navBar__link {
  font-family: 'EB Garamond', serif;
  color: black;
  text-decoration: none;
  font-size: 1rem;
}
.navBar__link:hover{
    color: #FF4F63;
}
.heroSection{
    margin-block-start: 70px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 800px;
    gap: 200px;
}
.heroSection__title{
    font-family: 'Avgardo_3';
    font-size: 8rem;
    font-weight: lighter;
    margin: 0;
}
.subTitle{
    font-family: 'EB Garamond', serif ;
    font-weight: lighter;
    font-size: 1.5rem;
}
.heroSection__img{
    position: absolute;
}
.heroSection__img--1{
    width: 550px;
    left: 68%;
    top: 30%;
}
.heroSection__img--2{
    width: 300px;
    top: 65%;
    left: 52%;
}
.heroSection__img--3{
    width: 250px;
    top: 25%;
    left: 58%;
}
.heroSection__img--4{
    width: 200px;
    top: 25%;
    left: 32%;
}
.heroSection__img--5{
    width: 350px;
    top: 65%;
    left: 29%;
}
.heroSection__img--6{
    width: 230px;
    top: 30%;
    left: 18%;
}
.projects{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block: 62px;
}
.projects__title{
    font-family: 'Avgardo_3';
    font-size: 2rem;
    font-weight: lighter;
}
.primary__button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 208px;
    height: 60px;
    border-radius: 16px;
    background-color: #FF4F63;
    color: white;
    font-family: 'Avgardo_2';
    font-size: 1.5rem;
    text-decoration: none;
    margin-block-start: 10px;
}
.project__title{
    font-family: 'Avgardo_3';
    font-size: 1.8rem;
    font-weight: lighter;
    place-self: start;
    margin: 0;
}
.project__subTitle{
    font-family: 'EB Garamond', serif ;
    font-weight: lighter;
    font-size: 1.2rem;
    place-self: start;
}
.projects__project{
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    width: 1150px;
    padding-inline: 64px;
    padding-block: 32px ;
    border-radius: 20px;
    margin-block-end: 32px;
    
}

.footer{
    display:flex;
    justify-content: space-between;
    width: 80vw;
    height: 150px;
    place-self: center;
    color: #FF4F63;
    border-top: 2px solid #FF4F63;
    margin-block-start: 50px;
}
.footer__heading{
    font-family: 'Avgardo_3';
    font-size: 1.5rem;
    margin: 8px;
}
.footer__section{
    display: flex;
    flex-direction: column;
}
.footer__detail{
    display: block;
    color: #FF4F63;
    text-decoration: none;
    font-family: 'Avgardo_3';
    margin: 8px;
}


.intro{
    margin-block-start: 70px;
    padding-inline: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.intro__heading{
    font-family: 'Avgardo_3';
    font-size: 5rem;
    font-weight: lighter;
    margin: 0;
}
.intro__subheading{
    font-family: 'EB Garamond', serif ;
    font-weight: lighter;
    font-size: 1.5rem;
}
.projectInfo{
    display: flex;

}
.projectInfo__heading{
    font-family: 'Avgardo_3';
    font-size: 2rem;
    font-weight: lighter;
    margin-bottom: 8px;
}
.projectInfo__description{
    font-family: 'EB Garamond', serif ;
    font-size: 1rem;
    font-weight: lighter;
}
.projectInfo__descriptions{
    position: relative;
    width: 600px;
    height: 450px;
    overflow: hidden;
    transition: 0.3s;
}
.projectInfo__descriptions::before{
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, transparent, #fff );
}
.projectInfo__descriptions.active::before {
    display: none;
}
.projectInfo__wrapper{
    display: flex;
    flex-direction: column;
    align-items: end;
}
.unfold__button{
    cursor: pointer;
    background-color: transparent;
    border: none;
}
.unfold__button.active{
    transform: rotate(180deg);
}
.projectInfo__descriptions.active{
    height: auto;
}
.projectInfo__img{
    max-height: 553px;
    object-fit: contain;
}
.grid__container{
    height: auto;
}
.bentoGrid{
    display: grid;
	grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.grid__item{
    position: relative;
    background-color: #A8C686;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1/ span 2;
    overflow: hidden;
}
.grid__item:nth-child(2){
    background-color: #C6E0FF;
    grid-column: 3/span 2;
}
.grid__item:nth-child(3){
    background-color: #FFB0C4 ;
    grid-column: 1;
}
.grid__item:nth-child(4){
    background-color: #F7FFC9;
    grid-column: 2/5;
    
}
.grid__img {
  width: 100%;          
  height: 100%;         
  max-width: 100%;      
  object-fit: contain;  
  display: block;
  animation: fadeOne 10s linear infinite;    

}

.grid__img--second {
  position: absolute;
  opacity: 0;
  animation: fadeTwo 10s linear infinite;
}

.video{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.video__header{
    font-family: 'Avgardo_3';
    font-size: 2rem;
    font-weight: lighter;
}
.video__video{
    width: 700px;
    height: 400px;
}
.main{
    padding-inline: 150px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@keyframes fadeOne {
  0%, 45%   { opacity: 1; }   /* visible */
  50%, 95%  { opacity: 0; }   /* hidden */
  100%      { opacity: 1; }   /* loop back smoothly */
}

@keyframes fadeTwo {
  0%, 45%   { opacity: 0; }   /* hidden while first is visible */
  50%, 95%  { opacity: 1; }   /* visible while first is hidden */
  100%      { opacity: 0; }   /* reset for loop */
}

.gallery__main{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-inline: 150px;
}
.gallery__description{
    font-family: 'EB Garamond', serif ;
    font-weight: lighter;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 30px;
    margin-block-start: 0;
}
.gallery__heading{
    font-family: 'Avgardo_3';
    font-size: 2rem;
    font-weight: lighter;
    margin-top: 70px;
}
.gallery__images{
    column-count: 3;
}
.gallery__img{
    cursor: zoom-in;
    width: 400px;
    border-radius: 20px;
    transition: 0.3s;
}
.gallery__img.active{
    transform: scale(1.5);
    transform-origin: top left;
    transition: 0.3s;
    cursor: zoom-out;
}
.aboutMe__main{
    margin-block-start: 150px;
    padding-inline:250px ;
    display: flex;
    flex-direction: column;
    gap: 100px;
}
.aboutMe__section{
    display: flex;
    justify-content: center;
    gap: 50px;
    padding-inline: 150px;
}
.aboutMe__img{
    object-fit: contain;
    max-width: 400px;
}
.aboutMe__heading{
    font-family: 'Avgardo_3';
    font-size: 2.5rem;
    font-weight: lighter;
}
.aboutMe__description{
    font-family: 'EB Garamond', serif ;
    font-size: 1.2rem;
    font-weight: lighter;
    margin-top: 20px;
    min-width: 350px;
}
@media (max-width: 1900px){
    .heroSection{
        height: 550px;
    }
    .heroSection__title{
        font-size: 5rem;
    }
    .heroSection__img--1{
        width: 450px;
        top: 20%;
    }
      .heroSection__img--2{
        width: 250px;
        left: 56%;
    }
      .heroSection__img--3{
        top: 20%;
        
    }
      .heroSection__img--4{
       top: 20%;
    }
      .heroSection__img--5{
        width: 250px;
        top: 75%;
        left: 25%;
    }
      .heroSection__img--6{
       left: 15%;
       top: 20%;
    }
    .projects__project{
        width: 900px;
        height: 500px;
    }
    .project__img{
        width: 400px;
    }

    .intro__heading{
        font-size: 4rem;
    }

    .projectInfo__heading{
        font-size: 1.4rem;
    }
    .projectInfo__descriptions{
        height: 400px;
    }
    .projectInfo__img{
        height: 450px;
    }

.aboutMe__heading{
    
    font-size: 2rem;
   
}
.aboutMe__description{
    font-size: 1rem;
    
}
}

/*Tablet layout*/
@media (max-width: 1180px) {
    .heroSection__img--1{
        width: 450px;
        left: 60%;
    }
    .heroSection__img--2{
        width: 200px;
        left: 50%;
        top: 80%;
    }
    .heroSection__img--3{
        width: 200px;
        top: 20%;
        left: 50%;
    }
    .heroSection__img--6{
        left: 10%;
    }
    .navBar{
        position: fixed;
        display: flex;
        flex-direction: column;
        background-color: white;
        width: 100vw;
        top: 5rem;
        padding: 1rem;
        left: 100%;
        transition: 0.3s;
    }
    .navBar.active{
        left: 0;
    }
    .navBar__item .active{
        color: #FF4F63;
    }
    .hamburger{
        display: block;
        cursor: pointer;
    }
    .hamburger.active .hamburger__bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger__bar:nth-child(1) {
        -webkit-transform: translateY(8px) rotate(45deg);
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .hamburger__bar:nth-child(3) {
        -webkit-transform: translateY(-8px) rotate(-45deg);
        transform: translateY(-8px) rotate(-45deg);
    }
    .gallery__images{
    column-count: 2;
}
}
/*Phone layout*/
@media (max-width: 880px){
    .menu{
        padding-inline: 20px;
    }
    .navBar{
        position: fixed;
        display: flex;
        flex-direction: column;
        background-color: white;
        width: 100vw;
        top: 5rem;
        padding: 1rem;
        left: 100%;
        transition: 0.3s;
    }
    .navBar.active{
        left: 0;
    }
    .navBar__item .active{
        color: #FF4F63;
    }
    .hamburger{
        display: block;
        cursor: pointer;
    }
    .hamburger.active .hamburger__bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger__bar:nth-child(1) {
        -webkit-transform: translateY(8px) rotate(45deg);
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .hamburger__bar:nth-child(3) {
        -webkit-transform: translateY(-8px) rotate(-45deg);
        transform: translateY(-8px) rotate(-45deg);
    }
    .heroSection{
        height: 600px;
        padding: 20px;
        display: block;
    }
    .heroSection__title{
        font-size: 3rem;
    }
    .heroSection__img--1{
        width: 350px;
        left: 30%;
        top: 35%;
    }
    .heroSection__img--2{
        width: 150px;
        top: 55%;
        left: 5%;
    }
    .heroSection__img--5{
        width: 200px;
        top: 80%;
        left: 5%;
    }
    .heroSection__img--4{
        width: 150px;
        top: 90%;
        left: 60%;
    }
    .heroSection__img--3,
    .heroSection__img--6{
        display: none;
    }
    .projects__project{
        width: 100%;
        height: auto;
    }
    .project__img{
        width: 100%;
    }
    .intro{
        padding-inline: 20px;
    }
    .intro__heading{
        font-size: 3rem;
    }
    .subTitle{  
        font-size: 1.3rem;
        
    }
    .main{
        padding-inline: 20px;
    }
    .projectInfo{
        flex-direction: column;
        align-items: center;
    }
    .projectInfo__descriptions{
        width: 100%;
        height: 300px;
    }
    .projectInfo__img{
        width: 100%;
        height: auto;
    }
    .primary__button{
        width: 150px;
        height: 50px;
        font-size: 1rem;
        margin-block-start: 10px;
    }
    .footer{
        height: 100px;
        width: 90vw;
        margin:20px auto;
    }
    .footer__heading{
        font-size: 1rem;
    }
    .footer__detail{
        font-size: 0.5rem;
    }
    .footer__section:nth-child(3){
        display: none;
    }
    
    .video__video{
        width: 100%;
    }
    .gallery__images{
         display: flex;
         flex-direction: column;
    }
    
    .aboutMe__main{
        margin-block-start: 70px;
        width: 100%;
        padding: 0;
        align-items: center;
        gap: 50px;
        padding: 5px;
    }
    .aboutMe__section{
         flex-direction: column;
         padding: 0;
         justify-content: center;
         align-items: center;
    }
    .aboutMe__description{
        max-width: 360px;
        order: 1;
    }
    .aboutMe__heading{
        max-width: 360px;
    }
    .aboutMe__img{
        order: 2;
        width: 300px;
    }
}