/* ===========================================================================
   Dounselor Portfolio — Apple-inspired light + refined dark
   =========================================================================== */

:root {
  /* Dark (default) */
  --bg:        #07090f;
  --bg2:       #0f1218;
  --bg3:       #181d27;
  --border:    #252b38;
  --border-strong: #353c4d;
  --text:      #f5f7fb;
  --text2:     #e2eaf6;
  --muted:     #8a96a8;
  --accent:    #38bdf8;
  --accent2:   #7dd3fc;
  --green:     #4ade80;
  --orange:    #fb923c;
  --purple:    #c084fc;
  --pink:      #f472b6;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow:    0 12px 40px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.6);

  /* tag colors used in both themes */
  --tag-infra-bg:   rgba(74,222,128,0.12);
  --tag-infra-bd:   rgba(74,222,128,0.35);
  --tag-infra-fg:   #4ade80;
  --tag-dev-bg:     rgba(56,189,248,0.12);
  --tag-dev-bd:     rgba(56,189,248,0.35);
  --tag-dev-fg:     #38bdf8;
  --tag-mobile-bg:  rgba(192,132,252,0.12);
  --tag-mobile-bd:  rgba(192,132,252,0.35);
  --tag-mobile-fg:  #c084fc;
  --tag-ai-bg:      rgba(251,146,60,0.12);
  --tag-ai-bd:      rgba(251,146,60,0.35);
  --tag-ai-fg:      #fb923c;
  --tag-award-bg:   rgba(244,114,182,0.12);
  --tag-award-bd:   rgba(244,114,182,0.4);
  --tag-award-fg:   #f472b6;
}

/* ── LIGHT — Warm cream (Anthropic/Substack-inspired) ────────────────────── */
[data-theme="light"] {
  --bg:        #faf6ed;       /* warm cream */
  --bg2:       #fffdf7;       /* off-white card (slightly warm) */
  --bg3:       #f3ecd9;       /* deeper cream — chips/dividers */
  --border:    #e7dfc9;       /* warm tan border */
  --border-strong: #d4c8a8;
  --text:      #1c1917;       /* warm near-black (stone-900) */
  --text2:     #292524;
  --muted:     #78716c;       /* stone-500 */
  --accent:    #0058b8;       /* deeper blue — sits better on cream */
  --accent2:   #003e85;
  --green:     #15803d;
  --orange:    #c2410c;       /* warm orange */
  --purple:    #7e22ce;
  --pink:      #be185d;

  /* warm-tinted shadows for cohesion with cream */
  --shadow-sm: 0 1px 4px rgba(70,55,20,0.05), 0 1px 2px rgba(70,55,20,0.04);
  --shadow:    0 6px 24px rgba(70,55,20,0.08), 0 2px 6px rgba(70,55,20,0.05);
  --shadow-lg: 0 24px 64px rgba(70,55,20,0.12), 0 8px 20px rgba(70,55,20,0.06);

  --tag-infra-bg:   #d1fae5;
  --tag-infra-bd:   #6ee7b7;
  --tag-infra-fg:   #047857;
  --tag-dev-bg:     #dbeafe;
  --tag-dev-bd:     #93c5fd;
  --tag-dev-fg:     #1e40af;
  --tag-mobile-bg:  #e9d5ff;
  --tag-mobile-bd:  #c4b5fd;
  --tag-mobile-fg:  #6b21a8;
  --tag-ai-bg:      #fed7aa;
  --tag-ai-bd:      #fdba74;
  --tag-ai-fg:      #9a3412;
  --tag-award-bg:   #fce7f3;
  --tag-award-bd:   #f9a8d4;
  --tag-award-fg:   #9d174d;
}

