/* -------- Minimal tokens (link colors) -------- */
:root {
  --link: #8ec5ff;
  --link-hover: #c3e0ff;
}

/* -------- Base / layout -------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;

  /* Make all default text WHITE */
  color: #ffffff;

  /* Background image */
  background: #000 url("../images/bg3.jpg") no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

/* Dark overlay for readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;             /* below content */
  pointer-events: none;
}

/* Ensure page content sits above overlay */
header, main, footer { position: relative; z-index: 1; }

/* Headings & basic text (explicitly white for safety) */
h1, h2, h3, h4, h5, h6,
p, li, small { color: #ffffff; }

/* Links stay blue for contrast */
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* -------- Header -------- */
header {
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0 0 12px 12px;
}

/* Nav spacing */
nav a { margin: 0 .6rem; }

/* -------- Main container -------- */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

h1, h2, h3 { line-height: 1.2; margin: .2rem 0 .6rem; }

/* -------- Cards / articles -------- */
article {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.72);     /* dark “glass” */
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.35);

  /* Backdrop blur (with Safari/iOS prefix) */
  -webkit-backdrop-filter: blur(6px);     /* Safari 9+ */
  backdrop-filter: blur(6px);             /* Standard */
}

/* -------- Project two-column layout -------- */
.project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap; /* stack on small screens */
}

.project-text { flex: 1 1 55%; min-width: 260px; }
.project-img  { flex: 1 1 40%; max-width: 300px; border-radius: 12px; display: block; }

/* -------- Footer -------- */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255,255,255,0.85);      /* readable white */
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px 12px 0 0;
}

/* -------- Small screens polish -------- */
@media (max-width: 480px) {
  .project-img { max-width: 100%; }
}

/* -------- Hover zoom effect on project images -------- */
.project-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-img:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Optional: better readability when blur isn't supported */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  article { background: rgba(20, 20, 20, 0.85); }
}
