/* =========================================================
   01. THEME & DESIGN TOKENS
   ========================================================= */

:root {
    /* Core colors */
    --bg: #0b0f14;
    --surface: #121821;
    --surface-light: #18212c;

    --text: #f4f7fb;
    --text-muted: #a6abb4;

    /* >>> EDIT: Brand palette <<< */
    --accent: #ff7a1a;              /* Main orange */
    --accent-secondary: #b56dff;   /* Purple */

    --border: #2a313b;
    --border-light: rgba(255, 255, 255, 0.08);

    /* >>> EDIT: Shape language <<<
       Smaller radii = more technical/editorial,
       less SaaS-template looking.
    */
    --radius: 8px;
    --radius-small: 4px;

    --max-width: 1200px;

    /* >>> EDIT: Technical/metadata font <<< */
    --font-mono:
        "Cascadia Code",
        "Fira Code",
        Consolas,
        monospace;
}


/* =========================================================
   02. GLOBAL / RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;

    background:
        radial-gradient(circle at top left,
            rgba(255, 138, 61, 0.05),
            transparent 35%),
        radial-gradient(circle at top right,
            rgba(155, 92, 255, 0.05),
            transparent 35%),
        var(--bg);

    color: var(--text);

    /* >>> EDIT: Global font stack <<< */
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

main {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}


/* =========================================================
   03. AMBIENT BACKGROUND LIGHTING
   ========================================================= */

/*
   >>> EDIT: Interactive glow controls <<<

   --glow-x / --glow-y:
   Updated by JavaScript based on cursor position.

   opacity:
   Controls overall brightness.

   blur:
   Controls softness.

   width / height:
   Controls glow size.
*/

:root {
    --glow-x: 18%;
    --glow-y: 22%;
}

body::before,
body::after {
    content: "";

    position: fixed;

    width: 36rem;
    height: 36rem;

    border-radius: 50%;

    filter: blur(110px);
    opacity: 0.22;

    pointer-events: none;
    z-index: -1;
}

/* Orange / coral glow follows cursor on desktop */
body::before {
    top: var(--glow-y);
    left: var(--glow-x);

    background:
        radial-gradient(circle,
            rgba(255, 138, 61, 0.9) 0%,
            rgba(255, 107, 107, 0.55) 45%,
            transparent 75%);

    transform: translate(-50%, -50%);
}

/* Purple glow remains autonomous */
body::after {
    top: 35%;
    right: -12%;

    background:
        radial-gradient(circle,
            rgba(155, 92, 255, 0.9) 0%,
            rgba(184, 117, 255, 0.55) 45%,
            transparent 75%);

    animation: glow-purple 22s ease-in-out infinite alternate;
}

@keyframes glow-purple {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-8vw, -6vh) scale(1.1);
    }

    100% {
        transform: translate(-4vw, 16vh) scale(0.9);
    }
}


/* =========================================================
   04. NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(11, 15, 20, 0.72);
    backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;

    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}

.logo {
    font-weight: 800;
    letter-spacing: 0.12em;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 2rem;

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

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.resume-link {
    padding: 0.55rem 1rem;

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

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

.resume-link:hover {
    border-color: var(--accent);
    background: var(--surface);

    color: var(--accent);
}

/* =========================================================
   04A. MOBILE NAVIGATION
   ========================================================= */

/* Hidden on desktop */
.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    background: transparent;

    border: 1px solid var(--border);
    border-radius: 10px;

    cursor: pointer;
}

/* Hamburger lines */
.menu-toggle span {
    display: block;

    width: 18px;
    height: 2px;

    margin: 4px auto;

    background: var(--text);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

/* Mobile menu container */
.mobile-menu {
    display: none;

    padding: 1rem;

    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(18px);

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu a {
    display: block;

    padding: 0.85rem 0;

    color: var(--text-muted);

    font-weight: 600;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* Applied by JavaScript when menu is opened */
.mobile-menu.is-open {
    display: block;
}

/* Animate hamburger into an X */
.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* =========================================================
   05. HERO
   ========================================================= */

.hero {
    min-height: calc(100vh - 72px);

    display: flex;
    align-items: center;

    padding-block: 6rem;
}

.hero-content {
    max-width: 850px;
}

.hero-label {
    color: var(--accent-secondary);

    font-size: 0.9rem;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);

    line-height: 0.95;
    letter-spacing: -0.05em;

    margin-bottom: 1.5rem;
}

.hero h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);

    line-height: 1.15;

    color: var(--text-muted);

    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 700px;

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

    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 1rem;
}

