/* Global Styles */
:root {
  --lime-green: #32CD32;
  --lime-green-dark: #28a428;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-secondary: #f9f9f9;
  --border-color: #e0e0e0;
  --max-width: 800px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Header */
header {
  background-color: var(--bg-secondary);
  border-bottom: 2px solid var(--lime-green);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
}

.site-title:hover {
  color: var(--lime-green);
}

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

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.menu-toggle:hover {
  color: var(--lime-green);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.social-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

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

.social-links a::before {
  content: '→ ';
  color: var(--lime-green);
}

/* Icon styling for social links */
.social-links img.icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
  display: inline-block;
}

.social-links i {
  margin-right: 4px;
}

/* Main Content */
main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
  min-height: calc(100vh - 300px);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  border-bottom: 2px solid var(--lime-green);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--lime-green);
  text-decoration: none;
}

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

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Nested lists (for work experience) */
ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Blog Styles */
.blog-list {
  list-style: none;
  margin-left: 0;
}

.blog-post {
  background: var(--bg-secondary);
  border-left: 4px solid var(--lime-green);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-post:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-post h3 {
  margin-top: 0;
}

.blog-post h3 a {
  color: var(--text-color);
  text-decoration: none;
}

.blog-post h3 a:hover {
  color: var(--lime-green);
  text-decoration: none;
}

.blog-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.blog-excerpt {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.read-more {
  display: inline-block;
  color: var(--lime-green);
  font-weight: 500;
}

/* Blog Post Content */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.post-title {
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.back-link:hover {
  color: var(--lime-green);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Code blocks */
pre {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

code {
  font-family: 'Courier New', Courier, monospace;
  background: var(--bg-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

pre code {
  padding: 0;
  background: none;
}

/* Embedded content */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  border-top: 2px solid var(--lime-green);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

footer .social-links {
  margin-bottom: 1rem;
}

footer p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

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

  h2 {
    font-size: 1.5rem;
  }

  .header-content {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  nav {
    display: none;
    width: 100%;
    order: 3;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    margin: 0;
  }

  .social-links {
    display: none;
    width: 100%;
    order: 4;
    font-size: 0.85rem;
    gap: 0.75rem;
    padding-top: 1rem;
  }

  .social-links.active {
    display: flex;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}
