html {
  scroll-behavior: smooth;
}

.section {
  min-height: 100vh;
  padding: 80px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========== NAVBAR ========== */
.logo {
  font-size: 22px;
  font-weight: 700;
  color: #7b00ff;

}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #0e0e0e;
  padding: 15px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  /* margin: left 10%; */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin-right: 13%;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 16px;
  position: relative ;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #7b00ff;
}

/* ACTIVE LINK (THIS WAS MISSING) */
.nav-links a.active {
  color: #7b00ff;
  font-weight: 600;
}

.highlight-project {
  outline: 2px solid #7b00ff;
  box-shadow: 0 0 30px rgba(182,255,0,0.4);
  transition: 0.4s;
}



/* ===== PROJECT MODAL ===== */
#project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

#project-modal.active {
  display: flex;
}

.modal-content {
  background: #111;
  color: #fff;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #7b00ff;
  cursor: pointer;
}

.modal-tech,
.modal-services {
  margin-top: 10px;
  font-size: 14px;
  color: #cfcfcf;
}

.modal-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.modal-links a {
  background: #7b00ff;
  color: #000;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
}


/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background:#7b00ff;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(182,255,0,0.4);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 999;
}

#backToTop:hover {
  transform: translateY(-4px);
}


