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

:root {
  --bg: #0a0e1a;
  --surface: #111827;
  --border: #1e293b;
  --border-hover: #3b82f6;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --green: #34d399;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 배경 글로우 효과 */
.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 헤더 */
header {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* 히어로 */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero {
  padding: 3rem 0 2rem;
}

.hero-text {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.divider {
  margin-top: 1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* 프로젝트 그리드 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* 프로젝트 카드 */
.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.25s;
  overflow: hidden;
}

a.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

a.project-card:hover .card-glow {
  opacity: 1;
}

.card-content {
  position: relative;
  padding: 1.75rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  color: var(--accent);
}

.card-badge {
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-footer {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.card-tech {
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 6px;
}

.card-arrow {
  position: absolute;
  bottom: 1.75rem;
  right: 1.75rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}

a.project-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* 플레이스홀더 카드 */
.card-placeholder {
  border-style: dashed;
  cursor: default;
}

.card-placeholder .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 0.75rem;
}

.placeholder-icon {
  color: var(--text-muted);
  opacity: 0.3;
}

.placeholder-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.4;
  font-weight: 500;
}

/* 푸터 */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem 2rem;
  color: #334155;
  font-size: 0.8rem;
}

/* 반응형 */
@media (max-width: 480px) {
  header {
    padding: 1.5rem 1rem 0;
  }

  main {
    padding: 0 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 1.2rem;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
