:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #141414;
  --text-primary: #e5e5e5;
  --text-secondary: #a3a3a3;
  --text-muted: #525252;
  --accent: #22d3ee;
  --accent-hover: #06b6d4;
  --border: #262626;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  display: block;
  overflow-x: auto;
}

th, td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

th {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

td {
  color: var(--text-secondary);
}

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

body > header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background-color: var(--bg-primary);
  z-index: 100;
}

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

.logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logo:hover {
  color: var(--accent);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

main {
  padding: 4rem 0;
  min-height: calc(100vh - 200px);
}

.hero {
  padding: 6rem 0 4rem;
  text-align: left;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hero .title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero .motto {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links i {
  font-size: 1.1rem;
}

.social-links .fa-github {
  color: #e5e5e5;
}

.social-links .fa-linkedin {
  color: #0a66c2;
}

.social-links .fa-youtube {
  color: #ff0000;
}

.social-links .fa-envelope {
  color: var(--accent);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 600;
}

h1 { font-size: 2rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

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

.page-header p {
  color: var(--text-secondary);
}

.section {
  margin-bottom: 4rem;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--border);
}

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  background-color: var(--accent);
  border-radius: 50%;
  transform: translateX(-4px);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.timeline-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.timeline-description ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}

.timeline-description li {
  margin-bottom: 0.375rem;
}

.project-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card h3 a {
  color: var(--text-primary);
}

.project-card h3 a:hover {
  color: var(--accent);
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-card .tech-stack {
  margin-top: 0;
}

.certifications {
  display: grid;
  gap: 1rem;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.cert-name {
  font-weight: 500;
  color: var(--text-primary);
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.education {
  display: grid;
  gap: 1rem;
}

.edu-item {
  padding: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.edu-degree {
  font-weight: 600;
  color: var(--text-primary);
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.edu-school {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.edu-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.section h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.blog-list {
  display: grid;
  gap: 1rem;
}

.blog-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.blog-item:hover {
  border-color: var(--accent);
  background-color: var(--bg-tertiary);
}

.blog-item .date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-item h3 {
  margin: 0.5rem 0;
  font-size: 1.15rem;
}

.blog-item h3 a {
  color: var(--text-primary);
}

.blog-item h3 a:hover {
  color: var(--accent);
}

.blog-item .summary {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.blog-item .tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--bg-tertiary);
  border-radius: 3px;
  color: var(--text-muted);
}

article.post {
  max-width: 700px;
}

article.post .post-header {
  margin-bottom: 2rem;
}

article.post .post-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

article.post h1 {
  font-size: 2rem;
  line-height: 1.3;
}

article.post .content {
  color: var(--text-secondary);
}

article.post .content h2 {
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

article.post .content h3 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

article.post .content p {
  margin-bottom: 1.25rem;
}

article.post .content ul,
article.post .content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

article.post .content li {
  margin-bottom: 0.5rem;
}

article.post .content pre {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

article.post .content code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

article.post .content p code {
  background-color: var(--bg-tertiary);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

article.post .content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

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

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 1rem;
}

@media (max-width: 640px) {
  body > header .container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .social-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cert-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .edu-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .blog-item {
    padding: 1rem;
  }

  .blog-item h3 {
    font-size: 1rem;
  }

  .blog-item .tags {
    flex-wrap: wrap;
  }

  article.post h1 {
    font-size: 1.5rem;
  }

  article.post .content pre {
    font-size: 0.75rem;
    padding: 0.75rem;
  }

  article.post .content h2 {
    font-size: 1.25rem;
  }

  article.post .content h3 {
    font-size: 1.1rem;
  }
}
