/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Bebas+Neue&display=swap');

:root {
  --black:   #0d0d0d;
  --white:   #f5f0e8;
  --red:     #d62828;
  --yellow:  #f7b731;
  --blue:    #1a3a6b;
  --mid:     #e8e3d9;
  --muted:   #6b6560;
  --radius:  0px;
  --max-width: 1100px;
  --nav-height: 60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-primary:hover { background: var(--black); border-color: var(--black); text-decoration: none; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--black);
  padding: 0.55rem 1.3rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover { background: var(--black); color: var(--white); text-decoration: none; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 4px solid var(--yellow);
}

.nav-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--white);
}
.nav-name a { color: inherit; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--yellow); text-decoration: none; }
.nav-links .btn-primary { color: var(--white); }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr 420px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  gap: 4rem;
  align-items: center;
  position: relative;
}

/* Bauhaus geometric accent — vertical color bar */
.hero::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 3rem;
  width: 10px;
  height: 200px;
  background: var(--yellow);
}

.hero-text { position: relative; }

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--red);
}

.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.hero-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
  padding: 0.4rem 0;
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid var(--mid);
  display: inline-block;
}

.hero-bio {
  max-width: 480px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Photo block — Bauhaus style: bold border + color blocks */
.hero-photo { position: relative; }

.photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--mid);
  border: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Offset color shadow blocks */
.hero-photo::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  background: var(--yellow);
  z-index: 0;
}
.hero-photo::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  background: var(--red);
  z-index: 2;
}

/* ── Section Base ── */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--black);
  color: var(--white);
  padding: 5rem 2rem;
}
.section-alt .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--yellow);
  flex-shrink: 0;
}

.section-alt .section-title::before { background: var(--red); }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--mid);
}
.section-alt .timeline::before { background: #333; }

.timeline-item { position: relative; margin-bottom: 2.75rem; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.05rem;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border: 2px solid var(--black);
  transform: rotate(45deg);
}
.section-alt .timeline-dot { background: var(--red); border-color: var(--white); }

.timeline-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.3rem;
}
.section-alt .timeline-date { color: var(--yellow); }

.timeline-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.15rem; }
.timeline-org {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.section-alt .timeline-org { color: var(--mid); }

.timeline-content ul { list-style: none; padding: 0; }
.timeline-content ul li {
  padding-left: 1rem;
  position: relative;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.timeline-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
}
.section-alt .timeline-content ul li { color: var(--mid); }
.section-alt .timeline-content ul li::before { color: var(--yellow); }
.timeline-content p { font-size: 0.875rem; color: var(--muted); }
.section-alt .timeline-content p { color: var(--mid); }

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border: 2px solid var(--black);
}

.skill-category {
  padding: 2rem;
  border-right: 2px solid var(--black);
  position: relative;
}
.skill-category:last-child { border-right: none; }

.skill-category h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--blue);
}

/* Bauhaus accent line under category title */
.skill-category h3::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--yellow);
  margin-top: 0.4rem;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  background: var(--black);
  color: var(--white);
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info p { margin-bottom: 0.6rem; font-size: 0.9rem; }
.contact-info strong { font-weight: 700; color: var(--black); }

.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.social-links a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  padding: 0.35rem 0.85rem;
  transition: background 0.15s;
}
.social-links a:hover { background: var(--red); text-decoration: none; }

.contact-form { display: flex; flex-direction: column; gap: 0; }
.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 2px solid var(--mid);
  border-bottom: none;
  font-size: 0.875rem;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.15s;
}
.contact-form textarea { border-bottom: 2px solid var(--mid); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form button { align-self: flex-start; margin-top: 1rem; }

/* ── Footer ── */
.footer {
  background: var(--black);
  border-top: 4px solid var(--red);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Portfolio Page ── */
.portfolio-hero {
  background: var(--black);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Bauhaus geometric background shapes */
.portfolio-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: 80px;
  width: 180px;
  height: 180px;
  border: 20px solid var(--yellow);
  opacity: 0.25;
}
.portfolio-hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 120px;
  width: 120px;
  height: 120px;
  background: var(--red);
  opacity: 0.2;
}

.portfolio-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.portfolio-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
}
.portfolio-hero p {
  color: var(--mid);
  margin-top: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.portfolio-filters {
  display: flex;
  gap: 0;
  padding: 2.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--black);
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--black);
  border-left: none;
  background: transparent;
  color: var(--black);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.filter-btn:first-child { border-left: 2px solid var(--black); }
.filter-btn:hover, .filter-btn.active {
  background: var(--black);
  color: var(--yellow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  gap: 1.5rem;
  padding-bottom: 5rem;
}

.project-card {
  border: 2px solid var(--black);
  overflow: hidden;
  transition: transform 0.2s;
  position: relative;
}
.project-card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--yellow); }
.project-card.hidden { display: none; }

.project-image-placeholder {
  height: 200px;
  background: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--black);
}

.project-info { padding: 1.5rem; }

.project-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  padding: 0.2rem 0.6rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.project-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.project-info p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.25rem; }
.project-links { display: flex; align-items: center; gap: 1rem; }
.project-links a:last-child { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--black); border-bottom: 4px solid var(--yellow); padding: 1.25rem 2rem; gap: 1.25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-photo { order: -1; max-width: 220px; margin: 0 auto; }
  .hero::before { display: none; }

  .contact-layout { grid-template-columns: 1fr; }

  .skills-grid { grid-template-columns: 1fr; }
  .skill-category { border-right: none; border-bottom: 2px solid var(--black); }
  .skill-category:last-child { border-bottom: none; }

  .portfolio-filters { gap: 0.5rem; }
  .filter-btn { border-left: 2px solid var(--black); }
}
