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

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
  --bg:       #04060f;
  --bg2:      #080d1a;
  --bg3:      #0d1426;
  --border:   #0ff2;
  --accent:   #00f0ff;
  --accent2:  #ff2d78;
  --accent3:  #b400ff;
  --text:     #cfe8ff;
  --text-muted: #4a7a99;
  --success:  #00ff9f;
  --danger:   #ff2d78;
  --warning:  #ffe600;
  --radius:   4px;
  --glow:     0 0 12px #00f0ff66, 0 0 32px #00f0ff22;
  --glow2:    0 0 12px #ff2d7866, 0 0 32px #ff2d7822;
  --shadow:   0 4px 40px rgba(0,0,0,0.7);
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nanum Gothic', 'Malgun Gothic', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  background-image:
    linear-gradient(rgba(0,240,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

a { color: inherit; text-decoration: none; }

/* ── 스캔라인 오버레이 ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── 헤더 ── */
.site-header {
  background: rgba(4,6,15,0.85);
  border-bottom: 1px solid var(--accent);
  box-shadow: 0 0 20px #00f0ff33;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  text-shadow: var(--glow);
  letter-spacing: 0.1em;
}


/* ── 히어로 ── */
.hero {
  text-align: center;
  padding: 70px 2rem 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,240,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(180,0,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--accent);
  text-shadow: var(--glow);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  font-family: var(--font-mono);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat { text-align: center; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--accent2);
  text-shadow: var(--glow2);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── 히어로 이미지 ── */
.hero-image-wrap {
  margin: 0 auto 2rem;
  max-width: 860px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--accent);
  box-shadow: var(--glow), var(--shadow);
  position: relative;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.95);
}

/* 스캔라인 흐르기 */
@keyframes scanline-move {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.hero-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.hero-scanline::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 240, 255, 0.06) 40%,
    rgba(0, 240, 255, 0.12) 50%,
    rgba(0, 240, 255, 0.06) 60%,
    transparent 100%
  );
  animation: scanline-move 3s linear infinite;
}

.hero-scanline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.12) 3px,
    rgba(0, 0, 0, 0.12) 4px
  );
}

/* 코너 마커 */
.hero-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.hero-corner {
  position: absolute;
  width: 16px;
  height: 16px;
}

.hero-corner::before,
.hero-corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent);
}

.hero-corner::before { width: 100%; height: 2px; top: 0; left: 0; }
.hero-corner::after  { width: 2px; height: 100%; top: 0; left: 0; }

.hero-corner.tl { top: 8px;  left: 8px; }
.hero-corner.tr { top: 8px;  right: 8px; transform: scaleX(-1); }
.hero-corner.bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.hero-corner.br { bottom: 8px; right: 8px; transform: scale(-1); }

/* 코너 점멸 */
@keyframes corner-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.hero-corner.tl { animation: corner-blink 1.8s ease-in-out infinite; }
.hero-corner.tr { animation: corner-blink 1.8s ease-in-out infinite 0.45s; }
.hero-corner.bl { animation: corner-blink 1.8s ease-in-out infinite 0.9s; }
.hero-corner.br { animation: corner-blink 1.8s ease-in-out infinite 1.35s; }

/* 테두리 펄스 */
@keyframes hero-border-pulse {
  0%, 100% { box-shadow: var(--glow), var(--shadow); }
  50%       { box-shadow: 0 0 24px #00f0ffaa, 0 0 60px #00f0ff33, var(--shadow); }
}

.hero-image-wrap {
  animation: hero-border-pulse 3s ease-in-out infinite;
}

/* ── 카드 그리드 ── */
.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* ── 카드 ── */
/* wrapper: perspective + 틸트 transform 담당. clip-path/overflow 없음 */
.card-wrap {
  perspective: 700px;
  cursor: default;
}

.card {
  background: var(--bg2);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.08s linear;
  height: 100%;
  transform-origin: center center;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.5;
  z-index: 1;
}

.card-wrap:hover .card {
  border-color: var(--accent);
  box-shadow: var(--glow), var(--shadow);
}

.card-thumbnail {
  width: 100%;
  height: 140px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.card-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg2) 100%);
  pointer-events: none;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.9);
}

