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

:root {
  --bg:        #07000f;
  --bg-2:      #0f0020;
  --glass:     rgba(255,255,255,0.045);
  --glass-2:   rgba(255,255,255,0.07);
  --border:    rgba(192,132,252,0.15);
  --border-2:  rgba(192,132,252,0.25);

  --text:      #f0e8ff;
  --text-2:    rgba(212,170,255,0.7);
  --text-3:    rgba(192,132,252,0.5);

  --accent:    #d8b4fe;       /* light purple */
  --accent-2:  #a855f7;       /* medium purple */
  --accent-3:  #7c3aed;       /* dark purple */

  --grad-text: linear-gradient(135deg, #e9d5ff 0%, #c084fc 50%, #a78bfa 100%);
  --grad-hero: linear-gradient(150deg, #0d0026 0%, #1c0048 45%, #2a0862 75%, #160035 100%);
  --grad-card: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(168,85,247,0.06) 100%);
  --grad-accent: linear-gradient(135deg, #7c3aed, #c084fc);

  --font: 'Noto Serif KR', 'Georgia', serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(124,58,237,0.15);
  --shadow-lg: 0 8px 40px rgba(124,58,237,0.25);
  --t: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--t); }
a:hover { opacity: 0.7; }
img { max-width: 100%; display: block; }

/* ==========================================
   Keyframes
   ========================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(168,85,247,0.5), 0 0 0 6px rgba(124,58,237,0.2); }
  70%  { box-shadow: 0 0 0 16px rgba(168,85,247,0), 0 0 0 6px rgba(124,58,237,0.2); }
  100% { box-shadow: 0 0 0 0 rgba(168,85,247,0),  0 0 0 6px rgba(124,58,237,0.2); }
}
@keyframes gradMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}
@keyframes orb {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.3; }
  33%       { transform: scale(1.15) translate(12px, -8px); opacity: 0.5; }
  66%       { transform: scale(0.9) translate(-8px, 12px); opacity: 0.35; }
}

/* ==========================================
   Layout
   ========================================== */
.container { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ==========================================
   Hero
   ========================================== */
.hero {
  background: var(--grad-hero);
  background-size: 300% 300%;
  animation: gradMove 12s ease infinite;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.28) 0%, transparent 65%);
  top: -160px; right: -120px;
  animation: orb 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(124,58,237,0.22) 0%, transparent 65%);
  bottom: -100px; left: -80px;
  animation: orb 11s ease-in-out infinite reverse;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.profile-photo {
  flex-shrink: 0;
  width: 132px; height: 132px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(212,170,255,0.4);
  animation: float 5s ease-in-out infinite, pulse 3s ease-out infinite;
  position: relative;
}
.profile-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.photo-placeholder {
  font-size: 12px; color: var(--text-3); font-weight: 500;
}
.profile-photo img:not([src=""]) ~ .photo-placeholder { display: none; }

.hero-label {
  font-size: 12px; letter-spacing: 2px; color: var(--text-3);
  text-transform: uppercase; margin-bottom: 10px;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero-name {
  font-size: 46px; font-weight: 700;
  letter-spacing: 5px; line-height: 1.15;
  color: #fff; margin-bottom: 12px;
  animation: fadeUp 0.7s ease 0.22s both;
}
.hero-title {
  font-size: 15px; font-weight: 400;
  background: var(--grad-text);
  background-size: 200% auto;
  animation: fadeUp 0.7s ease 0.36s both, shimmer 4s linear 1s infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  display: inline-block;
}
.hero-bio {
  font-size: 14px; color: rgba(240,232,255,0.6);
  line-height: 1.85; max-width: 450px;
  margin-bottom: 26px;
  animation: fadeUp 0.7s ease 0.5s both;
}
.hero-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  animation: fadeUp 0.7s ease 0.64s both;
}
.link-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(212,170,255,0.25);
  border-radius: 100px; font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: all var(--t);
  backdrop-filter: blur(8px);
  font-family: var(--font);
}
.link-chip:hover {
  background: rgba(124,58,237,0.4);
  border-color: var(--accent-2);
  color: #fff; opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(124,58,237,0.4);
}

/* ==========================================
   Section
   ========================================== */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section:last-child { border-bottom: none; }
.section.visible { opacity: 1; transform: translateY(0); }

.section-title {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent-2); margin-bottom: 32px;
  display: flex; align-items: center; gap: 14px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, var(--border-2), transparent);
}

