/* =========================================================
   Home Page — Specific Styles
   ========================================================= */

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 65% 45%, rgba(0, 212, 255, 0.1) 0%, transparent 68%),
    radial-gradient(ellipse 40% 50% at 10% 85%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translateY(var(--hero-parallax, 0px));
  will-change: transform;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 1rem 0 2rem;
  max-width: 520px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ----- Hero Right Column ----- */
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hero__headshot {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  padding: 3px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.2), 0 0 80px rgba(0, 212, 255, 0.08);
  flex-shrink: 0;
}

.hero__headshot-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}



/* ----- About Grid ----- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-secondary);
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card { text-align: center; padding: 1.5rem 1rem; }
.stat-card__value { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.stat-card__label { font-size: 0.8rem; color: var(--text-secondary); }

/* ----- Skills Grid ----- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.skills-cta { text-align: center; }

/* ----- Project Cards ----- */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-card__link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition);
}
.project-card__link:hover { color: var(--accent-blue); }

.project-card--placeholder {
  border-style: dashed;
  opacity: 0.7;
}

.project-card__coming-soon {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ----- CTF Cards ----- */
.ctf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.ctf-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ctf-card__placement {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.ctf-card__rank {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.ctf-card__field {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .hero__inner  { grid-template-columns: 1fr; }
  .hero__right  { justify-content: center; }
  .hero__headshot { width: 140px; height: 140px; }
  .about__grid  { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .about__stats { grid-template-columns: 1fr; }
}
