* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  padding: 20px;
  transition: background 0.5s ease, color 0.5s ease;
  background: linear-gradient(-45deg, #e3ffe7, #d9e7ff, #fff5e6, #ffe3e3);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.dark {
  background: linear-gradient(-45deg, #1a1a1a, #292929, #333333, #1c1c1c);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  color: #eee;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: inherit;
}
nav a:hover {
  text-decoration: underline;
}

#hero {
  text-align: center;
  margin: 50px 0;
}
section {
  margin: 40px 0;
}

.project {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
body.dark .project {
  background: rgba(30, 30, 30, 0.85);
}
.project:hover {
  transform: scale(1.02);
}
.project img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

form {
  display: flex;
  flex-direction: column;
}
form input, form textarea {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
}
body.dark form input, body.dark form textarea {
  background: #2e2e2e;
  color: #fff;
  border: 1px solid #555;
}
button {
  padding: 10px;
  background: #007acc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
button:hover {
  background: #005f99;
}
footer {
  text-align: center;
  margin-top: 40px;
}

.download-btn {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 20px;
  background: #007acc;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}
.download-btn:hover {
  background: #005f99;
}

.leetcode-img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 10px;
}

.skillrack-card {
  background-color: #f0f0f0;
  color: #111;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  font-size: 1.1rem;
}
body.dark .skillrack-card {
  background-color: #2e2e2e;
  color: #eee;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.05);
}
