@font-face {
    font-family: 'NeoTraid';
    src: url('assets/NeotriadFree-1jzAg.otf') format('truetype');
}

/* RESET */
body {
    margin: 0;
    overflow-x: hidden;
}

/* ================================
   FIXED HERO
================================ */
.home {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.home ::selection {
    background: white;
    color: black;
}

/* NAV */
.header {
    position: absolute;
    top: 2vh;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#logo, #portfolio {
    font-family: 'NeoTraid';
    padding: 1em;
    font-size: 2rem;
    font-weight: bold;
}

/* SOCIAL LINKS */
.links {
    position: fixed;
    bottom: 10vh;
    right: 0;
    height: 17vh;
    width: 3.5vw;
    background-color: black;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    z-index: 10;
}

.links a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

.links img {
    width: 2.3rem;
    transition: transform 0.2s ease;
}

.links img:hover {
    transform: scale(1.08);
}

/* NAME ANIMATION */
.name-a {
    position: absolute;
    top: 20vh;
    width: 100%;
    overflow: hidden;
    contain: layout style;
    isolation: isolate;
}

.roller {
    display: flex;
    width: max-content;
    animation: roll-left 12s linear infinite;
    will-change: transform;
}

.full-n {
    display: flex;
    white-space: nowrap;
    gap: 10em;
    background-color: black;
}

.name {
    font-family: 'NeoTraid';
    font-size: 55vh;
    color: white;
    line-height: 0.8;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

.name-gap {
    width: 0.6em;      
    flex-shrink: 0;
}

@keyframes roll-left {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-33.333%, 0, 0); }
}

/* PROFILE IMAGE */
.pf img {
    position: absolute;
    bottom: 0;
    left: 30vw;
    height: 90vh;
}

/* SCROLL INDICATOR */
.scroll-down {
    position: absolute;
    left: 5vw;
    bottom: 4vh;
    font-family: 'Bahnschrift';
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroll-down img {
    height: 1.8rem;
    animation: scroll 1.8s linear infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); }
    50% { transform: translateY(1vh); }
    100% { transform: translateY(0); }
}

/* SPACER FOR SCROLL */
.home-trans {
    height: 100vh;
}

/* NAVBAR */
#navbar {
    position: fixed;
    bottom: 5vh;
    left: 53%;
    color: white;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    background: rgba(30, 27, 27, 0.521);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-family: 'Bahnschrift';
    z-index: 5;
}

#navbar a {
    position: relative;
    text-decoration: none;
    color: inherit;
}

#navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

#navbar a:hover::after {
    transform: scaleX(1);
}

/* ABOUT SECTION */
.about {
    height: 85vh;
    color: rgb(255, 255, 255);
    background: black;
    z-index: 2;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}
 
#about {
    position: relative;
    top: 35vh;
    left: 13vw;
    font-family: 'NeoTraid';
    font-size: 5rem;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about ::selection {
    background: #ffffff;
    color: black;
}
 
#about.in-view {
    opacity: 1;
    transform: translateY(0);
}
 
#about-text {
    position: relative;
    font-family: 'Bahnschrift';
    font-size: 2rem;
    width: 55vw;
    top: 10vh;
    left: 40vw;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.2s;
}
 
#about-text.in-view {
    opacity: 1;
    transform: translateY(0);
}

#suss {
    position: relative;
    font-family: 'Bahnschrift';
    font-size: 1.3rem;
    top: 18vh;
    left: 40vw;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}
 
#suss.in-view {
    opacity: 1;
    transform: translateY(0);
}
 
#name {
    position: relative;
    font-family: 'Bahnschrift';
    font-size: 1.2rem;
    top: 20vh;
    left: 40vw;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

#name img {
    height: 1.2rem;
    margin-right: 0.5em;
}
 
#name.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* PROJECTS SECTION */
.projects {
    min-height: 100vh;
    z-index: 2;
    background-color: white;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.projects-header {
    padding: 3rem 2rem;
}

#arrow-down {
    position: absolute;  
    top: 6vh;
    left: 5vw;
    display: flex;
    align-items: center;
    gap: 4rem;
    font-size: 6rem;
    font-family: 'NeoTraid';
}

#arrow-down svg {
    width: 80px;   
    height: 80px;  
    transform: scaleX(-1);
}

