@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-black-900: #f2f2fc;
  --bg-black-100: #fdf9ff;
  --bg-black-50: #e8dfec;
  --text-black-900: #302e4d;
  --text-black-700: #504e70;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    outline-offset: 0;
    outline-width: 0;
}

body {
    background-color: black;
    color: rgb(255, 255, 255);
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.548), green, rgba(0, 0, 0, 0.548));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    /* border-radius: 100px; */
}

.logo1 {
    font-size: 25px;
    color: green;
    text-shadow: 5px 5px 10px black;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    
}

.navbar a {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
.navbar a::after {
    content: '';
    width: 0;
    height: 2px;
    background: black;
    border-radius: 50%;
    position: absolute;
    left: 0;
    bottom: -3px;
    transition: 0.6s;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(0, 0, 0));
    -webkit-text-fill-color: transparent;
    background-clip: border-box;
    -webkit-background-clip: text;
}


.home {
    width: 100%;
    padding: 70px 0px 0px;
}

.home-content {
    padding: 50px;
    display: flex;
    gap: 20px;
    box-sizing: border-box;
}

.home-content .mu {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: .7s;

    
}   

.home-content h3 {
    font-size: 30px;
    font-weight: 700;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.heading-brief{
  font-size: 32px;
  padding-top: 70px;
}

.heading-brief2{
  font-size: 32px;
  padding-top: 70px;
}

.mu {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    }
.mu2 {
    margin-top: 50px;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1.6s;
}
.contact{
    justify-items: center;
    text-align: center;
    margin-top: 799px;
}

a {
  font-size: 74px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1s;
  text-decoration: none;
  color: #00ff00;
  background-clip: text;
  background-size: 200% 100%;
  background-position-x: 0;
  background-position-y: 2em;
}

a:hover {
  background-position-x: 0;
  background-position-y: 0;
  -webkit-animation-play-state: running;
  animation-play-state: running;
}

a :hover {
  background-position-y: 0; 
  animation: waveAnimation 4s linear infinite, slideLeft 1s ease forwards 1s; 
}


@keyframes waveAnimation{
  from {
    background-position-x: 0%;
  }
  to {
    background-position-x: 200%;
  }
}





.home-sci a:hover {
    background: green;
    color: black;
    box-shadow: 0 0 20px green;
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: green;
    border-radius: 40px;
    font-size: 16px;
    color: black;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.4s;
}

.btn-box:hover {
    box-shadow: 0 0 5px green,
    0 0 25px green, 0 0 50px green,
    0 0 100px green, 0 0 200px green;
}



.navbar-1 a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 50px;
    text-align-last: center;
}

.navbar-1 a.active, 
.navbar-1 a:hover {
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(0, 0, 0));
    -webkit-text-fill-color: transparent;
    background-clip: border-box;
    -webkit-background-clip: text;
}

canvas {
    position: fixed;
    top: auto;
    left: auto;
    background-color: black;
    z-index: -1;
    background-size:cover;
    background-blend-mode: multiply;
    background-size: auto;
    scroll-behavior: smooth;
}

.main-content{
  margin-left: 250px;
  padding: 20px;
}

/* start of side menu*/
.aside {

  height: calc(100vh - 60px); /* full screen height minus header */
  z-index: 1500;
  flex-direction: column;
  width: 250px;
  position: fixed;
  left: 0;
  top: 60px;
  padding: 30px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  background-color: #000000ef;
  border-right: 2px solid rgba(0, 255, 21, 0.678);
  border-top-right-radius: 600px;
  text-align: center;


}


.aside  a {

  font-weight: 700;
  padding: 15px 20px;
  font-size: 30px;
  letter-spacing: 5px;
  position: relative;
}

.aside  a span {
  font-family: "Clicker Script", cursive;
  font-size: 40px;
}

