/* Personal CV Website - Global styles */
/* Typography: DM Sans for a modern, professional look */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #0d6b5c;
  --accent-hover: #0a5549;
  --border: #e5e7eb;
  --max-width: 900px;
  --spacing-unit: 1rem;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-unit) 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow);
}

.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.site-header .brand:hover {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--accent);
}

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  margin-top: auto;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .footer-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Sections */
section {
  margin-bottom: 2.5rem;
}

section:last-child {
  margin-bottom: 0;
}

h1, h2, h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; color: var(--text); }
h3 { font-size: 1.15rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

/* Hero (home) */
.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero .summary {
  max-width: 42ch;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
}

.highlight-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.highlight-bar span {
  font-weight: 500;
  color: var(--text);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* Experience timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline .company {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.timeline .role-period {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.timeline .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 4px;
}

.timeline ul {
  margin: 0;
  padding-left: 1.25rem;
}

.timeline ul li {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0.2rem 0;
  margin-bottom: 0;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.skills-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.skills-category h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.skills-list li:last-child {
  border-bottom: none;
}

/* Projects cards */
.projects-grid {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.project-card p {
  margin-bottom: 0.75rem;
}

/* Contact */
.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow);
}

.contact-block p {
  margin-bottom: 0.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-links a {
  font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .highlight-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }
}
