/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  zoom: 0.9;
}

body {
  background-color: #ffffff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Layout — centered container
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 120px;
}

/* ==========================================================================
   Divider
   ========================================================================== */

.divider {
  border: none;
  border-top: 1px solid #e5e5e5;
}

.divider-row {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  padding-top: 65px;
  padding-bottom: 40px;
  text-align: center;
}

.site-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1a1a1a;
  line-height: normal;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.site-subtitle {
  font-family: 'Merriweather', serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #353535;
}

/* ==========================================================================
   Project Sections
   ========================================================================== */

.project {
  padding-top: 94px;
  padding-bottom: 94px;
}

/* Two-column text row: narrow left (title/tags), wide right (description) */
.project-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr);
  gap: 2rem;
  margin-bottom: 40px;
  align-items: start;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.project-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1a1a1a;
  line-height: normal;
}

.project-tags {
  font-family: 'Merriweather', serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 24px;
  color: #5c5c5c;
}

.tag-company {
  font-weight: 700;
}

.tag-separator {
  font-weight: 400;
}

.project-description {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: #5c5c5c;
  padding-top: 2px;
}

.project-description strong {
  font-weight: 600;
  color: #5c5c5c;
}

/* ==========================================================================
   Lottie Animation Container + Overlay Button
   ========================================================================== */

.lottie-container {
  position: relative;
}

.lottie-wrap {
  width: 100%;
  /* Matches the native animation dimensions 1440 × 900 (16:10) for edge-to-edge fill */
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

.lottie-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  background: #1a1a1a;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 7px 16px 9px;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease, color 0.15s ease;
}

.lottie-btn:hover {
  background: #333333;
}

.lottie-wrap > div {
  width: 100%;
  height: 100%;
}

.lottie-wrap svg {
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-bottom: 56px;
}

.site-footer .divider {
  margin-bottom: 45px;
}

.footer-text {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #5c5c5c;
  text-align: center;
}

.footer-text a {
  color: inherit;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive — Tablet (≤ 900px)
   ========================================================================== */

@media (max-width: 900px) {
  .container {
    padding: 0 40px;
  }

  .project {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .project-text {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 32px;
  }
}

/* ==========================================================================
   Responsive — Mobile (≤ 600px)
   ========================================================================== */

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .site-header {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .site-name {
    font-size: 20px;
  }

  .site-subtitle {
    font-size: 15px;
  }

  .project {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .project-title {
    font-size: 20px;
  }

  .project-text {
    margin-bottom: 24px;
  }
}
