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: 470px;
    width: 120px;
    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;
}

.skills{
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px; */
    color: white;
    padding-top: 20px;
    margin-top: 80px;
}

.skills h1{
    text-align: center;
    color: white;
    padding: 1rem;
    position: relative;
}

.skills h1::after{
    content: "";
    position: absolute;
    left: 40%;
    bottom: 8px;
    width: 19.5%;
    height: 2px;
    background: RGB(125, 18, 255);
    transition: width 0.5s ease-in-out;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 80px;
  font-size: 1.2rem;
}

.container > * {
  flex: 0 1 calc(33.333% - 1rem); /* 3 per row, minus gap */
  box-sizing: border-box;
  text-align: center;
}


.skill{
    padding: 1rem;
    color: white;
    cursor: pointer;
    background: rgba(12, 1, 1, 0.4588235294117647);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(9.2px);
    -webkit-backdrop-filter: blur(9.2px);
    border: 1px solid rgba(255, 255, 255, 0.99);
}

.skillsTitle{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0.5rem;
    margin-bottom: 0px;
}

.skillsTitle h3{
    color: white;
    margin-top: 25px;
    line-height: 30px;
}

.skill p{
    color: white;
    line-height: 25px;
    font-size: 15px;
}

.skillsTitle::after{
    content: "";
    position: absolute;
    top: 100%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: RGB(125, 18, 255);
    transition: width 0.5s ease-in-out;
}

.skillsTitle:hover::after{
    width: 100%;
}

.skillImg{
    width: 90px;
    height: 90px;
    position: relative;
    border-radius: 50px;
    background: linear-gradient(120deg, black, RGB(125, 18, 255));
    border: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease-in-out;
}

.skillImg:hover{
    transform: scale(1.1);
    box-shadow: 0 0 10px RGB(125, 18, 255);
    border: 2px solid black;
}

.skillIcon{
    width: 50px;
}

.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 */
  }

  .skills{
    margin-top: -50px;
  }

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

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

  /* 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 */
  }

  .skills{
    margin-top: -50px;
  }

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

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

  /* 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 (min-width: 1024px) { 
    .navigation h2{
        font-size: 18px;
    }

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

    .mainNav span{
        left: 390px;
        width: 100px;
    }

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

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





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

  /* NAVIGATION */
  .navigation {
    margin: 30px 80px;
  }

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

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

  .mainNav span {
    height: 60px;
    left: 640px;
    width: 140px;
  }

  .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 30px;
    font-size: 18px;
  }

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

  /* SKILLS SECTION */
  .skills {
    margin-top: 100px;
    padding-top: 40px;
  }

  .skills h1 {
    font-size: 40px;
    padding: 2rem;
  }

  .skills h1::after {
    width: 15%;
    left: 42.5%;
    height: 3px;
  }

  .container {
    padding: 2rem 200px;
    gap: 2rem;
    font-size: 1.5rem;
  }

  .container > * {
    flex: 0 1 calc(25% - 2rem); /* 4 per row on large screens */
  }

  .skillImg {
    width: 120px;
    height: 120px;
  }

  .skillIcon {
    width: 65px;
  }

  .skillsTitle h3 {
    font-size: 20px;
    margin-top: 30px;
  }

  /* FOOTER */
  .footer {
    padding: 50px 100px;
    font-size: 18px;
  }

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

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

  .contactMeButFooter {
    padding: 12px 30px;
    font-size: 16px;
  }

  .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%;
  }


  /* 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;
  }
}
