/* ==========================
   Minimal Resume Theme
   ========================== */

:root {
    --primary: #2563eb;
    --text: #222;
    --muted: #666;
    --border: #e5e7eb;
    --background: #ffffff;
    --section: #fafafa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

.bg-grid {
    display: none;
}

.wrap {
    width: min(1000px, 90%);
    margin: 60px auto;
}

/* ==========================
   Hero
   ========================== */

.hero {
    border-bottom: 2px solid var(--border);
    padding-bottom: 35px;
    margin-bottom: 50px;
}

.prompt-line {
    display: none;
}

.name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #111;
}

.last {
    color: var(--primary);
}

.role {
    margin-top: 10px;
    color: var(--muted);
    font-size: 1.05rem;
}

.contact-row {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: .95rem;
}

.contact-row a {
    color: var(--primary);
    text-decoration: none;
}

.contact-row a:hover {
    text-decoration: underline;
}

.dot {
    color: var(--primary);
}

/* ==========================
   Sections
   ========================== */

section {
    margin-bottom: 45px;
}

.section-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.summary p {
    color: var(--muted);
}

/* ==========================
   Skills
   ========================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.skill-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    background: white;
}

.skill-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--muted);
    font-size: .95rem;
}

/* ==========================
   Experience
   ========================== */

.ticket {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 35px;
}

.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ticket-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.org {
    color: var(--primary);
}

.ticket-meta {
    margin: 8px 0 15px;
    color: var(--muted);
    font-size: .95rem;
}

.ticket ul {
    padding-left: 18px;
}

.ticket li {
    margin-bottom: 8px;
    color: var(--muted);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

.open {
    background: #e8f5e9;
    color: #2e7d32;
}

.closed {
    background: #eeeeee;
    color: #666;
}

/* ==========================
   Education
   ========================== */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.entry {
    margin-bottom: 20px;
}

.entry h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.sub,
.meta {
    color: var(--muted);
}

/* ==========================
   Languages
   ========================== */

.lang-bar-wrap {
    margin-bottom: 20px;
}

.lang-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lvl {
    color: var(--primary);
    font-size: .85rem;
}

.lang-bar {
    height: 8px;
    background: #ececec;
    border-radius: 20px;
    overflow: hidden;
}

.lang-bar-fill {
    height: 100%;
    background: var(--primary);
}

/* ==========================
   References
   ========================== */

.ref-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.ref-card h3 {
    margin-bottom: 5px;
}

.ref-card .role,
.contact {
    color: var(--muted);
    font-size: .95rem;
}

/* ==========================
   Projects
   ========================== */
.shelf-section {
    background: #fff;
    padding: 70px 0;
    overflow: hidden;
}

.shelf-head {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 24px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 15px;
}

.shelf-head h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 600;
}

.shelf-head p {
    margin: 0;
    color: var(--text-light);
    font-size: .95rem;
}

/* Marquee */

.shelf-viewport {
    mask-image: linear-gradient(90deg,
            transparent,
            black 50px,
            black calc(100% - 50px),
            transparent);
}

.shelf-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: drift 40s linear infinite;
}

.shelf-viewport:hover .shelf-track {
    animation-play-state: paused;
}

@keyframes drift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Card */

.card {
    width: 310px;
    flex-shrink: 0;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 14px;

    overflow: hidden;

    box-shadow: var(--shadow);

    transition: .25s ease;
}

