/* =========================================================
   NIRAJ KUMAR PORTFOLIO — CORE STYLES
========================================================= */

:root {
    --bg: #070908;
    --bg-soft: #0b0f0c;
    --panel: #0e1410;
    --panel-2: #121a14;
    --panel-3: #162019;

    --text: #f3f7f2;
    --muted: #9ca99f;
    --faint: #6e7a72;

    --green: #a7ef72;
    --green-strong: #8be354;
    --green-soft: rgba(167, 239, 114, 0.09);
    --green-soft-2: rgba(167, 239, 114, 0.15);
    --green-line: rgba(167, 239, 114, 0.26);

    --purple: #b89cff;
    --blue: #7bc5ff;

    --line: rgba(255, 255, 255, 0.085);
    --line-strong: rgba(255, 255, 255, 0.15);

    --shadow-lg: 0 35px 90px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.20);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --max: 1180px;

    --sans: "Manrope", sans-serif;
    --mono: "DM Mono", monospace;
}

[data-theme="light"] {
    --bg: #f4f7f3;
    --bg-soft: rgba(255, 255, 255, 0.86);
    --panel: #ffffff;
    --panel-2: #f0f5ee;
    --panel-3: #e8efe6;

    --text: #182019;
    --muted: #58655b;
    --faint: #7b877d;

    --green: #327f1c;
    --green-strong: #256813;
    --green-soft: rgba(50, 127, 28, 0.08);
    --green-soft-2: rgba(50, 127, 28, 0.13);
    --green-line: rgba(50, 127, 28, 0.23);

    --purple: #6f56ce;
    --blue: #2b7fc6;

    --line: rgba(20, 32, 23, 0.10);
    --line-strong: rgba(20, 32, 23, 0.16);

    --shadow-lg: 0 35px 90px rgba(19, 40, 23, 0.13);
    --shadow-md: 0 18px 45px rgba(19, 40, 23, 0.10);
}

/* RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 20% 10%,
            var(--green-soft),
            transparent 28rem
        ),
        radial-gradient(
            circle at 88% 62%,
            rgba(184, 156, 255, 0.06),
            transparent 28rem
        ),
        var(--bg);

    color: var(--text);
    font-family: var(--sans);
    line-height: 1.68;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;

    transition:
        background-color .28s ease,
        color .28s ease;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

::selection {
    background: var(--green);
    color: #081008;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
}

/* SITE */

.site-shell {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
}

.skip-link {
    position: fixed;
    left: 20px;
    top: -100px;
    z-index: 2000;

    padding: 10px 14px;

    border-radius: 10px;

    background: var(--green);
    color: #091008;

    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;

    transition: top .2s ease;
}

.skip-link:focus {
    top: 16px;
}

/* AMBIENT */

.ambient {
    position: fixed;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(100px);

    opacity: .12;

    z-index: -2;
}

.ambient-a {
    left: -230px;
    top: 22%;
    background: var(--green);
}

.ambient-b {
    right: -220px;
    top: 58%;
    background: var(--purple);
}

.grid-noise {
    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: -3;

    opacity: .08;

    background-image:
        linear-gradient(
            rgba(255,255,255,.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.03) 1px,
            transparent 1px
        );

    background-size: 44px 44px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 82%
        );
}

[data-theme="light"] .grid-noise {
    opacity: .05;
}

/* NAVBAR */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: 76px;

    padding:
        13px
        max(
            24px,
            calc((100vw - 1240px) / 2)
        );

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    background:
        color-mix(
            in srgb,
            var(--bg-soft) 82%,
            transparent
        );

    border-bottom: 1px solid var(--line);

    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);

    transition:
        box-shadow .25s ease,
        background-color .25s ease;
}

.navbar.scrolled {
    box-shadow:
        0 14px 35px rgba(0,0,0,.10);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    min-width: max-content;
}

.brand-mark {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid var(--green-line);
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--green-soft-2),
            transparent
        );

    color: var(--green);

    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.02);
}

