/* ==========================================================================
   Base & Reset Variables
   ========================================================================== */
:root {
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  
  /* Light Theme */
  --bg-primary: #fcfbf4;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #fbf9e9;
  --bg-tag: #f3eed2;
  
  --text-primary: #1c2718;
  --text-secondary: #3b4d35;
  --text-muted: #5e7256;
  --text-light: #8fa387;
  
  --accent-primary: #598c3d;       /* Forest Olive Green (#598C3D) */
  --accent-primary-hover: #46702e;
  --accent-light: #fff6b4;         /* Soft Cream Yellow (#FFF6B4) */
  --accent-light-trans: rgba(255, 246, 180, 0.45);
  --accent-gradient: linear-gradient(135deg, #598c3d 0%, #3e6628 100%);
  --accent-gradient-warm: linear-gradient(135deg, #7ba85a 0%, #d4b836 100%);
  --accent-teal: #427a3c;
  
  --border-color: #e8e4c9;
  --border-light: #f4f0d9;
  
  --shadow-sm: 0 1px 2px 0 rgba(89, 140, 61, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(89, 140, 61, 0.08), 0 2px 4px -1px rgba(89, 140, 61, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(89, 140, 61, 0.1), 0 4px 6px -2px rgba(89, 140, 61, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(89, 140, 61, 0.12), 0 10px 10px -5px rgba(89, 140, 61, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

[data-theme="dark"] {
  --bg-primary: #121810;
  --bg-secondary: #182216;
  --bg-card: #1e2a1b;
  --bg-subtle: #253422;
  --bg-tag: #2f422b;
  
  --text-primary: #fbfded;
  --text-secondary: #d5e0cf;
  --text-muted: #9fb398;
  --text-light: #708569;
  
  --accent-primary: #8bc36a;
  --accent-primary-hover: #a3d984;
  --accent-light: #2b3a24;
  --accent-light-trans: rgba(255, 246, 180, 0.15);
  --accent-gradient: linear-gradient(135deg, #74a856 0%, #598c3d 100%);
  
  --border-color: #2b3d27;
  --border-light: #22311f;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Global Reset & Defaults
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

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

.desktop-only {
  display: inline;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

/* ==========================================================================
   Typography & Common Components
   ========================================================================== */
.section {
  padding: 96px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background-color: var(--accent-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(89, 140, 61, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(89, 140, 61, 0.45);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.btn-outline {
  border: 1.5px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-outline:hover {
  background-color: var(--accent-primary);
  color: #ffffff !important;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-link {
  color: var(--accent-primary);
  font-weight: 600;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-link:hover {
  gap: 8px;
}

.full-width {
  width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background-color: rgba(11, 15, 23, 0.85);
}

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

.nav-logo {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

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

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

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

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

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.theme-btn:hover {
  color: var(--accent-primary);
  background-color: var(--border-color);
}

.moon-icon {
  display: none;
}

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

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

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: calc(var(--nav-height) + 70px);
  padding-bottom: 90px;
  background: radial-gradient(circle at 80% 20%, rgba(255, 246, 180, 0.45) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(89, 140, 61, 0.08) 0%, transparent 50%);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  display: inline-block;
}

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

.highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
  background-color: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-story h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.about-story p {
  font-size: 1.03125rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-strengths {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.strength-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.strength-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.strength-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.strength-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Profile Card */
.about-profile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.profile-avatar-wrapper {
  position: relative;
}

.profile-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 6px 16px rgba(89, 140, 61, 0.3);
  display: block;
  transition: var(--transition);
}

.profile-photo:hover {
  transform: scale(1.05);
}

.profile-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(89, 140, 61, 0.3);
}

.mb-2 {
  margin-bottom: 8px;
}

.link-hover {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.highlight-text {
  color: var(--accent-primary);
  font-weight: 700;
}

.btn-icon {
  margin-right: 4px;
}

.profile-title-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-role {
  font-size: 0.875rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.info-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.skill-card-icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.skill-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.skill-card-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.skill-tags li {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  background-color: var(--bg-tag);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.skill-card:hover .skill-tags li {
  background-color: var(--accent-light);
  color: var(--accent-primary);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects {
  background-color: var(--bg-primary);
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.filter-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(89, 140, 61, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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

.project-badge-top {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.project-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative;
  color: #ffffff;
}

.thumb-inner {
  position: relative;
  z-index: 1;
}

.thumb-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}

.thumb-inner h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.thumb-inner p {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Gradient backgrounds for thumbnails */
.thumb-sns {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
}

.thumb-detail {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.thumb-ai {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.thumb-crm {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.thumb-ltv {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.thumb-campaign {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

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

.project-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.project-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-snippet {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-highlight {
  font-size: 0.8125rem;
  background-color: var(--bg-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-primary);
}

.project-highlight strong {
  color: var(--accent-primary);
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-tools span {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* ==========================================================================
   Experience & History Section
   ========================================================================== */
.experience {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

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

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

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

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-light);
}

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

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.timeline-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.timeline-tag.education {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.timeline-tag.career {
  background-color: #fef3c7;
  color: #b45309;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 14px;
}

.timeline-details {
  list-style: disc;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.timeline-details li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
  background-color: var(--bg-primary);
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 64px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.contact-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
}

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

.contact-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  transition: var(--transition);
  cursor: pointer;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  background-color: var(--accent-light);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.back-to-top {
  font-weight: 600;
  color: var(--accent-primary);
}

.back-to-top:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Project Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  padding: 40px;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
  transition: var(--transition);
}

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

/* Modal Content Styles */
.modal-header-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  background-color: var(--accent-light);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 12px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background-color: var(--bg-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.modal-meta-item span {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.modal-meta-item strong {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section p, .modal-section ul {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-section ul {
  list-style: disc;
  padding-left: 20px;
}

.modal-section ul li {
  margin-bottom: 6px;
}

.modal-highlight-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.modal-highlight-box p {
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-profile-card {
    position: static;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.active {
    transform: translateY(0);
  }
  .hamburger {
    display: flex;
  }
  .hero-title {
    font-size: 2.125rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .modal-container {
    padding: 24px;
  }
  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
}
