/* 🌿 Natural Zen Theme - Herman's Digital World */
/* Define color palette using CSS variables */
:root {
  --background: #fdfcf8;
  --text: #2f3e46;
  --accent: #588157;
  --secondary: #a3b18a;
}

/* Base styles */
body {
  background-color: var(--background);
  color: var(--text);
  font-family: 'Baskervville', serif;
  margin: 0;
  padding: 0;
}

h1, p {
  text-align: center;
}

/* Header container update */
header.Heading {
  display: flex;
  justify-content: space-between; /* logo on left, nav on right */
  align-items: center;
  height: 100px;
  padding: 0 20px; /* give room on both sides */
  background-color: #fdfcf8;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
main {
  margin-top: 120px;
}

/* Logo area */
.logo {
  display: flex;
  align-items: center;
  height: 100%; /* fill header height */
}

.logo img {
  height: 60px;  /* scaled to fit in nav */
  width: auto;
  object-fit: contain;
  display: block;
}


/* Navigation bar */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #2f3e46;
  font-weight: bold;
  transition: color 0.2s ease-in-out;
}

nav ul li a:hover {
  color: #588157; /* Olive green accent on hover */
}

/* Intro section */
.intro {
  text-align: center;
  margin-top: 140px;
  padding: 20px;
}

.intro h1 {
  font-family: 'Anton', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}

.intro p {
  font-size: 1.2rem;
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 1em auto;
}

/* Social icons section */
.social-icons {
  margin: 2em 0;
  text-align: center;
}

.social-icons a {
  margin: 0 10px;
  color: var(--accent);
  font-size: 1.5rem;
}

.social-icons a:hover {
  color: var(--secondary);
}

/* Section blocks (e.g., About, Projects, Contact) */
.section {
  max-width: 1000px;
  margin: 4em auto;
  padding: 0 20px;
}

.section h2 {
  font-size: 2rem;
  font-family: 'Anton', sans-serif;
  margin-bottom: 1em;
  text-align: center;
}

.section .content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.section .content > div {
  background-color: white;
  padding: 20px;
  border: 1px solid var(--secondary);
  border-radius: 10px;
  width: 280px;
  min-height: 180px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  font-family: 'Raleway', sans-serif;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 2em;
  color: var(--text);
  font-family: 'Raleway', sans-serif;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .section .content {
    flex-direction: column;
    align-items: center;
  }

  .section .content > div {
    width: 90%;
  }
}

/* ====== Section Headings & General Layout ====== */
section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  color: #2f3e46;
  font-size: 28px;
  margin-bottom: 20px;
}

/* ====== Intro Section ====== */
.intro {
  padding-top: 140px; /* leaves space for fixed nav */
  text-align: center;
  color: #2f3e46;
}

.intro h1 {
  font-family: 'Anton', sans-serif;
  font-size: 36px;
  margin-bottom: 20px;
}

.intro p {
  font-family: 'Raleway', sans-serif;
  max-width: 600px;
  margin: 0 auto 10px;
  font-size: 18px;
}


/* ====== About Section ====== */
.about {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.about h2 {
  text-align: center;
  margin-bottom: 20px;
}

.about p {
  text-align: left;
  line-height: 1.4;
  margin-bottom: 16px;
}

.about h3 {
  margin-top: 40px;
  margin-bottom: 16px;
  text-align: left;
}

.about ul {
  padding-left: 24px;
  margin: 0;
}

.about li {
  margin-bottom: 12px;
  line-height: 1.6;
}



/* ====== Projects Section ====== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project {
  /* background-color: #fdfcf8;
  border: 1px solid #2f3e46;
  border-radius: 8px; */
  padding: 20px;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  margin: 0 auto;
  width: fit-content;
  color: #666;
  font-size: 1.1rem;
}

/* ====== Social Icons ====== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icons a {
  font-size: 24px;
  color: #588157;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #2f3e46;
}

.blog-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

#blog-list {
  margin-top: 2rem;
}

#blog-list h2 {
  font-size: 1.4rem;
  margin: 6px 0;
}

.post-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: #fff;
}

.post-card h2 {
  margin-top: 0;
}

.post-card a {
  text-decoration: none;
}

.post-date {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

#post-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.8;
}

nav {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 24px;
}

nav a {
  text-decoration: none;
  color: #2f3e46;
  font-weight: bold;
  transition: color 0.2s ease-in-out;
}