/* =========================================
   RESET
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #08090c;
    color: #f5f5f7;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

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

::selection {
    background: #8b7cff;
    color: white;
}


/* =========================================
   BACKGROUND
========================================= */

.grid-background {
    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );

    z-index: -2;
}

.cursor-light {
    width: 550px;
    height: 550px;

    border-radius: 50%;

    position: fixed;

    background:
        radial-gradient(
            circle,
            rgba(110, 87, 255, 0.14),
            transparent 65%
        );

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

    pointer-events: none;

    z-index: -1;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    width: min(1250px, 92%);

    margin: auto;

    height: 90px;

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

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-family: "JetBrains Mono", monospace;
    font-size: 19px;
    font-weight: 600;
}

.logo span {
    color: #8b7cff;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: #90909a;
    font-size: 13px;

    transition: 0.25s;
}

.nav-links a:hover {
    color: white;
}

.status {
    font-family: "JetBrains Mono", monospace;

    font-size: 11px;

    color: #9d9da7;

    display: flex;
    align-items: center;
    gap: 8px;

    text-transform: uppercase;
}

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

    background: #62ff9b;

    border-radius: 50%;

    box-shadow:
        0 0 12px rgba(98, 255, 155, 0.7);

    animation: pulse 2s infinite;
}

@keyframes pulse {

    0% {
        box-shadow:
            0 0 0 rgba(98, 255, 155, 0);
    }

    50% {
        box-shadow:
            0 0 18px rgba(98, 255, 155, 0.8);
    }

    100% {
        box-shadow:
            0 0 0 rgba(98, 255, 155, 0);
    }
}


/* =========================================
   GENERAL
========================================= */

.container {
    width: min(1180px, 90%);
    margin: auto;
}

.section {
    padding: 125px 0;
}

.section-number {
    font-family: "JetBrains Mono", monospace;

    font-size: 11px;

    color: #696973;

    margin-bottom: 45px;

    letter-spacing: 2px;
}


/* =========================================
   HERO
========================================= */

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

    display: grid;

    grid-template-columns:
        1.2fr 0.8fr;

    align-items: center;

    gap: 70px;

    padding: 70px 0 100px;
}

.mini-tag {
    display: inline-block;

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

    background:
        rgba(255, 255, 255, 0.02);

    padding: 8px 13px;

    border-radius: 100px;

    font-family:
        "JetBrains Mono",
        monospace;

    color: #aaaab5;

    font-size: 11px;

    margin-bottom: 30px;
}

.hero h1 {
    font-size:
        clamp(55px, 6.5vw, 92px);

    line-height: 0.94;

    letter-spacing: -5px;

    max-width: 850px;
}

.gradient-text {
    display: block;

    background:
        linear-gradient(
            90deg,
            #8877ff,
            #51d6ff,
            #8877ff
        );

    background-size: 200%;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    animation:
        gradientMove 7s linear infinite;
}

@keyframes gradientMove {

    0% {
        background-position: 0%;
    }

    100% {
        background-position: 200%;
    }
}

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

    line-height: 1.8;

    color: #9999a4;

    font-size: 16px;

    margin-top: 35px;
}

.hero-buttons {
    margin-top: 40px;

    display: flex;

    gap: 15px;
}

.primary-btn,
.secondary-btn {
    padding: 14px 20px;

    border-radius: 8px;

    font-size: 13px;

    transition:
        transform 0.25s,
        background 0.25s,
        border 0.25s;
}

.primary-btn {
    background: #f4f4f5;
    color: #08090c;
}

.primary-btn:hover {
    transform: translateY(-3px);
}

.secondary-btn {
    border:
        1px solid rgba(255, 255, 255, 0.12);
}

.secondary-btn:hover {
    background:
        rgba(255, 255, 255, 0.06);

    transform: translateY(-3px);
}


/* =========================================
   TERMINAL
========================================= */

.terminal {
    background:
        rgba(15, 16, 20, 0.82);

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

    border-radius: 14px;

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

    backdrop-filter: blur(18px);

    overflow: hidden;

    transform:
        rotate(1.5deg);

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

.terminal:hover {
    transform:
        rotate(0deg)
        translateY(-5px);

    border-color:
        rgba(139, 124, 255, 0.4);
}

.terminal-header {
    height: 45px;

    display: flex;
    align-items: center;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    padding: 0 15px;

    position: relative;
}

.terminal-header p {
    position: absolute;

    left: 50%;

    transform:
        translateX(-50%);

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 10px;

    color: #676772;
}

.terminal-buttons {
    display: flex;
    gap: 7px;
}

.terminal-buttons span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #34343a;
}

