/*
//light
:root {
    --bg: #EAEFEF;
    --mid: #BFC9D1;
    --dark: #25343F;
    --accent: #FF9B51;
}
*/

:root {
    /* Background hierarchy */
    --bg: #0F151A;        /* main background (deepened slate) */
    --mid: #1C2730;       /* elevated surfaces / cards */
    --dark: #EAEFEF;      /* inverted text color (now light) */

    /* Accent stays the same (intentional contrast anchor) */
    --accent: #FF9B51;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    background: var(--bg);
    color: var(--dark);
    overflow-x: hidden;
}

/* ambient background */
#background {
    position: fixed;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, var(--mid), transparent 60%);
    animation: drift 14s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes drift {
    0% { transform: translate(0%, 0%); }
    100% { transform: translate(-8%, -8%); }
}

#app {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* shared components */
h1 {
    letter-spacing: 0.15em;
    text-align: center;
}

.accent-line {
    width: 90px;
    height: 3px;
    background: var(--accent);
    margin: 1.5rem auto;
}

.subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* project blocks */
.project {
    margin-bottom: 4rem;
    border-left: 2px solid var(--mid);
    padding-left: 1.5rem;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    opacity: 0.75;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.screenshot {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    cursor: pointer;
    background: var(--mid);
}

/* =========================
   DEVLOG CONTAINER
   ========================= */

.devlog-block {
    margin-bottom: 2rem;
    border-left: 2px solid var(--mid);
    padding-left: 1.5rem;
}

.devlog-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.devlog-text {
    opacity: 0.8;
    line-height: 1.5;
}

/* buttons */
.cta, .nav {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--dark);
    text-decoration: none;
    color: var(--dark);
}

.cta:hover, .nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.nav {
    margin: 0;
}

.nav.active {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

@media (max-width: 600px) {
    .nav-container {
        justify-content: flex-start; /* Mobile: align to start to prevent offset look */
    }
}

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(37,52,63,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid var(--accent);
}

.lightbox.active {
    display: flex;
}

video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--mid);
}

.grid video {
    height: 180px;
}

.project video {
    margin-top: 5px;
}

iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}