/* ── BASE ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro', 'Segoe UI', 'Inter', 'Noto Sans KR', sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--accent2); }

.container { max-width: 1040px; margin: 0 auto; padding: 0 32px; }

::selection { background: var(--accent); color: #fff; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,9,15,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: background 0.4s ease, border-color 0.4s ease;
}
[data-theme="light"] nav { background: rgba(250,246,237,0.82); }

nav .inner {
  max-width: 1040px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand {
  font-weight: 700; font-size: 1rem; color: var(--text);
  letter-spacing: 1.5px;
}
.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links a {
  font-size: 0.88rem; color: var(--muted); font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; left: 0; }

/* theme toggle */
.theme-toggle {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px;
  cursor: pointer; font-size: 0.82rem; font-weight: 500;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.2s, color 0.2s, background 0.3s, transform 0.15s;
  user-select: none; white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle .toggle-icon { font-size: 0.95rem; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
header {
  padding: 140px 0 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,   rgba(56,189,248,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 80%,  rgba(192,132,252,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 15% 70%,  rgba(244,114,182,0.08) 0%, transparent 60%);
  pointer-events: none;
}
[data-theme="light"] header::before {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,  rgba(0,88,184,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 45% at 85% 80%, rgba(126,34,206,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 60%, rgba(190,24,93,0.05) 0%, transparent 60%);
}

.hero-label {
  display: inline-block;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--tag-dev-bd);
  background: var(--tag-dev-bg);
  padding: 5px 16px; border-radius: 999px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease-out 0.05s both;
}

.hero-name {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 55%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 28px rgba(56,189,248,0.25));
  animation: fadeUp 0.7s ease-out 0.15s both;
}
[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 55%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(0,88,184,0.15));
}

.hero-meaning {
  font-size: 0.95rem; color: var(--muted);
  margin-bottom: 12px; letter-spacing: 0.4px;
  animation: fadeUp 0.7s ease-out 0.25s both;
}
.hero-meaning span { color: var(--accent); font-weight: 600; }

.hero-realname {
  font-size: 0.88rem; color: var(--muted);
  margin-bottom: 24px; letter-spacing: 1.5px;
  animation: fadeUp 0.7s ease-out 0.3s both;
}

.hero-tagline {
  max-width: 520px; margin: 0 auto 28px;
  font-size: 1.12rem; color: var(--text2);
  line-height: 1.55; font-weight: 400;
  animation: fadeUp 0.7s ease-out 0.35s both;
}

.hero-role {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 11px 22px; border-radius: 999px;
  font-size: 0.92rem; color: var(--text); font-weight: 500;
  margin-bottom: 36px;
  animation: fadeUp 0.7s ease-out 0.4s both;
}
.hero-role .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTION ─────────────────────────────────────────────────────────────── */
section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.section-header {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 44px;
}
.section-header h2 {
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-header::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, var(--border-strong), transparent);
}

