/* ===== Home page — restyled to match reference layout/ratio ===== */

.home-container { padding-top: 110px; }

/* Floating CTA badge (top-right), mirrors the reference site's cloud badge */
.cta-badge {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 1001;
  background: linear-gradient(to bottom, var(--bg-card), var(--border));
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 4px 15px rgba(16, 36, 43, 0.25);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

.cta-badge:hover { transform: scale(1.05); }

/* ---- Blurb / hero text ---- */
.blurb { max-width: 720px; margin-bottom: 2.5rem; }

.blurb h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.blurb h1 u { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.tagline {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  margin: 1.3rem 0 0.6rem;
  max-width: 640px;
}

.subtagline {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-2);
}

/* ---- Social icons: small circular brand badges ---- */
.social-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(16, 36, 43, 0.25);
  transition: transform 0.2s ease;
}

.social-link:hover { transform: translateY(-3px) scale(1.08); }

.social-github     { background: #171515; }
.social-discord     { background: #5865F2; }
.social-email       { background: var(--ink-2); }
.social-youtube     { background: #FF0000; }
.social-instagram   { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-spotify     { background: #1DB954; }

/* ---- Image + terminal row ---- */
.image-terminal-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 4rem;
}

/* Profile photo — circular, keeps the flip logic from main.css */
.profile-wrap {
  width: 210px !important;
  height: 210px !important;
  flex-shrink: 0;
}

.profile-front, .profile-back {
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 0 8px var(--bg-card), 0 8px 22px rgba(16, 36, 43, 0.3);
}

.profile-front img { object-position: center 25%; }

.profile-back {
  padding: 1.4rem;
  gap: 0.4rem;
}

.profile-back h3 { font-size: 1.05rem; }
.profile-back p { font-size: 0.68rem; line-height: 1.4; }
.profile-back cite { font-size: 0.75rem; }

/* Terminal — flat box, no title bar, matches reference */
.terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 10px;
  padding: 20px 24px;
  width: 70%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.terminal-text {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #f0f0f0;
  white-space: pre-wrap;
  line-height: 1.65;
  min-height: 260px;
}

/* ---- Photo wall: landscape polaroid gallery (UPDATED) ---- */
.photo-wall {
  margin: 3rem auto 4rem;
  text-align: center;
}

.gallery-eyebrow { text-align: center; margin-bottom: 1.8rem; }

.polaroid-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem 2rem;
  max-width: 1200px;            /* slightly wider to accommodate larger cards */
  margin: 0 auto;
}

.polaroid {
  background: #fdfdfb;
  width: 260px;                  /* increased from 240px */
  padding: 10px 10px 16px;       /* thinner frame: reduced padding */
  border-radius: 3px;
  box-shadow: 0 8px 20px rgba(16, 36, 43, 0.28);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease;
  cursor: pointer;
}

.polaroid:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.05);
  box-shadow: 0 18px 34px rgba(16, 36, 43, 0.35);
  z-index: 5;
  position: relative;
}

.polaroid-photo {
  width: 100%;
  aspect-ratio: 3 / 2;          /* landscape ratio */
  overflow: hidden;
  background: var(--bg-warm);
}

.polaroid-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: #333;
  text-align: center;
  line-height: 1.35;
  margin-top: 8px;              /* slightly reduced to match thinner frame */
  padding: 0 2px;
}
/* ---- Footer ---- */
.footer-note {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .image-terminal-container { flex-direction: column; align-items: center; }
  .terminal { width: 100%; }
  .profile-wrap { margin: 0 auto; }
  .blurb { text-align: center; margin: 0 auto 2.5rem; }
  .social-row { justify-content: center; }
}

@media (max-width: 768px) {
  .cta-badge { font-size: 0.72rem; padding: 8px 14px; top: 12px; right: 12px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
  .polaroid { width: 180px; padding: 10px 10px 15px; }
  .polaroid-grid { gap: 1.8rem 1.2rem; }
  .polaroid-caption { font-size: 0.7rem; }
}