/* ---------- Base & layout ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  color: #f0f0f0;
  background: url("/images/bg.png") no-repeat center center fixed; 
  background-size: cover;
}

/* Centers the page content */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section spacing */
section { padding: 3rem 0; }
h1, h2, h3 { margin: 0 0 .75rem; color: #fff; }
p { margin: .5rem 0 1rem; line-height: 1.6; }

/* ---------- Header / Nav ---------- */
header {
  position: sticky; top: 0;
  backdrop-filter: blur(6px);
  background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.2));
  z-index: 10;
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0;
}
nav h1 { font-size: 1.25rem; margin: 0; }
nav ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
nav a { color: #cfe3ff; text-decoration: none; }
nav a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}
.hero .button,
.project-item a {
  display: inline-block;
  padding: .6rem 1rem;
  background: #1e90ff; color: #fff; text-decoration: none;
  border-radius: 8px; font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.hero .button:hover,
.project-item a:hover { background:#0d6efd; transform: translateY(-1px); }

/* ---------- Projects (cards) ---------- */
.project-list {
  display: grid;
  grid-template-columns: 1fr;   /* mobile */
  gap: 1.5rem;
  margin-top: 1rem;
}
.project-item {
  background: rgba(0,0,0,.6);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-item:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,.45); }
.project-item h3 { margin-bottom:.25rem; }
.project-item .tagline { font-size:.95rem; color:#c9d3e6; font-style: italic; margin:.25rem 0 .75rem; }

/* 2/3 column upgrades on larger screens */
@media (min-width: 768px){ .project-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px){ .project-list { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Contact form ---------- */
#contact form {
  background: rgba(0,0,0,.6);
  padding: 1.25rem;
  border-radius: 12px;
  display: grid;
  gap: .8rem;
  max-width: 560px;
}
#contact label { font-size:.95rem; color:#d7e3ff; }
#contact input, #contact textarea {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(20,20,30,.65);
  color: #f0f0f0;
}
#contact textarea { min-height: 140px; resize: vertical; }
#contact button { justify-self: start; }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 2rem 0 3rem; color:#c9c9d0; }

/* Optional: tidy up any stray generic .button elements */
.button { cursor: pointer; }
