html{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #000000;
    overflow-x: hidden;
    font-family: 'Press Start 2P', cursive;
}

::-webkit-scrollbar{
    background: black;
}
::-webkit-scrollbar-thumb{
    /* background: linear-gradient(120deg, black, RGB(125, 18, 255)); */
    background: transparent;
    border-radius: 10px;
}

.hidden{
    opacity: 0;
    filter: blur(5px);
    transform: translateY(30px);
    transition: all 0.4s ease-out;
    will-change: transform, opacity;
}

.show{
    opacity: 1;
    filter: blur(0px);
    transform: translate(0%);
}


.navigation{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 20px 20px 20px;
}

.mainNav{
    position: relative;
    width: 650px;
    height: 50px;
    /* background: #111111; */
    /* background-color: rgba(125, 18, 255, 0.1); */
    /* background: linear-gradient(to right, rgba(125, 18, 255, 0.2), #111111); */
    /* backdrop-filter: blur(10px); */
    /* box-shadow: 0 0 20px rgba(125, 18, 255, 0.4); */
    background-color: rgba(15, 15, 15, 0.8);
    /* border: 1px solid RGB(125, 18, 255); */
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(125, 18, 255, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation span{
    color: RGB(125, 18, 255);
}

.mainNav a{
    position: relative;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    padding: 0 23px;
    z-index: 1;
}

.mainNav span{
    position: absolute;
    top: 0;
    left: 293px;
    width: 150px;
    height: 50px;
    background: linear-gradient(120deg, black, RGB(125, 18, 255));
    border-radius: 8px;
    box-shadow: 0.5px 0.5px 0.5px 0.5px black;
    transition: 0.5s;
}

.mainNav a:nth-child(1):hover~span{
    left: 53px;
    width: 95px;
}
.mainNav a:nth-child(2):hover~span{
    left: 170px;
    width: 95px;
}
.mainNav a:nth-child(3):hover~span{
    left: 293px;
    width: 150px;
}
.mainNav a:nth-child(4):hover~span{
    left: 470px;
    width: 120px;
}

.contactMeBut{
    position: relative;
    border: 2px solid RGB(125, 18, 255);
    padding: 20px 20px;
    border-radius: 10px;
    display: inline-block;
    transition: 0.3s ease-in-out;
}

.contactMeBut a{
    color: white;
    text-decoration: none;
    position: relative;
    display: block;
    transition: 0.3s ease-in-out;
}

.contactMeBut span{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-bottom: 2px solid RGB(125, 18, 255);
    border-radius: 15px;
    transform: scale(0) translateY(50px);
    opacity: 0;
    transition: 0.5s;
}

.contactMeBut:hover span{
    transform: scale(1) translateY(0);
    opacity: 1;
}

.contactMeBut:hover{
    border: 2px solid transparent;
}


h1{
    color: white;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 50px;
    position: relative;
}

h1:after{
    content: "";
    position: absolute;
    font-size: 50px;
    width: 23.5%;
    bottom: -10px;
    height: 4px;
    left: 38%;
    display: block;
    margin: 0 auto;
    background: RGB(125, 18, 255);
}

.listOfProjects{
    display: grid;
    /* grid-template-columns: repeat(3, 0fr); */
    grid-template-columns: repeat(auto-fit, minmax(415px, 1fr));
    gap: 30px;
    position: relative;
    /* left: 20px; */
    right: 25px;
    justify-items: center;
}

.card {
  position: relative;
  height: 470px;
  width: 400px;
  margin-left: 50px;
  background: rgba(255, 255, 255, 0.05);  box-shadow: 0px 1px 2px rgba(15, 15, 15, 0.8);
  transition: 0.5s ease-in-out;
  overflow: hidden;
  border-radius: 20px;
}

.cardImg {
  height: 500px;
  width: 100%;
  overflow: hidden;
}

.cardImg img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transform: scale(1.2);
  transition: 0.5s;
}

.card:hover .cardImg img {
  transform: scale(1.1);
  opacity: 0.9;
}

.content {
  position: absolute;
  bottom: 0;
  background: rgba(25, 25, 25, 0.5);  
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(125, 18, 255, 0.2);
  width: 100%;
  padding: 20px 30px;
  text-align: center;
  transition: 0.4s ease-in-out;
}

.bottomContent {
  max-height: 0;
  margin-right: 60px;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.card:hover .bottomContent {
  max-height: 200px;
  opacity: 1;
}

.title h2 {
  margin-right: 60px;
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.bottomContent p {
  color: white;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  margin: 10px 0;
}

.bottomContent button {
  padding: 7px 15px;
  font-size: 17px;
  background: black;
  border-radius: 20px;
  color: #fff;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.bottomContent button:hover {
  transform: scale(0.95);
  background: linear-gradient(120deg, black, RGB(125, 18, 255));
}


.footer {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(120deg, black, rgb(125, 18, 255));
  padding: 30px 20px;
  margin-top: 50px;
  text-align: center;
}

.footer h4 {
  margin-bottom: 20px;
  font-weight: bold;
  position: relative;
  bottom: 10px;
}

.footerContent {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Social Icons */
.socialLinksFooter a {
  color: white;
  margin: 0 10px;
  /* border: 2px solid white; */
  padding: 10px;
  border-radius: 50%;
  font-size: 18px;
  transition: 0.4s ease-in-out;
}

.socialLinksFooter a:hover {
  color: black;
  background: rgb(125, 18, 255);
  border-color: rgb(125, 18, 255);
}

/* Contact Button */
.contactMeButFooter {
  position: relative;
  border: 2px solid rgb(125, 18, 255);
  border-radius: 10px;
  padding: 10px 25px;
  overflow: hidden;
  transition: 0.3s ease-in-out;
}

.contactMeButFooter a {
  color: white;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.contactMeButFooter span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, black, rgb(125, 18, 255));
  border-radius: 10px;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.4s ease-in-out;
  opacity: 0.3;
}

.contactMeButFooter:hover span {
  transform: scaleX(1);
}

.contactMeButFooter:hover {
  border-color: white;
}

i {
    position: relative;
    bottom: 3px;
}

.hamburger{
  display: none;
}




/* =======================
   TABLETS - 768px
======================= */
@media (max-width: 768px) {

  /* NAVIGATION */
  .navigation {
    flex-direction: column;
    gap: 10px;
  }

  .mainNav {
    flex-wrap: wrap;
    height: auto;
    width: 100%;
    padding: 10px;
    justify-content: center;
    gap: 10px;
  }

  .mainNav a {
    font-size: 14px;
    padding: 8px 15px;
  }

  .mainNav span {
    display: none; /* hide hover effect bar */
  }

  /* TITLE */
  h1 {
    font-size: 20px;
    margin-top: 80px;
    margin-bottom: 40px;
  }

  h1:after {
    width: 40%;
    left: 30%;
  }

  /* PROJECT GRID */
  .listOfProjects {
    grid-template-columns: repeat(2, 0fr);
    gap: 20px;
    left: 0;
    justify-content: center;
  }

  .card {
    height: 440px;
    width: 320px;
    margin-left: 0;
  }

  .content {
    padding: 0px;
  }

  .card:hover .bottomContent{
    max-height: 300px;
    margin-right: 0;
  }
  .title h2 {
    font-size: 20px;
    margin-right: 0;
  }

  .bottomContent {
    margin-right: 0;
  }

  .bottomContent p {
    font-size: 10px;
    line-height: 20px;
  }

  .bottomContent button {
    font-size: 15px;
    padding: 10px 15px
  }

  /* FOOTER */
  .footer {
    padding: 20px;
  }

  .footer h4 {
    font-size: 18px;
  }

  .footerContent {
    flex-direction: column;
    gap: 20px;
  }

  .socialLinksFooter a {
    font-size: 16px;
    padding: 8px;
  }

  .contactMeBut{
    display: none;
  }

  .contactMeButFooter {
    padding: 8px 18px;
  }

  .contactMeButFooter a {
    font-size: 14px;
  }
}

@media (max-width: 820px) {

  /* NAVIGATION */
  .navigation {
    flex-direction: column;
    gap: 10px;
  }

  .mainNav {
    flex-wrap: wrap;
    height: auto;
    width: 100%;
    padding: 10px;
    justify-content: center;
    gap: 10px;
  }

  .mainNav a {
    font-size: 14px;
    padding: 8px 15px;
  }

  .mainNav span {
    display: none; /* hide hover effect bar */
  }

  /* TITLE */
  h1 {
    font-size: 20px;
    margin-top: 80px;
    margin-bottom: 40px;
  }

  h1:after {
    width: 40%;
    left: 30%;
  }

  /* PROJECT GRID */
  .listOfProjects {
    grid-template-columns: repeat(2, 0fr);
    gap: 20px;
    left: 0;
    justify-content: center;
  }

  .card {
    height: 440px;
    width: 320px;
    margin-left: 0;
  }

  .content {
    padding: 0px;
  }

  .card:hover .bottomContent{
    max-height: 300px;
    margin-right: 0;
  }
  .title h2 {
    font-size: 20px;
    margin-right: 0;
  }

  .bottomContent {
    margin-right: 0;
  }

  .bottomContent p {
    font-size: 10px;
    line-height: 20px;
  }

  .bottomContent button {
    font-size: 15px;
    padding: 10px 15px
  }

  /* FOOTER */
  .footer {
    padding: 20px;
  }

  .footer h4 {
    font-size: 18px;
  }

  .footerContent {
    flex-direction: column;
    gap: 20px;
  }

  .socialLinksFooter a {
    font-size: 16px;
    padding: 8px;
  }

  .contactMeBut{
    display: none;
  }

  .contactMeButFooter {
    padding: 8px 18px;
  }

  .contactMeButFooter a {
    font-size: 14px;
  }
}




/* Small Laptops */
@media screen and (max-width: 1024px) and (min-width: 821px) {
  /* NAVIGATION */
   .navigation h2{
        font-size: 18px;
    }

    .mainNav{
        width: 510px;
    }
    
    .mainNav a{
        font-size: 13px;
        padding: 0 25px;
    }

    .mainNav span{
        left: 240px;
        width: 120px;
    }

    .mainNav a:nth-child(1):hover~span{
        left: 15px;
        width: 80px;
    }
    .mainNav a:nth-child(2):hover~span{
        left: 120px;
        width: 80px;
    }
    .mainNav a:nth-child(3):hover~span{
        left: 230px;
        width: 120px;
    }
    .mainNav a:nth-child(4):hover~span{
        left: 390px;
        width: 100px;
    }

    h1:after{
        width: 36%;
        left: 32%;
    }

  /* PROJECT GRID */
  .listOfProjects {
    grid-template-columns: repeat(2, 0fr);
    gap: 30px;
    left: 0;
    justify-content: center;
  }

  .card {
    height: 450px;
    width: 350px;
    margin-left: 0;
  }

  .cardImg {
    height: 460px;
  }

  .cardImg img {
    transform: scale(1.1);
  }

  .content {
    padding: 10px;
  }

  .title h2 {
    font-size: 22px;
    margin-right: 0;
  }

  .bottomContent {
    margin-right: 0;
  }

  .card:hover .bottomContent {
    max-height: 250px;
  }

  .bottomContent p {
    font-size: 11px;
    line-height: 18px;
  }

  .bottomContent button {
    font-size: 14px;
    padding: 8px 14px;
  }

  /* FOOTER */
  .footer {
    padding: 25px 20px;
  }

  .footer h4 {
    font-size: 18px;
  }

  .footerContent {
    flex-direction: column;
    gap: 20px;
  }

  .contactMeButFooter {
    padding: 10px 22px;
  }

  .contactMeButFooter a {
    font-size: 14px;
  }
}





/* =======================
   4K / Ultra-Wide Screens - 2560px+
======================= */
@media (min-width: 2560px) {

  html {
    font-size: 18px;
  }

  .navigation {
    margin: 40px 60px;
  }

  .mainNav {
    width: 900px;
    height: 60px;
  }

  .mainNav a {
    font-size: 20px;
    padding: 0 30px;
  }

  .mainNav span {
    height: 60px;
    left: 410px;
    width: 190px;
  }

  .mainNav a:nth-child(1):hover ~ span {
    left: 105px;
  }

  .mainNav a:nth-child(2):hover ~ span {
    left: 255px;
    width: 125px;
  }

  .mainNav a:nth-child(3):hover ~ span {
    left: 410px;
    width: 190px;
  }

  .mainNav a:nth-child(4):hover ~ span {
    left: 640px;
    width: 140px;
  }

  .contactMeBut {
    padding: 25px 25px;
    font-size: 18px;
  }

  h1 {
    font-size: 36px;
    margin-top: 140px;
    margin-bottom: 60px;
  }

  h1:after {
    width: 20%;
    left: 40%;
    height: 5px;
  }

  .listOfProjects {
    grid-template-columns: repeat(4, 0fr);
    gap: 40px;
    left: 0;
    margin-left: 165px;
  }

  .card {
    height: 550px;
    width: 440px;
    margin-left: 60px;
  }

  .cardImg {
    height: 520px;
  }

  .title h2 {
    font-size: 28px;
  }

  .bottomContent p {
    font-size: 14px;
    line-height: 22px;
  }

  .bottomContent button {
    font-size: 18px;
    padding: 10px 20px;
  }

  .card:hover .bottomContent {
    max-height: 260px;
  }

  .footer {
    padding: 50px 40px;
  }

  .footer h4 {
    font-size: 22px;
  }

  .footerContent {
    gap: 40px;
  }

  .socialLinksFooter a {
    font-size: 22px;
    padding: 12px;
  }

  .contactMeButFooter {
    padding: 12px 28px;
  }

  .contactMeButFooter a {
    font-size: 16px;
  }
}






/* =======================
   PHONES - 480px
======================= */
@media (max-width: 480px) {

  /* NAVIGATION */
  .navigation {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 10px 15px;
    z-index: 9999;
    position: relative;
  }

  .hamburger {
    display: block;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 10;
  }

  .mainNav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 15, 0.95);
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    height: auto;
    display: none;
    z-index: 10;
    border-radius: 0;
  }

  .mainNav.active {
    display: flex;
  }

  .mainNav a {
    font-size: 14px;
    padding: 10px 0;
  }

  .mainNav span {
    display: none;
  }

  /* CONTACT BUTTON (hidden on phone) */
  .contactMeBut {
    display: none;
  }

  /* TITLE */
  h1 {
    font-size: 18px;
    margin-top: 60px;
    margin-bottom: 30px;
  }

  h1:after {
    width: 60%;
    left: 20%;
  }

  /* PROJECT GRID */
  .listOfProjects {
    grid-template-columns: 1fr;
    gap: 20px;
    left: 0;
    justify-content: center;
    padding: 0 10px;
  }

  .card {
    width: 90%;
    height: 450px;
    margin: 0 auto;
  }

  .cardImg {
    height: 455px;
  }

  .cardImg img {
    object-fit: cover;
  }

  .content {
    padding: 15px;
  }

  .title h2 {
    font-size: 18px;
  }

  .bottomContent {
    margin-right: 0;
    padding-top: 10px;
  }

  .content .title{
    margin-right: 25px;
  }

  .card:hover .bottomContent {
        max-height: 300px;
        margin-right: 25px;
    }

  .bottomContent p {
    font-size: 10px;
    line-height: 18px;
  }

  .bottomContent button {
    font-size: 14px;
    padding: 8px 14px;
  }

  /* FOOTER */
  .footer {
    padding: 15px;
    margin-top: 40px;
    line-height: 1.5;
  }

  .footer h4 {
    font-size: 16px;
  }

  .footerContent {
    flex-direction: column;
    gap: 15px;
  }

  .socialLinksFooter a {
    font-size: 14px;
    padding: 6px;
  }

  .contactMeButFooter {
    padding: 8px 16px;
  }

  .contactMeButFooter a {
    font-size: 13px;
  }
}
