:root {
  --bg: #0a0b0f;
  --bg-glow: #1b2030;
  --text: #f2f4ff;
  --text-muted: #aab2cc;
  --label: #9aa6c8;
  --accent-from: #6a8bff;
  --accent-to: #a45cff;
  --card-bg: #12141c;
  --card-border: #222637;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* Centered content column, shared by every section's inner wrapper.
   Sections themselves span the full viewport width (so backgrounds bleed
   edge-to-edge); their inner wrapper re-centers the content. */
.hero__inner,
.projects__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero — full-width glow band; the gradient now spans the whole viewport */
.hero {
  background: radial-gradient(120% 120% at 80% 10%, var(--bg-glow) 0%, var(--bg) 60%);
}

/* Hero — Layout A: photo left, greeting right */
.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  min-height: 70vh;
}

.hero__photo {
  flex: 0 0 240px;
  width: 240px;
  height: 300px;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(160deg, #2a3350, #11131c);
  box-shadow: 0 0 60px rgba(106, 139, 255, 0.25);
}

.hero__greeting {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin-top: 12px;
}

.accent-bar {
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 20px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
}

/* Projects */
.projects {
  padding: 64px 0 96px;
}

.projects__title {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 24px;
}

.projects__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent-from);
  transform: translateY(-2px);
}

.project-card__name {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.project-card__desc {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.project-card__link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-from); /* readable fallback if background-clip:text is unsupported */
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* reveals the clipped gradient in WebKit/Safari */
}

/* Responsive — stack hero on narrow screens */
@media (max-width: 640px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 48px;
    gap: 28px;
  }

  .hero__photo {
    flex-basis: auto;
    width: 180px;
    height: 220px;
  }

  .accent-bar {
    margin-left: auto;
    margin-right: auto;
  }
}