.hero-actions a {
    padding: 0.8rem 1.3rem;

    border: 1px solid var(--border);
    border-radius: 8px;

    font-weight: 600;

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

.hero-actions a:hover {
    transform: translateY(-2px);

    border-color: var(--accent);
    background: var(--surface);

    color: var(--accent);
}


/* =========================================================
   05A. HERO NETWORK CANVAS
   ========================================================= */

/*
   Decorative network field behind the hero content.

   >>> EDIT: Canvas opacity <<<
   Lower = more subtle.
   Raise carefully if you want the effect more visible.
*/

.hero {
    position: relative;

    /*
       >>> EDIT: Full-width hero breakout <<<

       The rest of <main> is capped at --max-width.
       These two lines allow only the hero to span
       the entire browser viewport.
    */
    width: 100vw;
    margin-left: calc(50% - 50vw);

    min-height: calc(100vh - 72px);

    display: flex;
    align-items: center;

    padding-block: 6rem;

    overflow: hidden;
}

/*
   Full-viewport decorative network layer.

   >>> EDIT: opacity controls overall constellation visibility.
*/

.network-canvas {
    position: absolute;

    top: 0;
    left: 50%;

    width: 100vw;
    height: 100%;

    transform: translateX(-50%);

    opacity: 0.36;

    pointer-events: none;
    z-index: 0;
}

/*
   Keeps hero text aligned with the site's normal content width
   while allowing the canvas/background to remain full-screen.
*/
.hero-inner {
    position: relative;
    z-index: 1;

    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

.hero-content {
    position: relative;
    z-index: 1;

    max-width: 850px;
}


/* =========================================================
   06. SHARED SECTION STYLING
   ========================================================= */

section:not(.hero) {
    padding-block: 7rem;

    border-top: 1px solid var(--border);
}

section:not(.hero)>h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);

    line-height: 1.1;
    letter-spacing: -0.03em;

    margin-bottom: 3rem;
}

.section-label {
    display: flex;
    align-items: center;

    gap: 0.75rem;

    margin-bottom: 0.8rem;

    color: var(--accent-secondary);

    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Small technical marker */
.section-label::before {
    content: "";

    width: 18px;
    height: 1px;

    background: var(--accent);
}


/* =========================================================
   07. FEATURED PROJECTS
   ========================================================= */

.project-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1.25rem;
}

.project-card {
    min-height: 280px;

    display: flex;
    flex-direction: column;

    padding: 2rem;

    background: rgba(18, 24, 33, 0.48);
    backdrop-filter: blur(10px);

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

    border-top: 2px solid transparent;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.project-card:hover {
    transform: translateY(-3px);

    background: rgba(18, 24, 33, 0.68);

    border-color: var(--border);
    border-top-color: var(--accent);
}

.project-category {
    color: var(--accent-secondary);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    margin-bottom: 1.25rem;
}

.project-card h3 {
    font-size: 1.5rem;
    line-height: 1.2;

    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-muted);
}

/* =========================================================
   INLINE TECHNOLOGY LABELS
   Shared by projects and writing cards.
   ========================================================= */

/*
   Replaces rounded "pill" tags with a more editorial /
   technical metadata treatment.

   Example:
   PYTHON / REST API / JSON / AUTOMATION
*/

.project-tags,
.writing-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 0;

    margin-top: 1.5rem;
}

