/* CSS Variables for theming */
:root {
  /* Light theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-card: #ffffff;
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #999999;
  --accent-color: #007acc;
  --accent-hover: #005a99;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
  /* Dark theme */
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-card: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --accent-color: #4da6ff;
  --accent-hover: #66b3ff;
  --border-color: #404040;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg-secondary);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
  background: var(--bg-card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
}

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

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn.active {
  color: var(--accent-color);
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--accent-color);
  color: var(--bg-primary);
}

/* Header */
.hero {
  text-align: center;
  padding: 4rem 0 2rem;
  background: var(--bg-card);
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.hero p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Cards and sections */
.card {
  background: var(--bg-card);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card h2 {
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  font-size: 1.8rem;
}

/* Lists */
ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

ul li:last-child {
  border-bottom: none;
}

/* Work/Education items */
.item {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

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

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

.item-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.item-dates {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.item-subtitle {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  /* Removed hover transform and shadow effects */
}

.project-image {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-desc {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.contact-info a:hover {
  background: var(--bg-secondary);
}

/* Footer */
.footer {
  background: var(--bg-card);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    gap: 1rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem;
    text-align: center;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* Blog preview styles */
.blog-preview {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.blog-post {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  /* Removed hover effects */
}

.blog-post h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-post a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Button styles */
.btn {
  display: inline-block;
  background: var(--accent-color);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-color);
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Project page specific styles */
.project-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
  color: var(--text-secondary);
}

.project-date, .project-tech {
  font-size: 0.9rem;
}

.project-highlights ul {
  margin-top: 1rem;
}

.tech-section h3 {
  color: var(--accent-color);
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.2rem;
}

.tech-section h3:first-child {
  margin-top: 0;
}

.code-example {
  margin: 2rem 0;
}

.code-example h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.code-example pre {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
}

.code-example code {
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

.performance-metrics h3 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.metric {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.metric h4 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* Contact page styles */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  /* Removed hover effects */
}

.contact-item h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.contact-item a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

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

.contact-item p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Contact form styles */
.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.availability-info ul {
  margin: 1rem 0;
}

.availability-info p {
  margin: 1rem 0;
}

/* Blog specific styles */
.blog-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
}

.filter-controls select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
}

.blog-posts {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.blog-post {
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  /* Removed hover effects */
}

.post-header {
  margin-bottom: 1rem;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.post-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--accent-color);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.page-info {
  color: var(--text-secondary);
  font-weight: 500;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  /* Removed hover effects */
}

.category-card h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.category-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.post-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Coming soon and ideas styles */
.coming-soon {
  margin-top: 2rem;
}

.interests-preview {
  margin-top: 2rem;
}

.interests-preview h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.interests-preview ul {
  margin-top: 1rem;
}

.blog-intro {
  text-align: center;
}

.blog-intro p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.project-ideas {
  margin-top: 2rem;
}

.project-ideas h3 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.idea-card {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  /* Removed hover effects */
}

.idea-card h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.idea-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.learning-timeline {
  margin-top: 2rem;
}

.timeline-item {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  /* Removed hover effects */
}

.timeline-item h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.timeline-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Home page specific styles */
.learning-section {
  margin-top: 2rem;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.learning-item {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  /* Removed hover effects */
}

.learning-item h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.learning-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.interests-section {
  margin-top: 2rem;
}

.interests-section ul {
  margin-top: 1rem;
}

.interests-section li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.quick-links .btn {
  text-align: center;
  padding: 1rem;
}

.fun-facts {
  margin-top: 2rem;
}

.fun-facts ul {
  margin-top: 1rem;
}

.fun-facts li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* CV page styles */
.download-section {
  text-align: center;
  margin-top: 2rem;
}

.download-section p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* Blog article page styles */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-title {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.article-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-content {
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content h2 {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.article-content h3 {
  color: var(--accent-color);
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.article-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.article-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-share {
  text-align: center;
}

.article-share h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

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

.share-links a {
  color: var(--accent-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.share-links a:hover {
  background: var(--accent-color);
  color: var(--bg-primary);
}

/* Interests grid for about page */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.interest-item {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  /* Removed hover effects */
}

.interest-item h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.interest-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer links */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

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

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
 
.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: left; /* stop centering text */
}

.hero-photo img {
  max-width: 200px;
  height: auto;
  border-radius: 50%; /* optional: circular headshot */
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
}

