/* ==========================================================================
   Base & CSS Variables (Theme Configuration)
   ========================================================================== */

:root {
  /* Common variables */
  --font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Primary Brand Colors */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-rgb: 99, 102, 241;
  --secondary: #06b6d4;
  --accent: #ec4899;
}

/* Dark Theme (Default) */
[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-solid: #121826;
  --bg-glass: rgba(18, 24, 38, 0.8);
  --bg-subtle: rgba(255, 255, 255, 0.05);
  --bg-input: rgba(15, 21, 34, 0.8);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.3);

  --glow-1: rgba(99, 102, 241, 0.18);
  --glow-2: rgba(6, 182, 212, 0.15);

  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 20px 40px -15px rgba(99, 102, 241, 0.25);
}

/* Light Theme */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-solid: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-subtle: rgba(0, 0, 0, 0.04);
  --bg-input: #ffffff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.4);

  --glow-1: rgba(99, 102, 241, 0.08);
  --glow-2: rgba(6, 182, 212, 0.08);

  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.07);
  --card-shadow-hover: 0 20px 35px -10px rgba(99, 102, 241, 0.15);
}

/* ==========================================================================
   Reset & Global Styles
   ========================================================================== */

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  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, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* Ambient Background Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: var(--glow-1);
}

.bg-glow-2 {
  top: 40%;
  right: 10%;
  width: 450px;
  height: 450px;
  background: var(--glow-2);
}

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

/* Typography & Utilities */
.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  background: rgba(var(--primary-rgb), 0.1);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-main);
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

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

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

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-normal);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.logo-emoji {
  font-size: 1.3rem;
}

.logo-text strong {
  color: var(--primary);
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

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

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--border-color);
  transform: rotate(15deg);
}

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

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

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
}

.mobile-menu-btn .menu-close-icon {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding-top: 150px;
  padding-bottom: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

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

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}

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

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

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

/* Hero Visual / Profile Card */
.profile-card-wrapper {
  position: relative;
}

.profile-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-highlight);
}

.profile-avatar-graphic {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
}

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 3px solid rgba(var(--primary-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-emoji {
  font-size: 4rem;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  animation: float 4s ease-in-out infinite;
}

.badge-top {
  top: -5px;
  right: -25px;
  color: var(--primary);
}

.badge-bottom {
  bottom: -5px;
  left: -25px;
  color: var(--accent);
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #10b981;
  font-weight: 600;
  margin-bottom: 12px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}

.status-indicator::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

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

.profile-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.story-card .card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.personal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Value Cards */
.values-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.value-card:hover {
  transform: translateX(6px);
  border-color: var(--border-highlight);
}

.val-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.val-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.val-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */

.skills-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.skill-filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-filter-btn:hover,
.skill-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.skill-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.skill-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.frontend-color { background: rgba(97, 218, 251, 0.15); color: #61dafb; }
.ts-color { background: rgba(49, 120, 198, 0.15); color: #3178c6; }
.css-color { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.node-color { background: rgba(104, 159, 99, 0.15); color: #689f63; }
.py-color { background: rgba(255, 212, 59, 0.15); color: #ffd43b; }
.db-color { background: rgba(51, 103, 145, 0.15); color: #336791; }
.devops-color { background: rgba(36, 150, 237, 0.15); color: #2496ed; }
.tools-color { background: rgba(240, 80, 50, 0.15); color: #f05032; }

.skill-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.skill-level {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.skill-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

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

.skill-tags span {
  font-size: 0.75rem;
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */

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

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--card-shadow-hover);
}

.project-banner {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-1 {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.banner-2 {
  background: linear-gradient(135deg, #134e4a 0%, #065f46 100%);
}

.banner-3 {
  background: linear-gradient(135deg, #4c1d95 0%, #581c87 100%);
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-icon-placeholder {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
  transition: transform var(--transition-normal);
}

.project-card:hover .project-icon-placeholder {
  transform: scale(1.15) rotate(-5deg);
  color: rgba(255, 255, 255, 0.6);
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.project-meta i {
  margin-right: 4px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Experience Section (Timeline)
   ========================================================================== */

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}

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

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

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

.timeline-dot {
  position: absolute;
  top: 6px;
  left: -32px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-main);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-content {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

.timeline-role-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline-type {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.timeline-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.contact-info-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.contact-info-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-method-item:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary);
}

.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.method-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.method-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-card-socials {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.social-head {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-weight: 600;
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.social-pills .pill:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

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

.form-group {
  margin-bottom: 20px;
}

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

.form-label .required {
  color: var(--accent);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-card-solid);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

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

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}

.footer-logo strong {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s ease;
}

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

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

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--border-color);
}

.modal-body {
  padding: 36px;
}

.modal-project-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-project-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--primary);
}

.modal-list {
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal-list li {
  list-style: disc;
  margin-bottom: 6px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card-solid);
  border: 1px solid #10b981;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: #10b981;
  font-size: 1.4rem;
}

.toast-message {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

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

  .hero-cta {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-card-solid);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-normal);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
  }

  .nav-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .section-title {
    font-size: 1.8rem;
  }

  .timeline-container {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -24px;
  }

  .personal-info-grid {
    grid-template-columns: 1fr;
  }

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