/* ---------- 기본 리셋 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f5;
  background: #050914;
}

body { display: flex; flex-direction: column; }

/* ---------- 전체 레이아웃 ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(5, 9, 20, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav-links { display: flex; gap: 18px; font-size: 0.9rem; }

.nav-links a {
  text-decoration: none;
  color: #dcdcdc;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}

.nav-links a:hover { opacity: 1; transform: translateY(-1px); }

main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 30px 16px 40px;
}

.content {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .content { grid-template-columns: 1fr; }
}

/* ---------- 배경 영역 (왼쪽 큰 패널) ---------- */
.showcase {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 24px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at top, #283057 0, #050914 60%, #000 100%);
  isolation: isolate;
}

.showcase-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transform: scale(1.02);
  transition: opacity 0.35s ease-out, background-image 0.35s ease-out, filter 0.35s ease-out;
  z-index: -2;
  filter: saturate(1.05) contrast(1.05);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(26, 76, 255, 0.45), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0.92));
  mix-blend-mode: soft-light;
  z-index: -1;
}

.showcase-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.8;
  margin-bottom: 12px;
}

.showcase-title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(0,0,0,0.7);
}

/* 타이틀 아래 CTA */
.showcase-cta {
  margin-top: 6px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.showcase-btn {
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.62);
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s, border-color 0.2s;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.showcase-btn:hover {
  background: rgba(15, 23, 42, 0.92);
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 16px 36px rgba(0,0,0,0.6);
}

.showcase-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.showcase-sub {
  font-size: 0.95rem;
  max-width: 540px;
  opacity: 0.88;
}

.showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4ade80;
}

/* 상태 LED 색상 */
.badge-dot.green  { background: #22c55e; } /* 서비스 중 */
.badge-dot.red    { background: #ef4444; } /* 서비스 종료 */
.badge-dot.yellow { background: #facc15; } /* 개발중 */

/* ---------- 프로젝트 리스트 (오른쪽 패널) ---------- */
.projects-panel {
  border-radius: 24px;
  padding: 20px 18px;
  background: radial-gradient(circle at top, #111827, #020617);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.projects-title { font-size: 1rem; font-weight: 600; }
.projects-filter { font-size: 0.8rem; opacity: 0.7; }

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.project-item {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s, transform 0.12s, border-color 0.15s, box-shadow 0.15s;
}

.project-item:hover {
  background: rgba(30, 64, 175, 0.7);
  border-color: rgba(191, 219, 254, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
}

.project-item.active {
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  border-color: rgba(248, 250, 252, 0.9);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.7);
}

.project-title { font-size: 0.95rem; font-weight: 650; }

.project-meta {
  font-size: 0.78rem;
  opacity: 0.85;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

footer {
  padding: 14px 20px 20px;
  font-size: 0.75rem;
  text-align: center;
  color: #9ca3af;
  opacity: 0.8;
}

/* =========================
   추가 UI: Highlights / Details / Chips
   ========================= */

.section { margin-top: 18px; }

.section-title {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-body {
  font-size: 0.86rem;
  opacity: 0.9;
  line-height: 1.35;
}

/* details (접기/펼치기) */
.details {
  margin-top: 16px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.details-summary {
  cursor: pointer;
  padding: 12px 12px;
  list-style: none;
  font-weight: 650;
  font-size: 0.92rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.details-summary::-webkit-details-marker { display: none; }

.details-hint {
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.82rem;
}

.details-body {
  padding: 12px 12px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.box {
  border-radius: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.box-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* 불릿 리스트 */
.bullets {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.92;
  font-size: 0.88rem;
  line-height: 1.35;
}

/* 기술 칩 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* showcase badge 안에 작은 글씨 */
.badge-sub {
  font-size: 0.72rem;
  opacity: 0.75;
}

/* 프로젝트 리스트에 회사/재직기간 라인 */
.project-company {
  font-size: 0.75rem;
  opacity: 0.78;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================
   회사 카테고리 섹션 (프로젝트 리스트)
   ========================= */
.company-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-section + .company-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.company-title {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.9;
  padding: 0 4px;
}

.company-subtitle {
  font-size: 0.75rem;
  opacity: 0.65;
  padding: 0 4px;
  margin-top: -6px;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.contact-label {
  min-width: 56px;
  font-weight: 600;
  opacity: 0.85;
}

.contact-value a {
  color: inherit;
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* =========================
   Contact (레이아웃 보정 + 카드화)
   ========================= */
.contact-section {
  width: 100%;
  max-width: 1200px;     /* main/content와 동일한 폭 */
  margin: 0 auto;        /* 가운데 정렬 */
  padding: 0 16px 28px;  /* 좌우 여백 + 아래 여백 */
}

.contact-card {
  border-radius: 24px;
  padding: 18px 18px;
  background: radial-gradient(circle at top, #111827, #020617);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.contact-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0.95;
}