.aside .nav-toggler {
  height: 40px;
  width: 45px;
  border: 1px solid var(--bg-black-50);
  cursor: pointer;
  position: fixed;
  left: 300px;
  top: 20px;
  border-radius: 5px;
  background: var(--bg-black-100);
  display: none;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.aside .nav-toggler span {
  height: 2px;
  width: 18px;
  background: var(--skin-color);
  display: inline-block;
  position: relative;
}

.aside .nav-toggler.open span {
  background-color: transparent;
}

.aside .nav-toggler span::before {
  content: "";
  height: 2px;
  width: 18px;
  background: var(--skin-color);
  position: absolute;
  top: -6px;
  left: 0;
}

.aside .nav-toggler.open span::before {
  transform: rotate(45deg);
  top: 0;
}

.aside .nav-toggler span::after {
  content: "";
  height: 2px;
  width: 18px;
  background: var(--skin-color);
  position: absolute;
  top: 6px;
  left: 0;
}

.aside .nav-toggler.open span::after {
  transform: rotate(-45deg);
  top: 0;
}

.aside .nav {
  margin-top: 50px;
}

.aside .nav li {
  margin-bottom: 20px;
  display: block;
}

.aside .nav li a {
  width: 210px;
  font-size: 20px;
  font-weight: 600;
  display: block;
  border-bottom: 1px solid #0e521dcc;
  padding: 5px 0px;
  opacity: 0;
  animation: slideRight 0.5s ease forwards;
  animation-delay: calc(0.2s * var(--i));
}



.aside .nav li a::after {
  content: "";
  width: 0;
  height: 2px;
  background: rgba(0, 255, 21, 0.678);
  border-radius: 50%;
  position: absolute;
  left: 0;
  bottom: -3px;
  transition: 0.6s;
}

.aside .nav li a:hover::after {
  width: 100%;
}

.aside .nav li a:hover {
  background: linear-gradient(45deg, rgba(0, 255, 21, 0.678), rgba(0, 255, 21, 0.678));
  background-clip: border-box;
  -webkit-background-clip: text;
}


.aside .nav li a i {
  margin-right: 15px;
}

/*end of side menu*/

.container {
  display: flex;
  gap: 20px;
  box-sizing: border-box;


}


.section {
  background: black;
  min-height: 100vh;
  display: none;
  opacity: 1;
  position: fixed;
  left: 230px;
  top: 0;
  right: 0;
  bottom: 0;
  overflow-x: auto;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.section.back-section {
  z-index: 1;
}

.section-title h2 {
  font-size: 40px;
  color: var(--text-black-900);
  font-weight: 700;
  position: relative;
}

.section-title h2::before {
  content: "";
  height: 4px;
  width: 50px;
  background: var(--skin-color);
  position: absolute;
  left: 0;
  top: 100%;
}

.section-title h2::after {
  content: "";
  height: 4px;
  width: 25px;
  background: var(--skin-color);
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
}

.section .container {
  padding-top: 35px;
  padding-left: 50px;
  margin-bottom: 60px;

}

.section.active {
  z-index: 2;
  opacity: 1;
  animation: slideSection 1s ease;
  display: block;

}

@keyframes slideSection {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(0%);
  }
}

.home {
  min-height: 100vh;
  max-width: fit-content;

}

.home .home-info {
  flex: 0 0 60%;
  max-width: 60%;
}

h3.hello {
  font-size: 28px;
  margin: 15px 0;
}

h3.hello span {
  font-family: "Clicker Script", cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--skin-color);
}

h3.my-profession {
  font-size: 30px;
  margin: 15px 0;
}

.typing {
  color: var(--skin-color);
}

.home-info p {
  font-size: 20px;
  margin-bottom: 70px;

}



.left .right{
    padding: 40px;
    box-sizing: border-box;

}
.left{
    width: 75%;
    padding-right: 87px;
}
.right{
  width: 65%;
  padding-right: 40px
}

.height{
  line-height: 1.5px;
}

/*image gallery project 1 */

.gallery {
  --s: 235px; /* control the size */
  --g: 20px;  /* control the gap */
  --f: 2.5;   /* control the scale factor */
  
  display: grid;
  gap: var(--g);
  width: calc(3*var(--s) + 2*var(--g));
  aspect-ratio: 1;
  grid-template-columns: repeat(3,auto);
}

.gallery > img {
  width: 0;
  height: 0;
  min-height: 100%;
  min-width: 100%;
  cursor: pointer;
  filter: grayscale(80%);
  transition: .35s linear;
}

