* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;

  display: block;

  /* display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; */

  /* background-color: rgb(255, 255, 255); */

  background: radial-gradient(
    circle at top,
    #ffffff,
    #ffffff
  );
  /* color: white; */
  overflow-x: hidden;
}


.bubble-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  top: 100vh;
  z-index: 80;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    #e487e8 0%,   
    #6fcac5 25%,
    #849afb 50%,
    #d1a4f3 75%,
    #e487e8 100%
  );
  background-size: 200% 200%;
  animation:
    floatUp 90s linear infinite,
    gradientMove 10s linear infinite;

  opacity: 0.50;
  filter: blur(3px);
}


.bubble::after {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: inherit;
  filter: blur(10px);
  opacity: 0.6;
}



/* Variation */
.bubble:nth-child(1) { right: 100%; width: 200px; height: 200px; animation-duration: 35s; }
.bubble:nth-child(2) { left: 55%; width: 100px; height: 80px; animation-duration: 90s; }
.bubble:nth-child(3) { left: 70%; width: 400px; height: 400px; animation-duration: 80s; }


@keyframes floatUp {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(-140vh) translateX(500px);
  }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.glass {
  position: relative;
  z-index: 1;

  background: rgba(255, 255, 255, 0.311);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(15px) saturate(120%);
}

html, body {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  padding: 0.8rem;
  color: #696969;
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;

}

h1, h2{
  font-size: 2rem;
  
}

p,
li {
  padding: 0.8rem;
  font-family: "Kanit", sans-serif;
  font-size: 1rem;
}


li > p {
  padding: 0;
}

a {
  font-family: "Kanit", sans-serif;
  text-decoration: none;
  color: black;

  transition: 0.5s;
}

a:hover{
  color: rgb(132, 0, 255);
  scale: 1.2;
}

/*
    --------------NAV BAR STYLING-------------------
*/



.nav-page {
  width: 100%;
  height: 5rem;
  position: fixed;
  top: 0;
  z-index: 90;
}

nav {
  transition: 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;

  background: rgba(255, 255, 255);
}

nav > a {
  padding: 0.5rem;
}

nav:hover {
  scale: 1.2;
}


.side-nav {
  position: fixed;
  top: 80vh;
  right: 0;
  width: 100%;
  height: 0; 
  pointer-events: none;

  margin-left: auto;
  margin-right: 5vw;

  width: fit-content;

  display: flex;
  flex-direction: column;
  gap: 12px;

  pointer-events: auto;
}


.glass,
.nav-page,
.projects-page {
  overflow: visible; /* REQUIRED */
}


.side-nav > a{
  height: fit-content;
  margin: 0.2rem;
  width: 5rem;

}

.side-nav > a:hover{
  
  scale: 1.2;
}

/*---------------------------------------------------*/
          
/*
    ------------LANDING PAGE STYLING------- --------
*/

.landing-page {
  min-height: 100vh;
  margin: 2rem;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
}

.info-block {
  display: flex;
  flex-direction: column;
  width: fit-content;
}

.intro.info-block {
  justify-content: flex-start;
  
}

