/* ==========================================================================
   index-v2.css — homepage layout (hero, tech strip, featured projects,
   about preview, skills preview, stats band, contact).
   ========================================================================== */

/* Reset the legacy full-viewport snap sections on this page */
#homepage,
#about-me-preview,
#projects-preview,
#skills-preview,
#contact-homepage { scroll-margin-top: calc(var(--nav-h) + 30px); }

.snap-section { min-height: 0; }

/* ============================ HERO ===================================== */
.hero { padding: clamp(18px, 3vw, 30px) var(--gutter) 0; }

.hero__panel {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  border-radius: var(--r-lg);
  background: var(--hero-grad);
  color: var(--on-dark);
  padding: clamp(32px, 5.5vw, 72px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero__panel::before {
  /* soft glow */
  content: "";
  position: absolute;
  width: 60%; height: 120%;
  right: -10%; top: -30%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 62%);
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero__eyebrow { color: var(--cyan-400); }
.hero__title {
  font-size: var(--fs-hero);
  text-transform: uppercase;
  color: var(--on-dark);
  margin: 18px 0 20px;
}
.hero__title .accent {
  color: var(--cyan-400);
  background: linear-gradient(120deg, var(--cyan-400), #8FE6FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__intro {
  font-size: var(--fs-lead);
  color: var(--on-dark-muted);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Media column */
.hero__media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.hero-photo {
  position: relative;
  width: min(320px, 74%);
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  padding: 6px;
  background: linear-gradient(150deg, var(--cyan-400) 0%, var(--blue-500) 55%, var(--blue-900) 130%);
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--r-lg) - 6px);
  background: var(--surface-2);
}

/* Floating stat cards */
.stat-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  z-index: 3;
}
.stat-card b {
  font-family: var(--font-label);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-700);
}
.stat-card span {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.stat-card--1 { top: 2%; left: -2%; }
.stat-card--2 { top: 38%; right: 4%; }
.stat-card--3 { bottom: 4%; left: 2%; }
@media (min-width: 901px) {
  .stat-card--1 { animation: float 6s ease-in-out infinite; }
  .stat-card--2 { animation: float 6s ease-in-out infinite 1.2s; }
  .stat-card--3 { animation: float 6s ease-in-out infinite 2.4s; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Mouse mini-game tucked under the photo */
.hero__mouse { margin-top: 22px; width: 100%; max-width: 220px; z-index: 4; }

/* Tech strip */
.tech-strip {
  max-width: var(--maxw);
  margin: clamp(26px, 4vw, 40px) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding: 0 6px;
}
.tech-strip .eyebrow { margin-right: 6px; }
.tech-strip__item {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.8;
}
.tech-strip__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-400); }

/* ============================ ABOUT PREVIEW =========================== */
.about-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
}
.about-img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1.05rem; }
.about-text-block { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.about-description-p-span-preview { color: var(--blue-500); }
/* legacy giant watermark headings — hidden; visible titles use their own hooks */
.headline-about-me-preview,
.headline-projects-preview,
.headline-skills-preview { display: none; }
/* contact has no dedicated visible-title hook, so keep this one and style it */
.headline-contact-preview h2 { font-size: var(--fs-h2); }

/* ============================ FEATURED PROJECTS ======================= */
.featured { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); }
.project-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(18px, 2.4vw, 28px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-feature:nth-child(even) .project-feature__media { order: 2; }
.project-feature__media {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}
.project-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.project-feature__body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.project-feature__no {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--cyan-400);
}
.project-feature__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-feature p { color: var(--text-muted); }

/* lead card = Eyerise, bigger */
.project-feature--lead {
  background: var(--hero-grad-soft);
  color: var(--on-dark);
  border-color: transparent;
}
.project-feature--lead h3,
.project-feature--lead .project-feature__no { color: var(--on-dark); }
.project-feature--lead .project-feature__no { color: var(--cyan-400); }
.project-feature--lead p { color: var(--on-dark-muted); }
.project-feature--lead .chip { background: rgba(255, 255, 255, 0.12); color: var(--on-dark); border-color: var(--on-dark-border); }

/* ============================ SKILLS PREVIEW ========================== */
.skillspv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.skillspv-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.skillspv-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.skillspv-card .chip { margin: 0 6px 8px 0; }

/* ============================ STATS BAND ============================== */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  padding: clamp(30px, 4vw, 46px);
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.stat-block { text-align: center; }
.stat-block b {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--blue-700);
  line-height: 1;
}
.stat-block span {
  font-family: var(--font-label);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================ CONTACT ================================= */
.contact-formular-description {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  margin-bottom: 28px;
}
.contact-wrap { max-width: 820px; margin-inline: auto; }
.see-more-container { margin-top: 34px; }

/* ============================ RESPONSIVE ============================== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 0; margin-top: 20px; flex-direction: column; gap: 20px; }
  .hero-photo { width: min(280px, 70%); }
  .stat-card { position: static; }
  .hero__media .stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
  }
  .about-content { grid-template-columns: 1fr; }
  .about-img { max-width: 320px; }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature:nth-child(even) .project-feature__media { order: 0; }
}

/* On desktop the stat cards are absolutely placed, so the wrapper is contents */
@media (min-width: 901px) {
  .hero__media .stat-cards { display: contents; }
}
