/* =========================================================
   home.css — the hub. Dark, soft gradients, glassy cards.
   Each door card previews the theme of the page it opens.
   ========================================================= */

:root {
  --bg: #0b0d14;
  --bg-2: #121522;
  --fg: #eef1f8;
  --muted: #9aa3b8;
  --line: rgba(255,255,255,.08);
  --a1: #7aa2ff;
  --a2: #b38cff;
  --a3: #5ef0c8;
  --nav-accent: #7aa2ff;
  --nav-bg: rgba(11,13,20,.7);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow-x: clip;
}

a { text-decoration-color: rgba(122,162,255,.5); text-underline-offset: 3px; }
a:hover { color: var(--a1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem clamp(1.25rem, 6vw, 6rem) 0;
  isolation: isolate;
  overflow-x: clip;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(122,162,255,.28), transparent 70%),
    radial-gradient(35% 35% at 75% 20%, rgba(179,140,255,.22), transparent 70%),
    radial-gradient(30% 30% at 60% 75%, rgba(94,240,200,.14), transparent 70%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
@keyframes drift { to { transform: translate3d(4%, 6%, 0) scale(1.08); } }

.hero__inner { max-width: 900px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: "JetBrains Mono", monospace; font-size: .8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem;
  background: rgba(255,255,255,.03);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a3); box-shadow: 0 0 10px var(--a3); }

.hero h1 {
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: .9; letter-spacing: -.04em; font-weight: 700;
  margin: 1.5rem 0 1.75rem;
}
.grad {
  background: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.lede a { color: var(--fg); }

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 12px; font-weight: 600; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { color: var(--bg); box-shadow: 0 10px 30px rgba(122,162,255,.35); }
.btn--ghost { border: 1px solid var(--line); color: var(--fg); background: rgba(255,255,255,.03); }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: var(--fg); }

.ticker {
  list-style: none; padding: 0; margin: 5rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  border-top: 1px solid var(--line); padding-block: 1.25rem 2rem;
  font-family: "JetBrains Mono", monospace; font-size: .8rem; color: var(--muted);
}
.ticker li::before { content: "▹ "; color: var(--a1); }

/* ---------- Section head ---------- */
.section-head { max-width: 640px; margin-bottom: 3rem; }
.kicker { font-family: "JetBrains Mono", monospace; color: var(--a1); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.03em; line-height: 1.05; margin: .5rem 0 .75rem; }
.section-head p { color: var(--muted); }

/* ---------- Worlds grid ---------- */
.worlds { padding: 6rem clamp(1.25rem, 6vw, 6rem); }
.world-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(6, 1fr);
}
.world { grid-column: span 2; }
.world--resume, .world--projects { grid-column: span 3; }
@media (max-width: 1000px) { .world, .world--resume, .world--projects { grid-column: span 3; } .world--rvits { grid-column: span 6; } }
@media (max-width: 640px)  { .world-grid { grid-template-columns: 1fr; } .world, .world--resume, .world--projects, .world--rvits { grid-column: auto; } }

.world {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .6rem;
  min-height: 280px; padding: 1.75rem;
  border-radius: 20px; text-decoration: none;
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.world:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,.45); color: inherit; }
.world h3 { font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; }
.world p { opacity: .8; max-width: 42ch; }
.world__tag { font-family: "JetBrains Mono", monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.world__go { margin-top: auto; font-weight: 600; font-size: .9rem; }

/* Resume door: crisp paper */
.world--resume { background: #f6f4ef; color: #1b2230; }
.world--resume h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 1.85rem; }
.world--resume::after {
  content: ""; position: absolute; right: 1.5rem; top: 1.5rem; width: 90px; height: 116px;
  background: #fff; border: 1px solid #ddd8cc; border-radius: 4px;
  box-shadow: 6px 6px 0 #e6e1d5;
  background-image: repeating-linear-gradient(#fff 0 14px, #e9e5db 14px 16px);
  background-position: 0 22px; transform: rotate(4deg);
}
.world--resume .world__go { color: #1f3a68; }

/* Projects door: blueprint */
.world--projects {
  background-color: #12325e; color: #e6f0ff;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.world--projects .world__tag, .world--projects .world__go { font-family: "JetBrains Mono", monospace; color: #9cc8ff; }

/* Homelab door: terminal */
.world--homelab { background: #020806; color: #b6ffd9; font-family: "JetBrains Mono", monospace; border-color: rgba(0,255,156,.25); }
.world--homelab h3 { font-family: "JetBrains Mono", monospace; color: #00ff9c; text-shadow: 0 0 12px rgba(0,255,156,.5); }
.world--homelab::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,255,156,.05) 0 1px, transparent 1px 3px);
}
.world--homelab code { color: #00e0ff; }

/* Repair door: PCB */
.world--repair {
  background-color: #0d3b23; color: #f3efe0;
  background-image:
    radial-gradient(circle at 85% 20%, #c8913a 0 7px, #0d3b23 7.5px 11px, transparent 11.5px),
    radial-gradient(circle at 70% 20%, #c8913a 0 5px, transparent 5.5px),
    linear-gradient(90deg, transparent 69.5%, #b07c2c 69.5% 70.5%, transparent 70.5%),
    linear-gradient(0deg, transparent 19.5%, rgba(176,124,44,.8) 19.5% 20.5%, transparent 20.5%);
}
.world--repair .world__tag { color: #f3efe0; border: 1px solid rgba(243,239,224,.5); padding: .15rem .45rem; align-self: flex-start; }
.world--repair .world__go { color: #e7b45a; }

/* RVITS door: clean business */
.world--rvits { background: linear-gradient(135deg, #0f4c75, #1b8a6b); color: #fff; }
.world--rvits h3 { font-weight: 700; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0 clamp(1.25rem, 6vw, 6rem);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.stats div { padding: 2rem 1.5rem; border-right: 1px solid var(--line); background: rgba(255,255,255,.02); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(2) { border-right: 0; } .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: 8rem 1.25rem 6rem; }
.contact h2 { font-size: clamp(2.5rem, 8vw, 5.5rem); letter-spacing: -.04em; }
.contact p { color: var(--muted); margin: .75rem 0 2rem; }
.contact__mail {
  font-size: clamp(1.2rem, 3.5vw, 2rem); font-weight: 600; text-decoration: none;
  background: linear-gradient(100deg, var(--a1), var(--a2), var(--a3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 2px solid rgba(122,162,255,.4);
}

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 640px) { .world--resume::after { display: none; } }
