/* ==========================================================================
   Design Tokens & CSS Variables (Default: Light Mode)
   ========================================================================== */
:root {
  /* Surface & Background Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-accent: rgba(79, 70, 229, 0.2);

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Accent & Brand Colors (Warm Yellow & Amber Gold Theme) */
  --accent-primary: #d97706;
  --accent-primary-hover: #b45309;
  --accent-secondary: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.22);
  --accent-badge-bg: rgba(245, 158, 11, 0.12);
  --accent-badge-text: #92400e;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
  --gradient-hero-bg: radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.1) 0%, transparent 65%);

  /* UI System */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 35px -8px rgba(217, 119, 6, 0.14), 0 8px 16px -6px rgba(15, 23, 42, 0.04);

  --backdrop-blur: blur(18px);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Dark Theme Overrides
   ========================================================================== */
[data-theme="dark"] {
  --bg-primary: #120e03;
  --bg-secondary: #1f1807;
  --bg-tertiary: #2e2309;
  --bg-card: rgba(31, 24, 7, 0.85);
  --bg-card-hover: rgba(46, 35, 9, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-accent: rgba(245, 158, 11, 0.35);

  --text-primary: #fefce8;
  --text-secondary: #fef08a;
  --text-muted: #fde047;
  --text-inverse: #120e03;

  --accent-primary: #f59e0b;
  --accent-primary-hover: #fbbf24;
  --accent-secondary: #fde047;
  --accent-glow: rgba(245, 158, 11, 0.32);
  --accent-badge-bg: rgba(245, 158, 11, 0.18);
  --accent-badge-text: #fef08a;

  --gradient-brand: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #fbbf24 100%);
  --gradient-card: linear-gradient(145deg, rgba(46, 35, 9, 0.7) 0%, rgba(31, 24, 7, 0.85) 100%);
  --gradient-hero-bg: radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.16) 0%, transparent 70%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 25px 45px -10px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow orbs in background */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  transition: opacity var(--transition-slow);
}
[data-theme="dark"] .ambient-glow {
  opacity: 0.18;
}
.ambient-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -100px;
  background: var(--accent-primary);
}
.ambient-2 {
  width: 500px;
  height: 500px;
  top: 45%;
  right: -150px;
  background: #b45309;
}
.ambient-3 {
  width: 550px;
  height: 550px;
  bottom: 50px;
  left: 15%;
  background: #f59e0b;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-base);
}

