﻿/* 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: 32vh;
    text-align: center;
    padding: 16px 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;
    flex-wrap: wrap;
}

/* ================================
   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;
}
/* ================================
   Homepage Tab Cards
================================ */
.tab-card-grid {
    max-width: 1100px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.tab-card {
    position: relative;
    min-height: 260px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at top left, rgba(90,169,255,0.16), transparent 34%),
        linear-gradient(180deg, rgba(18,24,33,0.96), rgba(15,20,27,0.96));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    color: var(--ink);
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tab-card:hover {
    text-decoration: none;
    transform: translateY(-4px);
    border-color: rgba(90,169,255,0.45);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 22px rgba(90,169,255,0.16);
}

.tab-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand), var(--accent));
    opacity: 0.85;
}

.tab-label {
    width: fit-content;
    padding: 5px 10px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    color: var(--pill-text);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.tab-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.tab-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.tab-status {
    width: fit-content;
    margin-top: 22px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.78rem;
    font-weight: 700;
}

.tab-status.ready {
    color: #061020;
    background: var(--accent);
    border-color: transparent;
}

.tab-thumb {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(90,169,255,0.28);
    background: rgba(5,8,15,0.7);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.28),
        0 0 16px rgba(90,169,255,0.12);
    image-rendering: pixelated;
    opacity: 0.9;
}

.tab-card .tab-label,
.tab-card h3,
.tab-card p,
.tab-card .tab-status {
    position: relative;
    z-index: 1;
}

.tab-card h3,
.tab-card p {
    padding-right: 56px;
}

@media (max-width: 560px) {
    .tab-thumb {
        width: 46px;
        height: 46px;
        top: 16px;
        right: 16px;
    }

    .tab-card h3,
    .tab-card p {
        padding-right: 44px;
    }
}

/* ================================
   Pixel Banner
================================ */
.pixel-banner-section {
    padding: 24px 20px 10px;
}

.pixel-banner-frame {
    max-width: 1500px;
    margin: 0 auto;
    border: 1px solid rgba(90,169,255,0.28);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 12px 34px rgba(0,0,0,0.38),
        0 0 24px rgba(255,80,190,0.12),
        0 0 28px rgba(90,169,255,0.12);
    background: #070b11;
}

.pixel-banner-frame img {
    display: block;
    width: 100%;
    height: clamp(180px, 28vw, 420px);
    object-fit: cover;
    object-position: center;
    image-rendering: pixelated;
}


/* ================================
   About Section
   ================================ */
#about {
    background:
        radial-gradient(circle at top left, rgba(90,169,255,0.10), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
}

#about .section-head {
    max-width: 820px;
    margin-bottom: 34px;
}

#about .section-head p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

.about-wrap {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 22px;
    align-items: stretch;
}

.about-text,
.about-card {
    background: linear-gradient(180deg, rgba(18,24,33,0.95), rgba(15,20,27,0.95));
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.about-text {
    padding: 28px;
}

.about-text h3 {
    margin: 0 0 16px;
    font-size: 1.35rem;
}

.about-text p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.75;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-highlights {
    display: grid;
    gap: 14px;
}

.about-card {
    position: relative;
    overflow: hidden;
    padding: 20px 22px;
}

.about-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--accent));
    opacity: 0.8;
}

.about-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.about-card ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
    line-height: 1.65;
}

.about-card li {
    margin-bottom: 0.35rem;
}

.about-card li:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .about-wrap {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding: 22px;
    }
}


/* ================================
   About Toolkit
================================ */
.about-toolkit {
    max-width: 1120px;
    margin: 34px auto 0;
}

.section-head.mini {
    margin-bottom: 18px;
    padding-top: 0 !important;
}

.section-head.mini h3 {
    margin: 0 0 6px;
    font-size: clamp(20px, 2.4vw, 26px);
}

.section-head.mini p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.toolkit-card {
    background:
        radial-gradient(circle at top left, rgba(90,169,255,0.12), transparent 34%),
        linear-gradient(180deg, rgba(18,24,33,0.96), rgba(15,20,27,0.96));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.toolkit-card h4 {
    margin: 0 0 14px;
    font-size: 1rem;
}

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

.skill-cloud li {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    box-shadow: var(--pill-glow);
    color: var(--pill-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
/* ================================
   Footer / Contact
================================ */
#contact {
    background:
        radial-gradient(circle at top right, rgba(90,169,255,0.09), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}

#contact .section-head {
    max-width: 820px;
    margin-bottom: 20px;
}

#contact .section-head p {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-intro {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
}

.contact-intro p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

.contact-cards {
    max-width: 1120px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.link-card {
    position: relative;
    min-height: 150px;
    padding: 22px;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(90,169,255,0.12), transparent 34%),
        linear-gradient(180deg, rgba(18,24,33,0.96), rgba(15,20,27,0.96));
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    border-color: rgba(90,169,255,0.45);
    box-shadow: 0 10px 28px rgba(0,0,0,0.32), 0 0 18px rgba(90,169,255,0.12);
}

.link-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--accent));
    opacity: 0.75;
}

.link-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.link-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

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

/* Contact section responsive layout */
@media (max-width: 1000px) {
    .contact-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
    }
}

@media (max-width: 560px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .link-card {
        min-height: 130px;
    }
}
/* ================================
   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;
    }



/* =========================================
   Case Study Image Gallery
   ========================================= */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

    .image-gallery figure {
        margin: 0;
    }

    .image-gallery img {
        width: 100%;
        height: 100%;
        max-height: 260px;
        object-fit: cover;
        border-radius: 10px;
        background: #0f141b;
    }

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }

        .image-gallery img {
            max-height: 220px;
        }
}

/* =========================================
   Case Study Image Gallery — Containment Fix
   ========================================= */

.case-wrapper .image-gallery {
    max-width: 760px; /* prevents full-width chaos */
    margin-left: auto;
    margin-right: auto;
}

    /* Subtle separation from hero / blueprint images */
    .case-wrapper .image-gallery img {
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    }

/* style.css END */
