html, body{
    margin: 0;
}
body{
    max-width: 1150px;
    margin: 0 auto;
    background-color: #222831;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header{
    background-color: #31363F;
    border-radius: 50px;
    margin: 20px !important;
    padding: 10px;
}
.nav-link{
    color: #76ABAE;
    font-family: "Quicksand", sans-serif;
    display: flex;
    flex-direction: column;
}
.nav-link:hover{
    color: #76ABAE
}
a.nav-link.active{
    background-color: #76ABAE !important;
    border-radius: 20px;
    color: #ffffff !important;
}
span.nav-icon{
    display: flex;
    justify-content: center;
}
.nav-icon > img{
    width: 20px;
}

h3{
    color: #76ABAE;
    font-family: "Quicksand", sans-serif;
}
h3 a {
    color: inherit;
    text-decoration: none;
}
h3 a:hover {
    opacity: 0.8;
}


p{
    color: #ffffff;
    font-family: "Quicksand", sans-serif;
}

.content-container{
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: repeat(5, 1fr);
    height: 700px;
    gap: 20px;
    margin: 20px;
}
.section{
    border-radius: 20px;
    background-color: #31363F;
}
.proj1-screenshot,
.proj2-screenshot,
.proj3-screenshot {
    grid-row: span 1;
    grid-column: span 1;
    overflow: hidden;
}
.proj-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 5px solid #76ABAE;
    object-position: top;
    display: block;
}
.proj1-text,
.proj2-text,
.proj3-text {
    grid-row: span 1;
    grid-column: span 3;
    padding: 15px;
}

.skills{
    grid-row: span 2;
    grid-column: span 1;
    padding: 15px;
}
.skills-title{
    display: flex;
    justify-content: left;
    align-items: center;
    margin-bottom: 30px;
}
.skills-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
}
.skill-img{
    width: 40px;
}

.github-link-title{
    padding: 15px;
}
.github-img-container{
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.github-img{
    height: 100px;
    border-radius: 50%;
}

.holographic-container{
  height: auto;
  background: transparent;
  padding: 12px 0;
}
.holographic-card {
  width: auto;
  height: auto;
  background:#31363F;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  transition: all 0.5s ease;
}
.holographic-card a{
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.holographic-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg, 
    transparent, 
    transparent 30%, 
    rgba(0,255,255,0.3)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}
.holographic-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,255,255,0.5);
}
.holographic-card:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}

.hover-underline {
  position: relative;
  display: inline-block;
}
.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #ff0000, #00ffff);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}
.hover-underline::before {
  top: -5px;
  transform-origin: left;
}
.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

@media(max-width: 1024px){
    .content-container{
        display: flex;
        flex-direction: column;
        gap: 24px;
        height: auto;
    }
    header {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.75);
        z-index: 1000;
        height: 70px;
        display: flex;
        align-items: center;
        border: 1px solid #76ABAE;
    }
    .nav-text{
        display: none;
    }
    .nav-icon > img{
        width: 28px;
        height: 28px;
    }
    .mobile-spacer{
        order: 8;
        display: flex;
        padding: 38px;
    }
    .proj1-screenshot{
        order: 1;
        padding: 0;
        margin-bottom: 0px;
    }
    .proj1-text{
        order: 2;
        padding: 16px;
        margin-bottom: 30px;
    }
    .proj2-screenshot{
        order: 3;
        padding: 0;
    }
    .proj2-text{
        order: 4;
        padding: 16px;
        margin-bottom: 30px;
    }
    .proj3-screenshot{
        order: 5;
        padding: 0;
    }
    .proj3-text{
        order: 6;
        padding: 16px;
        margin-bottom: 30px;
    }
    .proj-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
    .skills{
        order: 7;
        padding: 16px;
    }
    .github-link{
        order: 8;
        text-align: center;
    }
    .github-img-container {
        height: auto;
        padding-bottom: 16px;
    }
}

@media(max-width: 768px){
    .gap-5{
        gap: 2rem !important;
    }
    .nav-icon > img{
        width: 22px;
        height: 22px;
    }
}

@media(max-width: 510px){
    .gap-5{
        gap: 1rem !important;
    }
    li.nav-item > a.active{
        width: 40px;
    }
    .content-container {
        gap: 18px;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .skill-img {
        width: 36px;
    }
    .github-img {
        height: 80px;
    }
}

@media(max-width: 394px){
    .gap-5{
        gap: 0rem !important;
    }
    .nav-icon > img{
        width: 17px;
        height: 17px;
    }
}