.brand-copy {
    display: grid;
    gap: 0;
}

.brand-copy strong {
    font-size: 14px;
    line-height: 1.2;
}

.brand-copy small {
    color: var(--faint);

    font-family: var(--mono);
    font-size: 8px;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    position: relative;

    padding: 9px 11px;

    border-radius: 9px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 700;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--green-soft);
}

.nav-links a.active {
    color: var(--text);
}

.nav-links a.active::after {
    content: "";

    position: absolute;

    left: 11px;
    right: 11px;
    bottom: 3px;

    height: 2px;

    border-radius: 2px;

    background: var(--green);
}

.nav-links .nav-cta {
    margin-left: 4px;

    padding: 10px 13px;

    color: var(--green) !important;

    border:
        1px solid
        var(--green-line);

    background: var(--green-soft);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle,
.menu-btn {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid
        var(--line);

    border-radius: 12px;

    color: var(--text);
    background: var(--panel);

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.theme-toggle:hover,
.menu-btn:hover {
    transform: translateY(-2px);

    border-color: var(--green-line);
    background: var(--green-soft);
}

.theme-toggle {
    font-size: 18px;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: none;
}

.menu-btn {
    display: none;
}

/* HAMBURGER */

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    width: 17px;
    height: 2px;

    border-radius: 2px;

    background: currentColor;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: "";

    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -5px;
}

.menu-icon::after {
    top: 5px;
}

.navbar:has(.nav-links.open) .menu-icon {
    background: transparent;
}

.navbar:has(.nav-links.open) .menu-icon::before {
    transform:
        translateY(5px)
        rotate(45deg);
}

.navbar:has(.nav-links.open) .menu-icon::after {
    transform:
        translateY(-5px)
        rotate(-45deg);
}

/* SCROLL PROGRESS */

.scroll-progress {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1100;

    height: 2px;

    pointer-events: none;
}

.scroll-progress span {
    display: block;

    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--green),
            var(--blue)
        );

    box-shadow:
        0 0 14px var(--green);
}

/* GLOBAL */

.section-pad {
    width:
        min(
            var(--max),
            calc(100% - 52px)
        );

    margin-inline: auto;

    padding-block: 112px;
}

.section-surface {
    position: relative;
}

.section-surface::before {
    content: "";

    position: absolute;

    left: 50%;

    width: 100vw;

    top: 0;
    bottom: 0;

    transform: translateX(-50%);

    z-index: -1;

    background:
        linear-gradient(
            180deg,
            transparent,
            var(--green-soft) 45%,
            transparent
        );

    pointer-events: none;
}

.section-kicker,
.eyebrow {
    color: var(--green);

    font-family: var(--mono);

    font-size: 9px;
    font-weight: 500;

    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-kicker {
    margin-bottom: 18px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 28px;
    margin-bottom: 42px;
}

.section-heading h2,
.contact-copy h2,
.agriprep-copy h2 {
    max-width: 760px;

    margin: 0;

    font-size:
        clamp(
            36px,
            5vw,
            66px
        );

    line-height: 1.02;

    letter-spacing: -.055em;
}

.section-heading h2 span,
.contact-copy h2 span,
.agriprep-copy h2 span {
    color: var(--green);
}

.section-heading > p {
    max-width: 320px;

    margin: 0;

    color: var(--muted);

    font-size: 13px;

    text-align: right;
}

/* BUTTON */

.btn {
    min-height: 46px;

    padding: 11px 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border:
        1px solid
        transparent;

    border-radius: 12px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: -.01em;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #071006;

    background: var(--green);

    border-color:
        var(--green);

    box-shadow:
        0 12px 28px
        rgba(130,225,77,.14);
}

.btn.primary:hover {
    background: var(--green-strong);

    box-shadow:
        0 16px 32px
        rgba(130,225,77,.20);
}

.btn.ghost {
    color: var(--text);

    background: rgba(255,255,255,.015);

    border-color:
        var(--line-strong);
}

.btn.ghost:hover {
    color: var(--green);

    border-color:
        var(--green-line);

    background: var(--green-soft);
}

.btn.full {
    width: 100%;
}

/* HERO */

.hero {
    min-height:
        calc(100vh - 76px);

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(420px, .95fr);

    align-items: center;

    gap: 68px;

    padding-top: 88px;
}

.status-pill {
    width: fit-content;

    margin-bottom: 22px;

    padding: 7px 10px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    border:
        1px solid
        var(--green-line);

    border-radius: 999px;

    color: var(--green);

    background: var(--green-soft);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: .08em;
}

.status-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 5px
        var(--green-soft);

    animation:
        pulse 1.8s ease infinite;
}