/* ── ABOUT ───────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s, border-color 0.3s;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.about-card h3 {
  font-size: 0.74rem; color: var(--accent);
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 700;
}
.about-card p, .about-card li {
  font-size: 0.95rem; color: var(--muted); line-height: 1.75;
}
.about-card ul { padding-left: 0; list-style: none; }
.about-card li {
  position: relative; padding-left: 20px; margin-bottom: 6px;
}
.about-card li::before {
  content: ''; position: absolute; left: 0; top: 0.7em;
  width: 12px; height: 1.5px; background: var(--accent);
}

/* ── SKILLS ──────────────────────────────────────────────────────────────── */
.skill-group { margin-bottom: 28px; }
.skill-group-label {
  font-size: 0.74rem; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 7px 16px; border-radius: 999px;
  font-size: 0.83rem; font-weight: 500;
  border: 1px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tag:hover { transform: translateY(-2px); }

.tag.infra  { background: var(--tag-infra-bg);  border-color: var(--tag-infra-bd);  color: var(--tag-infra-fg); }
.tag.dev    { background: var(--tag-dev-bg);    border-color: var(--tag-dev-bd);    color: var(--tag-dev-fg); }
.tag.mobile { background: var(--tag-mobile-bg); border-color: var(--tag-mobile-bd); color: var(--tag-mobile-fg); }
.tag.ai     { background: var(--tag-ai-bg);     border-color: var(--tag-ai-bd);     color: var(--tag-ai-fg); }

/* ── PROJECTS ────────────────────────────────────────────────────────────── */
.project-list { display: flex; flex-direction: column; gap: 18px; }
details {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(.2,.7,.3,1),
    box-shadow 0.3s,
    border-color 0.25s;
}
details:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
details[open] {
  transform: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

summary {
  padding: 26px 30px;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: flex-start; gap: 18px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; }

.proj-period {
  font-size: 0.74rem; color: var(--muted); font-weight: 500;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
  white-space: nowrap; flex-shrink: 0; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.proj-main { flex: 1; min-width: 0; }
.proj-title {
  font-size: 1.08rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.3px;
}
.proj-sub {
  font-size: 0.88rem; color: var(--muted); margin-top: 6px; line-height: 1.5;
}
.proj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.chip {
  font-size: 0.72rem; font-weight: 500;
  padding: 3px 11px; border-radius: 999px;
  background: var(--tag-dev-bg); color: var(--tag-dev-fg);
  border: 1px solid var(--tag-dev-bd);
}
.chip.dev    { background: var(--tag-dev-bg);    color: var(--tag-dev-fg);    border-color: var(--tag-dev-bd); }
.chip.infra  { background: var(--tag-infra-bg);  color: var(--tag-infra-fg);  border-color: var(--tag-infra-bd); }
.chip.mobile { background: var(--tag-mobile-bg); color: var(--tag-mobile-fg); border-color: var(--tag-mobile-bd); }
.chip.ai     { background: var(--tag-ai-bg);     color: var(--tag-ai-fg);     border-color: var(--tag-ai-bd); }
.chip.award  { background: var(--tag-award-bg);  color: var(--tag-award-fg);  border-color: var(--tag-award-bd); }

.arrow {
  color: var(--muted); font-size: 0.75rem;
  flex-shrink: 0; padding-top: 6px;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), color 0.2s;
}
details:hover .arrow { color: var(--accent); }
details[open] .arrow { transform: rotate(90deg); color: var(--accent); }

/* ── DETAIL ──────────────────────────────────────────────────────────────── */
.detail { padding: 0 30px 30px; border-top: 1px solid var(--border); }
.dl-section { padding-top: 26px; }
.dl-section h4 {
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--accent), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dl-section p, .dl-section li {
  font-size: 0.93rem; color: var(--muted); line-height: 1.78;
}
.dl-section ul { padding-left: 18px; }
.dl-section li { margin-bottom: 4px; }

/* video embed */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 12px; overflow: hidden; background: var(--bg3);
  border: 1px solid var(--border);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-size: 0.88rem; text-align: center;
}
.video-placeholder .play-icon { font-size: 2.5rem; opacity: 0.3; }

/* members */
.member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.member-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.member-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.member-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.member-role { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.me {
  color: var(--accent); font-size: 0.7rem; font-weight: 700;
  margin-left: 6px; letter-spacing: 0.5px; text-transform: uppercase;
}

/* ── CONTACT ─────────────────────────────────────────────────────────────── */
.contact-row { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--bg2); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem; color: var(--text); font-weight: 500;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.contact-btn:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.contact-btn .ci { font-size: 1.1rem; }

/* ── FLOATING CLAUDE BADGE ───────────────────────────────────────────────── */
.float-badge {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 260px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.float-badge:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.float-badge-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; cursor: pointer;
  font-size: 0.83rem; font-weight: 600; color: var(--accent);
  user-select: none;
}
.float-badge-toggle {
  margin-left: auto; font-size: 0.7rem; color: var(--muted);
  transition: transform 0.25s;
}
.float-badge.expanded .float-badge-toggle { transform: rotate(180deg); }
.float-badge-body {
  max-height: 0; overflow: hidden;
  font-size: 0.8rem; color: var(--muted); line-height: 1.65;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 16px;
}
.float-badge.expanded .float-badge-body {
  max-height: 140px;
  padding: 0 16px 14px;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  text-align: center; padding: 48px 32px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media(max-width: 720px) {
  .container, nav .inner { padding: 0 20px; }

  header  { padding: 80px 0 60px; }
  section { padding: 64px 0; }

  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.78rem; }
  .nav-brand  { font-size: 0.9rem; letter-spacing: 1px; }
  .theme-toggle { padding: 5px 10px; font-size: 0.74rem; }

  .hero-label   { font-size: 0.66rem; letter-spacing: 2px; padding: 4px 12px; }
  .hero-name    { letter-spacing: -1.5px; margin-bottom: 16px; }
  .hero-tagline { font-size: 0.96rem; margin-bottom: 22px; }
  .hero-role    {
    font-size: 0.82rem; padding: 9px 16px;
    text-align: left; max-width: 100%;
    white-space: normal; word-break: keep-all;
  }

  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-card { padding: 24px 22px; }

  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: 0.85rem; letter-spacing: 2.5px; }

  summary {
    padding: 18px 20px; gap: 10px;
    flex-wrap: wrap;
  }
  .proj-period {
    font-size: 0.68rem; padding: 3px 9px;
    order: -1; flex-basis: 100%; width: fit-content;
  }
  .proj-title { font-size: 0.96rem; }
  .proj-sub   { font-size: 0.8rem; }
  .proj-chips { gap: 5px; margin-top: 10px; }
  .chip       { font-size: 0.68rem; padding: 2px 9px; }
  .arrow      { display: none; }

  .detail     { padding: 0 20px 22px; }
  .dl-section { padding-top: 18px; }

  .member-grid { grid-template-columns: 1fr 1fr; }
  .member-name { font-size: 0.84rem; }
  .member-role { font-size: 0.75rem; }

  .float-badge {
    width: calc(100% - 32px);
    right: 16px; left: 16px; bottom: 16px;
  }
  .contact-btn { width: 100%; justify-content: center; }
}

@media(max-width: 400px) {
  .nav-links a { font-size: 0.72rem; }
  .nav-links   { gap: 10px; }
  .nav-brand   { font-size: 0.85rem; }
  .member-grid { grid-template-columns: 1fr; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================================
   LIGHT — IMPACT OVERRIDES (라이트 전용 강조 레이어)
   다크는 건드리지 않음. 모든 셀렉터에 [data-theme="light"] prefix.
   =========================================================================== */

/* section 카운터 — body에서 reset, section에서 increment.
   다크에선 ::before가 없으므로 표시 안 됨. */
body  { counter-reset: section-num 0; }
section { counter-increment: section-num; }

/* === 0. 전체 페이지 ambient 파스텔 (라이트 전용) ====================== */
/* hero 수준의 진한 ambient를 전체 viewport에 깔아 hero와 below 사이
   이질감 제거. background-attachment: fixed로 스크롤해도 ambient 유지.
   카드는 솔리드 var(--bg2) 라 가독성 영향 없음. */
[data-theme="light"] body {
  background:
    radial-gradient(ellipse 65% 45% at 10% 8%,   rgba(0,88,184,0.18)   0%, transparent 58%),
    radial-gradient(ellipse 60% 45% at 92% 22%,  rgba(126,34,206,0.16) 0%, transparent 58%),
    radial-gradient(ellipse 55% 40% at 18% 48%,  rgba(194,65,12,0.13)  0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 88% 60%,  rgba(0,88,184,0.14)   0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 25% 82%,  rgba(126,34,206,0.13) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 85% 95%,  rgba(194,65,12,0.11)  0%, transparent 58%),
    var(--bg);
  background-attachment: fixed;
}

/* === 1. Hero — 더 큰·진한 그라데이션 블롭 + 느린 드리프트 ============== */
[data-theme="light"] header {
  padding: 160px 0 130px;
}
[data-theme="light"] header::before {
  background:
    radial-gradient(circle 800px at 50% -8%,  rgba(0,88,184,0.10)   0%, transparent 55%),
    radial-gradient(circle 700px at 88% 70%,  rgba(126,34,206,0.09) 0%, transparent 55%),
    radial-gradient(circle 520px at 8% 65%,   rgba(194,65,12,0.07)  0%, transparent 55%);
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
}

/* hero label — 그라데이션 배경 + 컬러 shadow */
[data-theme="light"] .hero-label {
  background: linear-gradient(135deg, rgba(0,88,184,0.10), rgba(126,34,206,0.10));
  border: 1px solid rgba(0,88,184,0.28);
  color: var(--accent);
  box-shadow:
    0 6px 20px rgba(0,88,184,0.12),
    0 2px 6px  rgba(126,34,206,0.06);
  font-weight: 700;
}

/* hero name — 더 강한 drop-shadow */
[data-theme="light"] .hero-name {
  filter: drop-shadow(0 6px 28px rgba(0,88,184,0.20))
          drop-shadow(0 12px 40px rgba(126,34,206,0.08));
}

/* hero role — 그라데이션 좌측 액센트 바 */
[data-theme="light"] .hero-role {
  position: relative;
  padding-left: 26px;
  box-shadow: 0 8px 28px rgba(0,88,184,0.10), 0 2px 6px rgba(70,55,20,0.05);
}
[data-theme="light"] .hero-role::before {
  content: '';
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--purple));
}

/* === 2. Section 헤더 — 큰 숫자 인디케이터 (01, 02, …) ============== */
[data-theme="light"] .section-header {
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
}
[data-theme="light"] .section-header::before {
  content: counter(section-num, decimal-leading-zero);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 55%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 16px rgba(0,88,184,0.18));
}
[data-theme="light"] .section-header h2 {
  font-size: 1.05rem;
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .section-header::after {
  background: linear-gradient(to right, var(--accent), transparent 80%);
  opacity: 0.4;
}

/* === 3. About cards — 상단 그라데이션 stripe (호버 시 등장) =========== */
[data-theme="light"] .about-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg2) 0%, #fbf5e6 100%);
  overflow: hidden;
}
[data-theme="light"] .about-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--orange));
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.3,1);
}
[data-theme="light"] .about-card:hover::before {
  opacity: 1;
  transform: translateX(0);
}
[data-theme="light"] .about-card:hover {
  box-shadow:
    0 12px 40px rgba(0,88,184,0.10),
    0 4px 12px rgba(126,34,206,0.06),
    0 2px 6px rgba(70,55,20,0.04);
}