.card-body { padding: 0.9rem; flex: 1; display: flex; flex-direction: column; }

.card-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--accent);
  text-shadow: 0 0 8px #00f0ff55;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }

.tech-badge {
  background: rgba(0,240,255,0.05);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 2px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  transition: all 0.2s;
  text-shadow: 0 0 6px #00f0ff44;
}
.card-link:hover {
  background: rgba(0,240,255,0.1);
  box-shadow: var(--glow);
  color: #fff;
}

/* ── 빈 상태 ── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ── 관리자 로그인 ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0,240,255,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(180,0,255,0.06) 0%, transparent 55%);
}

.login-card {
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--glow), var(--shadow);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.login-title {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  text-shadow: var(--glow);
  margin-bottom: 0.3rem;
  letter-spacing: 0.06em;
}

.login-sub {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
}

/* ── 폼 공통 ── */
.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  background: var(--bg3);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,240,255,0.1);
}
.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { resize: vertical; min-height: 90px; }

/* ── 버튼 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-shadow: 0 0 6px #00f0ff44;
}
.btn-primary:hover {
  background: rgba(0,240,255,0.12);
  box-shadow: var(--glow);
  color: #fff;
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(255,45,120,0.12);
  box-shadow: var(--glow2);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(0,240,255,0.15);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,240,255,0.08);
}

.btn-full { width: 100%; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.75rem; }

/* ── 알럿 ── */
.alert {
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.alert-error {
  background: rgba(255,45,120,0.08);
  color: var(--danger);
  border: 1px solid rgba(255,45,120,0.3);
}
.alert-success {
  background: rgba(0,255,159,0.08);
  color: var(--success);
  border: 1px solid rgba(0,255,159,0.3);
}
.hidden { display: none !important; }

/* ── 관리자 레이아웃 ── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--bg2);
  border-right: 1px solid rgba(0,240,255,0.2);
  box-shadow: 4px 0 20px rgba(0,240,255,0.05);
  padding: 1.5rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  text-shadow: var(--glow);
  margin-bottom: 0.2rem;
  letter-spacing: 0.08em;
}

.sidebar-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-menu { list-style: none; flex: 1; }
.sidebar-menu li { margin-bottom: 0.3rem; }

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  border-color: rgba(0,240,255,0.2);
  background: rgba(0,240,255,0.05);
  color: var(--accent);
  text-shadow: 0 0 6px #00f0ff44;
}

.sidebar-bottom { margin-top: auto; }

.admin-main {
  margin-left: 240px;
  flex: 1;
  padding: 2rem;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,240,255,0.1);
}

.admin-topbar h1 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  text-shadow: var(--glow);
  letter-spacing: 0.06em;
}

/* ── 관리자 프로젝트 목록 ── */
.project-list { display: flex; flex-direction: column; gap: 1rem; }

.project-item {
  background: var(--bg2);
  border: 1px solid rgba(0,240,255,0.15);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.project-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,240,255,0.08);
}

.project-item-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--bg3);
  border: 1px solid rgba(0,240,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
}
.project-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.project-item-info { flex: 1; }
.project-item-name {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}
.project-item-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent2);
  margin-bottom: 0.35rem;
}
.project-item-desc { font-size: 0.82rem; color: var(--text-muted); }

.project-item-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ── 모달 ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--glow), var(--shadow);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,240,255,0.15);
}

.modal-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
  text-shadow: var(--glow);
  letter-spacing: 0.06em;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--danger); }

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,240,255,0.1);
}

