/* Reset and Global Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #121212; /* Dark background */
  color: #e0e0e0; /* Light text */
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Bar Styling */
header {
  width: 100%;
  background-color: #1f1f1f;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00f260; /* Green accent */
}

nav ul {
  display: flex;
  list-style-type: none;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #e0e0e0;
  font-size: 1.2rem;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 5px;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #00f260;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: #00f260;
}

/* Intro Section Styling */
#home-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(100vh - 80px); /* Adjust for header height */
  width: 90%;
  margin: 0 auto;
}

.image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-pic {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
}

.text {
  flex: 2;
  color: rgba(224, 224, 224, 0.8); /* Translucent text */
  font-size: 3rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#animated-text {
  animation: fadeInText 1s forwards, type 2s steps(20) 1s forwards;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid #00f260;
  padding-right: 10px;
}

@keyframes fadeInText {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes type {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Page Sections Styling */
section {
  padding: 50px;
  text-align: center;
}

/* About Page */
#about {
  max-width: 800px;
  margin: 0 auto;
}

/* Skills Page */
#skills ul {
  list-style-type: none;
  padding: 0;
}

#skills li {
  padding: 10px 0;
}

/* Projects Page */
.project-item {
  margin-bottom: 30px;
}

/* Contact Page */
form {
  display: flex;
  flex-direction: column;
  width: 300px;
  margin: 0 auto;
}

form label {
  margin-bottom: 10px;
  text-align: left;
}

form input, form textarea {
  padding: 10px;
  margin-bottom: 20px;
  background-color: #2b2b2b;
  border: none;
  color: #e0e0e0;
}

form button {
  padding: 10px;
  background-color: #00f260;
  color: #121212;
  border: none;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  #home-intro {
    flex-direction: column;
  }

  .profile-pic {
    width: 200px;
    height: 200px;
  }

  .text {
    font-size: 2rem;
  }
}