.project-meta-box {
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 7rem;
    padding: 2rem;
    border-top: 2px solid black;
    display: flex;
    gap: 20rem;
}

.meta-col {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    height: 20vh;
    min-width: 200px;
    gap: 0.5rem;
}

.meta-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #6a6969;
    margin-bottom: 0.5rem;
}

.meta-item {
    font-size: 1.2rem;
    font-family: 'Bahnschrift';
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    padding: 0.4rem 0.8rem;
    border: 1px solid #000;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
}

/* FILTER BUTTONS */
.project-filters {
    display: flex;
    gap: 1rem;
    padding: 2rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-family: 'Bahnschrift';
    background: rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: black;
    color: white;
}

/* PROJECT GRID */
.project-list {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.project-card {
    width: 100%;
    font-size: 1.8rem;
    font-family: 'Bahnschrift';
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid black;
    box-sizing: border-box;
}

.project-card:hover {
    background-color: black;
    color: white;
}

.hide {
    display: none;
}

.actions {
    display: flex;
    align-items: center;  
}

.box {
    padding: 0.4rem 1rem;
    margin-right: 3vw;
    border: 1px solid black;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    background-color: white;
}

.actions a {
    text-decoration: none;
    color: inherit;
}

#website {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#git-d {
    margin-right: 8vw;
}

.project-card:hover .box {
    color: black;
    background-color: white;
    border-color: black;
}

#git-d img {
    height: 1.2rem;
    display: block;
}

/* PROJECT PREVIEW */
#project-preview {
    position: fixed;
    top: 45%;
    right: 30%;
    transform: translateY(-50%);
    width: 300px;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

#project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DIGITAL PRESENCE */
.d-presence {
    min-height: 155vh;
    background: white;
    z-index: 2;
    position: relative;
}

.d-track {
    position: relative;
    padding: 2rem;
    margin-top: 2.5rem;
    background-color: white;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.d-roller {
    display: flex;
    z-index: 3;
    background-color: white;
}

.d-presence-text {
    font-family: 'Zen Dots';
    font-size: 12vh;
    line-height: 0.8;
    white-space: nowrap;
    backface-visibility: hidden;
    transform: translateZ(0);
}



.rang {
    position: relative;
    bottom: 65vh;
    height: 60vh;
    width: 36vw;
    margin-top: 15vh;
    margin-left: 3vw;
}

#rang-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    margin: auto;
}


.ydca {
    position: absolute;
    height: 130vh;
    width: 55vw;
    top: 25vh;
    right: 0.1rem;
    margin-right: 3vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.1rem;
    padding: 0.1rem;
}

.ydca .big {
    grid-column: 1 / 3;
    height: 60vh;
    margin: 0.1rem;
}

.ydca .small {
    height: 30vh;
    margin: 0.1rem;
}

.ydca .wide {
    grid-column: 1 / 3;
    height: 30vh;
    margin: 0.1rem;
}

#youtube, #articles, #certificates, #awards {
    position: relative;
    overflow: hidden;
    background: white;
}

.yt-fill {
    font-size: 6rem;
    color: white;
    background: #ff3e3e;
}

.at-fill {
    font-size: 4rem;
    color: white;
    background: #5b8f67;
}

.ct-fill {
    font-size: 4rem;
    color: black;
    background: #fdff5d;
}

.ad-fill {
    font-size: 6rem;
    color: white;
    background: #0285ff;
}

.yt-fill,
.at-fill,
.ct-fill,
.ad-fill {
    position: absolute;
    font-family: Montserrat;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 0%;
    padding: 0 0 1rem 1rem;
    line-height: 1;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* CONTACT */
.contact {
    min-height: 100vh;
    z-index: 2;
    background-color: black;
    position: relative;
}

#c-name {
    position: absolute;
    top: 15vh;
    left: 3.5vw;
    font-family: 'NeoTraid';
    font-size: 7rem;
    color: white;
    padding: 0 1rem 0 1rem;
    border: 1.5px solid white;
    border-radius: 4px;
}

