/* ---------------------------------------------------------------
   Site-level styles layered on top of the glim-midnight theme.
   The theme's main.css handles the typewriter glow; this file
   adds the scrollable sections, nav, footer and layout.
   --------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
    --bg: #0b0d12;
    --bg-elev: #12151d;
    --line: rgba(255, 255, 255, 0.10);
    --text: #e8eaf0;
    --muted: #9aa3b5;
    --accent: #7dd3fc;        /* soft cyan, matches the video's cool tones */
    --accent-ink: #0b0d12;
    --mono: "IBM Plex Mono", "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --max: 960px;
    --pad: clamp(16px, 4vw, 40px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The theme's "*" rule forces monospace on every element; reset to sans,
   then opt specific elements back into mono below. */
body, body * { font-family: var(--sans); }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .topnav, .tags, .hero-kicker, .section-num, .card-meta, .animatedText {
    font-family: var(--mono);
}
a { color: var(--accent); }
a:hover { color: #fff; }

.skip-link {
    position: absolute; left: -999px; top: 8px;
    background: var(--accent); color: var(--accent-ink);
    padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Top nav ---------- */
.topnav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px var(--pad);
    background: linear-gradient(to bottom, rgba(11, 13, 18, 0.85), rgba(11, 13, 18, 0));
    font-size: 13px; letter-spacing: 0.02em;
}
.topnav a { color: var(--text); text-decoration: none; opacity: 0.85; }
.topnav a:hover { opacity: 1; color: #fff; }
.topnav-brand { font-weight: 600; }
.topnav-links { display: flex; gap: 20px; }
@media (max-width: 560px) { .topnav-links { gap: 14px; font-size: 12px; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100svh;
    display: grid; place-items: center;
    padding: 96px var(--pad) 64px;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-media {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.hero-scrim {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(11, 13, 18, 0.15) 0%, rgba(11, 13, 18, 0.65) 70%),
        linear-gradient(to bottom, rgba(11, 13, 18, 0.2), var(--bg) 100%);
}
.hero-inner {
    width: min(var(--max), 100%);
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hero-kicker {
    margin: 0; color: var(--muted);
    font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-name {
    margin: 0; font-size: clamp(36px, 7vw, 68px); font-weight: 600;
    letter-spacing: -0.01em; line-height: 1.05;
    text-shadow: 0 0 24px rgba(125, 211, 252, 0.25);
}
.hero-tagline {
    margin: 0; max-width: 42ch;
    font-size: clamp(16px, 2.2vw, 20px); color: var(--text); opacity: 0.9;
}
.hero-typewriter {
    margin: 4px 0 0; min-height: 1.6em;
    font-size: 15px; color: var(--accent);
}
.hero-typewriter .animatedText { font-size: inherit; height: auto; padding: 0; width: auto; text-shadow: none; }
.hero-typewriter .cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-typewriter .cursor { animation: none; } }

.hero-actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin-top: 12px;
}
/* Buttons are styled here so the page doesn't depend on Bootstrap loading. */
.hero-actions .btn {
    display: inline-block;
    font-family: var(--mono); font-size: 14px; font-weight: 500;
    padding: 10px 18px; border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff; background: rgba(11, 13, 18, 0.35);
    text-decoration: none; text-shadow: none;
    width: auto; margin: 0;            /* undo theme's full-width buttons */
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.hero-actions .btn:hover { background: #fff; color: var(--accent-ink); border-color: #fff; }
.hero-actions .btn-light { background: #fff; color: var(--accent-ink); border-color: #fff; }
.hero-actions .btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.hero-scroll {
    margin-top: 28px; color: var(--muted); text-decoration: none; font-size: 20px;
}
.hero-scroll:hover { color: #fff; }

/* ---------- Sections ---------- */
.page { width: min(var(--max), 100%); margin: 0 auto; padding: 0 var(--pad) 80px; }
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; padding-top: 40px; }

.section-head {
    display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px;
}
.section-num { color: var(--accent); font-size: 13px; letter-spacing: 0.1em; }
.section h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 600; }

.prose { max-width: 68ch; font-size: 17px; }
.prose p { margin: 0 0 1em; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.section-foot { margin: 20px 0 0; color: var(--muted); font-size: 14px; }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-item {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px 24px;
}
.card-item h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.card-item h3 a { color: var(--text); text-decoration: none; }
.card-item h3 a:hover { color: var(--accent); }
.card-item p { margin: 0; color: var(--muted); font-size: 15px; }
.card-meta { color: var(--accent); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }

.tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
    font-size: 12px; color: var(--text);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 3px 10px; opacity: 0.85;
}

/* Skills */
.skills { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; }
.skill-group dt { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 8px; }
.skill-group dd { margin: 0; }
.skill-group ul { list-style: none; margin: 0; padding: 0; }
.skill-group li { padding: 4px 0; color: var(--text); font-size: 15px; border-bottom: 1px dashed var(--line); }
.skill-group li:last-child { border-bottom: 0; }

/* Contact */
.contact-email a { font-family: var(--mono); font-size: clamp(18px, 3vw, 24px); text-decoration: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: 14px; }

/* ---------- Footer (theme pins it to the viewport; make it flow) ---------- */
footer.site-footer {
    position: static; height: auto;
    padding: 28px var(--pad); border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 13px;
}
footer.site-footer p { color: var(--muted); text-align: center; }
footer.site-footer a { color: var(--text); }
