/* ---------------------------------------------------------------
   Personal site — neon-on-black ("cyberpunk") theme
   Bulk is near-black; neon accents echo the background shader.
--------------------------------------------------------------- */

:root {
  --bg: #010c56;          /* deep navy (matches shader base) */
  --bg-deep: #01073a;
  --text: #e85f55;        /* off-white */
  --text-soft: #8b93d6;   /* muted blue-grey */
  --neon: #ffffff;        /* silver-white (hover) */
  --neon-alt: #ffff00;    /* yellow (focus outline, high contrast on navy) */
  --icon: #b6b6b6;        /* neutral grey for the three links */
  --icon-hover: #e2e2e2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  color: var(--text);
  background-color: var(--bg);
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

/* Three.js canvas sits behind everything */
#halftone {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

/* Subtle grain over the whole page (works even without WebGL) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.85  0 0 0 0 0.85  0 0 0 0 1  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ */
/* Content                                                       */
/* ------------------------------------------------------------ */

.card {
  position: relative;
  text-align: center;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  max-width: none;
}

/* Radial scrim behind the text: fades the base color out to transparent so
   the content stays legible without touching the Three.js effect. */
.card::before {
  content: "";
  position: absolute;
  inset: -25% -35%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 50% at center,
    rgb(0, 2, 14) 0%,
    rgba(0, 5, 35, 0.855) 45%,
    rgba(0, 0, 0, 0) 72%
  );
}

.name {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 6.2vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 0.35em;
  color: var(--text);
  white-space: nowrap;
  /* faint neon aura so the title sits in the scene */
  text-shadow: 0 0 24px #e85f5533;
}

.role {
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.2px;
  text-transform: none;
  margin: 0 0 2.2em;
  color: var(--text-soft);
}

/* ------------------------------------------------------------ */
/* Icon links                                                    */
/* ------------------------------------------------------------ */

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 5vw, 2.25rem);
}

.icon-link {
  display: grid;
  place-items: center;
  width: 3rem;   /* 48px — comfortable tap target */
  height: 3rem;
  border-radius: 50%;
  color: var(--icon);
  transition: color 160ms ease, transform 160ms ease, filter 160ms ease;
}

.icon-link svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

.icon-link:hover,
.icon-link:active {
  color: var(--icon-hover);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(154, 154, 154, 0.45));
}

.icon-link:focus-visible {
  outline: 3px solid var(--neon-alt);
  outline-offset: 3px;
}

/* ------------------------------------------------------------ */
/* Utilities                                                     */
/* ------------------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .icon-link {
    transition: none;
  }
}

@media (max-width: 420px) {
  .name {
    font-size: clamp(2.5rem, 13vw, 3.25rem);
    white-space: normal;
    text-wrap: balance;
  }

  .role {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }
}

@media (min-width: 421px) and (max-width: 1000px) {
  .name {
    font-size: clamp(2.925rem, 8.1vw, 5.5rem);
  }

  .role {
    font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  }
}

