body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

.dark {
  background-color: #0f0f0f;
  color: #ffffff;
}

.light {
  background-color: #f0f0f0;
  color: #000000;
}

header {
  text-align: center;
  padding: 2rem;
  background: #1b1f27;
  position: relative;
}

.sub-heading {
  color: #ccc;
}

#toggleTheme {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  background: #a020f0;
  font-weight: bold;
  color: white;
  transition: background 0.3s;
}

/* Animated Gradient Text */
.animated-text {
  background: linear-gradient(270deg, #a020f0, #ff00ff, #8000ff);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textAnimation 6s ease infinite;
}

@keyframes textAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

main {
  padding: 2rem;
  animation: fadeIn 1.2s ease-in;
}

section {
  margin-bottom: 2rem;
}

section h2, section h3 {
  border-left: 4px solid #a020f0;
  padding-left: 10px;
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

.project-card {
  background-color: #1c1c1c;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 10px;
  border: 1px solid #a020f0;
  box-shadow: 0 0 10px #a020f060;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px #a020f080;
}

.project-card a {
  color: #ffffff;
  text-decoration: underline;
}

.skills ul {
  list-style: square;
  padding-left: 1.5rem;
}

.contact a {
  color: #a020f0;
  text-decoration: underline;
}

footer {
  margin-top: 2rem;
  background: #111;
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid #a020f0;
}

footer nav {
  margin-bottom: 10px;
}

footer nav a {
  margin: 0 15px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

footer nav a:hover {
  text-decoration: underline;
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
