/* Animate background gradient */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Global */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(-45deg, #0f172a, #1e293b, #111827, #1e293b);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  color: #e6eef8;
  line-height: 1.6;
  scroll-behavior: smooth;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: #14b8a6; }

/* Navbar */
nav {
  position: fixed; top: 0; width: 100%;
  background: rgba(30,41,59,0.95);
  display: flex; justify-content: center;
  padding: 12px 0; z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}
nav a { margin: 0 20px; font-weight: 600; color: #e6eef8; }
nav a:hover { color: #0ea5a5; }

.container { max-width: 1000px; margin: 100px auto 40px auto; padding: 0 20px; }

/* Header */
header { text-align: center; margin-bottom: 50px; }
header h1 { font-size: 3rem; font-weight: 700; margin-bottom: 10px; color: #38bdf8; }
header p { font-size: 1.2rem; color: #94a3b8; }

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}
.card {
  background: rgba(30,41,59,0.85);
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.7s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.8);
}
.card h3 { margin-bottom: 12px; color: #0ea5a5; font-size: 1.3rem; }
.card p { font-size: 0.95rem; color: #cbd5e1; min-height: 60px; }
.card a {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5a5, #14b8a6);
  color: #0f172a;
  font-weight: 600;
}
.card a:hover { filter: brightness(1.1); }

/* Skills */
.skills { margin-bottom: 50px; }
.skills h2 { font-size: 2rem; text-align: center; margin-bottom: 25px; color: #38bdf8; }
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.skill {
  background: rgba(30,41,59,0.85);
  padding: 10px 16px;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.6s ease;
}
.skill:hover { background: #0ea5a5; color: #0f172a; cursor: default; }
.skill i { font-size: 1.1rem; }

/* Contact */
.contact { text-align: center; margin-bottom: 60px; }
.contact h2 { font-size: 2rem; margin-bottom: 20px; color: #38bdf8; }
.contact a {
  display: inline-block;
  margin: 8px 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #0ea5a5;
  color: #0f172a;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}
.contact a:hover { filter: brightness(1.1); }

/* Footer */
footer { text-align: center; font-size: 0.85rem; color: #64748b; }

/* Responsive */
@media (max-width: 500px) {
  header h1 { font-size: 2.2rem; }
  .card h3 { font-size: 1.1rem; }
  .card p { font-size: 0.9rem; }
  .skills h2, .contact h2 { font-size: 1.6rem; }
  nav a { margin: 0 12px; font-size: 0.9rem; }
}
