/* ==========================================
   thanh.lyforge.net — Clean Professional Theme
   ========================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --bg: #fafafa;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --max-width: 1100px;
  --narrow-width: 720px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; }

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

/* --- Typography --- */
h1, h2, h3 { font-weight: 700; line-height: 1.3; }

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

small { font-size: 0.875em; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow {
  max-width: var(--narrow-width);
}

.section {
  padding: 4rem 0;
}

.section:last-of-type {
  padding-bottom: 5rem;
}

/* --- Header --- */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.92);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text) !important;
  letter-spacing: -0.01em;
}

nav { display: flex; gap: 0.25rem; }

nav a {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}

nav a:hover { color: var(--text); background: #f3f4f6; }
nav a.active { color: var(--accent); background: #eff6ff; }

/* --- Hero --- */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero-content h1 {
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

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

.btn-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; }

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* --- About Section --- */
.about p {
  color: #374151;
  font-size: 1.025rem;
}

/* --- Stats / Highlights --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

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

/* --- Page Header --- */
.page-header {
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

/* --- Resume Items --- */
.resume-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

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

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
  gap: 1rem;
}

.resume-item-header h3 {
  margin-bottom: 0;
}

.date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.resume-org {
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.resume-item ul {
  padding-left: 1.25rem;
  color: #374151;
}

.resume-item ul li {
  margin-bottom: 0.35rem;
}

/* --- Skills --- */
.skills-list {
  display: grid;
  gap: 1.25rem;
}

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.skill-category h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.skill-category p {
  font-size: 0.95rem;
  color: #374151;
  margin: 0;
}

/* --- Awards --- */
.awards-list {
  list-style: none;
  padding: 0;
}

.awards-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: #374151;
}

.awards-list li:last-child {
  border-bottom: none;
}

/* --- Project Cards --- */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.project-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: #374151;
  font-size: 0.975rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  background: #fef3c7;
  color: #92400e;
}

.project-card:first-child .project-tag {
  background: #dbeafe;
  color: #1e40af;
}

.project-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Contact --- */
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none !important;
  color: var(--text) !important;
  transition: all 0.15s;
  min-width: 260px;
}

.contact-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #0a66c2;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-item div {
  text-align: left;
}

.contact-item strong {
  display: block;
  font-size: 0.95rem;
}

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

/* --- Empty State (Blog) --- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.empty-state h2 {
  margin-bottom: 0.75rem;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--white);
}

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

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted) !important;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent) !important;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 0.75rem 0;
    gap: 0.5rem;
  }

  .hero { padding: 3rem 0; }

  .hero-links { flex-direction: column; align-items: center; }

  .resume-item-header {
    flex-direction: column;
    gap: 0.15rem;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .section { padding: 2.5rem 0; }
}