.gallery img:hover{
  filter: grayscale(0);
  width:  calc(var(--s)*var(--f));
  height: calc(var(--s)*var(--f));
}

.image{
  object-fit: cover;
}

.fitCover{
  object-fit: contain;
}

.text1{
  filter: grayscale(0);
}

.evaluation{
  margin: 20px;
  margin-left: 40px;
  margin-top: 0px;
}

.evaluation-points{
  margin: 40px;
}



/*about section second part*/

.about .about-content {
  flex: 0 0 100%;
  max-width: 100%;
}

.about .about-content .about-text {
  flex: 0 0 100%;
  max-width: 100%;
}

.about .about-content .about-text h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;

}

.about .about-content .about-text h3 span {
  color: var(--skin-color);
}

.about .about-content .about-text p {
  font-size: 16px;
  line-height: 25px;

}

.about .about-content .personal-info {
  flex: 0 0 60%;
  max-width: 60%;
  margin-top: 40px;
}

.about .about-content .personal-info .info-item {
  flex: 0 0 50%;
  max-width: 50%;
}

.about .about-content .personal-info .info-item p {
  font-weight: 600;
  padding: 10px 0;
  font-size: 16px;

  border-bottom: 1px solid var(--bg-black-50);
}

.about .about-content .personal-info .info-item p span {
  font-weight: 400;

  margin-left: 4px;
  display: inline-block;
}

.about .about-content .personal-info .buttons {
  margin-top: 30px;
}

.about .about-content .personal-info .buttons .btn {
  margin-right: 15px;
  margin-top: 10px;
}

.about .about-content .skills {
  flex: 0 0 40%;
  max-width: 40%;
  margin-top: 40px;
}

.about .about-content .skills .skills-item {
  flex: 0 0 100%;
  max-width: 100%;
  margin-bottom: 25px;
}

.about .about-content .skills .skills-item h5 {
  line-height: 40px;
  font-weight: 600;
  font-size: 16px;
  text-transform: capitalize;

}

.about .about-content .skills .skills-item .progress {
  background: var(--bg-black-50);
  height: 7px;
  border-radius: 4px;
  width: 100%;
  position: relative;
}

.about .about-content .skills .skills-item .progress .progress-in {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 4px;
  background: var(--skin-color);
}

.about .about-content .skills .skills-item .skill-percent {
  position: absolute;
  right: 0;

  top: -40px;
  font-weight: 400;
  line-height: 40px;
}

.about .about-content .education,
.about .about-content .experience {
  flex: 0 0 50%;
  max-width: 50%;
  margin-top: 30px;
}

.about .about-content h3.title {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 700;

}

.about .about-content .timeline-box {
  flex: 0 0 100%;
  max-width: 100%;
}

.about .about-content .timeline {
  background: var(--bg-black-100);
  padding: 30px 15px;
  border: 1px solid var(--bg-black-50);
  border-radius: 10px;
  width: 100%;
  position: relative;
}

.about .about-content .timeline .timeline-item {
  position: relative;
  padding-left: 37px;
  padding-bottom: 50px;
}

.about .about-content .timeline .timeline-item:last-child {
  padding-bottom: 0;
}

.about .about-content .timeline .timeline-item::before {
  content: "";
  width: 1px;
  position: absolute;
  height: 100%;
  left: 7px;
  top: 0;
  background-color: var(--skin-color);
}

.about .about-content .timeline .circle-dot {
  position: absolute;
  left: 0;
  top: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: var(--skin-color);
}

.about .about-content .timeline .timeline-date {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 12px;

}

.about .about-content .timeline .timeline-date fa {
  margin-right: 5px;
}

.about .about-content .timeline .timeline-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: capitalize;

}

.about .about-content .timeline .timeline-text {
  line-height: 25px;
  font-size: 16px;
  text-align: justify;

}

/* image gallery*/



