/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --sky:        #000000;   /* deep space background              */
    --star-dim:   rgba(255, 255, 255, 0.55);   /* far layer        */
    --star-bright:rgba(255, 255, 255, 0.90);   /* near layer       */
    --accent:     #d4a96a;   /* warm moon gold                     */
    --text:       #e8e8e8;
    --text-muted: #8a94a6;
}

html { scroll-behavior: smooth; }

body {
    background: var(--sky);
    color: var(--text);
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    /* Extra height so parallax has room to express itself */
    min-height: 300vh;
}

/* ─── Star Layers ───────────────────────────────────────────────
    Two absolutely-positioned canvases that span the full page height.
    JS will move them on scroll at different rates.
──────────────────────────────────────────────────────────────── */
#stars-far,
#stars-near {
    position: fixed;   /* fixed so they cover the viewport always */
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform;
}

#stars-far  { z-index: 0; }   /* slower, dimmer  — background */
#stars-near { z-index: 1; }   /* faster, brighter — foreground */

/* ─── Moon ──────────────────────────────────────────────────────
    Replace the <img> src with your own moon photograph.
    Position is intentionally top-right, matching the card layout.
──────────────────────────────────────────────────────────────── */
.moon-wrap {
    position: fixed;
    top: 20vh;
    right: 15vw;
    width: clamp(100px, 16vw, 250px);
    z-index: 2;
    pointer-events: none;
    /* Subtle parallax offset applied by JS (slower than near stars) */
    will-change: transform;
}

.moon-wrap img {
    width: 100%;
    height: auto;
    display: block;
    /* Blend so the moon feels embedded in the sky */
    mix-blend-mode: lighten;
    opacity: 0.92;
}

/* Placeholder shown until you drop in your own moon photo */
.moon-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
    circle at 35% 35%,
    #c8893a 0%,
    #9a6020 45%,
    #2a1a05 100%
    );
    box-shadow:
    inset -8px -4px 24px rgba(0,0,0,0.7),
    0 0 60px rgba(180, 120, 30, 0.18);
    /* Remove once you have a real image */
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8vw;
}

.hero-name {
    font-size: clamp(3rem, 9vw, 8rem);
    font-weight: 200;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: #fff;
    /* Subtle text shadow for depth against the stars */
    text-shadow: 0 0 120px rgba(255,255,255,0.08);
}

.hero-name span {
    display: block; /* First + last name on separate lines, like the card */
}

.hero-title {
    margin-top: 1.8rem;
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-tags {
    margin-top: 0.6rem;
    font-size: clamp(0.75rem, 1.4vw, 0.9rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Separator dots between tags, mirroring the card's middle-dot style */
.hero-tags span::after {
    content: ' · ';
    color: var(--text-muted);
    opacity: 0.5;
}
.hero-tags span:last-child::after { content: ''; }

/* ─── Divider line ──────────────────────────────────────────── */
.section-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 0 8vw;
}

/* ─── Content Sections (placeholders) ──────────────────────── */
.content-section {
    position: relative;
    z-index: 3;
    padding: 10vh 8vw;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
}

.section-heading {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 200;
    line-height: 0.5;
    color: #fff;
    margin-bottom: 1.5rem;
}

.section-subheading {
  line-height: 1.2;      /* tighten internal line spacing */
  margin-top: 0.25rem;   /* reduce space above */
  margin-bottom: 0.25rem; /* reduce space below */
}

.section-body {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 55ch;
}

/* ICONS */
.section-heading .bi {
  font-size: 0.6em;
  vertical-align: middle;
  opacity: 0.6;
}

/* Remove text decoration when <a> tag applied */
.section-heading a {
  color: inherit;
  text-decoration: none;
}

/* ─── Contact / Footer ──────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 3;
    padding: 6vh 8vw;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.contact-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-link:hover { color: var(--accent); }

/* ─── Fade-in on load ───────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 1.1s ease forwards;
}
.fade-in:nth-child(2) { animation-delay: 0.25s; }
.fade-in:nth-child(3) { animation-delay: 0.45s; }
.fade-in:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}