/* ===========================
   Eugene Lehnert Portfolio
   style.css
   - Default thumbs = 2:3 (padding hack)
   - creative-thumb thumbs = 16:9 (padding hack)
   =========================== */

/* ===== Base ===== */

:root {
  --bg: #050607;
  --bg-alt: #101215;
  --fg: #f5f5f5;
  --muted: #a0a4aa;
  --accent: #e9b25f;
  --accent-soft: rgba(233, 178, 95, 0.15);
  --border: #2a2d33;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ===== Layout Helpers ===== */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header / Nav ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 6, 7, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--muted);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ===== Hero ===== */

.hero {
  padding: 3.5rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: 2.1rem;
}

.hero p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  color: var(--fg);
  transition: background 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out;
}

.btn.primary {
  background: var(--accent);
  color: #121212;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: #f0c57f;
}

.btn.ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.hero-softwares {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Hero reel embed */

.hero-reel .video-embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.hero-reel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.reel-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Section header ===== */

.section-header {
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* ===== Work / Portfolio ===== */

.work {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

/* Sticky filter bar */
.work-filters {
  position: sticky;
  top: 3.1rem;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  background: radial-gradient(circle at top, rgba(5, 6, 7, 0.98), rgba(5, 6, 7, 0.96));
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0f1114;
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--fg);
}

.work-subheading {
  margin: 2.1rem 0 0.8rem;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Grid */
.work-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
  align-items: center; /* <-- IMPORTANT: stop stretching cards taller */
}

.work-item {
  flex: 0 1 calc(25% - 1.1rem);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

.work-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  border-color: var(--accent);
}

/* ===== Thumbnail Wrappers (NO aspect-ratio) ===== */

.thumb-wrapper {
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Default 2:3 box */
.thumb-wrapper::before {
  content: "";
  display: block;
  padding-top: 150%; /* 2:3 */
}

/* 16:9 box when creative-thumb is present */
.thumb-wrapper.creative-thumb::before {
  padding-top: 56.25%; /* 16:9 */
}

/* Media fills the box */
.thumb-wrapper > img,
.thumb-wrapper > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

/* Image hover zoom */
.thumb-wrapper > img {
  transform: scale(1.02);
  transition: transform 0.25s ease-out;
  cursor: zoom-in;
}

.work-item:hover .thumb-wrapper > img {
  transform: scale(1.07);
}

/* ===== Meta ===== */

.work-meta {
  padding: 0.7rem 0.85rem 0.85rem;
}

.work-meta h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.work-tags {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Work Modal ===== */

.work-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.work-modal.open {
  display: block;
}

.work-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.work-modal-inner {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.work-modal-image-wrap {
  position: relative;
  max-width: 60vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-modal-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
}

.work-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5, 6, 7, 0.9);
  color: var(--fg);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.work-modal-details {
  max-width: 320px;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(9, 10, 12, 0.96);
  border: 1px solid var(--border);
}

.work-modal-details h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.work-modal-details p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ===== About ===== */

.about {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.about p {
  color: var(--muted);
}

.about-list h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.about-list ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.about-list li {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== Contact ===== */

.contact {
  padding: 3rem 0 3.5rem;
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.contact p {
  color: var(--muted);
}

.contact-details p {
  margin: 0.2rem 0;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  background: #050607;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Responsive ===== */

@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .work-item {
    flex: 0 1 calc(33.333% - 1.1rem);
  }

  .work-modal-inner {
    flex-direction: column;
    align-items: center;
  }

  .work-modal-image-wrap {
    max-width: 90vw;
    max-height: 60vh;
  }

  .work-modal-details {
    max-width: 90vw;
  }
}

@media (max-width: 700px) {
  .about-inner {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .work-item {
    flex: 0 1 calc(50% - 1.1rem);
  }

  .work-filters {
    top: 2.9rem;
  }
}

@media (max-width: 500px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 3rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .work-item {
    flex: 0 1 100%;
  }

  .work-modal-image-wrap {
    max-height: 50vh;
  }

  .work-filters {
    top: 3.3rem;
  }
}




