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

/* ================= GLOBAL CSS VARIABLES ================= */
:root {
  --bg-main: #050505;

  /* Element-level glass */
  --glass-soft: rgba(255, 255, 255, 0.035);

  --border-soft: rgba(255, 255, 255, 0.08);

  --text-main: #e6e6e6;
  --text-muted: rgba(230, 230, 230, 0.65);

  --accent: #8fa9b3;
}

/* ================= BASE ================= */
html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  cursor: none;
}

/* ================= BACKGROUND ================= */
#background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at center, #050505, #000000 70%);
  pointer-events: none;
}

/* ================= APP ================= */
#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 2;
}

/* ================= SCENES ================= */
.scene {
  position: absolute;
  inset: 0;
  display: none;
  padding: 6rem;
}

.scene.active {
  display: block;
}

/* ================= HERO ================= */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

/* ================= HERO TEXT ================= */
.hero-intro {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  /* text-transform: uppercase; */
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  margin-left: 0.25rem;
}

.hero-name {
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;

  background: linear-gradient(
    120deg,
    #aacbff,
    #9adcff,
    #c3a8ff,
    #f2e6d8
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-name .first-name {
  display: block;
  font-size: 5.2rem;
}

.hero-name .last-name {
  display: block;
  font-size: 5.2rem;
  margin-left: 4rem; /* indent */
}


.hero-typing {
  font-size: 1rem;
  color: var(--text-muted);
  min-height: 1.4em; /* prevents layout jump later */
  margin-left: 0.25rem;
}


.hero-sub {
  margin-top: 1.5rem;
  max-width: 560px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

h1, h2 {
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

/* ================= PROJECTS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  text-decoration: none;
  color: inherit;

  position: relative;
  padding: 2rem;

  background: var(--glass-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid var(--border-soft);
  border-radius: 18px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;

  will-change: transform;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.card small {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  opacity: 0.55;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.card::after {
  content: "↗";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover::after {
  opacity: 0.4;
}

.section-intro {
  max-width: 640px;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ================= TOOLS ================= */
.tools-list {
  margin-top: 3rem;
  list-style: none;

  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tools-list li {
  padding: 0.45rem 0.8rem;

  font-size: 0.85rem;
  color: var(--text-muted);

  background: var(--glass-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid var(--border-soft);
  border-radius: 999px;

  transition: border-color 0.2s ease, color 0.2s ease;
}

.tools-list li:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-main);
}

/* ================= CONTACT ================= */
.contact p {
  margin-top: 1rem;
}

/* ================= SCENE ANIMATION DEFAULTS ================= */
.scene h1,
.scene h2 {
  opacity: 0;
  transform: translateY(40px);
}

.scene p,
.scene ul,
.scene .cards {
  opacity: 0;
  transform: translateY(30px);
}

/* ================= CURSOR ================= */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 20;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 19;
  will-change: transform;
}

/* ================= SCENE NAV ================= */
.scene-nav {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
}

.scene-nav .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.scene-nav .dot.active {
  background: white;
  transform: scale(1.4);
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

/* ================= ABOUT SECTION ================= */
.about h2 {
  margin-bottom: 1rem;
}

.section-divider {
  width: 100%;
  height: 1px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 2.5rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 25% 1fr;
  gap: 3rem;
  align-items: start;
}

/* Left column: quotes */
.about-quotes {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Right column: content */
.about-content p {
  margin-bottom: 1.4rem;
  max-width: 640px;
}

