/* ================================================================
   index.css — Evan Gerstner Portfolio Home Page
   Shares design tokens with about.css. Index-specific layout only.
   ================================================================ */

/* ── RESET & BOX MODEL ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  --color-bg:       #0b0c10;
  --color-surface:  #13141a;
  --color-card:     #1a1c25;
  --color-accent:   #00e5ff;
  --color-accent2:  #ff3d71;
  --color-text:     #e8eaf0;
  --color-muted:    #6b7080;
  --color-border:   rgba(255, 255, 255, 0.07);

  --glow-accent:    0 0 40px rgba(0, 229, 255, 0.15);

  --font-display:   'Syne', sans-serif;
  --font-body:      'DM Sans', sans-serif;

  --radius-sm:      3px;
  --radius-md:      8px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.3s ease;
}

/* ── BASE ───────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

/* ── NOISE TEXTURE OVERLAY ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAVIGATION ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background-color: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem 3rem 4rem;
  position: relative;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  z-index: 0;
}

.hero-glow {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-2 {
  position: fixed;
  bottom: -20%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(255, 61, 113, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* availability badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00e676;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.accent-text {
  color: var(--color-accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border: 2px solid var(--color-accent);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-accent);
  box-shadow: var(--glow-accent);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-muted);
  border: 2px solid transparent;
  padding-left: 0.5rem;
}

.btn-ghost:hover {
  color: var(--color-accent);
}

/* ── HERO GRAPHIC ───────────────────────────────────────────────── */
.hero-graphic {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circuit-img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow:
    0 0 60px rgba(0, 229, 255, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
}

.circuit-overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.04) 0%,
    transparent 50%,
    rgba(255, 61, 113, 0.03) 100%
  );
  pointer-events: none;
}

/* ── HIGHLIGHTS STRIP ───────────────────────────────────────────── */
.section-highlights {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.highlights-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.highlight-item {
  text-align: center;
  flex: 1;
}

.highlight-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.highlight-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.highlight-divider {
  width: 1px;
  height: 48px;
  background-color: var(--color-border);
  flex-shrink: 0;
}

/* ── FOCUS AREAS ────────────────────────────────────────────────── */
.section-focus {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent2);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background-color: var(--color-accent2);
  opacity: 0.4;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 3rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.focus-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-slow), transform var(--transition-slow);
}

.focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.focus-card:hover::before {
  transform: scaleX(1);
}

.focus-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-3px);
}

.focus-icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.focus-icon svg {
  width: 100%;
  height: 100%;
}

.focus-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.focus-desc {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.focus-tags span {
  font-size: 0.75rem;
  color: var(--color-accent);
  background-color: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

/* ── PROJECTS STRIP ─────────────────────────────────────────────── */
.section-projects-strip {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
  background-color: var(--color-surface);
}

.projects-strip {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
}

.project-row:last-child {
  border-bottom: none;
}

.project-row:hover {
  background-color: rgba(0, 229, 255, 0.03);
}

.project-row-left {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
}

.project-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.5;
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.project-row-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.project-row-desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.project-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
  justify-content: flex-end;
  max-width: 240px;
}

.project-row-tags span {
  font-size: 0.75rem;
  color: var(--color-muted);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.projects-strip-cta {
  display: flex;
  justify-content: center;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.25s; }
.fade-in:nth-child(4) { animation-delay: 0.35s; }
.fade-in:nth-child(5) { animation-delay: 0.45s; }
.fade-in:nth-child(6) { animation-delay: 0.55s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 3rem;
  }

  .hero-graphic {
    order: -1;
  }

  .circuit-img {
    max-width: 360px;
    margin: 0 auto;
  }

  .highlights-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .highlight-divider {
    display: none;
  }

  .highlight-item {
    flex: 0 0 calc(50% - 1rem);
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .section-focus,
  .section-projects-strip {
    padding: 4rem 1.5rem;
  }

  .highlights-inner {
    padding: 2rem 1.5rem;
  }

  .project-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .project-row-tags {
    justify-content: flex-start;
    max-width: 100%;
  }

  .site-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .highlight-item {
    flex: 0 0 100%;
  }

  .hero-heading {
    font-size: clamp(3rem, 12vw, 5rem);
  }
}
