:root {
    --bg: #080808;
    --surface: #101010;
    --surface-2: #151515;

    --text: #f4f1e8;
    --muted: #8d8d8d;

    --accent: #c7ff3d;
    --accent-soft: rgba(199, 255, 61, 0.15);

    --border: rgba(255, 255, 255, 0.11);

    --display: "Manrope", sans-serif;
    --mono: "DM Mono", monospace;

    --max-width: 1440px;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family: var(--display);

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* NOISE */

.noise {
    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: 100;

    opacity: 0.035;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}


/* AMBIENT ORBS */

.orb {
    position: fixed;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(120px);

    opacity: 0.08;

    pointer-events: none;

    z-index: -1;

    animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-one {
    background: var(--accent);
    top: -200px;
    right: -150px;
}

.orb-two {
    background: #536dff;
    bottom: -250px;
    left: -200px;

    animation-delay: -5s;
}

@keyframes floatOrb {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(80px, 50px);
    }
}


/* NAV */

.navbar {
    width: min(var(--max-width), calc(100% - 80px));

    margin: 0 auto;

    height: 100px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    position: relative;

    z-index: 20;
}

.logo {
    font-family: var(--mono);

    font-size: 18px;
    font-weight: 500;

    letter-spacing: -0.05em;
}

.logo span {
    color: var(--accent);
}

.navbar nav {
    display: flex;
    gap: 38px;
}

.navbar nav a {
    font-family: var(--mono);

    font-size: 11px;

    color: var(--muted);

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.navbar nav a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.nav-resume {
    border: 1px solid var(--border);

    padding: 12px 17px;

    font-family: var(--mono);
    font-size: 10px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.nav-resume:hover {
    background: var(--accent);
    color: #000;
}


/* HERO */

.hero {
    min-height: calc(100vh - 100px);

    width: min(var(--max-width), calc(100% - 80px));

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding-top: 50px;
}

.hero-top {
    display: flex;
    justify-content: space-between;

    font-family: var(--mono);

    font-size: 10px;

    color: var(--muted);
}

.availability {
    display: flex;
    align-items: center;

    gap: 10px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 0 5px rgba(199, 255, 61, 0.08);

    animation: pulse 2s infinite;
}

@keyframes pulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(199, 255, 61, 0.4);
    }

    70% {
        box-shadow:
            0 0 0 8px rgba(199, 255, 61, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(199, 255, 61, 0);
    }

}


/* HERO CONTENT */

.hero-content {
    display: grid;

    grid-template-columns: 0.7fr 1.7fr;

    gap: 70px;

    align-items: center;

    margin-top: 40px;
}


/* PROFILE */

.hero-image-wrap {
    position: relative;

    width: min(420px, 100%);

    aspect-ratio: 0.85;

    display: flex;

    align-items: center;
    justify-content: center;
}

.profile-image-container {
    width: 80%;

    height: 90%;

    position: relative;

    overflow: hidden;

    border-radius: 220px 220px 30px 30px;

    transform: rotate(-3deg);

    transition:
        transform 0.7s cubic-bezier(.2,.8,.2,1);
}

.hero-image-wrap:hover
.profile-image-container {
    transform: rotate(0deg) scale(1.025);
}

.profile-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(100%);

    transition:
        filter 0.7s ease,
        transform 0.8s ease;
}

.hero-image-wrap:hover
.profile-image {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.image-ring {
    position: absolute;

    width: 85%;
    height: 92%;

    border: 1px solid var(--accent);

    border-radius: 50%;

    transform: rotate(20deg);

    opacity: 0.5;

    animation: spinRing 16s linear infinite;
}

@keyframes spinRing {

    to {
        transform: rotate(380deg);
    }

}


/* FLOATING LABELS */

.floating-label {
    position: absolute;

    background: var(--surface);

    border: 1px solid var(--border);

    padding: 9px 13px;

    font-family: var(--mono);

    font-size: 9px;

    letter-spacing: 0.08em;

    z-index: 3;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.3);

    animation: floating 4s ease-in-out infinite;
}

.label-one {
    top: 18%;
    right: 0;
}

.label-two {
    bottom: 30%;
    left: -5%;

    animation-delay: -1s;
}

.label-three {
    bottom: 10%;
    right: 5%;

    animation-delay: -2s;
}

@keyframes floating {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

}


/* HERO TYPOGRAPHY */

.eyebrow {
    font-family: var(--mono);

    font-size: 11px;

    color: var(--accent);

    margin-bottom: 18px;

    letter-spacing: 0.08em;
}

.hero-name {
    font-size: clamp(4rem, 9.2vw, 9.8rem);

    line-height: 0.82;

    letter-spacing: -0.085em;

    font-weight: 800;

    display: flex;

    flex-direction: column;
}

.hero-name span:last-child {
    color: transparent;

    -webkit-text-stroke: 1px rgba(244, 241, 232, 0.7);

    margin-left: 6vw;
}

.hero-bottom {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 40px;

    margin-top: 45px;
}

.hero-description {
    max-width: 390px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.6;
}

.hero-description strong {
    color: var(--text);
    font-weight: 500;
}

.hero-actions {
    display: flex;

    gap: 12px;
}

.primary-button,
.secondary-button {
    padding: 15px 19px;

    display: flex;

    align-items: center;

    gap: 22px;

    font-family: var(--mono);

    font-size: 10px;

    border: 1px solid var(--border);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.primary-button {
    background: var(--accent);

    color: #000;

    border-color: var(--accent);
}

.secondary-button:hover {
    background: var(--surface-2);
}

.primary-button span,
.secondary-button span {
    font-size: 15px;
}


/* MARQUEE */

.hero-marquee {
    width: 100vw;

    margin-left: calc((min(var(--max-width), calc(100vw - 80px)) - 100vw) / 2);

    overflow: hidden;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    padding: 18px 0;

    margin-top: 70px;
}

.marquee-track {
    width: max-content;

    display: flex;

    align-items: center;

    gap: 35px;

    font-family: var(--mono);

    font-size: 10px;

    color: var(--muted);

    animation: marquee 25s linear infinite;
}

.marquee-track i {
    color: var(--accent);
    font-style: normal;
}

@keyframes marquee {

    to {
        transform: translateX(-50%);
    }

}


/* GENERAL SECTIONS */

.section {
    width: min(var(--max-width), calc(100% - 80px));

    margin: 0 auto;

    padding-top: 170px;
}

.section-label {
    display: flex;

    gap: 15px;

    align-items: center;

    font-family: var(--mono);

    font-size: 10px;

    color: var(--muted);

    letter-spacing: 0.08em;
}

.section-label span {
    color: var(--accent);
}


/* INTRO */

.intro-content {
    max-width: 1100px;

    margin-left: auto;

    margin-top: 70px;
}

.intro h2 {
    font-size: clamp(3rem, 6.5vw, 7rem);

    line-height: 0.95;

    letter-spacing: -0.07em;

    font-weight: 700;
}

.intro h2 em {
    color: var(--muted);

    font-style: normal;
}

.intro-grid {
    margin-top: 80px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    max-width: 800px;

    margin-left: auto;
}

.intro-grid p {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


/* WORK */

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 90px;
}

.section-heading > p {
    max-width: 300px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}

.project {
    border-top: 1px solid var(--border);

    padding: 35px 0 110px;

    position: relative;
}

.project-number {
    font-family: var(--mono);

    font-size: 10px;

    color: var(--muted);

    margin-bottom: 30px;
}

.project-main {
    display: grid;

    grid-template-columns: 1.25fr 0.75fr;

    gap: 90px;

    align-items: center;
}

.project-main.reverse {
    grid-template-columns: 0.75fr 1.25fr;
}

.project-main.reverse
.project-visual {
    order: 2;
}

.project-main.reverse
.project-info {
    order: 1;
}


/* PROJECT VISUALS */

.project-visual {
    min-height: 470px;

    background: var(--surface);

    border: 1px solid var(--border);

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;
}

.visual-glow {
    position: absolute;

    width: 350px;
    height: 350px;

    background: var(--accent);

    opacity: 0.12;

    filter: blur(100px);

    border-radius: 50%;
}


/* DOCUMENT */

.document-card {
    width: 240px;
    height: 310px;

    background: #e9e5d9;

    color: #111;

    padding: 25px;

    transform: rotate(-7deg);

    box-shadow:
        30px 30px 70px rgba(0,0,0,0.4);
}

.document-top {
    display: flex;
    justify-content: space-between;

    font-family: var(--mono);

    font-size: 8px;
}

.document-lines {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 50px;
}

.document-lines span {
    display: block;

    width: 100%;
    height: 4px;

    background: #bbb;
}

.document-lines span:nth-child(2) {
    width: 80%;
}

.document-lines span:nth-child(3) {
    width: 90%;
}

.document-highlight {
    margin-top: 55px;

    background: #111;

    color: var(--accent);

    padding: 13px;

    font-family: var(--mono);

    font-size: 10px;
}

.ai-response {
    width: 260px;

    background: #111;

    border: 1px solid rgba(255,255,255,0.15);

    padding: 25px;

    transform: translate(30px, 60px);

    box-shadow:
        0 30px 70px rgba(0,0,0,0.5);
}

.response-header {
    font-family: var(--mono);

    font-size: 8px;

    color: var(--accent);

    display: flex;

    align-items: center;

    gap: 8px;
}

.pulse {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--accent);
}

.ai-response p {
    font-size: 12px;

    color: var(--muted);

    line-height: 1.6;

    margin: 25px 0;
}

.response-line {
    width: 100%;
    height: 5px;

    background: #292929;

    margin-top: 8px;
}

.response-line.short {
    width: 65%;
}


/* AGENT VISUAL */

.agents-visual {
    background:
        radial-gradient(
            circle at center,
            rgba(199,255,61,0.08),
            transparent 45%
        );
}

.agent-node {
    width: 75px;
    height: 75px;

    border: 1px solid var(--border);

    background: #0d0d0d;

    display: flex;

    align-items: center;
    justify-content: center;

    font-family: var(--mono);

    font-size: 9px;

    position: absolute;

    z-index: 2;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}

.agent-node:hover {
    border-color: var(--accent);

    transform: scale(1.1);
}

.agent-node.center {
    width: 110px;
    height: 110px;

    border-radius: 50%;

    border-color: var(--accent);

    color: var(--accent);

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    font-size: 15px;
}

.node-a {
    left: 18%;
    top: 25%;
}

.node-b {
    right: 15%;
    top: 22%;
}

.node-c {
    right: 20%;
    bottom: 20%;
}

.connection {
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );

    position: absolute;

    transform-origin: left center;

    opacity: 0.4;
}

