html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

h1 {
  color: #303030;
  font-family: Poppins;
  font-size: 44px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0px;
}

h2 {
  color: #303030;
  font-family: Poppins;
  font-size: 44px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0px;
}

h3 {
  color: #303030;
  font-family: Poppins;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0px;
}

h4 {
  text-decoration: none;
  color: #303030;
}

p {
  color: #303030;
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

li {
  color: #303030;
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5px;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  animation: fadeInTop 1s forwards 0.7s;
}

.logo {
  max-width: 100px;
}

.nav-links {
  display: flex;
  gap: 47px;
}

.nav-links a {
  color: #303030;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
}

#projectsnav,
#contactnav {
  color: #727272;
}

.box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  animation: fadeIn 1s forwards 2s;
}

.container {
  width: 1084px;
  height: auto;
  position: absolute;
  left: 20px;
  right: 20px;
  margin-left: auto;
  margin-right: auto;
  overflow: auto;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding-bottom: 20px;
}

#home {
  flex-direction: row-reverse;
}

#projects {
  align-items: flex-start;
  align-content: flex-start;
  opacity: 0;
  animation: fadeIn 1s forwards 2.7s;
}

.introbox {
  width: 700px;
  height: 500px;
  background-color: lightcoral;
  border-radius: 24px;
  background-image: url('assets/introbg.svg');
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  animation: fadeIn 1s forwards 2s;
}

.text {
  width: 75%;
  height: auto;
  padding-top: 58px;
  padding-left: 58px;
  flex-shrink: 0;
  text-align: left;
}

#name {
  opacity: 0;
  animation: leFadeIn 1s forwards 2.3s;
}

.bottom-container {
  display: flex;
  width: 75%;
  align-content: center;
  justify-content: start;
  margin: 58px;
  gap: 20px;
}

.emailbutton {
  height: 48px;
  width: auto;
  display: inline-flex;
  padding-left: 54px;
  padding-right: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 24px;
  background: #000;

  text-decoration: none;
  color: #FFF;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.emailbutton:hover {
  background: #4a4a4a;
}

.rollover {
  display: none;
}

.contactbutton:hover .norollover {
  display: none;
}

.contactbutton:hover .rollover {
  display: inline;
}

.photobox {
  width: 364px;
  height: 500px;
  background-color: lightcoral;
  text-align: center;
  border-radius: 24px;
  background-image: url('assets/profilepic.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeIn 1s forwards 1.5s;
}

.portfolioitem {
  width: 532px;
  height: 512px;
  flex-shrink: 0;
  text-align: center;
  border-radius: 24px;

  background-position: center;
  background-size: cover;
  background-size: 100%;
  transition: background-size 0.5s ease;
}

.portfolioitem:hover {
  background-size: 103%;
}


#mooni {
  background-image: url('assets/portfolioitems/mooni.png');
}

#chachamatcha {
  background-image: url('assets/portfolioitems/chachamatcha.png');
}

#oadish {
  background-image: url('assets/portfolioitems/oadish.png');
}

#ratatouille {
  background-image: url('assets/portfolioitems/ratatouille.png');
}

#smokesignal {
  background-image: url('assets/portfolioitems/smokesignal.png');
}

#viewmore {
  background-image: url('assets/portfolioitems/viewmore.png')
}

.contact {
  width: 1084px;
  height: 450px;
  background-image: url('assets/introbg.svg');
  background-size: cover;
  background-position: bottom;
  align-self: center;
  text-align: center;
  border-radius: 24px;
}


@media only screen and (max-width: 480px) {
  .introbox {
    width: 300px;
    height: 500px;
    background-size: cover;
    background-position: bottom;
    align-self: center;
    text-align: center;
  }

  .text {
    padding: 30px;
    padding-top: 20px;
  }

  .text h1 {
    font-size: 30px;
  }

  .text p {
    font-size: 14px;
  }

  .portfolioitem {
    width: 300px;
    height: 280px;
  }

  .photobox {
    width: 300px;
    height: 200px;
  }

  .contact {
    width: 300px;
    height: 425px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .bottom-container {
    display: flex;
    flex-wrap: wrap;
    align-self: center;
    gap: 20px;
    margin-top: 0;
    margin: 30px;
  }

  .bottom-container a {
    flex-basis: calc(50% - 20px);
  }

  .bottom-container a:first-child {
    flex-basis: 100%;
  }

  .portfolioitem:hover {
    background-size: 101%;
  }
}

@media only screen and (min-width: 600px) {
  .introbox {
    width: 532px;
  }

  .photobox {
    width: 532px;
    height: 400px;
  }

  .contact {
    width: 532px;
  }
}

@media only screen and (min-width: 1220px) {
  .introbox {
    width: 700px;
    height: 500px;
  }

  .photobox {
    width: 364px;
    height: 500px;
  }

  .contact {
    width: 1084px;
  }
}

.doctitle {
  display: flex;
  flex-direction: column;
  align-self: center;
  align-items: center;
  padding-top: 25px;
}

.doctitle p {
  align-self: center;
  text-align: center;
}

.titletag {
  display: inline-block;
  width: fit-content;
  padding: 4px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 7px;

  color: #000;
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

#pdtag {
  background: #E5E5F1;
}

#codetag {
  background: #c4ecdf;
}