.hero h1 {
    max-width: 780px;

    margin: 0 0 22px;

    font-size:
        clamp(
            48px,
            6vw,
            84px
        );

    line-height: .98;

    letter-spacing: -.065em;
}

.hero h1 span {
    color: var(--green);
}

.hero-text {
    max-width: 690px;

    margin: 0 0 30px;

    color: var(--muted);

    font-size: 15px;
}

.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 11px;
}

.hero-meta {
    margin-top: 19px;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}

.resume-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--text);

    font-family: var(--mono);

    font-size: 10px;
    font-weight: 500;
}

.resume-link:hover {
    color: var(--green);
}

.link-icon {
    color: var(--green);
}

.meta-divider {
    width: 1px;
    height: 16px;

    background:
        var(--line-strong);
}

.meta-note {
    color: var(--faint);

    font-family: var(--mono);

    font-size: 9px;
}

.hero-stats {
    max-width: 480px;

    margin-top: 36px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(90px, 1fr)
        );

    border-top:
        1px solid
        var(--line);
}

.hero-stats > div {
    padding-top: 15px;

    display: grid;

    gap: 2px;
}

.hero-stats strong {
    color: var(--green);

    font-family: var(--mono);

    font-size: 10px;
}

.hero-stats span {
    color: var(--muted);

    font-size: 11px;
}

/* TERMINAL */

.hero-visual {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 520px;
}

.terminal-glow {
    position: absolute;

    width: 60%;
    height: 50%;

    border-radius: 50%;

    background:
        var(--green-soft);

    filter: blur(70px);
}

.terminal-window {
    position: relative;

    z-index: 2;

    width:
        min(
            100%,
            585px
        );

    overflow: hidden;

    border:
        1px solid
        var(--line-strong);

    border-radius: 20px;

    background: #080c09;

    box-shadow:
        var(--shadow-lg);

    transform:
        perspective(1400px)
        rotateY(-4deg)
        rotateX(1deg);

    transition:
        transform .35s ease;
}

.hero-visual:hover .terminal-window {
    transform:
        perspective(1400px)
        rotateY(0)
        rotateX(0)
        translateY(-4px);
}

.terminal-bar {
    min-height: 44px;

    padding: 0 14px;

    display: flex;

    align-items: center;

    gap: 10px;

    border-bottom:
        1px solid
        rgba(255,255,255,.06);

    color: #849087;

    background: #0c100d;

    font-family: var(--mono);

    font-size: 10px;
}

.traffic {
    display: flex;
    gap: 6px;
}

.traffic i {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #48524b;
}

.terminal-title {
    flex: 1;
}

.terminal-command {
    color: var(--green);

    font-size: 9px;
}

.terminal-body {
    min-height: 350px;

    padding: 26px;

    color: #d6ded8;

    font-family: var(--mono);

    font-size: 12px;

    line-height: 2;
}

.muted {
    color: #768176;
}

.code-output {
    margin: 8px 0 14px;

    color: var(--green);
}

.code-block {
    padding: 12px 0 18px;
    color: #dce5de;
}

.indent {
    padding-left: 18px;
}

.purple {
    color: var(--purple);
}

.blue {
    color: var(--blue);
}

.green {
    color: var(--green);
}

