:root {
  /* GC Company inspired colors */
  --primary-color: #F7323F; /* GC Red */
  --primary-hover: #D9232F;
  --bg-color: #ffffff;
  --bg-light: #F8F9FA;
  
  --text-main: #111111;
  --text-content: #495057; 
  --text-muted: #868E96;
  --border-color: #E9ECEF;
  
  /* Removed strong shadows for Flat Design */
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-family: 'Pretendard', -apple-system, system-ui, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border-color);
}
.section:last-child {
  border-bottom: none;
}

/* Typography */
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 56px;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: padding 0.3s ease;
}

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

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

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

.nav-links, .nav-left {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 32px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
  font-weight: 700;
}
.nav-links a.active {
  color: var(--primary-color);
  font-weight: 700;
}

/* Hero Section */
.hero-section {
  padding: 200px 0 120px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 850px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--bg-light);
  color: var(--text-main);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  border: 1px solid var(--border-color);
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  word-break: keep-all;
}

.hero-desc {
  font-size: 1.15rem;
  font-weight: 400; /* Lighter body text for extreme contrast */
  color: var(--text-content);
  line-height: 1.8;
  margin-bottom: 56px;
}

.hero-desc p {
  margin-bottom: 16px;
  word-break: keep-all;
}

.contact-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background-color: var(--bg-light);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  transition: background-color 0.2s;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.contact-item:hover {
  background-color: #E2E2E2;
}

.contact-item .material-symbols-rounded {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.download-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.download-btn:hover {
  background-color: var(--primary-hover);
  color: white;
}

.download-btn .material-symbols-rounded {
  color: white;
}

/* Base Cards (Flat) */
.card, .edu-card {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
}

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

.competency-card .card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-light);
  color: var(--text-main);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.competency-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.competency-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--text-content);
  font-weight: 400;
  line-height: 1.6;
  word-break: keep-all;
}

.competency-card ul li::before {
  content: "•";
  color: var(--text-main);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.full-width {
  grid-column: 1 / -1;
}

/* Motivation content */
.bg-light {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  margin: 40px 0;
  padding: 80px 48px;
  border-bottom: none;
}

.motivation-content p {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-content);
  margin-bottom: 28px;
  word-break: keep-all;
}

/* 2-Column HR List styles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
}

.total-exp {
  font-weight: 700;
  color: var(--text-main);
  background-color: var(--bg-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
}

.list-container {
  display: flex;
  flex-direction: column;
}

.list-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}
.list-row:last-child:not(.project-card) {
  border-bottom: none;
  padding-bottom: 0;
}
.list-row:first-child {
  padding-top: 0;
}

.list-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.duration {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
}

.company-name {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-top: 4px;
}

.role {
  color: var(--text-content);
  font-weight: 600;
  font-size: 1.15rem;
}

.list-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Expandable rows & Modals */
.modal-trigger {
  cursor: pointer;
  padding: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: background-color 0.2s, border-color 0.2s;
  margin-bottom: 24px; /* give some bottom margin to project cards */
}
.modal-trigger:first-child {
  padding-top: 40px; /* Reset the padding constraint above */
}
.modal-trigger:hover {
  background-color: var(--bg-light);
  border-color: #D1D5DB;
}

/* removed inner row selector */

.p-block p {
  color: var(--text-content);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 16px;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.05rem;
}

.exp-section h4, .p-block h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}

/* Unstyled internal lists */
.check-list li, .exp-section ul:not(.check-list) li, .p-block ul li, .mt-2 li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 16px;
  color: var(--text-content);
  line-height: 1.75;
  font-weight: 400;
  word-break: keep-all;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-main);
  font-weight: bold;
}
.exp-section ul:not(.check-list) li::before, .mt-2 li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-tag {
  background-color: var(--bg-color);
  color: var(--text-content);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.modal-content {
  background-color: var(--bg-color);
  margin: auto;
  padding: 64px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  position: relative;
  border: 1px solid var(--border-color);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  background: transparent;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: none;
  transition: background-color 0.2s, color 0.2s;
}
.modal-close:hover {
  background-color: var(--bg-light);
  color: var(--text-main);
}

.modal-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.modal-header h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-meta {
  color: var(--text-muted);
  font-weight: 600;
}

.modal-body p {
  margin-bottom: 20px;
  color: var(--text-content);
  line-height: 1.8;
  font-weight: 400;
}

.m-block {
  margin-bottom: 48px;
}

.m-block h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
}

.m-block ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 18px;
  color: var(--text-content);
  font-weight: 500;
  line-height: 1.75;
}

.m-block ul li::before {
  content: "•";
  color: var(--text-main);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Footer */
footer {
  background-color: transparent;
  color: var(--text-muted);
  padding: 60px 0;
  text-align: left;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-content strong {
  color: var(--text-main);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .list-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bg-light { padding: 40px 24px; }
  .modal-content { padding: 32px 24px; }
  .nav-links { display: none; }
  .scroll-top-btn {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 0.65rem;
  }
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: var(--text-main);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s;
  font-family: var(--font-family);
  padding: 0;
}

.scroll-top-btn .material-symbols-rounded {
  font-size: 1.5rem;
  margin-bottom: -2px;
}

.scroll-top-btn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background-color: #333333;
}
