/* ===== Variables ===== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0d1321;
    --bg-card: #111827;
    --bg-card-hover: #1a2234;
    --accent: #00e5c8;
    --accent-hover: #00c4ab;
    --accent-dim: rgba(0,229,200,.08);
    --accent-glow: rgba(0,229,200,.15);
    --text-primary: #e8eaed;
    --text-secondary: #b0b8c4;
    --text-muted: #8a919c;
    --border: #1e293b;
    --border-accent: rgba(0,229,200,.2);
    --radius: 16px;
    --radius-sm: 10px;
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 15px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: var(--accent-hover); }

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ===== Site Shell (crossword nav layout) ===== */

/*  One unit = 1/5 of 80vw = 16vw.
    CHRIS = 5 units across the top = 80vw.
    Sidebar = 1 unit wide, lines up under the C.
    Every letter is the same font-size. */

.site-shell {
    --font: 11vw;           /* same size everywhere    */

    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "top    top"
        "side   content"
        "side   footer";
    min-height: 100vh;
}

/* --- Top bar: C H R I S --- */
.cw-top {
    grid-area: top;
    display: flex;
    background: var(--bg-secondary);
}

.cw-top .cw-letter {
    width: auto;
    height: 0.85em;
    overflow: hidden;
}

/* --- Side bar: H E D G Z O Y --- */
.cw-side {
    grid-area: side;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-right: none;
}

.cw-side .cw-letter {
    line-height: 0.85;
    padding: 0;
    height: 0.85em;
    overflow: hidden;
}

/* --- Shared letter styles --- */
.cw-letter {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 900;
    font-size: var(--font);
    line-height: 1;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s, background .2s;
    user-select: none;
}

.cw-letter:hover {
    color: var(--accent);
    background: rgba(0,229,200,.06);
    text-decoration: none;
}

.cw-c {
    color: var(--accent) !important;
}

/* Active page highlight */
.cw-side .cw-letter.active {
    color: var(--accent);
    background: var(--accent-dim);
    border-right: 2px solid var(--accent);
}

/* --- Content area --- */
.site-content {
    grid-area: content;
    overflow-y: auto;
    min-width: 0;
    background: var(--bg-secondary);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 2rem 0 3rem;
    overflow: hidden;
}


.hero .hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: .85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 0;
    opacity: .9;
}

.hero .experience-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, rgba(0,229,200,.1), rgba(0,229,200,.03));
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-size: .82rem;
    font-weight: 600;
    padding: .6rem 1.5rem;
    border-radius: 50px;
    margin-top: 2rem;
    backdrop-filter: blur(8px);
}



/* ===== Fade-in animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp .7s ease-out forwards;
}

.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .35s; }
.fade-up-d4 { animation-delay: .5s; }

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

/* ===== Tech Strip (large icons, no boxes, fill width) ===== */
.tech-strip {
    padding: 1rem 0 0;
    margin-bottom: 0;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to top, rgba(0,229,200,.12) 0%, var(--bg-secondary) 100%);
}

.tech-strip::before {
    content: '';
    position: absolute;
    top: 0;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,229,200,.07) 0%, transparent 65%);
    pointer-events: none;
}

.tech-strip::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56,100,220,.05) 0%, transparent 65%);
    pointer-events: none;
}

.tech-strip-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    flex: 1;
    transition: transform .3s, opacity .3s;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .6s ease-out forwards;
}

.tech-item:nth-child(1) { animation-delay: .1s; }
.tech-item:nth-child(2) { animation-delay: .25s; }
.tech-item:nth-child(3) { animation-delay: .4s; }
.tech-item:nth-child(4) { animation-delay: .55s; }
.tech-item:nth-child(5) { animation-delay: .7s; }
.tech-item:nth-child(6) { animation-delay: .85s; }

.tech-item:hover {
    transform: scale(1.1);
}

/* Sweep glow — a light washes smoothly across the icons */
.tech-strip-inner {
    position: relative;
}

.tech-strip-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0,229,200,.25) 45%,
        rgba(0,229,200,.4) 50%,
        rgba(0,229,200,.25) 55%,
        transparent 100%
    );
    background-size: 40% 100%;
    background-repeat: no-repeat;
    background-position: -40% 0;
    animation: sweep 6s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes sweep {
    0%       { background-position: -50% 0; }
    15%      { background-position: -50% 0; }
    40%      { background-position: 150% 0; }
    40.01%   { background-position: -50% 0; }
    100%     { background-position: -50% 0; }
}

.tech-item i {
    color: rgba(0,229,200,.4);
}

.tech-item i {
    font-size: 8vw;
    transition: color .3s;
}

.tech-item span {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    transition: color .3s;
}

.tech-item:hover span { color: var(--text-primary); }

/* All icons — toned-down accent */
.tech-item i { color: rgba(0,229,200,.4); }

/* ===== Bio / About ===== */
.bio-section {
    padding: 5rem 0;
    position: relative;
}

.bio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.bio-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 2.5rem;
}

.bio-section .pull-quote {
    font-size: 1.65rem;
    font-weight: 300;
    line-height: 1.45;
    color: #fff;
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
}

.bio-section .bio-text p {
    color: var(--text-secondary);
    font-size: .92rem;
    margin-bottom: 1.1rem;
}

