@charset "UTF-8";

/* -------------------------------------------------------------------------
   Global
--------------------------------------------------------------------------- */
:root {
  --radius: 8px;             /* Tailwind rounded-lg */
  --text-color: #000;        /* text-gray-900 */
  --muted-text: #6B7280;     /* text-gray-500 */
  --panel-gap: 1.5rem;       /* gap-6 = 24px */
  --max-width: 1152px;       /* max-w-6xl */
}

body {
  margin: 0;
  font-family: 'Geist', 'Raleway', sans-serif;
  background-color: #fff;
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
  z-index: 1000;
  transition: opacity 0.4s ease-in-out;
}

.site-header img {
  height: 32px;
}

nav a {
  margin-left: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
}
nav a:hover,
nav a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* -------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.hero {
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-top: 6rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.125rem;
  color: #444;
}
.scroll-hint {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #aaa;
}

/* -------------------------------------------------------------------------
   Intro
--------------------------------------------------------------------------- */
.intro {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 4rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .intro {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
}
.intro h2 {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.intro p {
  color: var(--muted-text);
  font-size: 1.25rem;
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------------
   Portfolio Panels
--------------------------------------------------------------------------- */
.portfolio {
  margin-top: calc(-30vh + 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--panel-gap);
  padding: 0 1rem 4rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .portfolio { padding: 0 1.5rem 4rem; }
}

.panel {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}
.panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}
.panel:hover {
  transform: scale(1.01);
}
.panel .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.75rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.panel:hover .overlay {
  opacity: 1;
}

/* -------------------------------------------------------------------------
   Fade-In Reveal Animation (global)
--------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible:nth-child(3) { transition-delay: 0.2s; }
.reveal.visible:nth-child(4) { transition-delay: 0.3s; }

/* -------------------------------------------------------------------------
   Universal Project Layout (Brand Identity, Retail, etc.)
--------------------------------------------------------------------------- */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
}

.py-section {
  padding-top: 4rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .py-section { padding-top: 6rem; padding-bottom: 3rem; }
}

.back-link,
.back-bottom a {
  display: inline-block;
  color: #6B7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.back-link:hover,
.back-bottom a:hover {
  color: #000;
  text-decoration: underline;
}

.project-title {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.project-desc {
  color: #6B7280;
  font-size: 1.25rem;
  max-width: 48rem;
}

/* -------------------------------------------------------------------------
   Universal Grid & Spacing Fix (Older Grid System)
--------------------------------------------------------------------------- */
.image-blocks {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* consistent vertical spacing between rows */
  margin-top: 2rem;
}

.grid-2col,
.grid-3col {
  display: grid;
  gap: 1.75rem; /* even column gutter */
}

.grid-2col {
  grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
}
.grid-3col {
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
}

.rounded-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.rounded-img:hover {
  transform: scale(1.01);
}

/* Maintain section rhythm */
.more-btn,
.back-bottom,
.cta-section {
  margin-top: 3rem;
}

.more-btn {
  text-align: center;
}
.more-btn a {
  display: inline-block;
  background-color: #0f766e;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.more-btn a:hover {
  background-color: #115e59;
}

.back-bottom {
  text-align: center;
}
.back-bottom a {
  color: #6b7280;
  font-size: 0.9rem;
  text-decoration: none;
}
.back-bottom a:hover {
  color: #000;
  text-decoration: underline;
}

/* Large screen balance */
@media (min-width: 1280px) {
  .image-blocks { gap: 3rem; }
  .grid-2col,
  .grid-3col { gap: 2rem; }
}

/* -------------------------------------------------------------------------
   CTA Section
--------------------------------------------------------------------------- */
.cta-section {
  background-color: #f9fafb;
  padding: 4rem 1rem;
}
.cta-content {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .cta-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.cta-content h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.cta-content p {
  color: #6B7280;
  font-size: 1rem;
  max-width: 500px;
}
.cta-button {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}
.cta-button:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* -------------------------------------------------------------------------
   Even Grid Layout (Retail Page)
--------------------------------------------------------------------------- */
.even-grid {
  display: flex;
  flex-direction: column;
  gap: 14px; /* even vertical spacing between rows */
}

.even-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

/* === row types === */
.even-grid .wide {
  display: block;
}

.even-grid .two-up,
.even-grid .three-up {
  display: grid;
  gap: 14px; /* even horizontal spacing */
}

.even-grid .two-up {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.even-grid .three-up {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Responsive collapse for mobile */
@media (max-width: 768px) {
  .even-grid .two-up,
  .even-grid .three-up {
    grid-template-columns: 1fr;
  }
}