/* ==========================================
   Goal Banner
   ========================================== */
.goal-banner {
  background: var(--grad-hero);
  background-size: 300% 300%;
  animation: gradMove 12s ease infinite;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex; align-items: flex-start; gap: 20px;
  position: relative; overflow: hidden;
}
.goal-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--glass);
  pointer-events: none;
}
.goal-icon { font-size: 30px; flex-shrink: 0; margin-top: 2px; }
.goal-content { position: relative; z-index: 1; }
.goal-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--accent); margin-bottom: 7px;
}
.goal-text {
  font-size: 17px; font-weight: 700; color: #fff; line-height: 1.5;
  background: var(--grad-text); background-size: 200% auto;
  animation: shimmer 5s linear infinite;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: inline-block;
}
.goal-sub { font-size: 13px; color: rgba(240,232,255,0.55); margin-top: 6px; line-height: 1.7; }

/* ==========================================
   About
   ========================================== */
.about-text { display: flex; flex-direction: column; gap: 18px; }
.about-text p { font-size: 15px; color: var(--text-2); line-height: 1.95; }
.about-text strong { color: var(--text); font-weight: 700; }

/* ==========================================
   Music Cards
   ========================================== */
.music-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.music-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  opacity: 0; transform: translateY(20px);
}
.music-card.child-visible { opacity: 1; transform: translateY(0); }
.music-card:hover {
  background: var(--glass-2);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px) scale(1.01);
}
.music-card-icon { font-size: 30px; margin-bottom: 14px; }
.music-card-title {
  font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 7px;
}
.music-card-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.music-card-link {
  display: inline-block; margin-top: 10px; font-size: 12px;
  font-weight: 700; color: var(--accent); letter-spacing: 0.3px;
  background: var(--grad-text); background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   Timeline
   ========================================== */
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid; grid-template-columns: 148px 1fr;
  gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateX(-18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item.child-visible { opacity: 1; transform: translateX(0); }

.timeline-meta { padding-top: 3px; display: flex; flex-direction: column; gap: 8px; }
.timeline-period { font-size: 12px; color: var(--text-3); font-weight: 500; white-space: nowrap; letter-spacing: 0.3px; }

.timeline-badge {
  display: inline-block; padding: 2px 10px;
  background: rgba(167,139,250,0.12);
  color: var(--accent); border: 1px solid rgba(167,139,250,0.25);
  border-radius: 100px; font-size: 10.5px; font-weight: 700; width: fit-content;
}
.badge-planned {
  background: rgba(134,239,172,0.1);
  color: #86efac; border-color: rgba(134,239,172,0.25);
}
.badge-intern {
  background: rgba(251,191,36,0.1);
  color: #fbbf24; border-color: rgba(251,191,36,0.25);
}

.timeline-company {
  font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 3px;
}
.timeline-role { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 10px; }
.timeline-list { padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.timeline-list li { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

/* ==========================================
   Certifications
   ========================================== */
.cert-category { margin-bottom: 28px; }
.cert-category:last-child { margin-bottom: 0; }
.cert-category-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-3); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cert-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  opacity: 0; transform: scale(0.94);
}
.cert-item.child-visible { opacity: 1; transform: scale(1); }
.cert-item:hover {
  background: var(--glass-2); border-color: var(--border-2);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 28px rgba(124,58,237,0.2);
}
.cert-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--grad-accent); flex-shrink: 0; margin-top: 6px;
}
.cert-info { display: flex; flex-direction: column; gap: 5px; }
.cert-name { font-size: 15px; font-weight: 700; color: var(--text); }
.cert-issuer { font-size: 13px; color: var(--text-3); }

/* ==========================================
   Contact
   ========================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-item { display: flex; flex-direction: column; gap: 5px; }
.contact-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent-2);
}
.contact-value { font-size: 15px; color: var(--text); }

/* ==========================================
   Footer
   ========================================== */
.footer {
  padding: 36px 24px; text-align: center;
  font-size: 13px; color: var(--text-3);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 640px) {
  .hero { padding: 54px 0 46px; }
  .hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .hero-bio { max-width: 100%; }
  .hero-links { justify-content: center; }
  .hero-name { font-size: 34px; letter-spacing: 3px; }

  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .timeline-meta { flex-direction: row; align-items: center; gap: 8px; }
  .music-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
