* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Shared iPhone-dark rain-dawn glass theme: near-black depth, misty sage glass, and soft peach dawn highlights. */
  --bg-0: #05070a;
  --bg-1: #121722;
  --card-bg: rgba(221, 246, 229, 0.03);
  --card-border: rgba(190, 230, 199, 0.14);
  --card-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  --text: #f3f7ef;
  --text-dim: rgba(243, 247, 239, 0.66);
  --accent: #9bd8b3;
  --accent-strong: #ffdca8;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --mesh-line: rgba(190, 230, 199, 0.082);
  --mesh-glow: var(--accent-strong);
  --glow-rgb: 255, 220, 168;
}

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(120% 55% at 50% -10%, rgba(255, 220, 168, 0.045), transparent 62%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-0) 100%);
  color: var(--text);
}

#meshBg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#meshSvg {
  width: 100%;
  height: 100%;
  display: block;
}
.meshLine {
  fill: none;
  stroke: var(--mesh-line);
  stroke-width: 1;
}

#page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px;
}

#intro {
  max-width: 640px;
  text-align: center;
  margin-bottom: 48px;
}
#eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--text-dim);
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
#eyebrow:hover,
#eyebrow:focus-visible { color: var(--text); }
#eyebrow:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
  border-radius: 4px;
}
#intro h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

#grid {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 140px));
  justify-content: center;
  gap: 22px;
  perspective: 800px;
}

.projectCard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 12px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(243, 247, 239, 0.105), rgba(190, 230, 199, 0.032) 42%, rgba(190, 230, 199, 0.02)),
    var(--card-bg);
  border: 1px solid rgba(190, 230, 199, 0.14);
  /* Neon underglow: light spills out below the card's bottom edge only,
     like an underglow kit on a car, instead of bleeding evenly on all sides. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -20px 40px rgba(243, 247, 239, 0.018),
    var(--card-shadow),
    0 3px 6px 0 rgba(var(--glow-rgb), 0.5),
    0 8px 16px 1px rgba(var(--glow-rgb), 0.3),
    0 16px 34px 3px rgba(var(--glow-rgb), 0.15);
  backdrop-filter: blur(13px) saturate(1.18);
  -webkit-backdrop-filter: blur(13px) saturate(1.18);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.projectCard::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(243, 247, 239, 0.105), transparent 78%);
  pointer-events: none;
}
.projectCard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 55% at 18% 8%, rgba(243, 247, 239, 0.105), transparent 58%);
  opacity: 0.75;
  pointer-events: none;
  mix-blend-mode: screen;
}
.projectCard:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(145deg, rgba(243, 247, 239, 0.14), rgba(190, 230, 199, 0.05) 42%, rgba(190, 230, 199, 0.026)),
    rgba(190, 230, 199, 0.055);
  border-color: rgba(255, 246, 235, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -22px 42px rgba(243, 247, 239, 0.024),
    var(--card-shadow),
    0 4px 8px 1px rgba(var(--glow-rgb), 0.65),
    0 10px 22px 3px rgba(var(--glow-rgb), 0.4),
    0 20px 46px 6px rgba(var(--glow-rgb), 0.2);
}
.projectCard:active { transform: translateY(-1px); }

.projectIcon {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}
.projectName {
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 480px) {
  #page { padding: 48px 20px; }
  #intro h1 { font-size: 27px; }
}
