/* Homepage — index.css */

/* ── Layout: Full-viewport split hero ───────────────────── */
.hero {
  display: flex;
  flex-direction: column; /* Mobile: stack */
  width: 100vw;
  height: 100dvh;
}

/* Left column — copy panel */
.hero__copy {
  background-color: var(--color-text); /* #FFFFFF */
  color: var(--color-bg);              /* #0A0A0A text on white */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Bottom padding accounts for fixed footer (~44px) */
  padding: var(--space-md) var(--space-md) calc(var(--space-md) + 44px);

  /* Mobile: reduced height, particle canvas takes top half */
  order: 2;
  flex: 1;
}

/* Right column — particle canvas */
.hero__canvas-wrap {
  background-color: var(--color-bg); /* #0A0A0A */
  position: relative;
  overflow: hidden;

  /* Mobile: top half, ~50vh */
  order: 1;
  height: 50dvh;
  flex-shrink: 0;
}

#particle-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Copy panel inner ───────────────────────────────────── */
.hero__inner {
  max-width: 480px;
  width: 100%;
}

.hero__name {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-bg);
  margin-bottom: var(--space-md);
}

.hero__tagline {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-bg);
  margin-bottom: var(--space-sm);
  max-width: 36ch;
}

.hero__location {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(0.6875rem, 1.1vw, 0.8125rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: rgba(10, 10, 10, 0.55); /* muted on white bg */
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: var(--space-xs) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 400;
  z-index: 10;
  border-top: 1px solid var(--color-border);
}

.site-footer__copyright {
  opacity: 0.55;
}

.site-footer__email {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.85;
  transition: opacity var(--transition-base);
}

.site-footer__email:hover {
  opacity: 1;
}

.site-footer__linkedin {
  opacity: 0.85;
  transition: opacity var(--transition-base);
}

.site-footer__linkedin:hover {
  opacity: 1;
}

/* ── Tablet: 768px ───────────────────────────────────────── */
@media (min-width: 768px) {
  .hero {
    flex-direction: row; /* Side by side */
  }

  /* Exact 50/50 — flex-basis forces equal split regardless of content */
  .hero__copy {
    order: 1;
    flex: 0 0 50%;
    height: 100dvh;
    padding: var(--space-lg);
  }

  .hero__canvas-wrap {
    order: 2;
    flex: 0 0 50%;
    height: 100dvh;
  }

  .hero__name {
    font-size: clamp(2.5rem, 4vw, 5rem);
  }

  .hero__tagline {
    font-size: 0.9375rem;
  }

  .site-footer {
    padding: var(--space-xs) var(--space-lg);
  }

  /* Hide email on small tablets to avoid overlap */
  .site-footer__email {
    display: flex;
  }
}

/* ── Desktop: 1440px ────────────────────────────────────── */
@media (min-width: 1440px) {
  .hero__name {
    font-size: 4.5rem;
  }

  .hero__tagline {
    font-size: 1rem;
  }

  .hero__location {
    font-size: 0.875rem;
  }

  .site-footer {
    font-size: 0.8125rem;
    padding: 12px var(--space-xl);
  }
}

/* ── Mobile only (max 767px) ────────────────────────────── */
@media (max-width: 767px) {
  /* Hero copy: center-align text on mobile */
  .hero__copy {
    align-items: center;
    text-align: center;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Footer: hide copyright, show email + linkedin only, both centered */
  .site-footer__copyright {
    display: none;
  }

  .site-footer {
    justify-content: space-between;
    padding: var(--space-xs) var(--space-md);
  }

  /* Email: reset absolute centering, become a normal flex child */
  .site-footer__email {
    position: static;
    transform: none;
    opacity: 0.85;
  }
}