.terminal-status {
    display: flex;

    align-items: center;
    justify-content: space-between;

    color: var(--green);

    border-top:
        1px dashed
        rgba(255,255,255,.10);

    padding-top: 13px;
}

.terminal-cursor {
    animation:
        blink 1s step-end infinite;
}

.floating-chip {
    position: absolute;

    z-index: 4;

    padding: 8px 11px;

    border:
        1px solid
        var(--green-line);

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--panel) 88%,
            transparent
        );

    box-shadow:
        var(--shadow-md);

    color: var(--text);

    font-family: var(--mono);

    font-size: 9px;

    backdrop-filter: blur(14px);
}

.chip-a {
    top: 9%;
    right: 0;

    animation:
        float 4.5s ease-in-out infinite;
}

.chip-b {
    bottom: 10%;
    left: -1%;

    animation:
        float 5.2s ease-in-out infinite reverse;
}

/* ABOUT */

.about-grid {
    display: grid;

    grid-template-columns:
        1.05fr
        .95fr;

    gap: 70px;

    align-items: start;
}

.about-story {
    color: var(--muted);

    font-size: 14px;
}

.about-story .lead {
    max-width: 680px;

    margin: 0 0 18px;

    color: var(--text);

    font-size: 19px;

    line-height: 1.55;
}

.about-story p {
    margin: 0 0 18px;
}

.about-story strong {
    color: var(--text);
}

.quote-line {
    margin-top: 30px;

    padding-left: 17px;

    display: grid;

    grid-template-columns: auto 1fr;

    gap: 10px;

    border-left:
        2px solid
        var(--green);

    color: var(--text);
}

.quote-line > span {
    color: var(--green);

    font-size: 30px;

    line-height: .8;
}

.quote-line p {
    margin: 0;

    font-weight: 700;
}

.build-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 12px;
}

.mini-card {
    min-height: 112px;

    padding: 17px;

    display: flex;

    align-items: flex-start;

    gap: 12px;

    border:
        1px solid
        var(--line);

    border-radius: 16px;

    background:
        linear-gradient(
            140deg,
            var(--panel),
            var(--panel-2)
        );

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.mini-card:hover {
    transform:
        translateY(-5px);

    border-color:
        var(--green-line);

    background:
        linear-gradient(
            140deg,
            var(--panel-2),
            var(--panel-3)
        );
}

.mini-icon {
    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    flex: 0 0 auto;

    border-radius: 10px;

    color: var(--green);

    background:
        var(--green-soft);

    border:
        1px solid
        var(--green-line);
}

.mini-card div {
    display: grid;
    gap: 5px;
}

.mini-card strong {
    font-size: 12px;
}

.mini-card small {
    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;
}

/* SKILLS */

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 13px;
}

.skill-card {
    min-height: 295px;

    padding: 22px;

    display: flex;

    flex-direction: column;

    border:
        1px solid
        var(--line);

    border-radius: 18px;

    background:
        linear-gradient(
            150deg,
            var(--panel),
            var(--panel-2)
        );

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.skill-card:hover {
    transform:
        translateY(-6px);

    border-color:
        var(--green-line);

    box-shadow:
        var(--shadow-md);
}

.skill-top {
    display: flex;

    align-items: center;
    justify-content: space-between;
}

.skill-number {
    color: var(--faint);

    font-family: var(--mono);

    font-size: 9px;
}

.skill-icon {
    color: var(--green);

    font-size: 17px;
}

.skill-card h3 {
    margin: 46px 0 10px;

    font-size: 18px;

    line-height: 1.2;
}

.skill-card p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.65;
}

