/* styles.css */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

nav {
  position: fixed;
  width: 100%;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  padding: 10px 0;
}

nav.scrolled {
  background: rgba(31, 31, 31, 0.8);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo a {
  text-decoration: none;
  color: #e0e0e0;
  font-size: 24px;
  font-weight: bold;
  transition: color 0.3s;
}

.logo a:hover {
  color: #0073e6;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #e0e0e0;
  padding: 15px 0;
  display: inline-block;
  font-size: 18px;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: #0073e6;
  transition: width 0.3s ease;
  transition-delay: 0.2s;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
  background: #0073e6;
}

.nav-links a:hover {
  color: #0073e6;
}

section {
  padding: 80px 20px;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
}

.intro-container {
  text-align: center;
  margin: 0 auto;
  max-width: 600px;
  padding-top: 100px;
}

.console-container {
  font-family: 'Courier New', Courier, monospace;
  color: white;
  display: inline;
  position: relative;
  font-size: 36px;
}

.console-underscore {
  display: inline-block;
  position: relative;
  top: 0;
  left: 10px;
  font-size: 36px;
}

.hidden {
  visibility: hidden;
}

h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #0073e6;
  animation: fadeInUp 1s ease-in-out;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 18px;
  animation: fadeInUp 1s ease-in-out;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project {
  background-color: #1e1e1e;
  padding: 20px;
  margin: 10px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  position: relative;
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: #2a2a2a;
}

.project h3 {
  margin-top: 0;
  font-size: 24px;
}

.project p {
  margin-bottom: 10px;
  font-size: 16px;
}

.project a {
  color: #0073e6;
  text-decoration: none;
  transition: color 0.3s;
}

.project a:hover {
  color: #e0e0e0;
}

.contact-container {
  text-align: center;
  margin-top: 20px;
  animation: fadeInUp 1s ease-in-out;
}

.contact-container a {
  margin: 0 20px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 36px;
  transition: transform 0.3s, color 0.3s;
}

.contact-container a:hover {
  color: #0073e6;
  transform: scale(1.1);
}

.contact-container a .fa-envelope {
  font-size: 36px;
}

form {
  margin: 20px 0;
  max-width: 600px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

form input, form textarea, form button {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: all 0.3s ease;
}

form input:focus, form textarea:focus {
  border-color: #0073e6;
  box-shadow: 0 0 8px rgba(0, 115, 230, 0.5);
  outline: none;
}

form textarea {
  resize: none;
}

form button {
  background-color: #0073e6;
  color: white;
  border: none;
  cursor: pointer;
  width: 100%;  
}

form button:hover {
  background-color: #005bb5;
}

p {
  max-width: 800px;
  margin: 20px auto;
  line-height: 1.6;
}

#contact p {
  margin-bottom: 20px;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translate3d(0, 40px, 0);
  }
  to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
  }
}