.header.scrolled {
  padding: 12px 0;
  background-color: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title-name {
  font-weight: 800;
  line-height: 1.2;
}

.brand-title-role {
  font-size: 0.72rem;
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Theme Toggle Button */
.theme-switch-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.theme-switch-btn:hover {
  transform: scale(1.08);
  border-color: var(--accent-primary);
}

/* Light mode is default: show moon icon to allow switching to dark */
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

.btn-hire-nav {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.mobile-toggle-btn {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 170px 0 100px;
  background: var(--gradient-hero-bg);
  position: relative;
}

.hero-inner {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-badge-text);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  backdrop-filter: var(--backdrop-blur);
}

.badge-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  position: relative;
}

.badge-status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-main-title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-sub-text {
  font-size: 1.22rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--backdrop-blur);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Hero Metrics Quad Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  backdrop-filter: var(--backdrop-blur);
  transition: var(--transition-base);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-title {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Section Common Utilities
   ========================================================================== */
.section {
  padding: 110px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-pill {
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: inline-block;
  background: var(--accent-badge-bg);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ==========================================================================
   About & Experience Timeline Section
   ========================================================================== */
.about-dual-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: start;
}

.about-profile-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.profile-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-brand);
  padding: 4px;
  margin-bottom: 20px;
}

.avatar-inner-box {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}

.profile-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-tagline {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.profile-bio-text {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.philosophy-chip {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

/* Timeline Experience */
.experience-timeline {
  position: relative;
  padding-left: 32px;
}

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

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

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

.timeline-marker {
  position: absolute;
  top: 4px;
  left: -32px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-badge-bg);
  z-index: 2;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  backdrop-filter: var(--backdrop-blur);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.timeline-card:hover {
  transform: translateX(6px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
}

.timeline-company {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.timeline-period {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.timeline-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-achievements li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.timeline-achievements li::before {
  content: '▸';
  color: var(--accent-primary);
  font-weight: bold;
}

/* ==========================================================================
   Projects Bento Grid Section
   ========================================================================== */
.project-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab-btn:hover, .filter-tab-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.bento-grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}

.bento-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.bento-span-8 { grid-column: span 8; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-12 { grid-column: span 12; }

.bento-visual-header {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bg-gradient-s1 { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.bg-gradient-s2 { background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%); }
.bg-gradient-s3 { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.bg-gradient-s4 { background: linear-gradient(135deg, #db2777 0%, #9333ea 100%); }
.bg-gradient-s5 { background: linear-gradient(135deg, #d97706 0%, #ea580c 100%); }

.visual-center-icon {
  font-size: 3.8rem;
  color: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .visual-center-icon {
  transform: scale(1.12) rotate(4deg);
}

.project-tag-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
}

.project-item-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.project-item-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
}

.project-impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-badge-bg);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-badge-text);
  margin-bottom: 24px;
  width: fit-content;
}

.bento-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  margin-top: auto;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.94rem;
}

.bento-card-action svg {
  transition: transform var(--transition-fast);
}
.bento-card:hover .bento-card-action svg {
  transform: translateX(6px);
}

/* ==========================================================================
   Skills & Tech Stack Matrix
   ========================================================================== */
.skills-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.skill-matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px;
  backdrop-filter: var(--backdrop-blur);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.skill-matrix-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.matrix-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.matrix-icon-frame {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.matrix-category-name {
  font-size: 1.3rem;
  font-weight: 800;
}

.skill-bars-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
}

.skill-track-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill-bar {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-brand);
  transition: width 1s ease-in-out;
}

.skill-pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.skill-pill-tag {
  font-size: 0.8rem;
  padding: 5px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Testimonials & Recommendations Section
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: var(--backdrop-blur);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.quote-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.testimonial-quote-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border-color);
}

.author-name {
  font-weight: 700;
  font-size: 0.98rem;
}

.author-position {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-layout-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
}

.contact-info-panel {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.contact-direct-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 32px 0;
}

.contact-point-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-point-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-point-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.contact-point-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.social-action-buttons {
  display: flex;
  gap: 12px;
}

.social-link-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-link-btn:hover {
  color: #ffffff;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-md);
}

.form-field-group {
  margin-bottom: 22px;
}

.field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.field-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.field-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-secondary);
}

textarea.field-input {
  resize: vertical;
  min-height: 140px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  margin-top: 80px;
  background: var(--bg-secondary);
  position: relative;
  z-index: 10;
}

.footer-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copyright {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.scroll-to-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--backdrop-blur);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
  z-index: 90;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-4px);
}

/* ==========================================================================
   Project Detail Modal
   ========================================================================== */
.modal-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  padding: 24px;
}

.modal-screen-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-box {
  width: 100%;
  max-width: 720px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: scale(0.94);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-screen-overlay.active .modal-content-box {
  transform: scale(1);
}

.modal-banner-top {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #ffffff;
  font-size: 4.5rem;
  flex-shrink: 0;
}

.modal-close-trigger {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

.modal-close-trigger:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: rotate(90deg);
}

.modal-scrollable-body {
  padding: 32px;
  overflow-y: auto;
}

.modal-tag-cloud {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.modal-heading-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.modal-section-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-top: 20px;
  margin-bottom: 8px;
}

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

.modal-troubleshoot-box {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--accent-primary);
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  margin: 16px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.modal-action-buttons {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Toast Notification Feedback */
.toast-notice {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--backdrop-blur);
  padding: 16px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  opacity: 0;
  transition: var(--transition-base);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .about-dual-layout, .contact-layout-split {
    grid-template-columns: 1fr;
  }
  .about-profile-card {
    position: static;
  }
  .skills-matrix-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-span-8, .bento-span-4, .bento-span-6 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 26px;
    gap: 20px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .skills-matrix-grid, .testimonials-grid, .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 130px 0 70px;
  }
  .hero-main-title {
    font-size: 2.25rem;
  }
  .section {
    padding: 75px 0;
  }
}