/* ── 통계 카드 ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  box-shadow: var(--glow);
}

.stat-card-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent);
  text-shadow: var(--glow);
}
.stat-card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── 히어로 설정 카드 ── */
.hero-setting-card {
  background: var(--bg2);
  border: 1px solid rgba(0,240,255,0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-setting-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  box-shadow: var(--glow);
}

.hero-setting-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--accent);
  text-shadow: var(--glow);
  margin-bottom: 0.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-setting-desc {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── 파티클 캔버스 ── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* 파티클 캔버스 위 모든 콘텐츠는 z-index 올려줌 */
.site-header { z-index: 100; }
.hero { position: relative; z-index: 1; }
.site-footer { position: relative; z-index: 1; }
/* projects-grid는 position/z-index 없음 — 3D transform context 보존 */

/* ── 글리치 애니메이션 ── */
@keyframes glitch-clip1 {
  0%   { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  20%  { clip-path: inset(55% 0 10% 0); transform: translate(3px, 0); }
  40%  { clip-path: inset(10% 0 75% 0); transform: translate(-2px, 0); }
  60%  { clip-path: inset(70% 0 5%  0); transform: translate(2px, 0); }
  80%  { clip-path: inset(40% 0 30% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(20% 0 60% 0); transform: translate(0, 0); }
}

@keyframes glitch-clip2 {
  0%   { clip-path: inset(60% 0 15% 0); transform: translate(3px, 0); color: var(--accent2); }
  25%  { clip-path: inset(15% 0 55% 0); transform: translate(-3px, 0); color: var(--accent3); }
  50%  { clip-path: inset(80% 0 5%  0); transform: translate(2px, 0); color: var(--accent2); }
  75%  { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 0); color: var(--accent3); }
  100% { clip-path: inset(60% 0 15% 0); transform: translate(3px, 0); color: var(--accent2); }
}

.logo-glitch { position: relative; display: inline-block; }

.logo-glitch::before,
.logo-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.logo-glitch.glitching::before {
  opacity: 0.85;
  animation: glitch-clip1 0.15s steps(1) infinite;
  color: var(--accent2);
}

.logo-glitch.glitching::after {
  opacity: 0.85;
  animation: glitch-clip2 0.15s steps(1) infinite;
  color: var(--accent3);
}

/* ── 타이핑 커서 (로고) ── */
#glitch-logo::after {
  content: '▌';
  color: var(--accent);
  animation: blink-cursor 0.7s step-end infinite;
  margin-left: 1px;
  font-size: 0.9em;
}

#glitch-logo.typed::after {
  display: none;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── 헤더 보더 펄스 ── */
@keyframes header-pulse {
  0%, 100% { box-shadow: 0 0 20px #00f0ff33; }
  50%      { box-shadow: 0 0 40px #00f0ff88, 0 0 80px #00f0ff22; }
}
.site-header { animation: header-pulse 3s ease-in-out infinite; }

/* ── 카드 3D 틸트 (card-wrap이 담당) ── */

/* ── 카드 썸네일 링크 & 오버레이 ── */
.card-thumb-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,240,255,0.18);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}

.card-thumb-link:hover .card-thumb-overlay {
  opacity: 1;
}

.card-thumb-overlay-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fff;
  letter-spacing: 0.1em;
  text-shadow: 0 0 12px #00f0ff, 0 0 24px #00f0ff88;
  border: 1px solid rgba(0,240,255,0.6);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.4);
}

/* ── 카드 이니셜 (썸네일 없을 때) ── */
.card-initials {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--accent);
  text-shadow: var(--glow);
  letter-spacing: 0.08em;
  user-select: none;
  position: relative;
  z-index: 1;
}

/* ── 카드 페이드인 애니메이션 ── */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-fadein {
  animation: cardFadeIn 0.45s ease both;
}

/* ── 푸터 ── */
.site-footer {
  border-top: 1px solid rgba(0,240,255,0.1);
  padding: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.site-footer a {
  color: var(--accent);
  text-shadow: 0 0 6px #00f0ff44;
  transition: text-shadow 0.2s;
}
.site-footer a:hover {
  text-shadow: var(--glow);
}

/* ── 헤더 관리자 링크 ── */
.header-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(74,122,153,0.5);
  letter-spacing: 0.08em;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.5;
}
.header-nav a:hover {
  color: var(--accent);
  text-shadow: var(--glow);
  opacity: 1;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-item { flex-direction: column; }
}
