:root {
  --bg: #f7f7f8;
  --text: #1f2937;
  --subtext: #6b7280;
  --accent: #7c9cff;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* Header */
.header {
  padding: 3rem 1rem;
  text-align: center;
}

/* Hero */
.hero {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
  text-align: center;
}

/* Section */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 0 1.5rem 4rem;
}

.work-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform .3s ease, box-shadow .3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--subtext);
}

/* Animation */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