/* about 카드 h3 — 더 강조 */
[data-theme="light"] .about-card h3 {
  background: linear-gradient(90deg, var(--accent), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* === 4. Project cards — 상단 그라데이션 stripe ======================= */
[data-theme="light"] details {
  position: relative;
}
[data-theme="light"] details::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--orange));
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.3,1);
  z-index: 1;
}
[data-theme="light"] details:hover::before,
[data-theme="light"] details[open]::before {
  opacity: 1;
  transform: translateX(0);
}
[data-theme="light"] details:hover {
  box-shadow:
    0 12px 40px rgba(0,88,184,0.10),
    0 4px 12px rgba(126,34,206,0.06),
    0 2px 6px rgba(70,55,20,0.04);
}
[data-theme="light"] details[open] {
  box-shadow:
    0 20px 60px rgba(0,88,184,0.12),
    0 8px 24px rgba(126,34,206,0.08),
    0 4px 12px rgba(70,55,20,0.05);
}

/* project title hover — accent로 변색 */
[data-theme="light"] details:hover .proj-title,
[data-theme="light"] details[open] .proj-title {
  color: var(--accent);
}

/* === 5. Skill 카테고리 라벨 — 그라데이션 dot 추가 ==================== */
[data-theme="light"] .skill-group-label {
  display: flex; align-items: center; gap: 10px;
}
[data-theme="light"] .skill-group-label::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  box-shadow: 0 0 8px rgba(0,88,184,0.4);
}