.tag-list,
.stack-inline {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

.tag-list {
    margin-top: auto;

    padding-top: 22px;
}

.tag-list span,
.stack-inline span {
    padding: 5px 8px;

    border:
        1px solid
        var(--line);

    border-radius: 7px;

    color: var(--muted);

    background:
        rgba(255,255,255,.02);

    font-family: var(--mono);

    font-size: 9px;
}

/* PROJECTS */

.projects-section {
    overflow: clip;
}

.projects-list {
    border-top:
        1px solid
        var(--line);
}

.project-row {
    position: relative;

    display: grid;

    grid-template-columns:
        46px
        minmax(0,1fr)
        38px;

    align-items: center;

    gap: 18px;

    padding: 25px 8px;

    border-bottom:
        1px solid
        var(--line);

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease,
        padding .25s ease;
}

.project-row:hover {
    background:
        linear-gradient(
            90deg,
            var(--green-soft),
            transparent
        );

    padding-inline: 14px;
}

.project-row.featured {
    border-left:
        3px solid
        var(--green);

    padding-left: 15px;
}

.project-row:focus-visible {
    background:
        var(--green-soft);
}

.project-index {
    color: var(--faint);

    font-family: var(--mono);

    font-size: 10px;
}

.project-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 8px;

    color: var(--muted);

    font-family: var(--mono);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .05em;
}

.project-meta b {
    color: var(--green);

    font-weight: 500;
}

.project-main h3 {
    margin: 0 0 7px;

    font-size: 24px;

    letter-spacing: -.035em;
}

.project-main > p {
    margin: 0 0 12px;

    color: var(--muted);

    font-size: 12px;
}

.project-arrow {
    color: var(--faint);

    font-size: 22px;

    transition:
        color .2s ease,
        transform .2s ease;
}

.project-row:hover .project-arrow {
    color: var(--green);

    transform:
        translate(
            4px,
            -4px
        );
}

.projects-hint {
    margin: 16px 0 0;

    color: var(--faint);

    font-family: var(--mono);

    font-size: 9px;
}

/* AGRIPREP */

.agriprep-card {
    position: relative;

    min-height: 500px;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        1.1fr
        .9fr;

    align-items: center;

    gap: 30px;

    padding: 56px;

    border:
        1px solid
        var(--green-line);

    border-radius:
        var(--radius-lg);

    background:
        radial-gradient(
            circle at 85% 40%,
            var(--green-soft-2),
            transparent 25rem
        ),
        linear-gradient(
            145deg,
            var(--panel),
            var(--panel-2)
        );

    box-shadow:
        var(--shadow-lg);
}

.product-label {
    width: fit-content;

    margin:
        -3px 0 17px;

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: .12em;
}

.product-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 5px
        var(--green-soft);
}

.agriprep-copy h2 {
    font-size:
        clamp(
            65px,
            10vw,
            118px
        );

    line-height: .82;

    letter-spacing: -.08em;
}

.product-sub {
    max-width: 610px;

    margin:
        24px 0 23px;

    color: var(--muted);

    font-size: 13px;
}

.feature-list {
    max-width: 610px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            max-content
        );

    gap: 8px 17px;

    margin-bottom: 28px;
}

.feature-list span {
    position: relative;

    padding-left: 14px;

    color: var(--text);

    font-size: 10px;
}

.feature-list span::before {
    content: "•";

    position: absolute;

    left: 0;

    color: var(--green);
}

.product-visual {
    position: relative;

    min-height: 410px;

    display: grid;

    place-items: center;
}

.product-orbit {
    position: absolute;

    border:
        1px solid
        var(--green-line);

    border-radius: 50%;
}

.orbit-a {
    width: 370px;
    height: 250px;

    transform:
        rotate(-14deg);
}

.orbit-b {
    width: 250px;
    height: 340px;

    transform:
        rotate(18deg);
}

.phone {
    position: relative;

    z-index: 2;

    width: 220px;

    padding: 8px;

    border:
        1px solid
        rgba(255,255,255,.15);

    border-radius: 34px;

    background: #050705;

    box-shadow:
        0 25px 55px
        rgba(0,0,0,.38);
}

