﻿/* style.css START */

/* ================================
   Root & Global Styles
   ================================ */
:root {
    --bg: #0b0f14;
    --panel: #121821;
    --ink: #e8f0fb;
    --muted: #a8b3c7;
    --brand: #5aa9ff;
    --accent: #7bf1a8;
    --card: #0f141b;
    --shadow: 0 6px 24px rgba(0,0,0,.25);
    /* ✅ UNIFIED PILL SYSTEM */
    --pill-bg: linear-gradient(135deg,#182541,#0b1420);
    --pill-border: rgba(122,168,255,0.35);
    --pill-glow: 0 0 0 1px rgba(122,168,255,0.15), 0 6px 18px rgba(90,169,255,.25);
    --pill-text: #bcd7ff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background: linear-gradient(180deg,#0b0f14 0%,#0d1420 100%);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: var(--brand);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ================================
   Header & Navigation
   ================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background-color: rgba(11,15,20,.6);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand {
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--ink);
}

.site-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

    .site-nav a {
        color: var(--ink);
        opacity: .9;
    }

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: 20px;
}

/* ================================
   Buttons
   ================================ */
.btn {
    background: var(--brand);
    color: #061020;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

    .btn:hover {
        text-decoration: none;
        filter: brightness(1.05);
    }

    .btn.ghost {
        background: transparent;
        border: 1px solid rgba(255,255,255,.2);
        color: var(--ink);
    }

    .btn.small {
        padding: 8px 12px;
        border-radius: 8px;
        font-size: .9rem;
    }

/* ================================
   Hero Section (Main Site)
   ================================ */
.hero {
    display: grid;
    place-items: center;
    min-height: 58vh;
    text-align: center;
    padding: 72px 20px 20px;
}

.hero-inner {
    max-width: 900px;
}



/* Global lead */
.lead {
    font-size: clamp(16px,2.5vw,20px);
    color: var(--muted);
    margin: 0 auto 22px;
    max-width: 720px;
}

.cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 14px;
}

/* ================================
   Pills
   ================================ */
.quick-tags li,
.pill-list li,
.skills-list li,
.pill {
    display: inline-block;
    background: var(--pill-bg);
    color: var(--pill-text);
    border: 1px solid var(--pill-border);
    box-shadow: var(--pill-glow);
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .2px;
}

/* ✅ Size control */
.quick-tags li {
    padding: 6px 12px;
    font-size: .8rem;
}

.pill-list li {
    padding: 4px 10px;
    font-size: .85rem;
}

.skills-list li {
    padding: 8px 12px;
    border-radius: 10px;
}

.pill {
    padding: 6px 14px;
    font-size: .8rem;
    margin: 6px 6px 6px 0;
}

/* ================================
   Sections & Cards
   ================================ */
.section {
    padding: 56px 20px;
}

    .section.alt {
        background: linear-gradient(180deg,rgba(255,255,255,.02),transparent);
    }

.section-head {
    max-width: 980px;
    margin: 0 auto 22px;
}

    .section-head h2 {
        margin: 0 0 6px;
        font-size: clamp(22px,3vw,32px);
    }

    .section-head p {
        color: var(--muted);
    }

.grid.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 24px auto;
}

.card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

    .card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        background: #0b0f14;
    }
        /* ================================
         Wanted Page Image Overrides
        ================================ */

        /* Cancel thumbnail behavior inside cards */
        .card img.img-hero,
        .card img.img-sheet,
        .card .img-grid img {
            height: auto !important;
            object-fit: contain !important;
        }

.card-body {
    padding: 16px;
}

    .card-body h3 {
        margin: 0 0 6px;
        font-size: 1.15rem;
    }

    .card-body p {
        margin: 0 0 10px;
        color: var(--muted);
    }

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding: 0 16px 16px;
}

/* Images */
.wide-img {
    width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 12px;
}

/* ================================
   About Section
   ================================ */
.about-wrap {
    max-width: 1100px;
    margin: 16px auto;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
}

.about-text p {
    margin: 0 0 12px;
}

.skills-wrap h3 {
    margin-bottom: 8px;
}

.skills-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ================================
   Footer / Contact
   ================================ */