.connection-a {
    width: 220px;

    left: 25%;
    top: 40%;

    transform: rotate(24deg);
}

.connection-b {
    width: 200px;

    right: 22%;
    top: 40%;

    transform: rotate(145deg);
}

.connection-c {
    width: 180px;

    right: 27%;
    bottom: 38%;

    transform: rotate(-145deg);
}


/* API VISUAL */

.api-window {
    width: 70%;

    background: #0b0b0b;

    border: 1px solid var(--border);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.5);
}

.api-window-top {
    height: 40px;

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 0 15px;
}

.api-window-top span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #444;
}

.api-code {
    padding: 35px;

    font-family: var(--mono);

    font-size: 12px;

    line-height: 2.5;
}

.api-code b {
    color: var(--accent);
}

.code-muted {
    color: var(--muted);
}

.code-green {
    color: var(--accent);
}


/* PROJECT INFO */

.project-meta {
    display: flex;

    justify-content: space-between;

    font-family: var(--mono);

    font-size: 9px;

    color: var(--muted);

    margin-bottom: 30px;
}

.project-info h3 {
    font-size: clamp(2.7rem, 4vw, 5rem);

    letter-spacing: -0.07em;

    line-height: 0.9;

    margin-bottom: 30px;
}

.project-info > p {
    color: var(--muted);

    line-height: 1.7;

    font-size: 14px;

    max-width: 450px;
}