.project-tags span,
.writing-tags span {
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;

    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Separator between technologies */
.project-tags span:not(:last-child)::after,
.writing-tags span:not(:last-child)::after {
    content: "/";

    margin-inline: 0.65rem;

    color: var(--accent);
}

.project-links {
    display: flex;

    gap: 1rem;

    margin-top: auto;
    padding-top: 2rem;
}

.project-links a {
    color: var(--accent);

    font-weight: 600;
}

.project-links a:hover {
    text-decoration: underline;
}


/* =========================================================
   08. WRITING & DOCUMENTATION
   Featured technical articles, guides, and lab notes.
   ========================================================= */

.writing {
    padding: 7rem 0;
}

.writing .section-heading {
    max-width: 760px;
    margin-bottom: 3rem;
}

.section-description {
    max-width: 700px;

    margin-top: 1rem;

    color: var(--text-muted);

    font-size: 1.05rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   Writing Card Grid
   --------------------------------------------------------- */

.writing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 1.25rem;
}


/* ---------------------------------------------------------
   Individual Writing Card
   --------------------------------------------------------- */

.writing-card {
    display: flex;
    flex-direction: column;

    min-height: 300px;

    padding: 2rem 0;

    background: transparent;

    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;

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

.writing-card:hover {
    transform: translateY(-2px);

    border-top-color: var(--accent);
}


/* ---------------------------------------------------------
   Writing Card Content
   --------------------------------------------------------- */

.writing-type {
    margin-bottom: 1.25rem;

    color: var(--accent-purple);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.writing-card h3 {
    margin-bottom: 1rem;

    font-size: 1.35rem;
    line-height: 1.3;
}

.writing-card>p:not(.writing-type) {
    color: var(--text-muted);

    line-height: 1.7;
}


/* ---------------------------------------------------------
   Writing Tags
   --------------------------------------------------------- */

.writing-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 0.5rem;

    margin-top: 1.5rem;
}


/* ---------------------------------------------------------
   Writing Links
   --------------------------------------------------------- */

.writing-link {
    margin-top: auto;
    padding-top: 2rem;

    color: var(--accent-orange);

    font-weight: 600;

    text-decoration: none;
}

.writing-link:hover {
    text-decoration: underline;
}


/* =========================================================
   09. EXPERIENCE TIMELINE
   Career progression with technical focus.
   ========================================================= */

.timeline {
    position: relative;

    max-width: 900px;

    margin-top: 3rem;
    padding-left: 2rem;
}

.timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 5px;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            var(--accent),
            var(--border) 15%,
            var(--border) 85%,
            var(--accent-secondary)
        );
}

.timeline-item {
    position: relative;

    padding-left: 2rem;
    padding-bottom: 3.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}


/* ---------------------------------------------------------
   Timeline Marker
   Diamond-style node reinforces the network/schematic theme.
   --------------------------------------------------------- */

.timeline-marker {
    position: absolute;

    top: 0.45rem;
    left: -2rem;

    width: 11px;
    height: 11px;

    background: var(--bg);

    border: 2px solid var(--accent);
    border-radius: 2px;

    transform: rotate(45deg);
}

.timeline-content {
    max-width: 760px;
}

