/* ==========================================================================
   Toss Design System (TDS) Inspired Style
   Clean White + Vivid Toss Blue (#3182F6) + Squircle Radii + Pill Buttons
   ========================================================================== */
:root {
  /* Toss Brand Colors */
  --toss-blue: #3182f6;
  --toss-blue-hover: #1b64da;
  --toss-blue-light: #e8f3ff;
  --toss-blue-glow: rgba(49, 130, 246, 0.22);
  --accent-gradient: linear-gradient(135deg, #3182f6 0%, #0050ff 100%);

  /* Light Theme (Default: Toss Clean Aesthetic) */
  --bg-primary: #f9fafb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f2f4f6;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  
  --text-primary: #191f28;
  --text-secondary: #4e5968;
  --text-muted: #8b95a1;
  --text-disabled: #b0b8c1;
  
  --border-color: #e5e8eb;
  --border-hover: rgba(49, 130, 246, 0.45);
  
  /* Accent Colors */
  --accent-primary: #3182f6;
  --accent-secondary: #1b64da;
  --accent-glow: rgba(49, 130, 246, 0.2);
  
  --tech-blue: #3182f6;
  --tech-purple: #7048e8;
  --tech-green: #00b074;
  --tech-amber: #ff922b;
  
  /* Radii - Toss Squircle */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  /* Toss Soft Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px var(--accent-glow);
  
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides (Toss Dark Mode) */
[data-theme="dark"] {
  --bg-primary: #101013;
  --bg-secondary: #17171c;
  --bg-tertiary: #202027;
  --bg-card: #1c1c24;
  --bg-card-hover: #22222c;
  
  --text-primary: #f9fafb;
  --text-secondary: #b0b8c1;
  --text-muted: #6b7684;
  --text-disabled: #4e5968;
  
  --border-color: #2c2c36;
  --border-hover: rgba(49, 130, 246, 0.6);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(49, 130, 246, 0.3);
}

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

html {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  letter-spacing: -0.025em;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.name-highlight {
  color: var(--text-primary);
  font-weight: 800;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-sub {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--toss-blue);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 10px;
}

.section-line {
  width: 44px;
  height: 4px;
  background: var(--toss-blue);
  border-radius: var(--radius-full);
  margin: 18px auto 0;
}

/* Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: -0.02em;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--toss-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--toss-blue-glow);
}

.btn-primary:hover {
  background: var(--toss-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(49, 130, 246, 0.35);
}

.btn-outline {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid transparent;
}

.btn-outline:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--toss-blue-light);
  color: var(--toss-blue);
  transform: scale(1.05);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  background: rgba(249, 250, 251, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .navbar {
  background: rgba(16, 16, 19, 0.85);
}

.navbar.scrolled {
  height: 64px;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.brand-dot {
  color: var(--toss-blue);
}

.badge-role {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--toss-blue-light);
  color: var(--toss-blue);
}

[data-theme="dark"] .badge-role {
  background: rgba(49, 130, 246, 0.18);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--toss-blue);
}

.cta-link {
  color: var(--toss-blue);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-only {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 130px 0 60px;
}

.hero-bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: var(--toss-blue);
  top: 5%;
  left: -8%;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #00d2d3;
  bottom: 5%;
  right: -5%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--toss-blue-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--toss-blue);
  margin-bottom: 24px;
}

[data-theme="dark"] .hero-badge {
  background: rgba(49, 130, 246, 0.15);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--toss-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(49, 130, 246, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(49, 130, 246, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(49, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(49, 130, 246, 0); }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 34px;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

/* Metric Ribbon - Toss Card Look */
.hero-metrics {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-md);
  max-width: 620px;
  border: 1px solid var(--border-color);
}

.metric-card {
  flex: 1;
  text-align: center;
}

.metric-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--toss-blue);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.metric-val small {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-left: 2px;
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 5px;
  display: block;
}

.metric-divider {
  width: 1px;
  height: 38px;
  background: var(--border-color);
  margin: 0 12px;
}

/* Profile Card - Squircle */
.profile-card-wrapper {
  position: relative;
  max-width: 390px;
  margin: 0 auto;
}

.profile-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal);
}

.profile-card:hover {
  transform: translateY(-6px);
}

