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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fafafa;
  color: #333;
  min-height: 100vh;
}

/* Navigation */
nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

nav .logo {
  font-size: 1.4em;
  font-weight: 700;
  color: #6B3FA0;
  text-decoration: none;
}

nav .nav-links a {
  color: #555;
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.95em;
  font-weight: 500;
}

nav .nav-links a:hover {
  color: #6B3FA0;
}

/* Hero / About Section */
.hero {
  text-align: center;
  padding: 80px 20px 48px;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.2em;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.hero .subtitle {
  font-size: 1.15em;
  color: #6B3FA0;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero .bio {
  font-size: 1em;
  color: #666;
  line-height: 1.7;
}

.hero .links {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero .links a {
  color: #6B3FA0;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid #6B3FA0;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.hero .links a:hover {
  background: #6B3FA0;
  color: #fff;
}

/* Section */
.section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.section h2 {
  font-size: 1.5em;
  font-weight: 700;
  color: #222;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid #6B3FA0;
  display: inline-block;
}

/* Projects Grid */
.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Project Card */
.project-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  flex: 1 1 320px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.project-card .card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.project-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(135deg, #4C1D95, #8B5CF6);
}

.project-card .card-icon.error {
  object-fit: none;
}

.project-card .card-header h3 {
  font-size: 1.15em;
  color: #222;
}

.project-card .card-header .tag {
  font-size: 0.75em;
  color: #6B3FA0;
  background: #f3edf9;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.project-card .card-desc {
  font-size: 0.92em;
  color: #666;
  line-height: 1.6;
}

.project-card .card-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-card .store-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #14B8A6;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.project-card .store-btn:hover {
  background: #0D9488;
}

.project-card .detail-link {
  color: #6B3FA0;
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: none;
}

.project-card .detail-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid #eee;
  padding: 32px 20px;
  text-align: center;
  font-size: 0.85em;
  color: #aaa;
  max-width: 960px;
  margin: 0 auto;
}

.footer a {
  color: #6B3FA0;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
  .hero {
    padding: 48px 20px 32px;
  }

  .hero h1 {
    font-size: 1.7em;
  }

  nav .nav-links a {
    margin-left: 16px;
    font-size: 0.85em;
  }
}