.terminal-buttons span:nth-child(1) {
    background: #ff5f57;
}

.terminal-buttons span:nth-child(2) {
    background: #febc2e;
}

.terminal-buttons span:nth-child(3) {
    background: #28c840;
}

.terminal-body {
    min-height: 360px;

    padding: 25px;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 12px;

    line-height: 1.8;
}

.terminal-output {
    color: #92929d;

    padding-left: 15px;
}

.terminal-green {
    color: #70f0a5;
}

.terminal-purple {
    color: #9d8cff;
}

.terminal-cursor {
    display: inline-block;

    width: 7px;
    height: 14px;

    background: #fff;

    vertical-align: middle;

    animation:
        blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}


/* =========================================
   ABOUT
========================================= */

.about-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;
}

.about-grid h2,
.projects-header h2,
.stack-title {
    font-size:
        clamp(38px, 5vw, 65px);

    line-height: 1.05;

    letter-spacing: -3px;
}

.about-grid h2 span,
.projects-header h2 span,
.stack-title span {
    display: block;
    color: #696974;
}

.about-text {
    color: #92929c;

    line-height: 1.9;

    font-size: 15px;

    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* =========================================
   STATS
========================================= */

.stats {
    display: grid;

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

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

    border-radius: 14px;

    overflow: hidden;
}

.stat-card {
    padding: 40px;

    display: flex;
    align-items: center;

    gap: 20px;

    transition:
        background 0.25s;
}

.stat-card:hover {
    background:
        rgba(255, 255, 255, 0.025);
}

.stat-card:not(:last-child) {
    border-right:
        1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-size: 46px;

    font-weight: 700;

    letter-spacing: -2px;
}

.stat-text {
    color: #777782;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================
   PROJECTS
========================================= */

.projects-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 50px;
}

.projects-header p {
    width: 320px;

    color: #858590;

    line-height: 1.7;

    font-size: 14px;
}

.projects-grid {
    display: grid;

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

    gap: 20px;
}

.project-card {
    min-height: 370px;

    padding: 30px;

    background:
        rgba(255, 255, 255, 0.025);

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

    border-radius: 16px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    transition:
        transform 0.3s,
        border 0.3s,
        background 0.3s;
}

.project-card:hover {
    transform:
        translateY(-8px);

    border-color:
        rgba(137, 120, 255, 0.5);

    background:
        rgba(137, 120, 255, 0.04);
}

.project-card.featured {
    grid-row: span 2;

    min-height: 760px;

    background:
        radial-gradient(
            circle at top right,
            rgba(110, 91, 255, 0.17),
            rgba(255, 255, 255, 0.02) 50%
        );
}

.project-top {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.project-number {
    color: #555560;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 12px;
}

.project-status {
    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 9px;

    border-radius: 50px;

    padding: 6px 9px;

    letter-spacing: 1px;
}

.project-status.live {
    color: #65e698;

    border:
        1px solid rgba(101, 230, 152, 0.2);

    background:
        rgba(101, 230, 152, 0.05);
}

.project-status.learning {
    color: #77caff;

    border:
        1px solid rgba(119, 202, 255, 0.2);

    background:
        rgba(119, 202, 255, 0.05);
}

.project-status.next {
    color: #a99cff;

    border:
        1px solid rgba(169, 156, 255, 0.2);

    background:
        rgba(169, 156, 255, 0.05);
}

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;
}

.project-tags span {
    padding: 6px 10px;

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

    border-radius: 30px;

    color: #858590;

    font-size: 9px;

    font-family:
        "JetBrains Mono",
        monospace;
}

.project-content h3 {
    font-size: 30px;

    letter-spacing: -1px;

    margin-bottom: 15px;
}

.project-content p {
    color: #888893;

    line-height: 1.75;

    font-size: 14px;

    margin-bottom: 25px;
}

.project-content a {
    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 11px;

    color: #a89cff;
}

.project-content a:hover {
    color: white;
}

.project-meta {
    display: flex;

    gap: 35px;

    margin-bottom: 30px;
}

.project-meta span {
    color: #555560;

    font-size: 9px;

    font-family:
        "JetBrains Mono",
        monospace;
}

.project-meta strong {
    display: block;

    color: #9a9aa5;

    font-weight: 400;

    margin-top: 5px;
}


/* =========================================
   STACK
========================================= */

.stack-title {
    margin-bottom: 50px;
}

.stack-grid {
    display: grid;

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

    gap: 15px;
}

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

    padding: 25px;

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

    border-radius: 12px;

    transition:
        transform 0.25s,
        background 0.25s,
        border 0.25s;
}

