/* ── Global ─────────────────────────────────────────────── */
:root {
  --header-bg: #000000;
  --nav-box-bg: #ffffff;
  --nav-text: #000000;
  --page-bg: #f5f5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--page-bg);
  color: #111;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background-color: var(--header-bg);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.flags {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.flag-icon {
  width: 28px;
  height: auto;
  border-radius: 2px;
  display: block;
}

/* ── Navigation boxes ───────────────────────────────────── */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  flex: 1;
}

.nav-box {
  background-color: var(--nav-box-bg);
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-radius: 3px;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-box:hover,
.nav-box.active {
  background-color: #e0e0e0;
  color: var(--nav-text);
}

/* ── Fixed backgrounds (home + inner pages) ───────────────── */
.fixed-bg,
.home-bg,
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(0px);
  transform: scale(1.05);
  z-index: 0;
  pointer-events: none;
}

.home-bg {
  position: fixed;
  top: 0;
  left: 0;
  /* width: 100%; */
  height: 100%;
  background-image: url("../images/grandprismatic.jpeg");
  
    background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(0px);
  transform: scale(1.05);
  z-index: 0;
  pointer-events: none;
}

.page-bg.projects-bg {
  position: fixed;
  top: 0;
  left: 0;
  /* width: 100%; */
  height: 100%;
  background-image: url("../images/forestentrance.jpeg");
    background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(0px);
  transform: scale(1.05);
  z-index: 0;
  pointer-events: none;
}

.page-bg.services-bg {
  background-image: url("../images/services-bg.jpg");
}

.page-bg.coop-bg {
  background-image: url("../images/nose_hill_park.jpeg");
}

/* Fallback when no image is present */
.home-bg.no-image {
  background-color: #2c3e50;
  background-image: none;
}

.home-bg.no-image::after {
  content: "";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.page-bg.projects-bg.no-image {
  background-color: #1e3a5f;
  background-image: none;
}

.page-bg.projects-bg.no-image::after {
  content: "Projects background image placeholder";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.page-bg.services-bg.no-image {
  background-color: #2d4a3e;
  background-image: none;
}

.page-bg.services-bg.no-image::after {
  content: "Services background image placeholder";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.page-bg.coop-bg.no-image {
  background-color: #4a2d3e;
  background-image: none;
}

.page-bg.coop-bg.no-image::after {
  content: "Co-op funding background image placeholder";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
}

.fixed-overlay,
.home-overlay,
.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

.page-overlay.coop-overlay {
  background: rgba(0, 0, 0, 0.12);
}

.home-section {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.home-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.home-content h1 {
  color: #ffffff;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ── About Me section ─────────────────────────────────────── */
.about-section {
  position: relative;
  z-index: 2;
  background-color: transparent;
  padding: 4rem 1.5rem;
  min-height: 80vh;
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.profile-photo {
  width: 220px;
  height: 220px;
  
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: block;
  background-color: #d0d0d0;
  border: 4px solid #e0e0e0;
  overflow: hidden;
  box-sizing: border-box;
  line-height: 0;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-position: center -100px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

.about-section .profile-photo {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.profile-photo.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  padding: 1rem;
}

.about-section .profile-photo.no-image {
  background-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ── Inner pages (projects, services, etc.) ──────────────── */
.page-section {
  position: relative;
  z-index: 2;
  background-color: transparent;
  padding: 4rem 1.5rem 6rem;
  min-height: calc(100vh - 60px);
}

.page-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-section h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.page-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.page-section .placeholder-text {
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
  line-height: 1.75;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ── Frosted blur behind text + list styles ───────────────── */
.text-blur {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  text-align: left;
  margin-bottom: 1.5rem;
}

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

.certifications-grid h2 {
  margin-bottom: 0.25rem;
}

.certifications-grid .placeholder-text {
  font-style: normal;
  color: rgba(255, 255, 255, 0.84);
}

.text-blur h1 {
  text-align: center;
}

.placeholder-list {
  list-style: disc;
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.text-blur p {
  margin: 0 0 0.5rem 0;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 2;
  background-color: var(--header-bg);
  padding: 1rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-box {
  background-color: var(--nav-box-bg);
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-radius: 3px;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.footer-box:hover {
  background-color: #e0e0e0;
  color: var(--nav-text);
}

.footer-box.placeholder {
  cursor: default;
  pointer-events: none;
}

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 576px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-box {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }

  .profile-photo {
    width: 160px;
    height: 160px;
  }

  .footer-box {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }
}
