/* ==========================================================================
   LeeZhi.dev - Apple Light Editorial Design System
   Style: Minimalist Light / High-End Editorial Portfolio
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System Tokens & Root
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-page: #fafaf9;
  --bg-section-alt: #f4f4f5;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  --text-main: #18181b;
  --text-muted: #71717a;
  --text-dim: #a1a1aa;

  --accent-primary: #18181b;
  --accent-blue: #2563eb;
  --accent-emerald: #059669;
  --accent-amber: #d97706;

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-focus: rgba(0, 0, 0, 0.2);

  /* Typography */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Elevational Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 16px 32px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);

  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --max-width: 1200px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Typography Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-main);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--accent-blue);
}

/* --------------------------------------------------------------------------
   3. Header Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  color: #047857;
  font-weight: 600;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--text-main);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--border-focus);
  background: #fafafa;
  transform: translateY(-2px);
}

.icon-svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: #f4f4f5;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
}

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

/* Hero Right: Clean Profile Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.profile-card:hover {
  box-shadow: var(--shadow-hover);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--text-main);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

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

.profile-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.meta-icon {
  font-size: 1.3rem;
}

.meta-content {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.775rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.meta-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.meta-link:hover { text-decoration: underline; }

.profile-footer {
  background: #f4f4f5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.profile-status-tag {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   6. Sections Standard Layout
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 6.5rem 0;
}

.section-light-bg {
  background-color: var(--bg-section-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   7. About Philosophy Cards
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   8. Skills Bento Grid Section
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.bento-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

.bento-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: #f4f4f5;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.accent-emerald { background: #ecfdf5; color: #047857; }
.accent-blue { background: #eff6ff; color: #1d4ed8; }
.accent-amber { background: #fffbeb; color: #b45309; }

.bento-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.bento-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pill {
  font-size: 0.825rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: #f4f4f5;
  color: var(--text-main);
  font-weight: 500;
}

.skill-progress-box {
  margin-top: auto;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e4e4e7;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--text-main);
  border-radius: 4px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.list-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.skill-list strong {
  font-size: 0.95rem;
  display: block;
}

.skill-list p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Projects Showcase Section
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
  font-weight: 600;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.project-media {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.bg-pastel-1 { background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%); }
.bg-pastel-2 { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); }
.bg-pastel-3 { background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%); }
.bg-pastel-4 { background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%); }

.project-type-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
}

.media-preview-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(24, 24, 27, 0.75);
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.project-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.project-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: #f4f4f5;
  color: var(--text-muted);
  font-weight: 500;
}

.project-footer {
  display: flex;
  gap: 0.75rem;
}

.link-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: #f4f4f5;
  transition: all var(--transition-fast);
}

.link-btn:hover {
  background: var(--text-main);
  color: #ffffff;
}

.link-btn.outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   10. Contact Section & Cards
   -------------------------------------------------------------------------- */
.contact-card-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-card);
}

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

.contact-item {
  background: #f4f4f5;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
}

.copy-action-btn {
  color: var(--accent-blue);
  font-size: 0.775rem;
  font-weight: 700;
}

.w-100 { width: 100%; }

/* --------------------------------------------------------------------------
   11. Footer & Modals
   -------------------------------------------------------------------------- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
}

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

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.top-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4f4f5;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: bold;
}

.top-btn:hover { background: var(--text-main); color: #ffffff; }

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 500px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-hover);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-dim);
}

.close-btn:hover { color: var(--text-main); }

.modal-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.modal-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.qr-box {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f4f4f5;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qr-icon { font-size: 2.5rem; }
.qr-id { font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   12. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide, .bento-tall { grid-column: span 1; grid-row: span 1; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .d-none-mobile { display: none !important; }
  .hamburger-btn { display: flex; }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 1.25rem;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-hover);
  }
  .nav-menu.open { transform: translateY(0); }
  .footer-content { flex-direction: column; gap: 1.25rem; text-align: center; }
}