.c-list {
    position: absolute;
    top: 40vh;
    left: 4vw;
    width: 52vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

#c-lin { grid-column: 1; grid-row: 1; }
#c-git { grid-column: 2; grid-row: 1; }
#c-mail { grid-column: 1; grid-row: 2; }

#c-lin, #c-git, #c-mail {
    font-family: 'Bahnschrift';
    font-size: 2rem;
    color: white;
    padding: 0.4rem 1rem;
    border: 1px solid white;
    border-radius: 4px;
    width: 22vw;
    cursor: pointer;
    text-decoration: none;
}

#c-lin:hover, #c-git:hover, #c-mail:hover {
    background-color: white;
    color: black;
}

.c-list a {
    position: relative;
    overflow: hidden;
    display: block;
    z-index: 1;
}

.c-list a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: white;
    color: black;
    transition: height 0.35s ease;
    z-index: -1;
}

.c-list a:hover::before {
    height: 100%;
}

.c-list a:hover {
    color: black;
}

.arrow-s {
    margin-left: 20px;
}

#extra1 {
    position: absolute;
    top: 65vh;
    left: 4vw;
    font-family: 'Bahnschrift';
    font-size: 1rem;
    color: white;
}

#extra2 {
    position: absolute;
    top: 68vh;
    left: 4vw;
    font-family: 'Bahnschrift';
    font-size: 2rem;
    color: white;
}

#extra3 {
    position: absolute;
    top: 78vh;
    left: 4vw;
    font-family: 'Bahnschrift';
    font-size: 3rem;
    color: rgb(70, 69, 69);
}

#local-time {
    color: white;
}

#extra4 {
    position: absolute;
    top: 90vh;
    left: 4vw;
    font-family: 'Bahnschrift';
    font-size: 1rem;
    color: white;
}

#katana {
    position: absolute;
    top: 0;
    left: 60vw;
    height: 100vh;
    width: 40vw;
    background: radial-gradient(
        circle at 70% 40%,
        #1a1a1a 0%,
        #000000 60%
    );
}

#katana::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

#katana model-viewer {
    width: 100%;
    height: 100%;
}