.tech-list {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 30px;
}

.tech-list span {
    border: 1px solid var(--border);

    padding: 8px 11px;

    font-family: var(--mono);

    font-size: 8px;

    color: var(--muted);
}

.project-link {
    display: inline-flex;

    gap: 20px;

    align-items: center;

    margin-top: 35px;

    font-family: var(--mono);

    font-size: 10px;

    border-bottom: 1px solid var(--accent);

    padding-bottom: 7px;
}


/* STACK */

.stack-intro {
    margin-top: 70px;

    margin-left: 25%;
}

.stack-intro h2 {
    font-size: clamp(3rem, 6vw, 7rem);

    line-height: 0.9;

    letter-spacing: -0.07em;

    max-width: 900px;
}

.stack-intro h2 span {
    color: var(--muted);
}

.stack-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    margin-top: 100px;

    border-top: 1px solid var(--border);

    border-left: 1px solid var(--border);
}

.stack-card {
    min-height: 350px;

    padding: 30px;

    border-right: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    transition:
        background 0.4s ease,
        transform 0.4s ease;
}

.stack-card:hover {
    background: var(--surface);

    transform: translateY(-8px);
}

.stack-index {
    font-family: var(--mono);

    font-size: 9px;

    color: var(--accent);
}

.stack-card h3 {
    margin-top: 80px;

    font-size: 28px;

    letter-spacing: -0.05em;
}

