:root {
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #888;
  --bg: #fafaf8;
  --bg-alt: #f0efeb;
  --card-bg: #ffffff;
  --border-color: #e0ddd6;
  --accent: #2c2c2c;
  --accent-warm: #c4703e;
  --brand-orange: #FF6B35;
  --brand-orange-light: rgba(255, 107, 53, 0.08);
  --brand-orange-border: rgba(255, 107, 53, 0.2);
  --color-primary: #d4a030;
  --color-primary-light: rgba(212, 160, 48, 0.1);
  --color-primary-border: rgba(212, 160, 48, 0.3);
  --color-art: #3a6ea5;
  --color-art-light: rgba(58, 110, 165, 0.1);
  --color-art-border: rgba(58, 110, 165, 0.3);
  --color-projects: #c0392b;
  --color-projects-light: rgba(192, 57, 43, 0.08);
  --color-projects-border: rgba(192, 57, 43, 0.25);
  --link-color: #3d5a80;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --transition-base: all 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

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

a:hover {
  color: var(--accent-warm);
}

/* ======= Buttons ======= */

.btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: var(--transition-base);
  display: inline-block;
  cursor: pointer;
}

.btn:hover {
  background: var(--text-secondary);
  color: #fff;
}

.btn-primary {
  background: var(--brand-orange);
}

.btn-primary:hover {
  background: #e55a28;
  color: #fff;
}

.btn-art {
  background: var(--color-art);
}

.btn-art:hover {
  background: #2d5a87;
  color: #fff;
}

/* ======= Header ======= */

.header {
  background: var(--bg);
  border-bottom: 2px solid var(--brand-orange);
  border-top: 4px solid var(--brand-orange);
}

.header .top-bar {
  padding: 2rem 0 0;
  max-width: 800px;
  margin: 0 auto;
}

.header .social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0;
}

.header .social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-base);
}

.header .social a:hover {
  color: var(--brand-orange);
}

.header .profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 2.5rem auto 1.5rem;
  display: block;
  object-fit: cover;
  filter: grayscale(20%);
}

.header .name {
  text-align: center;
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--brand-orange);
  background: none;
  -webkit-text-fill-color: unset;
}

.header .title {
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.title-dot {
  color: var(--brand-orange);
  font-weight: 700;
}

.header .intro {
  background: transparent;
  padding: 0 0 2.5rem;
}

.header .profile {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
}

.header .profile p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

.header .contact-info {
  background: var(--brand-orange-light);
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--brand-orange-border);
}

.header .contact-info ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.header .contact-info li {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.header .contact-info li i {
  margin-right: 0.4rem;
  color: var(--color-primary);
}

.header .contact-info li:last-child i {
  color: var(--color-art);
}

/* ======= Navigation ======= */

.page-nav-wrapper {
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.page-nav {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.page-nav li { list-style: none; }

.page-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: var(--transition-base);
  letter-spacing: 0.01em;
}

.page-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-alt);
}

.page-nav a.active {
  color: var(--text-primary);
  background: var(--bg-alt);
}

/* ======= Sections ======= */

.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  box-shadow: none;
  overflow: visible;
}

.section::before {
  display: none;
}

.section:hover {
  transform: none;
  box-shadow: none;
}

.section:last-child {
  border-bottom: none;
}

.section-title {
  text-align: left;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.section-title::after {
  display: none;
}

/* ======= Pillar Layout ======= */

.pillar-content {
  position: relative;
}

.pillar-lead {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.art-section .pillar-icon {
  background: var(--color-art-light);
  border-color: var(--color-art-border);
  color: var(--color-art);
}

.pillar-intro h3 {
  margin-bottom: 0.15rem;
}

.pillar-role {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pillar-role a {
  color: var(--color-art);
}

/* Section-specific color accents */
#engineering-section .section-title { color: var(--color-primary); }
#projects-section .section-title { color: var(--color-projects); }
#art-section .section-title { color: var(--color-art); }

#engineering-section { border-bottom-color: var(--color-primary-border); }
#projects-section { border-bottom-color: var(--color-projects-border); }
#art-section { border-bottom-color: var(--color-art-border); }

.pillar-content > p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ======= Stat Cards ======= */

.stat-card {
  background: var(--bg-alt);
  border: none;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition-base);
  height: 100%;
}

.stat-icon {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.stat-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ======= Nexus Grid ======= */

.nexus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.nexus-card {
  background: var(--bg-alt);
  border: none;
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition-base);
}

.nexus-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.nexus-card h4 i {
  color: var(--color-projects);
  margin-right: 0.5rem;
  font-size: 0.85rem;
}

.nexus-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ======= Art Section ======= */

.art-pieces {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.art-card {
  background: var(--bg-alt);
  border: none;
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition-base);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.art-card::before {
  display: none;
}

.art-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 110, 165, 0.12);
  border: 1px solid var(--color-art-border);
}

.art-card-inner {
  padding: 1rem;
  width: 100%;
}

.art-title {
  color: var(--text-primary);
  font-weight: 400;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.4;
}

.art-year {
  color: var(--color-art);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

/* ======= Skill Tags ======= */

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
}

.skill-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition-base);
}