.stack-card:hover {
    background:
        rgba(255, 255, 255, 0.04);

    transform:
        translateY(-4px);

    border-color:
        rgba(139, 124, 255, 0.3);
}

.stack-icon {
    font-family:
        "JetBrains Mono",
        monospace;

    color: #9385ff;

    display: block;

    margin-bottom: 35px;

    font-size: 14px;
}

.stack-card h3 {
    margin-bottom: 7px;

    font-size: 16px;
}

.stack-card p {
    color: #71717b;

    font-size: 11px;
}


/* =========================================
   GITHUB
========================================= */

.github-section {
    padding: 40px 0 130px;
}

.github-card {
    min-height: 370px;

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

    border-radius: 20px;

    padding: 55px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    align-items: flex-start;

    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(130, 109, 255, 0.14),
            transparent 45%
        );
}

.github-small {
    font-family:
        "JetBrains Mono",
        monospace;

    color: #7569d5;

    font-size: 11px;

    margin-bottom: 25px;
}

.github-card h2 {
    font-size:
        clamp(40px, 5vw, 65px);

    letter-spacing: -3px;

    line-height: 1;
}

.github-card h2 span {
    color: #6d6d77;
}

.github-description {
    margin-top: 25px;

    max-width: 620px;

    color: #878791;

    line-height: 1.8;

    font-size: 14px;
}

.github-button {
    margin-top: 45px;

    padding: 15px 18px;

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

    border-radius: 9px;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 11px;

    transition:
        background 0.25s,
        transform 0.25s;
}

.github-button span {
    margin-left: 15px;
}

.github-button:hover {
    background:
        rgba(255, 255, 255, 0.05);

    transform: translateY(-3px);
}


/* =========================================
   CONTACT
========================================= */

.contact-section {
    min-height: 650px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.contact-small {
    color: #767681;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 10px;

    letter-spacing: 3px;

    margin-bottom: 30px;
}

.contact-section h2 {
    font-size:
        clamp(48px, 7vw, 95px);

    max-width: 950px;

    letter-spacing: -5px;

    line-height: 0.95;
}

.contact-section h2 span {
    display: block;

    color: #777780;
}

.contact-description {
    margin-top: 30px;

    max-width: 530px;

    color: #858590;

    font-size: 14px;

    line-height: 1.8;
}

.contact-buttons {
    display: flex;

    gap: 15px;

    margin-top: 40px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    width: min(1180px, 90%);

    margin: auto;

    padding: 35px 0;

    display: flex;

    justify-content: space-between;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    color: #60606a;

    font-size: 10px;

    font-family:
        "JetBrains Mono",
        monospace;
}

footer strong {
    color: #96969f;
    font-weight: 400;
}


/* =========================================
   SCROLL ANIMATION
========================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

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

        padding-top: 90px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .terminal {
        transform: none;
    }

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

        gap: 30px;
    }

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

    .stat-card:not(:last-child) {
        border-right: none;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);
    }

    .projects-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 30px;
    }

    .projects-header p {
        width: 100%;
    }

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

    .project-card.featured {
        grid-row: auto;

        min-height: 480px;
    }

    .stack-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    footer {
        flex-direction: column;

        gap: 10px;
    }
}


@media (max-width: 550px) {

    .navbar {
        height: 75px;
    }

    .status {
        font-size: 9px;
    }

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

        padding-top: 60px;
    }

    .hero h1 {
        font-size: 50px;

        letter-spacing: -3px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .terminal-body {
        font-size: 10px;

        padding: 20px;
    }

    .section {
        padding: 90px 0;
    }

    .about-grid h2,
    .projects-header h2,
    .stack-title {
        letter-spacing: -2px;
    }

    .project-card {
        padding: 22px;
    }

    .project-card.featured {
        min-height: 450px;
    }

    .project-meta {
        flex-direction: column;

        gap: 12px;
    }

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

    .github-card {
        padding: 30px 22px;
    }

    .github-button {
        width: 100%;

        overflow-wrap: anywhere;
    }

    .contact-section h2 {
        letter-spacing: -3px;
    }

    .contact-buttons {
        flex-direction: column;

        width: 100%;
    }

}