.stack-card ul {
    list-style: none;

    margin-top: 35px;
}

.stack-card li {
    color: var(--muted);

    font-family: var(--mono);

    font-size: 10px;

    margin-top: 13px;
}


/* CONTACT */

.contact {
    min-height: 80vh;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    position: relative;

    overflow: hidden;
}

.contact-orbit {
    position: absolute;

    width: 500px;
    height: 500px;

    border: 1px solid var(--accent);

    border-radius: 50%;

    right: -150px;
    bottom: -150px;

    opacity: 0.2;

    animation: spinRing 20s linear infinite;
}

.contact-content {
    margin-left: 20%;

    margin-bottom: 100px;
}

.contact-small {
    font-family: var(--mono);

    font-size: 10px;

    color: var(--accent);

    margin-bottom: 25px;
}

.contact h2 {
    font-size: clamp(4rem, 9vw, 10rem);

    line-height: 0.82;

    letter-spacing: -0.08em;

    max-width: 1100px;
}

.contact h2 span {
    color: transparent;

    -webkit-text-stroke: 1px rgba(244,241,232,0.7);
}

.contact-email {
    display: inline-block;

    margin-top: 60px;

    font-family: var(--mono);

    font-size: 13px;

    border-bottom: 1px solid var(--accent);

    padding-bottom: 10px;

    color: var(--accent);
}


/* FOOTER */

footer {
    width: min(var(--max-width), calc(100% - 80px));

    margin: 0 auto;

    padding: 30px 0;

    border-top: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    font-family: var(--mono);

    font-size: 9px;

    color: var(--muted);
}

.footer-links {
    display: flex;

    gap: 25px;
}

.footer-links a:hover {
    color: var(--text);
}


/* REVEAL */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.9s cubic-bezier(.2,.8,.2,1),
        transform 0.9s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* CURSOR */

.cursor,
.cursor-follower {
    position: fixed;

    pointer-events: none;

    z-index: 999;

    border-radius: 50%;

    transform: translate(-50%, -50%);
}

.cursor {
    width: 5px;
    height: 5px;

    background: var(--accent);
}

.cursor-follower {
    width: 32px;
    height: 32px;

    border: 1px solid rgba(199,255,61,0.5);

    transition:
        width 0.3s ease,
        height 0.3s ease,
        background 0.3s ease;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .navbar,
    .hero,
    .section,
    footer {
        width: min(100% - 40px, var(--max-width));
    }

    .navbar nav {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .hero-image-wrap {
        width: 280px;
    }

    .hero-name {
        font-size: clamp(4rem, 13vw, 8rem);
    }

    .project-main,
    .project-main.reverse {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .project-main.reverse
    .project-visual,
    .project-main.reverse
    .project-info {
        order: unset;
    }

    .stack-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stack-intro {
        margin-left: 0;
    }

}


@media (max-width: 650px) {

    .navbar {
        height: 80px;
    }

    .nav-resume {
        display: none;
    }

    .hero {
        padding-top: 35px;
    }

    .hero-top {
        font-size: 8px;
    }

    .hero-content {
        margin-top: 60px;
    }

    .hero-image-wrap {
        width: 230px;
    }

    .hero-name {
        font-size: clamp(3.5rem, 15vw, 6rem);
    }

    .hero-name span:last-child {
        margin-left: 2vw;
    }

    .hero-bottom {
        flex-direction: column;

        align-items: start;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .intro-grid {
        grid-template-columns: 1fr;

        gap: 25px;

        margin-left: 0;
    }

    .section {
        padding-top: 120px;
    }

    .section-heading {
        flex-direction: column;

        align-items: start;

        gap: 30px;
    }

    .project-visual {
        min-height: 350px;
    }

    .document-card {
        width: 170px;
        height: 230px;
    }

    .ai-response {
        width: 190px;

        transform: translate(20px, 40px);
    }

    .stack-grid {
        grid-template-columns: 1fr;
    }

    .stack-card {
        min-height: 300px;
    }

    .contact-content {
        margin-left: 0;

        margin-bottom: 70px;
    }

    .contact h2 {
        font-size: clamp(4rem, 17vw, 7rem);
    }

    footer {
        flex-direction: column;

        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
    }

}