/* === 5.5. Nav underline — 라이트 모드 그라데이션 (블루→퍼플→오렌지) === */
[data-theme="light"] .nav-links a::after {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--orange));
}
[data-theme="light"] .nav-links a:hover { color: var(--accent); }

/* === 6. Theme toggle — 더 미려한 라이트 모드 버튼 =================== */
[data-theme="light"] .theme-toggle {
  background: linear-gradient(135deg, var(--bg2), #f3ecd9);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .theme-toggle:hover {
  background: linear-gradient(135deg, rgba(0,88,184,0.06), rgba(126,34,206,0.06));
  box-shadow: 0 4px 12px rgba(0,88,184,0.10);
}

/* === 7. Contact 버튼 — 라이트에서 그라데이션 호버 ==================== */
[data-theme="light"] .contact-btn:hover {
  background: linear-gradient(135deg, rgba(0,88,184,0.06), rgba(126,34,206,0.06));
}

/* === 8. Floating badge — 라이트에서 그라데이션 보더 ================== */
/* NOTE: position: fixed는 base 규칙에서 적용됨. 여기서 재선언 X (이전에
   position: relative로 덮어서 라이트에서 fixed 깨졌던 버그 수정). */
[data-theme="light"] .float-badge {
  background: linear-gradient(180deg, var(--bg2), #fbf5e6);
}
[data-theme="light"] .float-badge::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), var(--purple), var(--orange));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
[data-theme="light"] .float-badge:hover::before { opacity: 1; }

/* === 9. 라이트 모드 모바일 조정 ====================================== */
@media (max-width: 720px) {
  [data-theme="light"] header { padding: 96px 0 72px; }
  [data-theme="light"] .section-header { gap: 12px; margin-bottom: 36px; }
  [data-theme="light"] .section-header::before { font-size: 2rem; letter-spacing: -2px; }
}
