﻿:root {
    --bg: #000;
    --bg2: #141414;
    --ink: #e9f0ff;
    --muted: #aab8d8;
    --accent: #9ff6ec;
    --card: #0f131733;
    --ring: rgba(159,246,236,.35);
    --logoOpacity: 0.15;
    --max: 1200px;
    --radius: 18px;
    --shadow: 0 6px 30px rgba(0,0,0,.25);
    --borderClr: rgba(255,255,255,.06);
    --linkClr: var(--accent);
    color-scheme: dark;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #f6f7f9;
        --bg2: #eef1f5;
        --ink: #0b1220;
        --muted: #5c6b7a;
        --accent: #12b5a6;
        --card: #ffffff33;
        --ring: rgba(18,181,166,.25);
        --logoOpacity: 0.08;
        --borderClr: rgba(0,0,0,.06);
        --linkClr: #0a7f78;
        color-scheme: light;
    }
}

:root[data-theme="light"] {
    --bg: #f6f7f9;
    --bg2: #eef1f5;
    --ink: #0b1220;
    --muted: #5c6b7a;
    --accent: #12b5a6;
    --card: #ffffff33;
    --ring: rgba(18,181,166,.25);
    --logoOpacity: 0.08;
    --borderClr: rgba(0,0,0,.06);
    --linkClr: #0a7f78;
    color-scheme: light;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    color: var(--ink);
    font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial
}


a {
    color: var(--linkClr);
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

.parallax-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    height: 520px;
    opacity: var(--logoOpacity);
    z-index: 0;
    pointer-events: none;
    background: url('../pishahspritelogo.png') center/contain no-repeat;
    
    filter: drop-shadow(0 8px 22px rgba(0,0,0,.25));
}

.wrap {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin-inline: auto;
    padding: 24px
}

header.site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

    .brand img {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        box-shadow: var(--shadow)
    }

    .brand h1 {
        font-size: 18px;
        margin: 0
    }

nav a {
    margin-left: 16px;
    font-weight: 600
}

.themeToggle {
    border: 1px solid var(--borderClr);
    background: transparent;
    color: var(--ink);
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: center;
    padding: 28px 0;
    min-height: 60vh
}

    .hero h2 {
        font-size: clamp(22px,5.5vw,36px);
        margin: 0 0 10px
    }

    .hero p {
        color: var(--muted);
        margin: 0 0 20px
    }

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    background: var(--accent);
    color: #001122;
    border: 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow)
}

    .btn.ghost {
        background: transparent;
        color: var(--ink);
        border: 1px solid var(--ring)
    }

.card {
    background: var(--card);
    border: 1px solid var(--borderClr);
    
    box-shadow: var(--shadow);
   /* transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;*/
}

    .card:hover {
       /* transform: scale(1.03);*/
        border-color: var(--accent);
       /* box-shadow: 0 8px 35px rgba(0,0,0,.35);*/
    }


.preview {
    aspect-ratio: 16/10;
    width: 100%;
    border-radius: var(--radius);
    background: linear-gradient(135deg,#103035,#0c1f25);
    display: block;
    overflow: hidden
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .preview {
        background: linear-gradient(135deg,#e9f6f6,#eaf2f7)
    }
}

.section {
    margin: 56px 0
}

    .section h3 {
        font-size: 28px;
        margin: 0 0 18px
    }

/* ===== Carousel styling ===== */
.carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center
}

.carBtn {
    border: 1px solid var(--borderClr);
    background: transparent;
    color: var(--ink);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer
}

    .carBtn:focus {
        outline: 2px solid var(--ring);
        outline-offset: 2px
    }

.track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 12px;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch
}

    .track::-webkit-scrollbar {
        height: 8px
    }

    .track::-webkit-scrollbar-thumb {
        background: rgba(127,127,127,.3);
        border-radius: 999px
    }

.proj {
    display: flex;
    flex-direction: column;
    flex: 0 0 clamp(260px, 33vw, 360px);
    scroll-snap-align: start;
    position: relative
}

    .proj .thumb {
        display: block
    }

.thumbImg {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--borderClr);
    background: #0d172b;
    position: relative;
    z-index: 1
}

    .thumbImg.broken {
        object-fit: contain;
        background: #111826
    }

.meta {
    padding: 12px
}

    .meta h4 {
        margin: 0 0 4px;
        font-size: 18px
    }

    .meta p {
        margin: 0 10px 10px 0;
        color: var(--muted)
    }

.pill {
    display: inline-block;
    margin-right: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(100,210,255,.12);
    border: 1px solid var(--ring);
    font-weight: 600
}
/* Full-card overlay link when href is present */
.proj .cover {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    z-index: 2;
    text-indent: -9999px
}

    .proj .cover:focus {
        outline: 2px solid var(--ring);
        outline-offset: 2px
    }

.videoWrap {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--borderClr)
}

    .videoWrap iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0
    }

.vidNav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px
}

.filler {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted)
}

footer {
    opacity: .8;
    border-top: 1px solid var(--borderClr);
    padding: 18px 0;
    font-size: 14px
}
/* Mobile tweaks */
@media (max-width: 900px) {
    header.site {
        padding: 8px 0
    }

    .wrap {
        padding: 16px
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 0;
        min-height: auto
    }

        .hero h2 {
            font-size: clamp(22px,6vw,30px)
        }

    #heroCard {
        order: -1
    }

    .preview {
        aspect-ratio: 4/3
    }
}

@media (max-width: 480px) {
    .cta .btn {
        padding: 10px 12px;
        font-weight: 700
    }
}
/* Ensure images inside preview scale nicely */
.preview img {
    display: block;
    width: 100%;
    height: auto
}
/* Ensure images inside preview scale nicely */
.preview img {
    display: block;
    width: 100%;
    height: auto
}
/* Hero card text spacing */
#heroCard h3 {
    margin: 10px 12px 4px;
    font-size: clamp(16px,4.5vw,20px)
}