.media {
	 max-height: 300px;
	 position: relative;
	 display: flex;
	 justify-content: center;
	 align-items: center;
   margin-left: 20px;
  margin-bottom: 101px;

}
 .media img {
	max-width: 100%;
	height: auto;
  width: 100%;
  display: block;

}


 .layer {
	 opacity: 0;
	 position: absolute;
	 display: flex;
	 justify-content: center;
	 align-items: center;
	 width: 10px;
	 height: 90%;
	 background: #fff;
	 color: #151e3f;
	 transition: all 0.9s ease;
   padding-left: 15px;
}
 .layer p {
	 transition: all 0.9s ease;
	 transform: scale(0.1);
}
 p {
	 text-align: left;
	 letter-spacing: 1px;
   padding-top: 20px;
}
 .media:hover .layer {
	 opacity: 0.8;
	 width: 90%;
	 transition: all 0.5s ease;
}
 .media:hover .layer p {
	 transform: scale(1);
	 transition: all 0.9s ease;
   padding-left: 15px;
   padding-right: 15px;
}

.section .container2 {
  padding-top: 35px;
  padding-left: 50px;
  display: flex;
  box-sizing: border-box;
  justify-content: center;

}

.left2{
  width: 30%;
  padding-top: 22px;
  padding-right: 30px;
}
.top2{
  padding-top: 100px;
}
.bottom-text{
  padding-left: 64px;
  font-size: 19px;
  width: 70%;
  padding-right: 150px;
}

/* ---------------------------About----------------------- */

.about {
    max-width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 70px;
}
    


.about-content h3{
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.about-content p{
    font-size: 16px;
    margin: 20px 0 0;
    text-align: left;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.3s;
}

/* PROJECT 3 starts here */

.education{
    max-width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 70px;
}

.section .container3 {
  padding-top: 35px;
  padding-left: 50px;
  display: flex;
  box-sizing: border-box;
  justify-content: center;

}


/*footer*/

.footer{
    text-align: center;
    color: gray;
    opacity: 0;
    animation: slideTop 4s ease forwards;
    animation-delay: 1.1s, 2.1s;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: fit-content;
    padding: 5px;
    padding-bottom: 20px;
    margin-bottom: 5px;
    font-size: 14px;
}

.footer p{
  text-align: center;
}

/* Default: hide hamburger on desktop */
.menu-toggle {
  display: none;
  margin-left: auto;
  font-size: 28px;
  color: white;
  cursor: pointer;
    }

.gallery-dots{
  display: none;
}

/* Default: show buttons */
.gallery-prev,
.gallery-next {
  display: block; /* or inline-block depending on your layout */
}

.section{
  display: none;
}

/* Hide buttons on large screens */
@media screen and (min-width: 1440px) {
  .gallery-prev,
  .gallery-next {
    display: none;
  }
}



/* Animation */
@keyframes slideTop {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }    
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }    
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }    
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-24px);
    }

    100%{
        transform: translate(0);
    }
}

@keyframes circleRotate {
    0% {
        transform: rotate(0);
    }
    
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }


/*///////////MEDIA QUERIES*/