.contact-cards {
    max-width: 900px;
    margin: 24px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 16px;
}

.link-card {
    padding: 18px;
}

    .link-card h3 {
        margin: 0 0 6px;
    }

    .link-card p {
        color: var(--muted);
    }

.site-footer {
    padding: 28px 20px;
    text-align: center;
    color: var(--muted);
}

/* ================================
   Responsive
   ================================ */
@media (max-width:880px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
    }

        .site-nav.open {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 56px;
            right: 16px;
            background: var(--panel);
            padding: 10px 14px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,.08);
        }

    .about-wrap {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Save/Load Case Study Layout
   ================================ */
.case-wrapper {
    max-width: 980px;
    margin: 0 auto;
}

.section > .case-wrapper > section {
    max-width: 880px;
    margin: 0 auto 42px;
    padding: 26px 28px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

    .section > .case-wrapper > section img.wide-img {
        margin-top: 16px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.06);
    }

    .section > .case-wrapper > section pre {
        background: #070b11;
        padding: 16px;
        border-radius: 10px;
        overflow-x: auto;
        border: 1px solid rgba(255,255,255,0.08);
    }

.arch-diagram {
    background: #05080f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 22px;
    overflow-x: auto;
    font-family: Consolas, monospace;
    font-size: .95rem;
    line-height: 1.35;
    color: #cfd6df;
}

/* ===============================================
   ✅ HERO FIX — NO BOX BACKGROUND
   =============================================== */
.section .section-head {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 20px 10px !important;
    text-align: center;
}

    /* ✅ HERO TITLE — GRADIENT TEXT ONLY */
    .section .section-head h1 {
        font-weight: 900;
        letter-spacing: .6px;
        background: linear-gradient(135deg,#cbe2ff 0%,#5aa9ff 45%,#7bf1a8 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        color: transparent !important;
        /* ✅ Crisp glow instead of blur */
        text-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 0 12px rgba(90,169,255,.35), 0 0 22px rgba(123,241,168,.12);
    }



    /* ✅ HERO DIVIDER */
    .section .section-head::after {
        content: "";
        display: block;
        width: 55%;
        height: 1px;
        margin: 22px auto 0;
        background: linear-gradient( to right, transparent, rgba(90,169,255,.6), transparent );
    }

/* ===============================================
   ✅ GRADIENT H2 HEADERS (CASE STUDY ONLY)
   =============================================== */
.case-wrapper h2 {
    font-weight: 800;
    letter-spacing: .4px;
    background: linear-gradient(135deg,#cbe2ff 0%,#5aa9ff 45%,#7bf1a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(90,169,255,.35), 0 0 30px rgba(123,241,168,.12);
    margin-bottom: 14px;
}

    /* underline glow */
    .case-wrapper h2::after {
        content: "";
        display: block;
        height: 2px;
        width: 140px;
        margin-top: 6px;
        background: linear-gradient(to right, rgba(90,169,255,.7), rgba(123,241,168,.6), transparent );
        border-radius: 2px;
        opacity: .85;
    }






/* ================================
   Image Roles (Wanted Page)
   ================================ */

/* Hero / cinematic images */
.img-hero {
    display: block;
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    margin: 28px auto;
    border-radius: 14px;
}

/* Sprite sheets (large technical images) */
.img-sheet {
    display: block;
    max-width: 100%;
    max-height: 700px;
    width: auto;
    height: auto;
    margin: 26px auto;
    padding: 12px;
    background: #0b0f14;
    border-radius: 12px;
}

/* Grid images already correct */
.img-grid img {
    max-height: 220px;
    width: auto;
    height: auto;
    margin: auto;
}



/* MossySwampyTileSheet — preserve native aspect */
.card img.img-native {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

/* ================================
   Character Sprite Previews
   ================================ */

.character-preview {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 28px 0;
    flex-wrap: wrap;
}

    .character-preview img.char-sprite {
        max-width: 360px; /* controls visual size */
        width: 100%;
        height: auto;
        object-fit: contain;
        background: #0b0f14;
        padding: 12px;
        border-radius: 12px;
    }

/* style.css END */