#heroCard p {
    margin: 0 12px 12px;
    color: var(--muted)
}
/* --- HERO CARD ONLY (safe overrides) --- */
#heroCard {
    aspect-ratio: auto; /* let content define height */
    overflow: visible; /* don't clip the text */
    display: block;
}

    #heroCard img {
        display: block;
        width: 100%;
        height: auto;
        border-top-left-radius: var(--radius);
        border-top-right-radius: var(--radius);
    }

    #heroCard .meta {
        padding: 12px;
    }

        #heroCard .meta h3 {
            margin: 10px 0 4px;
            font-size: clamp(16px,4.5vw,20px)
        }

        #heroCard .meta p {
            margin: 0 0 12px;
            color: var(--muted)
        }

header.site {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
    border-bottom: 1px solid var(--borderClr);
}

/* Active nav link style */
nav a.active {
    color: var(--accent);
    text-decoration: underline;
}
/* before (too global) */
/* .card { … } */

/* after (scoped to your horizontal scroller) */
.cards > .card {
    --card-w: clamp(260px, 85vw, 420px);
    flex: 0 0 var(--card-w);
    max-width: var(--card-w);
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@media (min-width: 768px) {
    .cards {
        scroll-snap-type: x mandatory;
    }

        .cards > .card {
            --card-w: clamp(260px, 28vw, 360px);
        }
}

@media (min-width: 1200px) {
    .cards > .card {
        --card-w: 340px;
    }
}

section[id] {
    scroll-margin-top: 120px;
}

/* match landing page behavior, but with collision-proof class names */
* {
    box-sizing: border-box;
}





/* ===== Bootstrap-free cute table ======================================= */

/* wrapper: rounded card + scrolling without clipping stickies */
.table-wrap {
    border: 1px solid var(--borderClr);
    border-radius: 14px;
    overflow: auto;
    background: var(--card);
    box-shadow: 0 6px 30px rgba(0,0,0,.06);
}

/* table base */
.cute-table {
    width: 100%;
    min-width: 560px; /* avoid squish on narrow screens */
    border-collapse: separate;
    border-spacing: 0;
    color: var(--ink);
    background: var(--card);
    font-variant-numeric: tabular-nums;
}

    /* head */
    .cute-table thead th {
        position: sticky;
        top: 0; /* if your header overlaps, set --sticky-top and use var() */
        z-index: 1;
        padding: 12px 14px;
        text-align: left;
        font-weight: 700;
        border-bottom: 1px solid var(--borderClr);
        /* gentle glossy cap that works in both themes */
        /*background: linear-gradient( 180deg, color-mix(in oklab, var(--card) 92%, #000 8%), var(--card) );*/
    }

    /* cells */
    .cute-table td {
        padding: 12px 14px;
        border-bottom: 1px solid var(--borderClr);
    }

    /* zebra & hover */
    .cute-table tbody tr:nth-child(odd) {
        background: color-mix(in oklab, var(--card) 96%, var(--ink) 4%);
    }

    .cute-table tbody tr:hover {
        background: color-mix(in oklab, var(--card) 92%, var(--accent) 8%);
    }

    /* rounded corners on scroll container edges */
    /*.cute-table thead th:first-child {
        border-top-left-radius: 14px;
    }*/

    .cute-table thead th:last-child {
        border-top-right-radius: 14px;
    }

    .cute-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 14px;
    }

    .cute-table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 14px;
    }

    /* alignment helpers */
    .cute-table .num,
    .cute-table [data-align="num"],
    .cute-table [data-align="right"] {
        text-align: right;
    }

    /* links & muted text inside table (so dark mode stays readable) */
    .cute-table a {
        color: var(--linkClr);
        text-decoration: none;
    }

        .cute-table a:hover {
            text-decoration: underline;
        }

    .cute-table .text-muted,
    .cute-table .muted {
        color: var(--muted);
    }

    /* optional: sortable indicators via aria-sort */
    .cute-table th[aria-sort="ascending"]::after {
        content: " ↑";
        color: var(--accent);
    }

    .cute-table th[aria-sort="descending"]::after {
        content: " ↓";
        color: var(--accent);
    }

/* mobile: tighter padding */
@media (max-width: 600px) {
    .cute-table thead th,
    .cute-table td {
        padding: 10px 12px;
    }
}

/* ===== (Optional) if your sticky app header overlaps table head ========= */
/* Declare a site header height once, then un-comment next 2 lines.
:root { --site-header-h: 56px; }
.cute-table thead th { top: var(--site-header-h); }
*/
/* the table scrolls (vertical) */
.table-wrap {
    max-height: 65vh; /* pick your height */
    overflow: auto; /* vertical + horizontal scroll */
    border: 1px solid var(--borderClr);
    border-radius: 14px;
    background: var(--card);
}

/* freeze header row at top of the .table-wrap scroller */
.cute-table thead th {
    position: sticky;
    top: 0; /* top of the scroll box */
    z-index: 3; /* above rows */
    background: var(--bg);
    border-bottom: 1px solid var(--borderClr);
}
/* Fill the viewport; header/top & footer/bottom; main expands */
html, body { min-height: 100%; }
body { min-height: 100dvh; }      /* mobile-safe vh */
.site-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* override the header-cell background (beats the previous gradient) */
.cute-table thead th {
    background: var(--bg) !important; /* use background, not just background-color */
    color: var(--ink); /* optional: ensure readable text */
    /* keep your existing sticky/border styles; this only swaps the fill */
}
/* even stronger */
main .site-wrap .cute-table thead th {
    background: var(--bg) !important;
}
