* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-image: linear-gradient(180deg, #181818, black);
  color: white;
  transition: background 0.3s, color 0.3s;
}

.light-mode {
  background-image: linear-gradient(180deg, #ffffff, #dddddd);
  color: black;
}

.light-mode .nav-bar ul li a {
  color: black;
}

.light-mode .nav-bar-container {
  background: rgba(0, 0, 0, 0.08);   /* darker glass */
  color: #111;                       /* darker text for contrast */
}

.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode p,
.light-mode a,
.light-mode ul,
.light-mode span {
  color: #333 !important;
}

.mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: white;
  transition: color 0.3s ease-in-out;
}

.light-mode .mode-toggle {
  color: black;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

.nav-bar {
  width: 100%;
  margin: auto;
}

.nav-bar-container {
  list-style-type: none;
  padding: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-top: 50px;
  height: 70px;
  width: 80%;
  margin: 40px auto;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#hidden {
  display: none;
  font-family: "Noto Sans", sans-serif;
}

.nav-bar ul li {
  list-style: none;
}

.nav-bar ul li a {
  position: relative;
  text-decoration: none;
  color: white;
  font-family: "PT Mono", monospace;
  font-size: 17px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.nav-bar ul li a:not(#icon)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 10px;
  background-color: #44f1a6;
  transition: width 0.25s ease;
}

.nav-bar ul li a:not(#icon):hover::after {
  width: 60%;
}

.collapse-icon {
  display: none;
}

.main-about {
  border-radius: 10px;
  width: 80%;
  margin: 40px auto;
  height: 400px;
  margin-top: 100px;
}

.main-skills {
  border-radius: 10px;
  width: 80%;
  margin: 50px auto 0;
  height: 250px;
}

.main-projects {
  border-radius: 10px;
  width: 80%;
  margin: 70px auto 40px;
  height: 600px;
}

.main-contact {
  border-radius: 10px;
  width: 80%;
  margin: 40px auto;
  height: 200px;
}

.details-heading {
  text-align: center;
  color: white;
  font-family: monospace;
  width: 210px;
}

.about-container {
  display: flex;
  justify-content: center;
}

.about-container-0 {
  display: flex;
  width: 100%;
  height: 350px;
}

.about-container-1 {
  height: 350px;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.resume-btn {
  color: white;
  font-family: monospace;
  font-size: 17px;
  text-decoration: none;
}

.resume-btn:hover {
  color: #44f1a6;
}

.about-container-2 {
  height: 350px;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container-2 img {
  height: 300px;
}

.social-icons {
  margin-top: 10px;
  font-size: 25px;
  width: 250px;
  display: flex;
  justify-content: space-evenly;
}

.contact-icons a,
.social-icons a {
  color: white;
}

.about-heading,
.skills-heading,
.projects-heading,
.contact-heading {
  color: #44f1a6;
  font-family: ubuntu;
  font-size: 25px;
}

.skills-container {
  display: flex;
  justify-content: center;
}

.skills-container-1 {
  display: flex;
justify-content: space-evenly;
}

.skills-container-1 ul {
  color: white;
  list-style-type: none;
  font-family: ubuntu;
}

.skills-container-1 ul li i {
  font-size: 35px;
  margin-right: 5px;
}

.skills-container-1-skill {
  display: flex;
  align-items: center;
  flex: 1 1 160px; 
  margin-top: 25px;
  min-width: 160px;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-container-1-skill:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

body.light-mode .skills-container-1-skill {
  background: rgba(156, 152, 152, 0.08); 
  color: #111;           
}

.projects-container {
  display: flex;
  justify-content: center;
  margin-top: 120px;
}

.projects-container-span {
  font-size: 18px;
  color: wheat;
}

.projects-container-0,
.projects-container-1 {
  display: flex;
  height: 260px;
}

.projects-container-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border-radius: 10px;
  width: 50%;
}

.projects-container-2 img {
  padding: 5px;
  width: 330px;
  border-radius: 10px;
}

.projects-container-3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: ubuntu;
  color: #44f1a6;
  margin: 0 10px 0 10px;
  width: 40%;
}

.more-projects {
  font-family: ubuntu;
  font-size: 14px;
  text-align: center;
}

.more-projects a {
  text-decoration: none;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
  color: white;
  display: inline-block;
}

.more-projects a:hover {
  color: #44f1a6;
  text-shadow: 0 0 8px rgba(68, 241, 166, 0.7);
  transform: scale(1.1);
}

.contact-container {
  display: flex;
  justify-content: center;
}

.contact-container-1 {
  height: 100px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: ubuntu;
}

.contact-icons {
  font-size: 25px;
  display: flex;
  justify-content: space-evenly;
}

.contact-icons a {
  color: white;
  text-decoration: none;
}

.contact-icon-1,
.contact-icon-2,
.contact-icon-3,
.contact-icon-4,
.contact-icon-5,
.contact-icon-6 {
  width: 41px;
  height: 41px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.style:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
  transition: 0.2s ease-in-out;
}

.name-heading {
  width: 226px;
  color: #44f1a6;
  font-family: ubuntu;
  font-size: 25px;
  border-right: 2px solid white;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 2s steps(16),
  cursor .4s step-end infinite alternate;
}

@keyframes cursor {
  50% {
    border-color: transparent;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
}

#backToTop {
  position: fixed;
  bottom: 25px;
  right: 30px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  font-size: 27px;
  color: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  transition: 0.05s ease-in-out;
  color: #44f1a6;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(10px);
}

.light-mode #backToTop {
  background: rgba(0, 0, 0, 0.686);
}

@media only screen and (min-width: 901px) {
  .projects-container-2 img {
    transition: width 0.2s ease-in-out;
  }

  .projects-container-2 img:hover {
    width: 375px;
  }
}

@media only screen and (max-width: 900px) {

  .projects-container-1,
  .projects-container-0 {
    align-items: center;
    flex-direction: column;
  }

  .projects-container-3 {
    width: 90%;
    align-items: center;
    text-align: center;
  }

}

@media only screen and (max-width: 750px) {
  .nav-bar-container {
    width: 90%;
  }

  #nav-ul {
    margin-top: 35px;
    font-weight: 600;
  }
  #nav-res-ext1,
  #nav-res-ext2,
  #nav-res-ext3,
  #nav-res-ext4 {
    font-size: 14px;
    display: none;
    letter-spacing: 0px;
  }

  #hidden {
    display: inline-flex;
    color: #44f1a6;
    font-size: 22px;
    font-weight: 600;
    border: 0;
  }
  #icon {
    display: block;
    float: right;
    color: #44f1a6;
    font-size: 25px;
    border: 0;
  }

  .contact-icons {
    justify-content: space-between;
  }

  .about-container-0 {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  #about-container-2-img {
    height: 300px;
  }

  .details-heading {
    font-size: 13px;
  }

  .about-container {
    margin-bottom: 50px;
    width: 100%;
  }

  .main-skills {
    margin-top: 130px;
  }

  .main-contact {
    margin-top: 80px;
  }

  .main-projects {
    height: 800px;
  }

  .projects-container-1 {
    margin-top: 130px;
  }

  .projects-container {
    margin-bottom: 20px;
  }

  .more-projects {
    margin-top: 80px;
  }

  .contact-container-1 h3 {
    font-size: 14px;
  }

  .about-heading,
  .skills-heading,
  .projects-heading,
  .contact-heading {
    font-size: 22px;
  }

  .skills-container-1-skill {
    min-width: 145px;
    max-width: none;
    width: 80%;
  }

  .skills-container-1 {
    justify-content: center;
    gap: 20px;
  }

}