.skill-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Section-specific skill tag hovers */
#projects-section .skill-tag:hover,
.project-detail .skill-tag:hover {
  background: var(--color-projects);
  border-color: var(--color-projects);
}

#art-section .skill-tag:hover {
  background: var(--color-art);
  border-color: var(--color-art);
}

/* ======= Timeline ======= */

.timeline {
  position: relative;
  padding-left: 0;
  border-left: none;
}

.timeline .item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 0;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

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

.timeline .item::before {
  display: none;
}

.timeline .work-place {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline .place {
  color: var(--text-primary);
  font-size: 1.15rem;
  margin-bottom: 0;
}

.timeline .location {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.timeline .location i {
  margin-right: 0.2rem;
  font-size: 0.75rem;
}

.timeline .job-meta {
  margin: 0.5rem 0 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.timeline .job-meta .title {
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.timeline .job-meta .time {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.timeline .job-highlights {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}

.timeline .job-highlights li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.timeline .job-highlights li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* ======= Education ======= */

.education-section .item-inner {
  position: relative;
}

.education-section .degree {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.education-section .education-body {
  color: var(--text-secondary);
  font-size: 1rem;
}

.education-section .time {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.contact-section .intro {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.contact-section .profile-image {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: none;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  filter: grayscale(20%);
}

.contact-section .dialog {
  flex: 1;
  min-width: 280px;
}

.contact-section .dialog p {
  font-size: 0.95rem;
}

.contact-section .service-list {
  list-style: none;
  padding: 0;
}

.contact-section .service-list li {
  padding: 0.3rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-section .service-list i {
  color: var(--color-primary);
  margin-right: 0.6rem;
  font-size: 0.8rem;
}

/* ======= Section Intro ======= */

.section-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ======= Project Grid ======= */

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

.project-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition-base);
  color: var(--text-secondary);
  text-decoration: none;
}

a.project-card:hover {
  border-color: var(--color-projects-border);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.08);
  color: var(--text-secondary);
  transform: translateY(-2px);
}

.project-card--featured {
  grid-column: 1 / -1;
}

.project-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-projects);
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.project-card-tech {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.project-card-link {
  font-size: 0.8rem;
  color: var(--color-projects);
  font-weight: 500;
}

a.project-card:hover .project-card-link {
  color: var(--color-projects);
}

/* ======= Project Detail Pages ======= */

.project-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.back-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.back-link i {
  margin-right: 0.5rem;
}

.project-detail-header {
  margin-bottom: 3rem;
}

.project-detail-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.project-detail-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.project-detail-body h2 {
  margin-top: 2.5rem;
}

.project-detail-body > p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ======= Infrastructure List ======= */

.infra-list {
  margin-top: 1rem;
}

.infra-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  align-items: baseline;
}

.infra-item:last-child {
  border-bottom: none;
}

.infra-item strong {
  min-width: 140px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.infra-item span {
  color: var(--text-secondary);
}

/* ======= Delivery Grid ======= */

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.delivery-card {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.delivery-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.delivery-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ======= Feature List ======= */

.feature-list {
  margin-top: 1rem;
}

.feature-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

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

.footer {
  background: var(--bg);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

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

.footer-sep {
  margin: 0 0.5rem;
}

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

@media (max-width: 992px) {
  .nexus-grid {
    grid-template-columns: 1fr;
  }

  .art-pieces {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .project-card--featured {
    grid-column: auto;
  }

  .delivery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .wrapper {
    padding: 2rem 1.25rem;
  }

  .header .name {
    font-size: 1.8rem;
  }

  .section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
  }

  .pillar-lead {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-nav {
    gap: 0;
  }

  .contact-section .intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline .work-place {
    flex-direction: column;
    gap: 0.15rem;
  }

  .timeline .job-meta {
    flex-direction: column;
    gap: 0.15rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .header .profile-image {
    width: 100px;
    height: 100px;
  }

  .page-nav {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .page-nav a {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }

  .art-pieces {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .pillar-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1rem;
  }

  .delivery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .delivery-number {
    font-size: 1.4rem;
  }

  .infra-item {
    flex-direction: column;
    gap: 0.2rem;
  }

  .infra-item strong {
    min-width: auto;
  }
}