.profile-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.7;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-tertiary);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-status-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(25, 31, 40, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-status-chip i {
  color: var(--toss-blue);
}

.profile-name {
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.profile-eng {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
}

.profile-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 6px 0 14px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.card-glow {
  position: absolute;
  inset: -12px;
  background: var(--accent-gradient);
  filter: blur(40px);
  opacity: 0.15;
  z-index: -1;
  border-radius: var(--radius-lg);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.narrative-heading {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.narrative-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.narrative-text strong {
  color: var(--toss-blue);
  font-weight: 700;
}

.about-info-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  font-size: 1.1rem;
  color: var(--toss-blue);
  margin-top: 4px;
  width: 20px;
}

.info-item strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.info-item p {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Pillars Container */
.pillars-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 16px;
}

.bg-red { background: linear-gradient(135deg, #3182f6, #0050ff); }
.bg-blue { background: linear-gradient(135deg, #00b074, #00c988); }
.bg-purple { background: linear-gradient(135deg, #7048e8, #845ef7); }

.pillar-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pillar-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Skills Section (Bento Grid)
   ========================================================================== */
.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.bento-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.bento-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--toss-blue-light);
  color: var(--toss-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

[data-theme="dark"] .bento-icon {
  background: rgba(49, 130, 246, 0.18);
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.bento-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-pill {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bento-highlights {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.b-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.b-item i {
  color: var(--toss-blue);
  margin-top: 4px;
  font-size: 0.8rem;
}

/* Tool progress bars */
.tool-badges-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}

.tool-item .tool-name {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.tool-name span {
  font-size: 0.78rem;
  color: var(--toss-blue);
  font-weight: 700;
}

.progress-bar {
  height: 7px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--toss-blue);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.94rem;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: none;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--toss-blue);
  color: #fff;
  box-shadow: 0 4px 14px var(--toss-blue-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 31, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.btn-detail {
  background: #fff;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
}

.category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  color: #fff;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.category-badge.marketing { background: rgba(49, 130, 246, 0.92); }
.category-badge.strategy { background: rgba(0, 176, 116, 0.92); }
.category-badge.operation { background: rgba(112, 72, 232, 0.92); }

.project-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.project-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-highlight-badge {
  background: var(--toss-blue-light);
  color: var(--toss-blue);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

[data-theme="dark"] .project-highlight-badge {
  background: rgba(49, 130, 246, 0.16);
}

.project-highlight-badge.award {
  color: var(--tech-amber);
  background: rgba(255, 146, 43, 0.12);
}

.project-highlight-badge.patent {
  color: var(--toss-blue);
  background: var(--toss-blue-light);
}

.project-highlight-badge.news {
  color: var(--tech-green);
  background: rgba(0, 176, 116, 0.12);
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-tools span {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* ==========================================================================
   Experience Timeline Section
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 54px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--toss-blue);
  box-shadow: 0 0 10px var(--toss-blue-glow);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--toss-blue);
}

.timeline-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.timeline-item:hover .timeline-content {
  transform: translateX(6px);
}

.timeline-date {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--toss-blue);
  margin-bottom: 6px;
}

.timeline-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Awards & Certifications Section
   ========================================================================== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.award-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform var(--transition-normal);
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.award-card.highlight-card {
  background: linear-gradient(145deg, var(--bg-card), var(--toss-blue-light));
  border-color: rgba(49, 130, 246, 0.3);
}

[data-theme="dark"] .award-card.highlight-card {
  background: linear-gradient(145deg, var(--bg-card), rgba(49, 130, 246, 0.12));
}

.award-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--toss-blue-light);
  color: var(--toss-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

[data-theme="dark"] .award-icon {
  background: rgba(49, 130, 246, 0.18);
}

.award-content {
  flex: 1;
}

.award-year {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--toss-blue);
  display: block;
  margin-bottom: 4px;
}

.award-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.award-org {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--toss-blue-light);
  color: var(--toss-blue);
}

[data-theme="dark"] .award-badge {
  background: rgba(49, 130, 246, 0.18);
}

.award-badge.normal {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.contact-header {
  text-align: center;
  margin-bottom: 44px;
}

.contact-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 14px;
}

.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.contact-item-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
}

.c-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--toss-blue-light);
  color: var(--toss-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

[data-theme="dark"] .c-icon {
  background: rgba(49, 130, 246, 0.18);
}

.c-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.c-value {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 4px 0 14px;
  word-break: break-all;
}

.copy-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--toss-blue);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--toss-blue);
  color: #fff;
  border-color: var(--toss-blue);
}

.badge-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--tech-green);
  background: rgba(0, 176, 116, 0.1);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* Quick Message Form */
.quick-message-box {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 34px;
  border: 1px solid var(--border-color);
}

.quick-message-box h4 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color var(--transition-fast);
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--toss-blue);
  box-shadow: 0 0 0 3px var(--toss-blue-light);
}

.btn-submit {
  align-self: flex-start;
}

/* ==========================================================================
   Modal Popup (Toss Bottom Sheet / Modal)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 10;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-normal);
}

.modal.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 20;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--toss-blue);
  color: #fff;
}

.modal-content {
  padding: 38px;
}

.modal-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.modal-title-row {
  margin-bottom: 20px;
}

.modal-title-row .category-badge {
  position: static;
  display: inline-block;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.35;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--bg-primary);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.modal-meta-item strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-meta-item span {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-section-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 26px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-title i {
  color: var(--toss-blue);
}

.modal-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-contributions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.contribution-bar-item {
  background: var(--bg-primary);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.c-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.c-head span:last-child {
  color: var(--toss-blue);
}

.modal-outcomes {
  background: var(--toss-blue-light);
  border: 1px solid rgba(49, 130, 246, 0.25);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-top: 12px;
}

[data-theme="dark"] .modal-outcomes {
  background: rgba(49, 130, 246, 0.12);
}

.modal-outcomes ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.modal-outcomes li {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.modal-outcomes li i {
  color: var(--toss-blue);
  margin-top: 4px;
}

/* ==========================================================================
   Back to Top & Toast
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--toss-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 16px var(--toss-blue-glow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: var(--toss-blue-hover);
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #191f28;
  color: #fff;
  box-shadow: var(--shadow-lg);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.94rem;
  font-weight: 700;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 44px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.footer-left p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-right {
  text-align: right;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-sub {
  margin-top: 4px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-badge, .hero-actions {
    justify-content: center;
  }

  .hero-metrics {
    margin: 0 auto;
  }

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

  .skills-bento-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards-row {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 36px 24px;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
  }

  .modal-contributions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }

  .mobile-only {
    display: inline-flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 16px;
  }

  .metric-divider {
    display: none;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}
