/* General */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: rgb(20, 20, 20);
    color: white;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

section {
    padding: 80px 40px;
    min-height: 100vh;
    text-align: center;
}

h1 {
    text-align: center;
}

button {
    font: inherit;
}

/* Headers */
#big-header {
    position: absolute;
    width: 100%;
    top: 30px;
    text-align: center;
    z-index: 15;
}

#big-header a {
    color: white;
    margin: 0 20px;
    font-size: 24px;
    letter-spacing: 2px;
    text-decoration: none;
    padding: 5px 8px;
}

#big-header a:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

#small-header {
    position: fixed;
    top: -80px;
    width: 100%;
    background: rgb(10, 10, 10);
    text-align: center;
    padding: 16px 0;
    z-index: 80;
    transition: top 0.3s;
}

#small-header.show {
    top: 0;
}

#small-header a {
    color: white;
    font-size: 16px;
    font-weight: bold;
    background-color: rgb(40, 40, 40);
    border-radius: 8px;
    padding: 5px 8px;
    text-decoration: none;
    margin: 0 10px;
    display: inline-flex;
}

#small-header a:hover {
    background-color: rgb(100, 100, 100);
}

/* HOME */
#home {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#home h1 {
    font-size: 80px;
    margin: 0;
    letter-spacing: 4px;
}

#home h2 {
    font-size: 22px;
    margin-top: 20px;
    letter-spacing: 2px;
    color: #ddd;
}

/* Video Slideshow */
.bg-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -2;
}

