/* Global Styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --secondary: #059669;
  --text-dark: #0f172a;
  --text-light: #334155;
  --border: #e2e8f0;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --accent: #f59e0b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

/* Typography */
h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

p {
  margin-bottom: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

code {
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 13px;
  color: #d11f45;
}

pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 13px;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Navigation */
header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Hero Section */
.hero {
  padding: 60px 0 40px 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero p {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 32px auto;
  color: var(--text-light);
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  margin-right: 12px;
  margin-bottom: 12px;
}

.cta-button:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
  background: var(--primary-light);
  text-decoration: none;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.grid.full-width {
  grid-template-columns: 1fr;
}

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

/* Cards */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.card h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  margin-bottom: 12px;
}

.card ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.card li {
  margin-bottom: 8px;
  color: var(--text-light);
}

.card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--bg-white), var(--primary-light));
}

/* Project Cards */
.project-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
  transition: all 0.3s;
}

.project-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.project-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-light);
}

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

.tech-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.metrics {
  background: var(--bg-light);
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.metric {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

.metric-label {
  font-weight: 600;
  color: var(--text-dark);
}

.metric-value {
  color: var(--secondary);
  font-weight: 600;
}

/* Article List */
.article-list {
  list-style: none;
}

.article-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s;
  cursor: pointer;
}

.article-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.article-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.article-excerpt {
  color: var(--text-light);
  margin-bottom: 12px;
}

.article-link {
  font-weight: 600;
  color: var(--primary);
}

/* Sections */
.section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
  padding-top: 40px;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 60px 0;
  text-align: center;
  border-radius: 12px;
  margin: 60px 0;
}

.contact-section h2 {
  color: white;
  margin-top: 0;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.contact-section a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
  background: var(--bg-white);
}

footer p {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.social-links a {
  font-weight: 600;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .hero {
    padding: 40px 0 20px 0;
  }

  .hero h1 {
    margin-bottom: 8px;
  }

  .section {
    padding: 40px 0;
  }

  .grid {
    gap: 16px;
  }

  .card {
    padding: 20px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  header {
    display: none;
  }

  footer {
    display: none;
  }

  .container {
    max-width: 100%;
  }
}
