/* Pálos Ferenc — portfolio
   Dark theme, single accent, mobile-first. No external dependencies. */

:root {
  --bg:        #0d1117;
  --bg-raised: #151b23;
  --border:    #232c38;
  --text:      #e6edf3;
  --muted:     #9aa7b4;
  --accent:    #4cc2ff;
  --accent-dim: rgba(76, 194, 255, 0.12);

  --wrap: 66rem;
  --radius: 12px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 650; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-raised);
  color: var(--text);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60rem 26rem at 15% -10%, var(--accent-dim), transparent 70%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.hero-photo {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 4px rgba(76, 194, 255, 0.08);
  flex: none;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tagline {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  max-width: 34ch;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.hero-links a:hover,
.hero-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- Sections ---------- */

.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--border); }

.section h2 {
  margin-bottom: 1.75rem;
  position: relative;
  padding-left: 0.9rem;
}
.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* ---------- Project cards ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-links { margin-top: 1rem; margin-bottom: 0; }
.card-links a { font-size: 0.9rem; font-weight: 600; }
.card-links a::after { content: " →"; }

.todo {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.75;
}

/* ---------- Tags ---------- */

.tags {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags li {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

/* ---------- Skills ---------- */

.skill-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.skill-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 1.25rem;
}
.skill-group h3 { margin-bottom: 0; color: var(--text); }

/* ---------- Certifications ---------- */

.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.two-col h3 { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }

.list { list-style: none; margin: 0; padding: 0; }

.list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  justify-content: space-between;
  align-items: baseline;
}
.list li:last-child { border-bottom: 1px solid var(--border); }
.list strong { font-weight: 600; }
.list .meta { color: var(--muted); font-size: 0.85rem; }

/* ---------- CV ---------- */

.cv-block p { color: var(--muted); max-width: 54ch; }

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #04121c;
  font-weight: 650;
  font-size: 0.95rem;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.button:hover,
.button:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-1px);
  text-decoration: none;
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  filter: none;
}

.cv-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer p { max-width: 60ch; }
.colophon { margin-top: 1rem; font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 40rem) {
  .hero { padding: 6rem 0 4.5rem; }
  .hero-inner { flex-direction: row; align-items: center; gap: 2.25rem; }
  .hero-photo { width: 150px; height: 150px; }
  .section { padding: 4.5rem 0; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .skill-grid { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
  .two-col { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

@media (min-width: 62rem) {
  .hero-photo { width: 168px; height: 168px; }
}
