/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f0f0f;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}
header h1 {
  font-size: 2.5rem;
  color: #fff;
}
header p {
  font-size: 1.2rem;
  color: #aaa;
}

/* Navbar */
nav {
  background-color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}
.navbar {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}
.navbar li {
  list-style: none;
}
.navbar li a {
  color: #e0e0e0;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.navbar li a:hover {
  background-color: #222;
  color: #fff;
}

/* Active Tab Highlight */
.navbar li a.active {
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  font-weight: 600;
}
.navbar li a.active:hover {
  background-color: #222;
  color: #fff;
}

/* Main Section */
.intro {
  text-align: center;
  padding: 3rem 1rem;
}
.intro img {
  width: 180px;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.intro-text {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.intro-text p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: opacity 0.4s ease;
}
.popup-content {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}
.popup-content h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.popup-content p {
  color: #ccc;
}
.popup-content button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: none;
  color: #000;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.popup-content button:hover {
  background: #ddd;
}
.hidden {
  display: none;
}

/* Visibility Control */
body.no-scroll {
  overflow: hidden;
}
main,
header,
nav,
footer {
  visibility: hidden;
}
body.ready main,
body.ready header,
body.ready nav,
body.ready footer {
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  .intro img {
    width: 140px;
  }
  .intro-text p {
    font-size: 1.1rem;
  }
}

/* Social Icons */
.social-icons {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link i {
  font-size: 1.8rem;
  color: #ccc;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover i {
  transform: scale(1.2);
  color: #fff;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -9999;
  pointer-events: none;
}
.project-link a {
  color: var(--text-color);   /* or use your accent variable */
  text-decoration: none;
  font-weight: 500;
}

.project-link a:hover {
  color: var(--accent-color); /* theme highlight */
  text-decoration: underline;
}
 