/* ================================================================
   MOBILE RESPONSIVE STYLES (≤ 768px)
   Desktop layout is fully preserved above. All mobile overrides
   are isolated here so they don't affect desktop at all.
================================================================ */
@media (max-width: 800px) {

    /* ── HERO ── */
    .home {
        position: fixed;
        height: 100vh;
        overflow: hidden;
    }

    .header {
        top: 1.5vh;
        align-items: center;
    }

    #logo, #portfolio {
        font-size: 1.2rem;
        padding: 0.6em 0.8em;
    }

    /* Shrink name roll text so it fits on mobile */
    .name {
        font-size: 28vw;
    }

    .name-a {
        top: 22vh;
    }

    /* Profile pic — center it, smaller */
    .pf img {
        left: 50%;
        transform: translateX(-50%);
        height: 68vh;
        opacity: 0.9;
    }

    /* Social links — move to bottom horizontal strip */
    .links {
        bottom: 2vh;
        right: 2vw;
        height: auto;
        width: auto;
        flex-direction: column;
        padding: 0.4em 0.6em;
        gap: 0.2em;
        border-radius: 20px;
    }

    .links a {
        padding: 0.4em 0.5em;
    }

    .links img {
        width: 1.4rem;
    }

    .scroll-down {
        left: 45%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        bottom: 15vh;
        white-space: nowrap;
        color: white;
    }

    /* ── NAVBAR ── */
    #navbar {
        left: 50%;
        bottom: 4vh;
        gap: 1.2rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    #home-link img {
        height: 1rem;
    }

    /* ── ABOUT ── */
    .about {
        height: auto;
        min-height: 100vh;
        padding-bottom: 6vh;
        border-radius: 16px;
        overflow: visible;
    }

    #about {
        position: relative;
        top: auto;
        left: auto;
        margin: 6vh 6vw 0 6vw;
        font-size: 3.2rem;
    }

    #about-text {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin: 4vh 6vw 0 6vw;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    #suss {
        position: relative;
        top: auto;
        left: auto;
        margin: 3vh 6vw 0 6vw;
        font-size: 1rem;
    }

    #name {
        position: relative;
        top: auto;
        left: auto;
        margin: 2vh 6vw 4vh 6vw;
        font-size: 1rem;
    }

    /* ── PROJECTS ── */
    .projects {
        border-radius: 16px 16px 0 0;
    }

    .projects-header {
        padding: 5rem 1.2rem 1rem 1.2rem;
    }

    #arrow-down {
        top: 3vh;
        left: 5vw;
        font-size: 2.5rem;
        gap: 1.5rem;
    }

    #arrow-down svg {
        width: 36px;
        height: 36px;
    }

    .project-meta-box {
        margin: 4rem 1.2rem 0 1.2rem;
        padding: 1.2rem 0;
        flex-direction: column;
        gap: 2rem;
    }

    .meta-col {
        height: auto;
        min-width: unset;
        flex-wrap: nowrap;
        gap: 0.3rem;
    }

    .meta-title {
        font-size: 0.9rem;
    }

    .meta-item {
        font-size: 1rem;
    }

    .tags span {
        font-size: 0.85rem;
    }

    .project-filters {
        padding: 1rem 1.2rem;
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .project-list {
        padding: 0 1.2rem 2rem 1.2rem;
    }

    .project-card {
        font-size: 1.2rem;
        padding: 1.2rem 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .actions {
        width: 100%;
        gap: 0.5rem;
    }

    .box {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
        margin-right: 0;
    }

    #git-d {
        margin-right: 0;
    }

    /* Hide hover preview on mobile (no hover on touch) */
    #project-preview {
        display: none;
    }

    /* ── DIGITAL PRESENCE ── */
    .d-presence {
        min-height: auto;
        padding-bottom: 4vh;
    }

    /* Disable complex GSAP pin scroll on mobile – just show text normally */
    .d-roller {
        overflow: hidden;
    }

    .d-track {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
        /* GSAP will be disabled for this on mobile via JS */
    }

    .d-presence-text {
        font-size: 7vw;
        white-space: nowrap;
    }

    .rang {
        display: none; /* decorative black block – hides on mobile */
    }

    .ydca {
        position: relative;
        top: auto;
        right: auto;
        width: auto;
        height: auto;
        margin: 2vh 4vw;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        padding: 0;
    }

    .ydca .big {
        grid-column: 1 / 3;
        height: 35vw;
    }

    .ydca .small {
        height: 30vw;
    }

    .ydca .wide {
        grid-column: 1 / 3;
        height: 28vw;
    }

    .yt-fill { font-size: 2rem; }
    .at-fill { font-size: 1.4rem; }
    .ct-fill { font-size: 1.4rem; }
    .ad-fill { font-size: 2rem; }

    .yt-fill, .at-fill, .ct-fill, .ad-fill { 
        width: 100% !important;
    }

    /* ── CONTACT ── */
    .contact {
        min-height: auto;
        padding-bottom: 6vh;
    }

    #c-name {
        position: relative;
        top: auto;
        left: auto;
        margin: 5vh 4vw 0 4vw;
        font-size: 2.6rem;
        display: inline-block;
    }

    .c-list {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin: 4vh 4vw 0 4vw;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #c-lin { grid-column: 1; grid-row: 1; }
    #c-git { grid-column: 1; grid-row: 2; }
    #c-mail { grid-column: 1; grid-row: 3; }

    #c-lin, #c-git, #c-mail {
        font-size: 1.2rem;
        width: auto;
        padding: 0.6rem 1rem;
        box-sizing: border-box;
    }

    #extra1 {
        position: relative;
        top: auto;
        left: auto;
        margin: 4vh 4vw 0.5vh 4vw;
        font-size: 0.9rem;
    }

    #extra2 {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 4vw 0 4vw;
        font-size: 1.4rem;
    }

    #extra3 {
        position: relative;
        top: auto;
        left: auto;
        margin: 3vh 4vw 0 4vw;
        font-size: 1.8rem;
    }

    #extra4 {
        position: relative;
        top: auto;
        left: auto;
        margin: 3vh 4vw 3vh 4vw;
        font-size: 0.85rem;
    }

    /* Katana 3D model — full width below contact info on mobile */
    #katana {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 50vh;
        background: radial-gradient(circle at 50% 40%, #1a1a1a 0%, #000000 60%);
    }
}


/* ── Extra small phones (< 400px) ── */
@media (max-width: 400px) {
    .name {
        font-size: 22vw;
    }

    #c-name {
        font-size: 2rem;
    }

    .ydca .big { height: 40vw; }
    .ydca .small { height: 35vw; }
    .ydca .wide { height: 33vw; }
}