@media (max-width: 1440px) {
    
    .aside{
      max-width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
      top: 40px;
      margin-top: 0px;
      
    }

    .aside .nav{
      background: #d3d3d3ad;
      border-radius: 10px;
      width: auto;
      margin-right: 10px;
    }


    a.active {
      color: rgb(255, 255, 255);
      font-weight: 10px;
      border-bottom: #00ff00;
    }




    .mu{
        text-align: center;
        margin-top: 0px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .wave{
        font-size: 26px;
    }

    .margin{
      margin-top: 116px;
    }

    a{
      font-size: 24px;
    }
  
    .aside {
      top: 60px;            /* sits below your fixed .header */
      left: 0;
      width: fit-content;
      height: 180px;
      background: transparent;     /* remove black box */
      border-right: none;
      border-top-right-radius: 0;
      padding: 8px 12px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

  /* Make the list horizontal (this targets your <ul class="nav">) */
  .aside .nav {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    background-color: black;
  }

  .aside .nav li {
    margin: 0;
    display: inline-block;
  }

  /* Remove the 210px width and bottom border so items don’t stack */
  .aside .nav li a {
    display: inline-block;
    width: auto;                 /* override desktop width: 210px */
    border-bottom: none;         /* no divider lines */

  }

  .ul.nav{
    position: absolute;
  }

  /* Release the reserved sidebar space */
  .main-content {
    margin-left: 0;
    padding: 20px;
  }

  .mu{
    position: relative;
    padding-top: 0px;
    margin-top: 0px;
  }

  .wave{
    padding-top: 20px;
    margin-top: 20px;
  }
  .heading-brief{
    justify-self: center;
    padding-left: 17px;
    padding-right: 17px;
    padding-top: 0px;
  }

  .heading-brief2{
    justify-self: center;
    padding-left: 17px;
    padding-right: 17px;
    padding-top: 40px;
  }

  .left{
    padding: 0px;
    justify-items: center;
  }

  .right{
    width: fit-content;
    padding: 17px;
  }

  .smalltxt{
    font-size: 16px;
  }

  p{
    text-align: center;
  }

  /* Stop sections from being pushed right by 230px */
  .section {
    left: 0;
  }


  /* Remove any margins or padding pushing content right */
    body {
        margin-left: 0;
    }

  /* Push content below navbar so it’s not hidden */
    .main-content {
        margin-top: 70px; /* adjust to match navbar height */
    }
  
    
  .gallery {
    height: 402px;
    width: fit-content;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 10px;
  }

  .gallery img {
    --s: 87px;
    filter: grayscale(0%);
    flex: 0 0 100%;
    max-width: 100%;
    height: auto;
    scroll-snap-align: center;
    border-radius: 8px;
    justify-self: center;
  }

  /* Hide scrollbar for cleaner look */
  .gallery::-webkit-scrollbar {
    display: none;
  }
  .gallery {
    scrollbar-width: none; /* Firefox */
  }

  .gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .gallery-dots span {
    width: 8px;
    height: 8px;
    background-color: #8f8f8f;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
  }

  .gallery-dots span.active {
    background-color: #fff; /* active dot color */
  }

  

    .first{
      display: none;
    }

    .section .container {
      flex-direction: column;
      padding-top: 35px;
      padding-left: 10px;
      margin-bottom: 60px;
      max-width: 100%;
      align-items: center;
    }


    p.heading-brief {
      padding-top: 41px;
      font-size: 27px;
    }
    
    .heading-brief2 {
      padding-top: 41px;
    }

   
  
    .header {
        flex-direction: column;
        padding: 10px;
        text-align: center;
    }

    .body{
        width: fit-content;
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
        margin-top: 10px;
        z-index: 10;
        position: relative;        
    }

    .navbar a {

        margin-left: 0;
    }

    .home-content {
        padding-top: 100px; /* space for fixed header */
        padding-left: 30px;
        padding-right: 40px;
    
    }

    .section .container{
      padding-left: 0px;
    }

    .container {
        flex-direction: column; /* Stack vertically */
        align-items: center;    /* Center the blocks */
        text-align: left;       /* Keep text left-aligned */
    }




    .mu{
        text-align: center;
        padding: 0px;
        margin-top: 41px;

    }
    
    .right{
      width: 100%;
      max-width: 100%;    
      max-width: 90%; /* Prevent stretching full width */
    }

    .left{
        text-align: left;
        padding-right: 20px;
        height: 450px;

    }
    .wave{
        font-size: 42px;
    }

    .heading-brief2{
      text-align: left;
      padding-left: 0px;
    }

    .aside{
      width: 180px;
      z-index: 0;
      position: sticky;
      margin-top: 20px;
      height: 45px;  
    }



    .home-content .mu {
        font-size: 26px;
        padding: 0;
        padding-left: 0px;
    }


    .home-img {
        width: 250px;
        height: 220px;
    }

    .image img {
        max-width: 250px;
    }

    .cards-container {
    gap: 20px;
    max-width: 100%;
    width: 90%;   /* let it fill the screen width */
    padding: 0 15px; /* add some padding so content doesn’t touch edges */
    box-sizing: border-box;
    justify-self: center;
    }

    .cards-container:active,
    .cards-container *:active {
        /* reset styles or disable */
        background: none; /* or original background */
        transform: none;  /* remove scale or translate */
        /* reset other properties you used */
    }
 
    .content-wrapper{
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        justify-self: center;
        gap: 20px;
    }

    .card, .bottom-card {
        width: 91%;
        padding: 15px;
        text-align: left;
    }

    .holographic-container {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding-bottom: 65px;
        margin-top: 0px;
    }


    

  /* Ensure the holographic-card doesn’t stretch fully */
    .holographic-card {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        width: 100%;
        display: block; /* instead of flex */
        text-align: left;
    }

    .holographic-card:hover {
        transform: none; 
        box-shadow: none
        }

  /* bottom-card takes full width inside holographic-card but with padding */
  .bottom-card {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
    text-align: left;
    justify-self: center;
  }


    .footer {
        position: absolute;
        padding: 10px;
    }
    
    .show-overlay {
      opacity: 1 !important;
      width: fit-content;
    }


  .media{
    margin-top: 115px;
  } 

  .media .layer {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .media.show-overlay .layer {
    opacity: 1;
  }

  .media.show-overlay .layer {
    opacity: 0.8;      /* same as your hover */
    width: 90%;        /* same as your hover */
    transition: all 0.5s ease;
  }
  .media.show-overlay .layer p {
    transform: scale(1);     /* same as your hover */
    transition: all 0.9s ease;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Give Project 3 enough bottom space so the last .media can fully enter view */
  #education .container3::after {
    content: "";
    display: block;
    height: 4vh; /* tweak if needed (30–50vh is typical) */
  }

    .media:hover .layer p {
      transform: scale(1);
      transition: all 0.9s ease;
    }

  .first{
    display: none;
  }  



  .mu{
    font-size: 20px;
  }

  .bottom-text p {
    font-size: 16px;
  }


  .gallery {
    height: 402px;
    width: fit-content;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 10px;
  }

  .gallery img {
    --s: 87px;
    filter: grayscale(0%);
    flex: 0 0 100%;
    max-width: 100%;
    height: auto;
    scroll-snap-align: center;
    border-radius: 8px;
    justify-self: center;
  }

  /* Hide scrollbar for cleaner look */
  .gallery::-webkit-scrollbar {
    display: none;
  }
  .gallery {
    scrollbar-width: none; /* Firefox */
    justify-self: center;
  }

  .gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .gallery-dots span {
    width: 8px;
    height: 8px;
    background-color: #8f8f8f;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
  }

  .gallery-dots span.active {
    background-color: #fff; /* active dot color */
  }

  .aside{
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
      top: 40px;
      margin-top: 0px;
      
    }


    .aside .nav li a {
      font-size: 14px;
    }  

    .mu{
        text-align: center;
        margin-top: 0px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .wave{
        font-size: 36px;
    }

    .margin{
      margin-top: 116px;
    }

    .bottom-text{
      padding-left: 20px;
      padding-right: 30px;
    }

    .aside{
      max-width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
      top: 40px;
      margin-top: 0px;
      
    }

    a.active {
      color: #008100;
      border-bottom: #00ff00;
    }

    .color{
      color: black;
      justify-self: center;
    }

    .aside .nav{
      background: #d3d3d3ad;
      border-radius: 10px;
      width: auto;
      margin-right: 10px;
      border-radius: 50px;
    }

    .aside .nav li a {
      font-size: 10px;
      font-family: "Boldonse", system-ui;
      font-weight: 200;
      font-style: normal;
    }  
}



/* Mobile screens and smaller (<= 600px) */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        padding: 10px;
        text-align: center;
    }

    .navbar {
        display: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .navbar a {
        font-size: 14px;
        margin-left: 0;
    }

    .home-content {
        padding-top: 100px; /* space for fixed header */
    }

    .aside{
      max-width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
      top: 40px;
      margin-top: 0px;
      
    }

    a.active {
      color: #008100;
      border-bottom: #00ff00;
    }

    .color{
      color: black;
      justify-self: center;
    }

    .aside .nav{
      background: #d3d3d3ad;
      border-radius: 10px;
      width: auto;
      margin-right: 10px;
      border-radius: 50px;
    }

    .aside .nav li a {
      font-size: 10px;
      font-family: "Boldonse", system-ui;
      font-weight: 200;
      font-style: normal;
    }  

    .mu{
        text-align: center;
        margin-top: 0px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .wave{
        font-size: 26px;
    }

    .margin{
      margin-top: 116px;
    }

    .home-content .mu {
        font-size: 26px;
        padding: 0;
    }

    .largetxt {
        font-size: 16px;
        width: 100%;
        padding: 0;
    }

    .caption {
        font-size: 14px;
        width: 100%;
        padding: 0;
    }

    .home-img .glowing-circle{
        display: none;
    }

    .home-img {
        display: none;
    }

    .left{
        width: unset;
        padding-right: unset;
    }

    .cards-container {
        justify-self: center;
        gap: 20px;
        max-width: 80%;
    }
 
    .content-wrapper{
        justify-self: center;
        gap: 20px;
    }

    .card, .bottom-card {
        width: 100%;
        padding: 15px;
        text-align: left;
    }

    .holographic-container {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        width: 100%;
        padding-bottom: 65px;
        margin-top: 0px;
        justify-self: center;
    }

   
    .aside{
      width: fit-content;
      max-width: 100%;
      margin: 0 auto;
      padding: 0px;
      z-index: 0;
    }

    .aside .nav{
      gap: 0px;
    }

  /* Ensure the holographic-card doesn’t stretch fully */
  .holographic-card {
    max-width: 300px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    display: block; /* instead of flex */
  }

  /* bottom-card takes full width inside holographic-card but with padding */
  .bottom-card {
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
  }


    .footer {
        position: absolute;
        padding: 10px;
        font-size: 11px;
    }
    
    .glow-on-scroll {
        box-shadow: 0 0 20px #00FF00 !important;
        transform: scale(1.15);
        transition: all 0.5s ease;
    }

        /* Default: hide hamburger on desktop */
    .menu-toggle {
        display: none;
        margin-left: auto;
        font-size: 28px;
        color: white;
        cursor: pointer;
        z-index: 10;
        position: relative;
    }

    /* Show hamburger on tablets and phones (<=1024px) */

        .menu-toggle {
            display: block;
        }

        .navbar {
            display: none;
            flex-direction: column;
            align-items: center;
            background: rgba(0, 0, 0, 0.9);
            position: absolute;
            top: 70px;
            left: 0;
            width: 100%;
            padding: 15px 0;
            gap: 10px;
            z-index: 99;
        }

        .navbar.active {
            display: flex;
        }
  
    

    /* project 2 */    

        .bottom-text{
          padding-left: 0px;
          padding-right: 0px;
          width: 100%;
        }

        .section .container2{
          display: block;
          padding-left: 10px;
          padding-right: 10px;
        }

        .left2{
          width: 100%;
          overflow-x: hidden;
        }
    
    /* project 3 */    

        .bottom-text{
          padding-left: 10px;
          padding-right: 10px;
          width: 100%;
        }

        .section .container3{
          display: block;
          padding-left: 10px;
          padding-right: 10px;
        }

        .left2{
          width: 100%;
        }    

    .glow-on-scroll {
        box-shadow: 0 0 20px #00FF00 !important;
        transform: scale(1.15);
        transition: all 0.5s ease;
        pointer-events: none
    }

}

@media (max-width: 1440px) {
  .gallery {
    cursor: grab;
  }

  .gallery.dragging {
    cursor: grabbing;
  }

  .gallery img {
    min-width: 100%;
    user-select: none;
    pointer-events: none;
    border-radius: 12px;
  }

  .gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
  }

  .gallery-prev, .gallery-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #8f8f8f;
    background: transparent;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    line-height: 0;
    font-size: 18px;
  }

  .gallery-prev:hover, .gallery-next:hover {
    background: rgba(255,255,255,0.1);
  }

  .gallery-dots {
    display: flex;
    gap: 8px;
  }

  .gallery-dots .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background-color: #8f8f8f;
    border: none;
    cursor: pointer;
  }

  .gallery-dots .dot.active {
    background-color: #fff;
  }

}






/* Hidden gem if you see this. This was all made by Amaar Ismail*/ 