/* Dark overlay */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Fade Effects */
.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.fade-in.show {
    opacity: 1;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* PROJECTS TIMELINE */
.project-sort {
    display: inline-flex;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    background: rgb(30, 30, 30);
    border-radius: 12px;
}

.sort-button {
    color: white;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.sort-button:hover {
    background: rgb(70, 70, 70);
}

.sort-button.active {
    background: rgb(245, 245, 245);
    color: rgb(20, 20, 20);
    border-color: rgb(245, 245, 245);
}

.timeline {
    position: relative;
    width: 100%;
    margin-top: 80px;
}

.projects-list {
    max-width: 1180px;
    margin: 48px auto 0;
}

.projects-list::before {
    display: none;
}

.projects-list .project {
    width: 100%;
    left: 0;
    padding: 0;
    margin-bottom: 40px;
    display: flex;
    align-items: stretch;
    gap: 24px;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgb(80, 80, 80);
    border-radius: 16px;
    box-shadow: 20px 20px 10px 2px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.projects-list .project::after {
    display: none;
}

.projects-list .project .content {
    flex: 0 0 430px;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.projects-list .project .content img {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
}

.projects-list .description {
    position: static;
    transform: none;
    width: auto;
    flex: 1;
    padding: 20px 24px;
    background: transparent;
    border-radius: 0;
}

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 6px;
    background: rgb(100, 100, 100);
    top: 32px;
    bottom: 0;
    transform: translateX(-50%);
}

/* Project cards */
.project {
    width: 50%;
    padding-bottom: 70px;
    position: relative;
}

.project.left {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.project.right {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.description {
    position: absolute;
    top: 0;
    width: 420px;
    text-align: left;
    font-size: 16px;

    background: rgba(255, 255, 255, 0.04);
    padding: 0 20px 0 20px;
    border-radius: 16px;

    display: inline-block;
}

.game-link {
    background-color: rgb(60, 100, 60);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.game-link:hover {
    background-color: rgb(100, 150, 100);
    outline: 1.5px solid white;
}

.project-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.project-logos img {
    width: auto;
    height: 69px;
    max-width: 300px;
    object-fit: contain;
    padding: 6px;
}

.project.left .description {
    left: 100%;
    transform: translateX(50px);
}

.project.right .description {
    right: 100%;
    transform: translateX(-50px);
}

.project .content {
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid white;
    padding: 20px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 20px 20px 10px 2px rgba(0, 0, 0, 0.5);
}

.project .content h2 {
    margin: 0 0 0 0;
    font-size: 26px;
}

.date {
    color: lightgray;
    margin: 5px 0 15px 0;
    font-size: 16px;
}

/* Thumbnail */
.project .content img {
    width: 380px;
    height: auto;
    border-radius: 20px;
    border: 4px solid white;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.5);
}

/* Connectors */
.project.left::after,
.project.right::after {
    content: "";
    position: absolute;
    top: 5%;
    width: 24px;
    height: 24px;
    background: rgb(100, 100, 100);
    border-radius: 50%;
}

.project.left::after {
    right: -12px;
}

.project.right::after {
    left: -12px;
}

.projects-list:not(.timeline-view) .project.left,
.projects-list:not(.timeline-view) .project.right {
    left: 0;
    padding: 0;
    text-align: left;
}

.projects-list:not(.timeline-view) .project.left .description,
.projects-list:not(.timeline-view) .project.right .description {
    position: static;
    transform: none;
    width: auto;
}

.timeline.timeline-view {
    max-width: none;
    margin: 80px 0 0;
    --timeline-spacing: 70px;
}

.timeline.timeline-view::before {
    display: block;
}

.timeline.timeline-view .project {
    width: 50%;
    padding-bottom: var(--timeline-spacing, 70px);
    margin-bottom: 0;
    display: block;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.timeline.timeline-view .project.left {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline.timeline-view .project.right {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.timeline.timeline-view .project.left::after,
.timeline.timeline-view .project.right::after {
    display: block;
}

.timeline.timeline-view .project .content {
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid white;
    padding: 20px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 20px 20px 10px 2px rgba(0, 0, 0, 0.5);
}

.timeline.timeline-view .description {
    position: absolute;
    top: 0;
    width: 420px;
    text-align: left;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0 20px 0 20px;
    border-radius: 16px;
    display: inline-block;
}

.timeline.timeline-view .project.left .description {
    left: 100%;
    transform: translateX(50px);
}

.timeline.timeline-view .project.right .description {
    right: 100%;
    transform: translateX(-50px);
}

.timeline.timeline-view .project .content img {
    width: 380px;
    height: auto;
    border-radius: 20px;
}

.timeline.timeline-view .project-logos {
    display: none;
}

.end {
    font-size: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 4px solid rgb(100, 100, 100);
    border-radius: 50%;
    align-items: center;
    text-align: center;
    width: 220px;
    height: 220px;
    padding: 20px;
    margin-top: 0;
    display: inline-flex;
}

/* RESUME */
.resume a {
    text-decoration: none;
}

/* ABOUT */
.about p {
    text-align: left;
    margin-left: 20%;
    margin-right: 20%;
    font-size: 20px;
}

.about img {
    width: 460px;
    height: auto;
    border-radius: 20px;
    border: 4px solid white;
}

/* CONTACT */
.contact {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;

    background: rgb(30, 30, 30);
    padding: 8px;
    border-radius: 16px;
}

.contact a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 16px 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact a:hover {
    background-color: rgb(100, 100, 100);
    border-radius: 8px;
}

/* Icons */
.icon {
    width: 30px;
    height: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    section {
        padding: 80px 20px;
    }

    .projects-list .project {
        display: block;
    }

    .projects-list .project .content {
        border-radius: 16px 16px 0 0;
    }

    .projects-list .project .content img {
        max-width: none;
    }

    .timeline::before {
        left: 20px;
    }

    .project {
        width: 100%;
        padding-left: 60px;
        text-align: left;
    }

    .project.left,
    .project.right {
        left: 0;
    }

    .project.left::after,
    .project.right::after {
        left: 12px;
    }

    .timeline.timeline-view .project,
    .timeline.timeline-view .project.left,
    .timeline.timeline-view .project.right {
        width: 100%;
        left: 0;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .timeline.timeline-view .description,
    .timeline.timeline-view .project.left .description,
    .timeline.timeline-view .project.right .description {
        position: static;
        transform: none;
        width: auto;
        margin-top: 20px;
    }

    .timeline.timeline-view .project.left::after,
    .timeline.timeline-view .project.right::after {
        left: 12px;
    }
}

/* 2026 Liquid Glass refresh */
:root {
    --ink: #f7f8ff;
    --muted: #b9bed0;
    --violet: #82a9cc;
    --aqua: #82a9cc;
    --blue: #93a4b8;
    --glass: rgba(24, 25, 27, 0.72);
    --glass-strong: rgba(30, 31, 33, 0.88);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

html { scroll-behavior: smooth; }

body {
    background: #111214;
    color: var(--ink);
    font-family: Inter, Avenir, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .55;
    background: linear-gradient(90deg, rgba(130,169,204,.045), transparent 20%, transparent 80%, rgba(130,169,204,.025));
}

section { padding: 120px clamp(20px, 5vw, 80px); }
section > h1 {
    margin: 0 0 32px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -.055em;
}
section > h1 span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.55);
}
.section-intro { color: var(--muted); font-size: 18px; margin: -12px auto 38px; }

#big-header { top: 24px; }
#big-header nav, #small-header nav {
    display: inline-flex;
    padding: 7px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background: rgba(17, 18, 20, .76);
    box-shadow: 0 12px 32px rgba(0,0,0,.24);
    backdrop-filter: blur(14px);
}
#big-header a, #small-header a {
    margin: 0 2px;
    padding: 9px 15px;
    border-radius: 2px;
    color: rgba(255,255,255,.72);
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .13em;
    transition: color .25s, background .25s, transform .25s;
}
#big-header a:hover, #small-header a:hover, #big-header a.current, #small-header a.current {
    color: white;
    background: rgba(130,169,204,.14);
    transform: translateY(-1px);
}
#small-header { padding: 11px 0; background: transparent; }

#home { min-height: 100svh; padding: 100px 24px; }
#home::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(transparent, #080a10);
    z-index: -1;
}
.overlay { background: linear-gradient(115deg, rgba(6,8,14,.84), rgba(8,9,18,.46) 50%, rgba(15,8,30,.72)); }
.home-content {
    position: relative;
    padding: clamp(28px, 4vw, 52px);
}
#home h1 {
    font-size: clamp(48px, 9vw, 116px);
    line-height: .9;
    letter-spacing: -.065em;
    text-wrap: balance;
    text-shadow: 0 8px 40px rgba(0,0,0,.4);
}
#home h2 { color: rgba(255,255,255,.68); font-size: clamp(12px, 1.6vw, 18px); letter-spacing: .19em; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions a, .game-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: white;
    font-weight: 750;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s, background .25s;
}
.primary-action, .game-link { background: #527fa8 !important; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.secondary-action { background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.hero-actions a:hover, .game-link:hover { transform: translateY(-2px); background: #6693ba !important; box-shadow: 0 12px 26px rgba(0,0,0,.3); outline: none; }
.scroll-cue {
    position: absolute; bottom: 28px; color: rgba(255,255,255,.6); font-size: 9px; letter-spacing: .2em; text-decoration: none;
    display: grid; justify-items: center; gap: 8px;
}
.scroll-cue span { width: 1px; height: 30px; background: linear-gradient(white, transparent); animation: scrollPulse 1.8s infinite; }
@keyframes scrollPulse { 50% { transform: scaleY(.55); transform-origin: bottom; opacity: .45; } }

#about { min-height: auto; }
.about {
    max-width: 1060px;
    margin: 0 auto;
    padding: clamp(18px, 4vw, 44px);
    text-align: left;
    display: grid;
    grid-template-columns: minmax(260px, .8fr) 1.2fr;
    gap: 0 48px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(29, 30, 32, .72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}
.about img { grid-row: 1 / 4; width: 100%; max-width: 380px; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; box-shadow: 0 18px 38px rgba(0,0,0,.3); }
.about p { margin: 0 0 18px; font-size: 17px; color: #d6d9e5; }

.project-sort { background: rgba(31,32,34,.72); border: 1px solid var(--glass-border); border-radius: 4px; backdrop-filter: blur(12px); }
.sort-button { border-radius: 2px; color: var(--muted); transition: .25s; }
.sort-button:hover { background: rgba(255,255,255,.08); color: white; }
.sort-button.active { color: #101820; border-color: #82a9cc; background: #82a9cc; box-shadow: none; }
.projects-list { perspective: none; }
.projects-list .project {
    position: relative;
    margin-bottom: 28px;
    gap: 0;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(28,29,31,.7);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: border-color .25s, transform .25s;
}
.projects-list .project:hover { border-color: rgba(130,169,204,.55); transform: translateY(-3px); }
.projects-list .project .content { flex-basis: 400px; padding: 26px; border: 0; border-right: 1px solid var(--glass-border); }
.projects-list .project .content h2 { font-size: 27px; letter-spacing: -.025em; }
.projects-list .project .content img { max-width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 3px; box-shadow: 0 14px 32px rgba(0,0,0,.28); }
.projects-list .description { padding: 26px 32px; color: #cbd0df; }
.project-logos { border-color: rgba(255,255,255,.1); }
.project-logos img { height: 54px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.2)); transition: transform .25s; }
.project-logos img:hover { transform: translateY(-5px) scale(1.05); }

/* Timeline mode is intentionally flatter and more structured than the card view. */
.timeline.timeline-view {
    max-width: 1180px;
    margin: 72px auto 0;
}
.timeline.timeline-view::before {
    width: 2px;
    top: 10px;
    bottom: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.35) 5%, rgba(155,140,255,.55) 50%, rgba(255,255,255,.18) 95%, transparent);
}
.timeline.timeline-view .project {
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
    overflow: visible;
}
.timeline.timeline-view .project::before { display: none; }
.timeline.timeline-view .project.left { padding-right: 42px; }
.timeline.timeline-view .project.right { padding-left: 42px; }
.timeline.timeline-view .project.left::after,
.timeline.timeline-view .project.right::after {
    top: 26px;
    width: 14px;
    height: 14px;
    border: 3px solid #0a0c13;
    background: var(--violet);
    box-shadow: 0 0 0 1px rgba(255,255,255,.45), 0 0 22px rgba(155,140,255,.65);
}
.timeline.timeline-view .project.left::after { right: -7px; }
.timeline.timeline-view .project.right::after { left: -7px; }
.timeline.timeline-view .project .content {
    width: min(100%, 410px);
    padding: 18px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: rgba(29, 30, 32, .88) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
    backdrop-filter: blur(16px);
}
.timeline.timeline-view .project .content img {
    width: 100%;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 13px;
    box-shadow: none;
}
.timeline.timeline-view .description {
    width: min(420px, calc(100vw / 2 - 90px));
    padding: 18px 22px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: rgba(24, 25, 27, .78);
    color: #cbd0df;
    box-shadow: 0 16px 45px rgba(0,0,0,.22);
    backdrop-filter: blur(14px);
}
.timeline.timeline-view .description p:first-child { margin-top: 0; }
.timeline.timeline-view .description p:last-child { margin-bottom: 0; }

.end { width: 180px; height: 180px; margin-top: 30px; justify-content: center; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); box-shadow: var(--shadow); backdrop-filter: blur(12px); color: white; }
#resume { min-height: auto; }
#resume iframe { width: min(900px, 100%); border: 1px solid var(--glass-border); border-radius: 4px; background: white; box-shadow: var(--shadow); }
#contact { min-height: 75vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact { width: min(560px, 100%); padding: 10px; border: 1px solid var(--glass-border); background: rgba(29,30,32,.72); border-radius: 6px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.contact a { justify-content: flex-start; padding: 17px 20px; border-radius: 16px; font-size: 17px; color: #e7e9f2; transition: .25s; }
.contact a:hover { background: rgba(255,255,255,.10); transform: translateX(5px); }

@media (max-width: 900px) {
    #big-header nav { max-width: calc(100vw - 24px); overflow-x: auto; }
    #big-header a { padding: 8px 10px; font-size: 10px; }
    .about { display: block; }
    .about img { margin-bottom: 28px; }
    .projects-list .project .content { border-right: 0; border-bottom: 1px solid var(--glass-border); }
    .timeline.timeline-view { margin-top: 45px; }
    .timeline.timeline-view .project,
    .timeline.timeline-view .project.left,
    .timeline.timeline-view .project.right { padding-left: 48px; padding-right: 0; }
    .timeline.timeline-view .project.left::after,
    .timeline.timeline-view .project.right::after { left: 13px; right: auto; }
    .timeline.timeline-view .project .content { width: 100%; }
    .timeline.timeline-view .description,
    .timeline.timeline-view .project.left .description,
    .timeline.timeline-view .project.right .description {
        width: 100%;
        margin-top: 14px;
    }
    #resume iframe { height: 720px; }
}

@media (max-width: 560px) {
    section { padding: 90px 16px; }
    #small-header nav { width: calc(100vw - 16px); justify-content: space-around; }
    #small-header a { padding: 7px 5px; font-size: 9px; letter-spacing: .08em; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions a { justify-content: center; }
    .projects-list .description { padding: 22px; }
    .contact a { font-size: 14px; overflow-wrap: anywhere; }
    #resume iframe { height: 560px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
