/* Global styles */
body {
  font-family: 'Courier New', monospace;
  margin: 0;
  padding: 0;
  background-color: #0e0e0e;
  color: #e0e0e0;
  line-height: 1.6;
  animation: fadeIn 1.5s ease-in; /* Page load animation */
}

/* Navigation styles */
nav {
  background-color: #1a1a1a;
  color: #fff;
  padding: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #00ffcc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  text-decoration: underline;
  color: #00ddb3;
}

nav ul li a.active {
  border-bottom: 2px solid #00ffcc;
}

/* Header */
header {
  background-color: #007acc;
  color: white;
  padding: 2rem;
  text-align: center;
  animation: slideDown 1s ease;
}

/* Section styles */
section {
  padding: 2rem;
  text-align: center;
  animation: fadeInUp 1s ease;
}

/* Card styles for About, Projects, etc. */
.card {
  background-color: #1e1e1e;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 600px;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
  border-left: 5px solid #00ffcc;
  border-radius: 5px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 255, 204, 0.3);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #1a1a1a;
  color: #ccc;
  margin-top: 2rem;
  animation: fadeIn 2s ease-in;
}

/* Form styling */
form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #2e2e2e;
  color: #fff;
  transition: border 0.3s ease;
}

form input:focus,
form textarea:focus {
  border-color: #00ffcc;
  outline: none;
}

form button {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #00ffcc;
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #00ddb3;
}

/* Typing cursor effect (optional for headers with id="typed-text") */
#typed-text::after {
  content: "|";
  animation: blink 1s infinite;
}

/* Responsive */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .card {
    margin: 1rem 1rem;
  }
}

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
