/* ════════════════════════════════════════════════════════
   home.css  —  page-specific styles for home.html
   Theme variables & header live in theme.css.
════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════
   SHARED BUTTONS (used on this page)
════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  padding: 13px 32px;
  background: #fff;
  color: var(--blue);
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}
.btn-primary:hover {
  background: var(--yellow);
  color: #0d0d0d;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.btn-ghost {
  display: inline-block;
  padding: 13px 32px;
  border: 2px solid rgba(255,255,255,0.50);
  color: #fff;
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-3px);
}

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
#hero {
  background: var(--blue);
  color: #fff;
  /* Subtract header height so hero fills exactly the remaining viewport */
  height: calc(100vh - 54px);
  height: calc(100svh - 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px 90px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

#hero .container {
  padding: 0 20px;
}

/* checkerboard texture */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg,  rgba(255,255,255,0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
    linear-gradient(45deg,  transparent 75%, rgba(255,255,255,0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.04) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease both 0.1s;
}

#hero > .container > p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  max-width: 460px;
  margin: 24px auto 0;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease both 0.35s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease both 0.5s;
}

/* scroll emblem */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.50);
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
  animation: fadeUp 0.6s ease both 0.7s;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.20);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--yellow);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════ */
#about {
  background: var(--bg);
  padding: 100px 0;
  text-align: center;
  transition: background 0.3s;
}

#about h2 {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: clamp(1.6rem, 8vw, 3.5rem);
  color: var(--blue);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

#about p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ════════════════════════════════════════════════════════
   PORTFOLIO
════════════════════════════════════════════════════════ */
#portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg,  rgba(255,255,255,0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
    linear-gradient(45deg,  transparent 75%, rgba(255,255,255,0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.04) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  pointer-events: none;
  z-index: 0;
}

#portfolio {
  background: var(--blue);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: clip;
  overflow-clip-margin: 0px;
  transition: background 0.3s;
}

#portfolio .container {
  position: relative;
  z-index: 1;
}

#portfolio h2 {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: clamp(1.4rem, 6vw, 3.5rem);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

#portfolio > .container > p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
}

.portfolio-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}

/* grid */
.portfolio-card::before {
  content: attr(data-num);
  position: absolute;
  top: 16px; left: 16px;
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  z-index: 1;
  transition: opacity 0.3s;
}

.card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  opacity: 1;
  z-index: 2;
}

/* ════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════ */
#contact {
  background: var(--bg);
  padding: 100px 0;
  text-align: center;
  transition: background 0.3s;
}

#contact h2 {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: clamp(1.4rem, 6vw, 3.5rem);
  color: var(--blue);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

#contact > .container > p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-list {
  list-style: none;
  border: 1.5px solid var(--border);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  transition: border-color 0.3s;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, padding-left 0.2s;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list li:hover { background: var(--bg-alt); padding-left: 30px; }

.contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 90px;
  flex-shrink: 0;
  white-space: nowrap;
}

.contact-list li a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  word-break: break-all;
  transition: color 0.2s;
}
.contact-list li a:hover { color: var(--blue-d); text-decoration: underline; }

.contact-more-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.btn-block {
  display: block;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-sizing: border-box;
}

#contact .btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.2);
}
#contact .btn-primary:hover {
  background: var(--blue-d);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */

/* ── Home preview: art-card styles ── */
.gallery-grid--home {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px;
  margin-top: 32px;
}

/* Home card — image fills the whole card, no white info section below */
.art-card--home {
  display: block;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.12);
  overflow: hidden;
  cursor: pointer;
  color: #ffffff; /* Override browser-default link colors */
  animation: fadeUp 0.45s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.art-card--home:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.30);
  border-color: var(--yellow);
}

/* Thumb fills the card */
.art-card--home .card-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.art-card--home .card-thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Yellow bottom bar on hover */
.art-card--home .card-thumb::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease; z-index: 3;
}
.art-card--home:hover .card-thumb::after { transform: scaleX(1); }

/* Overlay strip — sits at the bottom of the image */
.card-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}

.card-strip .card-tag {
  font-size: 0.60rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  font-weight: 700;
}

.card-strip .card-badge {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 7px;
  flex-shrink: 0;
  color: #ffffff; /* Override browser-default link colors (blue/purple) */
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

@media (max-width: 640px) {
  .gallery-grid--home { grid-template-columns: 1fr !important; gap: 16px !important; }
}

@media (max-width: 768px) {
  #hero  { padding: 40px 20px 90px; }
  #about, #portfolio, #contact { padding: 70px 0; }
  #socials-preview { padding: 60px 0; }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn-primary, .btn-ghost { text-align: center; width: 100%; }
  .portfolio-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }

  .contact-list { width: 100%; }
}

@media (max-width: 480px) {
  #hero  { padding: 30px 0 80px; }
  #about, #portfolio, #contact { padding: 50px 0; }
  #socials-preview { padding: 44px 0; }

  .btn-primary, .btn-ghost { padding: 12px 24px; font-size: 0.9rem; }

  .contact-list li { padding: 14px 16px; gap: 10px; }
  .contact-label { width: 72px; font-size: 0.62rem; }
}

@media (max-width: 360px) {
  .contact-list li { flex-wrap: wrap; }
  .contact-label { width: 100%; }
}

/* ── Recent Work label ── */
.recent-work-label {
  margin-top: 20px;
  text-align: center;
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.recent-work-label::before,
.recent-work-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.20);
}

/* ════════════════════════════════
   SOCIALS PREVIEW SECTION
════════════════════════════════ */
#socials-preview {
  padding: 90px 0;
  background: var(--bg-alt);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  transition: background 0.3s;
}

#socials-preview h2 {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

#socials-preview > .container > p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.socials-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.social-preview-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 20px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.social-preview-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,123,255,0.12);
  border-color: var(--blue);
}

.social-preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: #fff;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.social-preview-icon svg {
  width: 20px;
  height: 20px;
}

.social-preview-icon--email {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.social-preview-label {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.social-preview-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .socials-preview-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .socials-preview-list { grid-template-columns: 1fr; }
}

/* ── Hide broken image alt text & icon ── */
.card-thumb-img[alt=""],
.card-thumb-img:-moz-broken {
  color: transparent;
}