.timeline-date {
    margin-bottom: 0.35rem;

    color: var(--accent-secondary);

    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-content h3 {
    margin-bottom: 0.2rem;

    font-size: 1.4rem;
    line-height: 1.2;
}

.timeline-company {
    margin-bottom: 0.7rem;

    color: var(--text-muted);

    font-weight: 600;
}


/* ---------------------------------------------------------
   Technical Focus
   >>> EDIT: Short scan-friendly skill summary for each role.
   --------------------------------------------------------- */

.timeline-focus {
    margin-bottom: 0.9rem;

    color: var(--accent);

    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.timeline-content > p:last-child,
.timeline-content > p:not(
    .timeline-date,
    .timeline-company,
    .timeline-focus
) {
    color: var(--text-muted);

    line-height: 1.75;
}

/* Give multiple descriptive paragraphs some breathing room */
.timeline-content > p + p:not(.timeline-focus) {
    margin-top: 0.8rem;
}


/* =========================================================
   10. ABOUT
   ========================================================= */

.about-grid {
    display: grid;

    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.8fr);

    gap: 5rem;

    align-items: start;
}

.about-copy {
    max-width: 760px;
}

.about-copy p {
    color: var(--text-muted);

    font-size: 1.05rem;
    line-height: 1.85;

    margin-bottom: 1.5rem;
}

.about-copy .about-intro {
    color: var(--text);

    font-size: 1.35rem;
    line-height: 1.6;
}

.about-sidebar {
    padding-left: 1.5rem;

    border-left: 1px solid var(--border);
}

.about-sidebar-label {
    margin-bottom: 1.25rem;

    color: var(--accent-secondary);

    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.about-sidebar ul {
    display: grid;

    gap: 0.75rem;
}

.about-sidebar li {
    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.about-sidebar li::before {
    content: "→";

    margin-right: 0.6rem;

    color: var(--accent);
}


/* =========================================================
   11. FOOTER
   ========================================================= */

.site-footer {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;

    padding-block: 2.5rem;

    color: var(--text-muted);

    font-size: 0.9rem;

    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}


/* =========================================================
   12. SCROLL REVEAL ANIMATIONS
   ========================================================= */

/*
   Elements with .reveal start slightly lower and transparent.
   JavaScript adds .is-visible when they enter the viewport.
*/

.reveal {
    opacity: 0;

    transform: translateY(24px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;

    transform: translateY(0);
}

/*
   >>> EDIT: Stagger timing <<<
   Increase/decrease these delays if you want cards to appear
   more slowly or more quickly after one another.
*/

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}



/* =========================================================
   13. PROJECT DETAIL PAGES
   ========================================================= */

/*
   Shared styling for individual portfolio case studies.

   >>> EDIT:
   -- Project content width
   -- Hero spacing
   -- Architecture card sizing
*/

.project-page {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}


/* -------Project Hero------- */

.project-hero {
    padding-block: 7rem 6rem;
}

.project-back-link {
    display: inline-block;

    margin-bottom: 3rem;

    color: var(--text-muted);

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.project-back-link:hover {
    color: var(--accent);

    transform: translateX(-3px);
}

.project-hero h1 {
    max-width: 950px;

    font-size: clamp(3rem, 8vw, 6rem);

    line-height: 0.95;
    letter-spacing: -0.05em;

    margin-bottom: 2rem;
}

.project-lead {
    max-width: 800px;

    color: var(--text-muted);

    font-size: clamp(1.15rem, 2vw, 1.4rem);

    margin-bottom: 2rem;
}


/* -------Project Metadata------- */

.project-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 3rem;

    margin-top: 3rem;
    padding-top: 2rem;

    border-top: 1px solid var(--border);
}

.project-meta-label {
    display: block;

    color: var(--accent-secondary);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    margin-bottom: 0.25rem;
}

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


/* -------Shared Project Sections------- */

.project-section {
    padding-block: 6rem;

    border-top: 1px solid var(--border);
}

.project-section>h2 {
    max-width: 800px;

    font-size: clamp(2rem, 5vw, 3.5rem);

    line-height: 1.1;
    letter-spacing: -0.03em;

    margin-bottom: 2rem;
}

.project-section>p,
.project-story {
    max-width: 800px;

    color: var(--text-muted);

    font-size: 1.08rem;
}

.project-section>p+p,
.project-story p+p {
    margin-top: 1.5rem;
}


/* -------Architecture Flow------- */

.architecture-flow {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);

    align-items: stretch;

    gap: 1rem;

    margin-top: 3rem;
}

.architecture-node {
    padding: 1.5rem;

    background: rgba(18, 24, 33, 0.72);
    backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.architecture-node>span {
    display: inline-block;

    color: var(--accent-secondary);

    font-size: 0.75rem;
    font-weight: 700;

    margin-bottom: 1rem;
}

.architecture-node h3 {
    margin-bottom: 0.75rem;
}

.architecture-node p {
    color: var(--text-muted);

    font-size: 0.9rem;
}

.architecture-arrow {
    display: flex;
    align-items: center;

    color: var(--accent);

    font-size: 1.5rem;
}


/* -------Technical Detail Cards------- */

.project-detail-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1rem;

    margin-top: 3rem;
}

.project-detail-card {
    padding: 2rem;

    background: rgba(18, 24, 33, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.project-detail-card h3 {
    margin-bottom: 0.75rem;
}

.project-detail-card p {
    color: var(--text-muted);
}


/* -------Project Actions------- */

.project-actions {
    margin-top: 2rem;
}

/* -------Terminal/Sample Output------- */

.terminal-window {
    max-width: 900px;

    margin-top: 2.5rem;

    overflow: hidden;

    background: #080b0f;

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

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.terminal-header {
    display: flex;
    align-items: center;

    gap: 0.5rem;

    padding: 0.85rem 1rem;

    background: var(--surface);

    border-bottom: 1px solid var(--border);
}

.terminal-header span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: var(--text-muted);

    opacity: 0.45;
}

.terminal-header p {
    margin-left: 0.5rem;

    color: var(--text-muted);

    font-size: 0.8rem;
}

.terminal-output {
    padding: 1.5rem;

    overflow-x: auto;

    color: var(--text);

    font-family:
        "Cascadia Code",
        "Fira Code",
        Consolas,
        monospace;

    font-size: 0.9rem;
    line-height: 1.8;
}


/* =========================================================
   14. ARTICLE / TECHNICAL WRITING PAGES
   Reusable layout for guides, documentation, and blog posts.
   ========================================================= */

/* >>> EDIT: Main readable article width <<< */
.article-page {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}


/* ---------------------------------------------------------
   Article Hero
   --------------------------------------------------------- */

.article-hero {
    max-width: 950px;

    padding-block: 7rem 5rem;
}

.article-hero h1 {
    max-width: 950px;

    margin-bottom: 2rem;

    font-size: clamp(3rem, 7vw, 5.75rem);

    line-height: 0.98;
    letter-spacing: -0.05em;
}

.article-lead {
    max-width: 800px;

    color: var(--text-muted);

    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.7;

    margin-bottom: 2rem;
}


/* ---------------------------------------------------------
   Main Article Content
   --------------------------------------------------------- */

/*
   >>> EDIT: Reading width <<<
   ~800px keeps long-form text comfortable on desktop.
*/

.article-content {
    max-width: 900px;
}

.article-section {
    padding-block: 5rem;

    border-top: 1px solid var(--border);
}

.article-section h2 {
    max-width: 800px;

    margin-bottom: 2rem;

    font-size: clamp(2rem, 4vw, 3rem);

    line-height: 1.15;
    letter-spacing: -0.03em;
}

.article-section>p {
    max-width: 800px;

    color: var(--text-muted);

    font-size: 1.05rem;
    line-height: 1.85;
}

.article-section>p+p {
    margin-top: 1.5rem;
}


/* ---------------------------------------------------------
   Troubleshooting Steps
   Editorial / field-manual layout
   --------------------------------------------------------- */

.article-steps {
    display: grid;

    margin-top: 3rem;

    border-bottom: 1px solid var(--border);
}

.article-step {
    display: grid;

    grid-template-columns: 70px minmax(0, 1fr);

    gap: 2rem;

    padding-block: 1.75rem;

    background: transparent;

    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;

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

/* Subtle movement rather than floating-card movement */
.article-step:hover {
    padding-left: 0.5rem;

    border-top-color: var(--accent);
}

.article-step > span {
    color: var(--accent-secondary);

    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.article-step h3 {
    margin-bottom: 0.45rem;

    font-size: 1.15rem;
}

.article-step p {
    max-width: 720px;

    color: var(--text-muted);

    line-height: 1.7;
}


/* ---------------------------------------------------------
   HTTP Status Reference
   --------------------------------------------------------- */

.status-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1px;

    margin-top: 3rem;

    background: var(--border);
    border: 1px solid var(--border);
}

.status-card {
    padding: 2rem;

    background: var(--bg);

    border: 0;
    border-radius: 0;

    transition: background 0.2s ease;
}

.status-card:hover {
    background: rgba(255, 122, 26, 0.025);
}

.status-card strong {
    display: block;

    margin-bottom: 1rem;

    color: var(--accent);

    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
}

.status-card h3 {
    margin-bottom: 0.65rem;
}

.status-card p {
    color: var(--text-muted);

    line-height: 1.7;
}


/* ---------------------------------------------------------
   Code Examples
   --------------------------------------------------------- */

/*
   >>> EDIT: Code font stack <<<
   Add your preferred monospace font here later if desired.
*/

.code-window {
    max-width: 900px;

    margin-block: 2rem;

    overflow: hidden;

    background: #080b0f;

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

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.code-header {
    padding: 0.8rem 1rem;

    background: var(--surface);

    color: var(--text-muted);

    border-bottom: 1px solid var(--border);

    font-size: 0.8rem;
    font-weight: 600;
}

.code-window pre {
    padding: 1.5rem;

    overflow-x: auto;
}

.code-window code {
    color: var(--text);

    font-family:
        "Cascadia Code",
        "Fira Code",
        Consolas,
        monospace;

    font-size: 0.9rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   Article Checklist
   --------------------------------------------------------- */

.article-checklist {
    display: grid;

    gap: 0.8rem;

    max-width: 800px;

    margin-top: 2rem;
}

.article-checklist li {
    position: relative;

    padding-left: 1.75rem;

    color: var(--text-muted);

    line-height: 1.7;
}

.article-checklist li::before {
    content: "✓";

    position: absolute;

    left: 0;

    color: var(--accent);

    font-weight: 700;
}


/* =========================================================
   15. RESPONSIVE / MOBILE
   ========================================================= */

/*
   >>> EDIT: Main mobile breakpoint <<<
   Raise/lower this value if the layout switches too early or late.
*/

@media (max-width: 850px) {

    .nav-links,
    .resume-link {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-block: 7rem;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 16vw, 6rem);
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;

        gap: 1rem;
    }

    /* Project detail pages */
    .project-hero {
        padding-block: 5rem;
    }

    .project-meta {
        gap: 1.5rem;
    }

    .architecture-flow {
        grid-template-columns: 1fr;
    }

    .architecture-arrow {
        justify-content: center;

        transform: rotate(90deg);
    }

    .project-detail-grid {
        grid-template-columns: 1fr;
    }

    .writing-grid {
        grid-template-columns: 1fr;
    }

    .writing-card {
        min-height: auto;
    }

    /* Technical article pages */
    .article-hero {
        padding-block: 5rem 4rem;
    }

    .article-section {
        padding-block: 4rem;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .article-step {
        grid-template-columns: 45px 1fr;

        padding: 1.25rem;
    }
}

/* =========================================================
   16. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}