.phone-notch {
    position: absolute;

    top: 13px;
    left: 50%;

    width: 76px;
    height: 18px;

    transform:
        translateX(-50%);

    border-radius:
        0 0 14px 14px;

    background: #030403;

    z-index: 4;
}

.phone-screen {
    min-height: 430px;

    padding:
        24px 14px;

    overflow: hidden;

    border-radius: 28px;

    background:
        radial-gradient(
            circle at top right,
            rgba(167,239,114,.24),
            transparent 12rem
        ),
        #0b110d;

    color: #edf5ed;
}

.app-topline {
    display: flex;

    justify-content: space-between;

    margin-top: 9px;

    color: var(--green);

    font-family: var(--mono);

    font-size: 9px;
}

.app-welcome {
    margin-top: 54px;

    font-size: 17px;

    line-height: 1.25;

    letter-spacing: -.04em;
}

.app-welcome b {
    color: var(--green);
}

.app-stat-row {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 8px;

    margin-top: 18px;
}

.app-stat-row > div,
.app-card {
    padding: 12px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 13px;

    background:
        rgba(255,255,255,.035);
}

.app-stat-row strong,
.app-stat-row small,
.app-card small,
.app-card strong,
.app-card span {
    display: block;
}

.app-stat-row strong {
    color: var(--green);

    font-size: 12px;
}

.app-stat-row small,
.app-card small {
    color: #8d9c90;

    font-size: 8px;
}

.app-card {
    margin-top: 10px;
}

.app-card strong {
    margin:
        6px 0 13px;

    font-size: 11px;
}

.app-card span {
    color: var(--green);

    font-family: var(--mono);

    font-size: 8px;
}

/* CONTACT */

.contact-card {
    display: grid;

    grid-template-columns:
        .9fr
        1.1fr;

    gap: 58px;

    padding: 50px;

    border:
        1px solid
        var(--line);

    border-radius: 24px;

    background:
        linear-gradient(
            140deg,
            var(--panel),
            var(--panel-2)
        );

    box-shadow:
        var(--shadow-lg);
}

.contact-copy h2 {
    margin-top: 8px;
}

.contact-copy > p {
    margin:
        16px 0 23px;

    color: var(--muted);

    font-size: 14px;
}

.contact-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.contact-note {
    max-width: 450px;

    margin-top: 22px;

    display: flex;

    align-items: flex-start;

    gap: 8px;

    color: var(--faint);

    font-family: var(--mono);

    font-size: 8px;

    line-height: 1.6;
}

.secure-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 auto;

    margin-top: 4px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 4px
        var(--green-soft);
}

.contact-form {
    display: flex;
    flex-direction: column;

    gap: 13px;
}

.contact-form label {
    display: flex;

    flex-direction: column;

    gap: 7px;

    color: var(--muted);

    font-family: var(--mono);

    font-size: 9px;

    letter-spacing: .04em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;

    padding: 12px 13px;

    border:
        1px solid
        var(--line);

    border-radius: 11px;

    outline: none;

    color: var(--text);

    background:
        rgba(255,255,255,.018);

    resize: vertical;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--faint);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--green-line);

    background:
        var(--green-soft);

    box-shadow:
        0 0 0 4px
        rgba(167,239,114,.04);
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #d86a6a;
}

.field-error {
    min-height: 12px;

    color: #e88a8a;

    font-size: 8px;

    letter-spacing: 0;
}

.field-bottom {
    display: flex;

    align-items: start;

    justify-content: space-between;

    gap: 12px;
}

#messageCount {
    color: var(--faint);

    font-size: 8px;

    white-space: nowrap;
}

/* FOOTER */

footer {
    width:
        min(
            var(--max),
            calc(100% - 52px)
        );

    margin-inline: auto;

    padding-block:
        28px
        36px;

    border-top:
        1px solid
        var(--line);

    color: var(--muted);
}