#graphicdesigntag {
  background: #ffedff;
}

.dochead {
  width: 1084px;
  height: 450px;
  align-self: center;
  text-align: center;
  border-radius: 24px;
  background-size: cover;
  background-position: right;
}

#moonihead {
  background-image: url('assets/moonidocitems/moonihead.png');
}

#sshead {
  background-image: url('assets/ssdocitems/sshead.png');
}

#sclhead {
  background-image: url('assets/matchadocitems/sclhead.png');
}

#ratahead {
  background-image: url('assets/ratatouilledocitems/ratahead.png')
}

#oadishhead {
  background-image: url('assets/oadishdocitems/oadishbg.png')
}

.doctextcontainer {
  display: flex;
  flex-direction: column;
  align-self: center;
  align-items: flex-start;
  width: 70%;
}

.doctextcontainer h2, .doctextcontainer h3 {
  padding-top: 25px;
}

.doctextcontainer img {
  width: 70%;
  align-self: center;
}

.tldr {
  gap:0;
  padding-bottom: 15px;
}

.tldr p{
  margin:15px;
}

.twocolumns {
  display: flex;
  gap: 45px;
}

.column {
  flex:1;
}

.thankyou {
  display: flex;
  width: 50%;
  flex-direction: column;
  align-self: center;
  align-items: center;
  padding-top: 40px;
}

.thankyou h3 {
  opacity: 70%;
}

.challengebox {
  width: 700px;
  height: 437px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-position: center;
  background-size: cover;
}

#docbutton {
  height: 48px;
  width: auto;
  display: inline-flex;
  padding-left: 54px;
  padding-right: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 24px;
  background: #303030;

  text-decoration: none;
  color: #FFF;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

#docbutton:hover {
  background: #4a4a4a;;
  color: white;
}

.demo {
  display: flex;
  width: 598px;
  height: 572px;
  align-self: center;
  justify-content: center;
  align-items: flex-start;
  padding-top: 30px;
  gap: 20px;
  flex-shrink: 0;
}

.demoimg {
  width: 270px;
  height: 574px;
  object-fit: cover;
  border-radius: 48px;
}

#galleryhead {
  background-image: url('assets/galleryheadbg.svg');
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#filterbuttons button {
  height: 48px;
  width: auto;
  padding-left: 54px;
  padding-right: 54px;
  display:flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 24px;
  outline: none;
  border: none;
  background: white;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.07);

  text-decoration: none;
  color: #030303;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  text-wrap: nowrap;
}

#filterbuttons button.active {
  background: #030303;
  color: white;
}

.gallerycontainer {
  column-count: 3;
  column-gap: 20px;
  margin: 15px 5px;
  padding: 0;
}

.galleryitem {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 15px;
  box-sizing: border-box;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  color: #030303;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 24px;
}

.galleryitem:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay p {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

.galleryitem img,
.galleryitem video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
}

.galleryitem.hide {
  display: none;
}


@media only screen and (max-width: 480px) {
  
  p, li {
    font-size: smaller;
  }

  h3 {
    font-size: medium;
  }

  h2 {
    font-size: larger;
  }

  .twocolumns {
    flex-direction: column;
  }
  
  .dochead {
    width: 300px;
    height: 200px;
    background-size: cover;
    background-position: right;
    align-self: center;
    text-align: center;
  }

  .gallerycontainer {
    column-count: 1;
  }

  .galleryitem img, .galleryitem video{
    border-radius: 10px;
  }
}

@media only screen and (min-width: 600px) {

  .dochead {
    width: 532px;
  }

}

@media only screen and (min-width: 1220px) {

  .dochead {
    width: 1084px;
  }
}



