/* ------------------------------
   Base layout
------------------------------ */
body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 1em 4em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: #222;
  background-color: #f5f5f5;
}

/* ------------------------------
   Header
------------------------------ */
header {
  position: static !important; /* Force override if theme uses fixed */
  width: auto !important;
  text-align: center;
  margin-bottom: 1.5em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #dcdcdc;
  background-color: #f5f5f5;
}

header h1 {
  margin-bottom: 0.2em;
  font-size: 1.9em;
  font-weight: 600;
  letter-spacing: 0.3px;
}

header a {
  text-decoration: none;
  color: #111;
}

header p {
  margin-top: 0;
  color: #555;
  font-size: 0.95em;
}

/* ------------------------------
   Navigation
------------------------------ */
nav {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-top: 0.8em;
  margin-bottom: 2em;
  flex-wrap: wrap;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #0366d6;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

/* Subtle hover and underline animation */
nav a:hover {
  color: #024ea2;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #0366d6;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Active link styling (optional) */
nav a.active {
  color: #024ea2;
}

nav a.active::after {
  width: 100%;
  background-color: #024ea2;
}

/* ------------------------------
   Main content
------------------------------ */
main {
  background: #fff;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------
   Footer
------------------------------ */
footer {
  position: static !important;
  width: auto !important;
  text-align: center;
  margin-top: 3em;
  padding-top: 1em;
  color: #777;
  font-size: 0.9em;
  border-top: 1px solid #dcdcdc;
  background-color: #f5f5f5;
}

/* ------------------------------
   Responsive tweaks
------------------------------ */
@media (max-width: 600px) {
  nav {
    gap: 1em;
  }

  nav a {
    font-size: 0.95em;
  }

  header h1 {
    font-size: 1.6em;
  }

  main {
    padding: 1.5em;
  }
}

/* ------------------------------
   Homepage layout
------------------------------ */
.home-intro .intro-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  padding: 2em;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.intro-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: -6px;
}

.intro-text {
  max-width: 500px;
  text-align: left;
}

.intro-text h2 {
  margin-top: 0;
  font-size: 1.6em;
  color: #111;
}

@media (max-width: 700px) {
  .home-intro .intro-container {
    flex-direction: column;
    text-align: center;
  }

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

  .intro-photo img {
    width: 150px;
    height: 150px;
  }
}