/* ===== Highlight card ===== */
.highlight-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(17,24,39,.6) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.highlight-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.highlight-card li {
    color: var(--text-secondary);
    font-size: .88rem;
    margin-bottom: .85rem;
    line-height: 1.5;
}

.highlight-card .check-icon {
    color: var(--accent);
    margin-right: .5rem;
    font-size: .8rem;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-section h3 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-section p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== Page Header (inner pages) ===== */
.page-header {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--accent);
}

.page-header h1 {
    font-size: 2rem;
    letter-spacing: -1px;
    margin-bottom: .25rem;
}

.page-header .lead {
    color: var(--text-muted);
    font-size: .95rem;
}

/* ===== Cards (general) ===== */
.card-dark {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(17,24,39,.5) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    transition: all .35s cubic-bezier(.25,.8,.25,1);
    position: relative;
    overflow: hidden;
}

.card-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    opacity: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 70%);
    transition: opacity .35s;
}

.card-dark:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
}

.card-dark:hover::before { opacity: 1; }

.card-dark img.screenshot {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    width: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.card-dark h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: .75rem;
    position: relative;
    z-index: 1;
}

.card-dark h4 a { color: #fff; }
.card-dark h4 a:hover { color: var(--accent); }

.card-dark p {
    color: var(--text-muted);
    font-size: .88rem;
    position: relative;
    z-index: 1;
}

/* ===== Project sections ===== */
.project-section {
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 0;
}
.project-section:last-child { border-bottom: none; }

.project-section h2 { font-size: 1.6rem; letter-spacing: -0.5px; }
.project-section .lead { color: var(--text-muted); }
.project-section p { color: var(--text-secondary); font-size: .92rem; }

.project-img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all .35s cubic-bezier(.25,.8,.25,1);
}
.project-img:hover {
    transform: scale(1.04);
    border-color: var(--border-accent);
}

.at-a-glance {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(17,24,39,.5) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* ===== SQL Snippet cards ===== */
.sql-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: border-color .3s;
}

.sql-card:hover { border-color: var(--border-accent); }

.sql-card .card-header {
    background: transparent;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: .85rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sql-card .card-body { padding: 1.25rem; }

.sql-card code {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: var(--text-primary);
    white-space: pre-wrap;
    display: block;
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    line-height: 1.7;
}

/* ===== Badges ===== */
.badge-accent {
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 600;
    font-size: .72rem;
    padding: .35em .65em;
    border-radius: 6px;
    border: 1px solid var(--border-accent);
    letter-spacing: .5px;
}

/* ===== Buttons ===== */
.btn-accent {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    padding: .65rem 1.8rem;
    font-weight: 700;
    font-size: .9rem;
    transition: all .25s;
    letter-spacing: -.2px;
}
.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline-accent {
    border: 2px solid rgba(0,229,200,.4);
    color: var(--accent);
    border-radius: 10px;
    padding: .6rem 1.7rem;
    font-weight: 700;
    font-size: .9rem;
    background: transparent;
    transition: all .25s;
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.site-footer {
    grid-area: footer;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    padding: 1.5rem 2rem;
    font-size: .82rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--text-secondary);
    font-weight: 500;
}
.site-footer a:hover { color: var(--accent); }

/* ===== Responsive ===== */

/* Mobile: CHRIS stays on top, HEDGZOY becomes horizontal nav below it */
@media (max-width: 767.98px) {
    /* Stack to single column */
    .site-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        grid-template-areas:
            "top"
            "side"
            "content"
            "footer";
    }

    /* CHRIS across the top — scale down to fit */
    .cw-letter {
        font-size: 14vw;
    }

    .cw-top {
        justify-content: center;
    }

    .cw-top .cw-letter {
        width: auto;
        height: auto;
        overflow: visible;
        padding: 1vw 0;
    }

    /* CHEDGZOY — horizontal row below CHRIS, with C prefix */
    .cw-side {
        flex-direction: row;
        justify-content: space-around;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .cw-side::before {
        content: 'C';
        font-family: 'Inter', system-ui, sans-serif;
        font-weight: 900;
        font-size: 5vw;
        line-height: 1;
        color: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        padding: 2vw 0;
    }

    .cw-side .cw-letter {
        flex: 1;
        width: auto;
        height: auto;
        overflow: visible;
        font-size: 5vw;
        padding: 2vw 0;
        line-height: 1;
    }

    .cw-side .cw-letter.active {
        border-right: none;
        border-bottom: 2px solid var(--accent);
    }

    /* Tech icons — 3x2 grid, equal size, no animations */
    .tech-strip-inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 0;
        padding: 1rem;
    }

    .tech-strip-inner::after {
        display: none;
    }

    .tech-item {
        animation: none;
        opacity: 1;
        transform: none;
        gap: .4rem;
    }

    .tech-item i {
        font-size: 10vw;
    }

    .tech-item span {
        font-size: .6rem;
        letter-spacing: 1px;
    }

    /* H1 subtitle */
    .hero .subtitle {
        font-size: .65rem;
        letter-spacing: 2px;
    }

    .hero { padding: 1.5rem 1rem; }
    .bio-section .pull-quote { font-size: 1.25rem; }
    .page-header { padding: 2rem 0 1.5rem; margin-bottom: 2rem; }
    .cta-section { padding: 3rem 0; }
    .cta-section h3 { font-size: 1.6rem; }
}