.card:hover {
    background: var(--surface-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Window Bar */

.card-bar {
    display: flex;
    align-items: center;

    gap: 6px;

    padding: 12px 16px;

    background: #fafafa;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.r {
    background: #ef4444;
}

.dot.y {
    background: #f59e0b;
}

.dot.g {
    background: #22c55e;
}

.card-path {
    margin-left: 10px;

    color: var(--text-light);

    font-size: .8rem;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content */

.card-body {
    padding: 22px;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-body p {
    margin: 0 0 20px;
    color: var(--text-light);
    line-height: 1.6;
    font-size: .95rem;
}

/* Footer */

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Language */

.lang-tag {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 6px 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: #fff;

    font-size: .85rem;
    font-weight: 500;
}

.lang-swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Status */

.status {
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-light);
}

.status::before {
    content: "● ";
    color: var(--success);
}

/* ==========================
   Projects
   ========================== */
.projects {
    width: 100%;
}

.project-content {
    max-width: 1200px;
    margin: auto;
    padding: 0 60px;

    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.row-odd {
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;

    background: var(--navy);
    color: #EAF2F7;

    min-height: 500px;

    border-bottom: 1px solid rgba(255, 255, 255, .08);

    position: relative;
}

.row-odd::after {
    content: "";
    position: absolute;
    left: 320px;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: rgba(255, 255, 255, .08);
}

.panel-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.project-gallery-1,
.project-gallery-2 {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;

    border-radius: 14px;
    overflow: hidden;

    background: #162132;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .25);
}

.gallery-image-1,
.gallery-image-2 {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity 1.8s ease-in-out;
}


.gallery-image-1.active,
.gallery-image-2.active {
    opacity: 1;
    animation: kenburns 3.5s linear;
}

.project-description {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mark-num {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(64px, 8vw, 100px);
    font-weight: 700;
    line-height: 1;
    color: #7dd3fc;
}

.mark-label {
    margin-top: 18px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #8FA9BA;
}

.panel-copy {
    max-width: 700px;
    padding: 60px;
}

.eyebrow {
    color: #7dd3fc;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 20px;
    font-weight: 600;
}

.panel-copy h2 {
    max-width: 18ch;
    margin-bottom: 24px;
}

.panel-copy p {
    color: #c8d3dc;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ==========================
   Footer
   ========================== */

footer {
    margin-top: 60px;
    text-align: center;
    color: #999;
    font-size: .9rem;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* ==========================
   Home text
   ========================== */
#webgl.show {
    opacity: 1;
}

#webgl {
    position: fixed;
    z-index: 2;
    opacity: 0;
    transition: 1s opacity ease-in;
}

.background {
    width: 100vw;
    height: 100vh;
    transition: 1s all ease-in-out;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    background-image: radial-gradient(circle at 3% 5%, rgb(37, 50, 57) 0%, rgb(11, 12, 13) 50%);
    ;
    object-fit: cover;
    opacity: 1;
    background: radial-gradient(circle at 3% 5%, #253239 0%, #0b0c0d 50%);
}

.page .show {
    z-index: 100;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.home {
    overflow: hidden;
    height: 100%;
    padding-bottom: 0;
    pointer-events: none;
}

.home .titles {
    top: 50%;
    left: 50%;
    z-index: 100;
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    margin: 0;
    padding: 0;
}

.home .page-title {
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
    font-size: 5vw;
    letter-spacing: 2.6vw;
    color: #3d5257;
    color: hsla(192, 18%, 49%, 1);
    /* text-shadow: 0px 6px 10px #3d5257; */
    filter: drop-shadow(0px 6px 10px #3d5257);
    text-indent: 2.6vw;
    opacity: 1;
    font-weight: 100;
    position: relative;
    top: 0;
    left: auto;
    transform: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.page-title {
    user-select: none;
    white-space: nowrap;
    position: absolute;
    top: 12vh;
    font-size: 28vh;
    font-family: futura-pt;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    pointer-events: none;
    margin: 0 auto;
    width: 100vw;
    text-align: center;
    color: rgba(255, 255, 255, .1);
    letter-spacing: 2vh;
    font-weight: 100;
}

.home .page-subtitle {
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
    font-size: 1vw;
    letter-spacing: 1.55vw;
    text-indent: 1.8vw;
    position: relative;
    top: 0;
    left: auto;
    transform: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.page-subtitle {
    user-select: none;
    position: relative;
    white-space: nowrap;
    pointer-events: none;
    top: 29vh;
    margin: 0 auto;
    color: rgba(255, 255, 255, .5);
    text-transform: uppercase;
    letter-spacing: 0.8vw;
    font-size: 1.2vw;
    text-align: center;
}

.footer-menu.show {
    opacity: 1;
}

.footer-menu {
    z-index: 100;
    padding: 0;
    margin: 0;
    position: fixed;
    bottom: 15vh;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: .4s all ease-in-out;
}

.footer-menu .menu-items {
    padding: 0;
    margin: 0;
}

.footer-menu .menu-item {
    display: inline-block;
    cursor: pointer;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.2vw;
    text-indent: .2vw;
    font-size: 1vw;
    opacity: .5;
    padding-right: 4vw;
    padding-left: 4vw;
    user-select: none;
}

.loader {
    opacity: 0;
    width: 0%;
    height: 1px;
    background-color: #3d5257;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s all, .5s opacity;
    z-index: 0;
}

.top-bar.bar {
    height: 10vh;
}

.top-bar {
    width: 100vw;
    height: 50vh;
    background: black;
    position: fixed;
    z-index: 1000;
    top: 0;
    transition: .3s ease-in-out;
}

.bottom-bar.bar {
    height: 10vh;
}

.bottom-bar {
    width: 100vw;
    height: 50vh;
    background: black;
    position: fixed;
    z-index: 1000;
    bottom: 0;
    text-align: center;
    transition: .3s ease-in-out;
}

/* ==========================
   Mobile
   ========================== */

@media (max-width:768px) {

    .wrap {
        width: 92%;
    }

    .name {
        font-size: 2.3rem;
    }

    .contact-row {
        flex-direction: column;
        gap: 8px;
    }

    .ticket-head {
        flex-direction: column;
        align-items: flex-start;
    }

}

@media (max-width:900px) {

    .project-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-header,
    .project-content {
        padding: 0 24px;
    }

}

/* ==========================
   Frames
   ========================== */
@keyframes kenburns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}