/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0d0f17;
  color: #ffffff;
  line-height: 1.6;
  padding: 0 20px;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 60px;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #3c82f6;
  object-fit: cover;
  background: #1a1d2b;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
}

.hero-tagline {
  color: #9db4ff;
  font-size: 1.2rem;
}

/* ===== Sections ===== */
.section {
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 14px;
  font-weight: 600;
  color: #3c82f6;
}

.section-desc {
  color: #c7c7c7;
  max-width: 700px;
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.project-card {
  padding: 22px;
  background: #131622;
  border: 1px solid #1f2335;
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s;
  text-decoration: none;
  color: #fff;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #3c82f6;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.project-desc {
  color: #b9b9b9;
  font-size: 1rem;
}

/* ===== Skills ===== */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill {
  padding: 8px 18px;
  background: #11131d;
  border-radius: 20px;
  border: 1px solid #1e2130;
  font-size: 0.95rem;
  color: #c7d3ff;
}

/* ===== Contact ===== */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  background: #11131d;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #1f2335;
  color: #c7d3ff;
  width: fit-content;
  text-decoration: none;
}

.contact-item:hover {
  border-color: #3c82f6;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  color: #666e9a;
  padding-bottom: 50px;
  margin-top: 40px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .avatar {
    width: 100px;
    height: 100px;
  }
}