.footer-main {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-main > div:first-child > p {
    margin:
        10px 0 0;

    color: var(--faint);

    font-family: var(--mono);

    font-size: 8px;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 13px;
}

.footer-links a {
    font-family: var(--mono);

    font-size: 9px;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    margin-top: 24px;

    padding-top: 17px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid
        var(--line);

    color: var(--faint);

    font-family: var(--mono);

    font-size: 8px;
}

/* PROJECT MODAL */

.modal-backdrop {
    position: fixed;

    inset: 0;

    z-index: 1500;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    background:
        rgba(1,3,2,.76);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-modal {
    position: relative;

    width:
        min(
            100%,
            720px
        );

    max-height:
        min(
            88vh,
            760px
        );

    overflow: auto;

    padding: 37px;

    border:
        1px solid
        var(--line-strong);

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 85% 10%,
            var(--green-soft),
            transparent 18rem
        ),
        var(--bg-soft);

    box-shadow:
        var(--shadow-lg);

    transform:
        translateY(18px)
        scale(.98);

    transition:
        transform .28s ease;
}

.modal-backdrop.show .project-modal {
    transform:
        translateY(0)
        scale(1);
}

.modal-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 37px;
    height: 37px;

    display: grid;

    place-items: center;

    border:
        1px solid
        var(--line);

    border-radius: 10px;

    color: var(--muted);

    background:
        var(--panel);

    font-size: 22px;
}

.modal-close:hover {
    color: var(--green);

    border-color:
        var(--green-line);
}

.modal-eyebrow {
    display: block;

    margin-bottom: 13px;
}

.project-modal h2 {
    margin: 0;

    padding-right: 45px;

    font-size:
        clamp(
            34px,
            5vw,
            52px
        );

    line-height: 1;

    letter-spacing: -.055em;
}

.modal-desc {
    margin:
        16px 0 0;

    max-width: 600px;

    color: var(--muted);

    font-size: 13px;
}

.modal-cols {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 11px;

    margin:
        24px 0 20px;
}

.modal-cols > div {
    padding: 17px;

    border:
        1px solid
        var(--line);

    border-radius: 14px;

    background:
        rgba(255,255,255,.018);
}

.modal-cols small,
.stack-title {
    color: var(--green);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: .12em;
}

.modal-cols p {
    margin-top: 9px;

    color: var(--muted);

    font-size: 11px;
}

.modal-stack {
    margin-top: 8px;
}

.modal-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 24px;
}

/* BACK TO TOP */

.back-to-top {
    position: fixed;

    right: 21px;
    bottom: 21px;

    z-index: 1100;

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border:
        1px solid
        var(--green-line);

    border-radius: 12px;

    color: var(--green);

    background:
        color-mix(
            in srgb,
            var(--panel) 88%,
            transparent
        );

    box-shadow:
        var(--shadow-md);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(8px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);
}

.back-to-top:hover {
    background:
        var(--green-soft);
}

/* TOAST */

.toast {
    position: fixed;

    left: 50%;
    bottom: 22px;

    z-index: 1800;

    max-width:
        min(
            92vw,
            420px
        );

    padding: 11px 14px;

    transform:
        translate(
            -50%,
            15px
        );

    opacity: 0;
    visibility: hidden;

    border:
        1px solid
        var(--line-strong);

    border-radius: 12px;

    color: var(--text);

    background:
        color-mix(
            in srgb,
            var(--panel) 92%,
            transparent
        );

    box-shadow:
        var(--shadow-md);

    font-family: var(--mono);

    font-size: 9px;

    text-align: center;

    backdrop-filter: blur(15px);

    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;

    transform:
        translate(
            -50%,
            0
        );
}

.copied {
    color: #071006 !important;

    border-color:
        var(--green) !important;

    background:
        var(--green) !important;
}

/* REVEAL */

.reveal {
    opacity: 0;

    transform:
        translateY(18px);

    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.22,.8,.22,1);
}

.reveal.revealed {
    opacity: 1;

    transform:
        translateY(0);
}

.delay-1 {
    transition-delay: .09s;
}

/* ANIMATIONS */

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .55;
        transform: scale(.82);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}