/* Erik Buth Portfolio - Static Site */

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

/* Base */
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

a { color: #333; text-decoration: none; }
a:hover { color: #000; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
header {
  position: relative;
  padding: 30px 0 20px;
  border-bottom: 1px solid #eee;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}
.logo { margin-right: auto; }
.logo img { height: 45px; width: auto; }
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
nav a {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  color: #999;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: #333; }

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  gap: 5px;
}
.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  transition: 0.3s;
}

/* Main */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Hero */
.hero {
  padding: 60px 0 20px;
}
.hero-name {
  font-size: 72px;
  font-weight: 400;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-tagline {
  font-size: 15px;
  color: #999;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.hero-subtitle {
  font-size: 15px;
  color: #999;
  letter-spacing: 0.5px;
  line-height: 1.5;
  max-width: 900px;
}
.hero h1 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 700px;
  color: #333;
}

/* About / Contact sections on main page */
.about-text {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 8px;
}
.about-text a { color: #333; }
.about-text a:hover { text-decoration: underline; }

/* Slideshow */
.slideshow {
  position: relative;
  overflow: hidden;
  margin: 30px 0;
}
.slideshow-track {
  display: flex;
  transition: transform 0.5s ease;
}
.slide {
  min-width: 100%;
  flex-shrink: 0;
}
.slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.slide-prev, .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  color: #333;
  z-index: 2;
  transition: background 0.2s;
}
.slide-prev:hover, .slide-next:hover { background: rgba(255,255,255,0.9); }
.slide-prev { left: 10px; }
.slide-next { right: 10px; }

/* Section Labels */
.section-label {
  font-size: 14px;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.5px;
  padding: 30px 0 20px;
  border-top: 1px solid #eee;
  margin-top: 40px;
}
.project-section:first-of-type .section-label {
  margin-top: 0;
  border-top: none;
}

/* Project Grid */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.project-card {
  overflow: hidden;
}
.col-half { width: calc(50% - 10px); }
.col-third { width: calc(33.333% - 14px); }
.col-full { width: 100%; }

.project-thumb {
  display: block;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 16 / 9;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.project-thumb:hover img { opacity: 0.85; }

.project-info {
  padding: 12px 0 20px;
}
.project-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.project-info h4 a { color: #333; }
.project-info h4 a:hover { color: #000; }
.project-info p {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}

/* ─── Project Page ────────────────────────────────────────────────────── */

.project-page {
  padding: 40px 0 60px;
}
.project-meta {
  max-width: 700px;
  margin-bottom: 40px;
}
.project-meta h1 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
}
.project-meta p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 10px;
}

.project-gallery {
  max-width: 960px;
}
.gallery-item {
  margin-bottom: 20px;
}
.gallery-item img {
  width: 100%;
  height: auto;
}

/* Multi-column gallery rows */
.gallery-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.gallery-row .gallery-item {
  flex: 1;
  margin-bottom: 0;
}
.gallery-row .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video embed responsive */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ─── About Page ──────────────────────────────────────────────────────── */

.about-page {
  padding: 40px 0 60px;
}
.about-grid {
  display: flex;
  gap: 60px;
}
.about-main {
  flex: 7;
}
.about-sidebar {
  flex: 3;
}

.about-main h1 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
}
.about-main p {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 6px;
}
.about-main h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 30px 0 15px;
}
.spacer { height: 30px; }

.resume-title {
  margin-top: 15px !important;
}
.resume-company {
  margin-bottom: 4px !important;
}
.resume-bullet {
  padding-left: 15px;
}

.about-sidebar h2 {
  font-size: 16px;
  font-weight: 400;
  margin: 25px 0 8px;
}
.about-sidebar h2:first-child { margin-top: 0; }
.about-sidebar p {
  font-size: 13px;
  color: #555;
  margin-bottom: 3px;
}
.about-sidebar a { color: #333; }
.about-sidebar a:hover { text-decoration: underline; }

/* Footer */
footer {
  height: 60px;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  nav {
    display: none;
    width: 100%;
    padding-top: 15px;
  }
  nav.open { display: block; }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero-name { font-size: 46px; }
  .hero h1 { font-size: 20px; }

  .col-half, .col-third { width: 100%; }
  .project-grid { gap: 30px; }
  .gallery-row { flex-wrap: wrap; }
  .gallery-row .gallery-item { flex: none; width: 100%; }

  .about-grid {
    flex-direction: column;
    gap: 30px;
  }
  .about-main, .about-sidebar { flex: none; }
}

@media (max-width: 480px) {
  main { padding: 0 15px; }
  .header-inner { padding: 0 15px; }
  .hero { padding: 30px 0 10px; }
  .hero-name { font-size: 36px; }
  .hero h1 { font-size: 18px; }
}