.typing-text {
  font-weight: bold;
  text-align: center;
  background: linear-gradient(
    90deg,
    #e487e8 0%,   
    #6fcac5 25%,
    #849afb 50%,
    #d1a4f3 75%,
    #e487e8 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  animation: gradientMove 10s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}

.cursor {
  opacity: 0.5;
}


.name.info-block {
  justify-content: flex-end;
}

.resume.info-block {
  justify-content: center;
  grid-row: 4/6;
}

.resume > a {
  text-decoration: underline;
}


.graphic-design {
  align-items: flex-start;
  width: fit-content;
}


/*---------------------------------------------------*/

/*
    ------------PROJECTS PAGE STYLING---------------
*/

hr 
{ 
  width:100%; 
  height:0.2rem; 
  background: #7c7c7c 
}

.projects-page {
  width: 95vw;
  margin: 2rem;
  display: flex;
  justify-content: center;
}

.project {
  transition: 0.5s;
}

.project-title {
  justify-content: flex-end;
}

.project:hover {
  scale: 0.98;
  border: #696969;
  border: 1px solid #d0d0d0;
  border-radius: 1rem;
}

.project > .content-box {
  display: flex;
  justify-content: center;
  align-items: center;
} 

.content-box a:hover{
  color: #000000;
}

.content-img {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden
}

.content-box  img {
  flex-shrink: 1;
  min-width: 100%;
  min-height: 100%
}

.quick-text{
  display: grid;
}

.project-info{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proHeading > h2,
.proHeading > p,
.project-info > p 
{
  padding: 1rem 0 0 0 ;
}

.project-date{
  font-style: italic;
  width: fit-content;
}

.option{
  background-color: #ffffff;
  
  border: 0.1rem solid #DDDDDD;
  border-radius: 0.3rem;

  width: 7rem;

  display: flex;
  align-items: center;
}

.option > p{
  width: 100%;
  text-align: center;
}


.des {
  width: 8rem;
  text-decoration: underline;

  display: flex;
  justify-content: center;
  align-items: center;

  transition: 0.5s;
}

.detail > p{
  width: auto;
}

.des:hover{
  color: rgb(132, 0, 255);
  scale: 1.2;

  fill:  rgb(132, 0, 255);;
}

a.project-link:hover{
  scale: 1;
}

.project-grid{
  padding: 5rem 0 0 0;
}
/*---------------------------------------------------*/


/*------------------------CONTACT PAGE---------------------------*/

.contact-page {
  width: 95vw;
  margin: 2rem;
  margin-top: 5rem;

  /* background-color: #ffffff; */

  display: flex;
  flex-direction: column;
}

.contact-page .project-title{
  justify-content: flex-start;
}

.contact-page .content-box{
  border: 0;
}

.contact-info{
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-info p{
  padding: 0.8rem;
}

.contact-info a{
  text-decoration: underline;
}

.icons{
  width: auto;
  
  display: flex;
  align-items: center;
}

.icon{
  margin: 0 1.5rem 0 1.5rem;
}
/*---------------------------------------------------------------*/

@media screen and (min-width: 20rem) {
  p{
    width: 20rem;
  }

  .info-block,
  .projects-page,
  .title {
    width: calc(100% - 1rem);
  }

  
  .intro > p{
    margin: 0;
    width: 20rem;
  }

 

  .info-block > h1{
    padding: 0.8rem;
    font-size: 2rem;

  }

  .intro-one > h1, .graphic-design > h1{
    
    padding: 0.8rem;
  }

  .graphic-design > h1{
    font-size: 2rem;
    background: linear-gradient(
      90.31deg,
      #626262 1.83%,
      #4dc299 15.87%,
      #ffdc91 45,
      #d900ff 100.95%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .project-brief-description{
    width: 15rem;
    font-size: 0.8rem;
  }

  .intro-one-content{
    display: flex;
    flex-direction: row;
  }

  .intro-one {
    /* flex-direction: column-reverse;
    justify-content: space-between; */
  }

  .intro-two {
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: space-between;
  }

  .content-box{
    height: auto;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    padding: 0rem;
  }

  .content-img {
    width: calc(34rem/2);
    height: calc(22rem/2);
  }

  .project-info > h1{
    margin: 0;
    font-size: 2rem;
  }

  .hi-content > h1 {
    text-align: center;
    width: 13rem;
    font-size: 2.6rem;
  }
  
  .quick-text{
    grid-template-columns: repeat(2, 7.5rem);
  }
 
  .option{
    margin: 0.5rem;
  }

  .all-projects-grid{
    margin-top: 5rem;
    margin-bottom: 5rem;
    display: grid;
    row-gap: 5rem;
    grid-template-columns: 1fr ;
  }

  .proHeading > h2{
    font-size: 1rem;
  }
}


@media screen and (min-width: 50rem) {
  p{
    width: 30rem;
  }
  
  .intro > p {
    width: 30rem;
    margin-left: 10rem;
  }

  .info-block > h1{
    font-size: 4rem;
  }

  .info-block,
  .projects-page,
  .title {
    width: calc(100% - 3rem);
  }

  .hi-content > h1 {
    text-align: center;
    width: auto;
    font-size: 4rem;
  }

  .name > h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .content-box{
    height: calc(100% - 2rem);
    display: flex;
    justify-content: space-between;
    padding: 2rem;

  }

  .content-img {
    width: 34rem;
    height: 22rem;
  }
  
  .intro-one-content{
    flex-direction: row;
    align-items: flex-end;

  }

  .intro-one {
    flex-direction: row;
    align-items: center;

  }

  .intro-two {
    flex-direction: row;
    /* align-items: center; */
  }

  .intro-one.info-block > div{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: row;
    width: 50rem;
  }

  .graphic-design > h1{
    font-size: 4rem;
    background: linear-gradient(
      90.31deg,
      #626262 1.83%,
      #4dc299 15.87%,
      #ffdc91 25,
      #d900ff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  
  .project-info > h1{
    margin: 0rem;
    font-size: 3rem;
  }

  .proHeading > h2{
    margin: 0rem;
    font-size: 2rem;
  }

  .proHeading{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }


  
  .project-all-experiences{
    display: grid;
    row-gap: 5rem;
  }

  .quick-text{
    grid-template-columns: repeat(4, 7.5rem);
  }

  .option{
    margin: 1rem;
  }

  .project-brief-description{
    font-size: 1rem;
    width: 25rem;
  }
}

@media screen and (min-width: 70rem) {
 .all-projects-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
  } 

  .project-all-experiences{
    width: fit-content;
    display: grid;
    row-gap: 10rem;
  }

}

