@import url('/static/style/fonts.css');

/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {
    --bg-primary: #050505;
    --bg-secondary: #0b0b0b;
    --bg-tertiary: #121212;

    --surface: rgba(255, 255, 255, 0.03);
    --surface-strong: rgba(255, 255, 255, 0.06);
    --surface-border: rgba(255, 255, 255, 0.08);

    --text-primary: #f5f7f5;
    --text-secondary: #9ca39c;
    --text-muted: #6f756f;

    --accent: #78ff9c;
    --accent-strong: #9cffb6;
    --accent-soft: rgba(120, 255, 156, 0.12);

    --danger: #ff5e5e;

    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 42px;
    --radius-xl: 64px;

    --container: 1320px;

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 10px rgba(36, 255, 94, 0.2);

    --transition: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);

    --section-spacing: 180px;

    --bg-primary: #050505;

    --gray-500: rgba(255, 255, 255, 0.12);
    --gray-800: rgba(255, 255, 255, 0.06);

    --background-radial: radial-gradient(var(--gray-500) 1.2px, transparent 1px);
    --background-square:
        linear-gradient(to right, var(--gray-800) 1px, transparent 1px),
        linear-gradient(to bottom, var(--gray-800) 1px, transparent 1px);

    --background-size-small: 20px 20px;
    --background-size-large: 40px 40px;
}

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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(circle at top left, rgba(120,255,156,.05), transparent 28%),
        radial-gradient(circle at bottom right, rgba(120,255,156,.03), transparent 22%),
        var(--background-radial),
        var(--bg-primary);

    background-size:
        auto,
        auto,
        var(--background-size-small),
        auto;

    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    z-index: 0;
}

body.menu-open {
    overflow: hidden;
}

body::before {
    content: '';

    position: fixed;
    inset: 0;

    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: 80px 80px;
    opacity: .16;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';

    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: -1;
}

#background-canvas {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  z-index: -1;
}

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

button,
input,
textarea {
    font: inherit;
}

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

::selection {
    background: rgba(120,255,156,.25);
    color: white;
}

/* =========================================================
   GLOBAL
========================================================= */

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

section {
    position: relative;
    padding: var(--section-spacing) 0;
}

.section-heading {
    margin-bottom: 72px;
}

.section-label {
    display: inline-flex;

    color: var(--accent);

    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .16em;

    text-transform: uppercase;
}

.section-heading h2 {
    margin: 18px 0 0;

    max-width: 12ch;

    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: .95;
    letter-spacing: -.05em;
}

/* =========================================================
   NAVIGATION
========================================================= */

.floating-nav {
    position: fixed;
    top: 20px;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: center;

    z-index: 200;
}

.nav-container {
    width: min(1100px, calc(100% - 24px));

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

    padding: 16px 22px;

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

    border-radius: 999px;

    background: rgba(10,10,10,.68);

    backdrop-filter: blur(18px);

    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.nav-logo {
    font-weight: 700;
    letter-spacing: .08em;
}

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

.nav-links a {
    position: relative;

    color: var(--text-secondary);

    transition: var(--transition);
}

.nav-links a::after {
    content: '';

    position: absolute;
    left: 0;
    bottom: -6px;

    width: 100%;
    height: 1px;

    background: var(--accent);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform .3s ease;
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-toggle {
    display: none;

    width: 52px;
    height: 52px;

    border: 1px solid var(--surface-border);
    border-radius: 16px;

    background: rgba(255,255,255,.03);

    cursor: pointer;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;

    background: white;

    border-radius: 999px;
}

.mobile-menu {
    position: fixed;
    inset: 0;

    z-index: 300;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .35s ease,
        visibility .35s ease;

    background:
        radial-gradient(
            circle at top left,
            rgba(120,255,156,.08),
            transparent 30%
        ),
        rgba(5,5,5,.97);

    backdrop-filter: blur(24px);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-inner {
    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 32px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header span {
    color: var(--text-secondary);

    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

#mobile-close {
    width: 52px;
    height: 52px;

    border: 1px solid var(--surface-border);
    border-radius: 16px;

    background: rgba(255,255,255,.03);
    color: white;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 18px;

    margin: auto 0;
}

.mobile-menu-links a {
    width: fit-content;

    font-size: clamp(2.2rem, 10vw, 4.5rem);
    line-height: 1;

    letter-spacing: -.05em;

    transition: transform .3s ease;
}

.mobile-menu-links a:hover {
    transform: translateX(10px);
}

.mobile-menu-footer {
    color: var(--text-muted);
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 100px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 120px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 28px;
    padding: 10px 16px;

    border: 1px solid var(--surface-border);
    border-radius: 999px;
    background: rgba(255,255,255,.02);
    color: var(--accent);

    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    max-width: 10ch;

    font-size: clamp(4rem, 9vw, 7rem);
    line-height: .9;
    letter-spacing: -.07em;
}

.hero-description {
    max-width: 620px;
    margin-top: 32px;

    color: var(--text-secondary);

    font-size: 1.1rem;
    line-height: 1.9;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-actions {
    display: flex;
    gap: 18px;

    margin-top: 42px;
}

/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 999px;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease;
}

.button:hover {
    transform: translateY(-4px);
}

.button-primary {
    background: var(--accent);
    color: black;
    font-weight: 700;
}

.button-secondary {
    border: 1px solid var(--surface-border);
    background: rgba(255,255,255,.02);
    color: white;
}

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

.hero-side {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orb {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle at center,
            rgba(120,255,156,.22),
            rgba(120,255,156,.04) 45%,
            transparent 72%
        );

    filter: blur(8px);
}

.hero-grid {
    position: absolute;
    inset: 0;
    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: 42px 42px;
    mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
    opacity: .5;
}

.hero-panel {
    position: relative;
    width: 320px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 32px;
    padding: 32px;
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 80px rgba(0,0,0,.35);
}

.hero-panel-label {
    color: var(--accent);
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-panel h3 {
    margin: 18px 0 16px;
    font-size: 2rem;
    line-height: 1;
}

.hero-panel p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-panel-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.hero-panel-lines span {
    height: 10px;
    border-radius: 999px;

    background:
        linear-gradient(
            to right,
            rgba(120,255,156,.4),
            rgba(255,255,255,.03)
        );
}

.hero-panel-lines span:nth-child(1) {
    width: 100%;
}

.hero-panel-lines span:nth-child(2) {
    width: 76%;
}

.hero-panel-lines span:nth-child(3) {
    width: 58%;
}

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

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-card {
    padding: 48px;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.9;

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

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.03),
            rgba(255,255,255,.01)
        );

    backdrop-filter: blur(14px);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.metric-card {
    padding: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.03),
            rgba(255,255,255,.01)
        );

    backdrop-filter: blur(14px);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border .3s ease;
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(120, 255, 156, 0.18);
}

.metric-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.metric-card span {
    color: var(--text-secondary);
}

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

.tech-stack-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.stack-group {
    border: 1px solid var(--surface-border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.03),
            rgba(255,255,255,.015)
        );

    border-radius: 32px;
    padding: 36px;
    backdrop-filter: blur(14px);
}

.stack-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 28px;
}

.stack-group-header h3 {
    margin: 0;

    font-size: 1.4rem;
    letter-spacing: -.03em;
}

.stack-group-header span {
    color: var(--text-muted);

    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.stack-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 999px;

    background: rgba(255,255,255,.03);

    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease;
}

.stack-item:hover {
    transform: translateY(-4px);

    border-color: rgba(120,255,156,.2);

    background: rgba(120,255,156,.05);
}

.stack-item i {
    width: 18px;
    height: 18px;

    color: var(--accent);
}

.stack-item span {
    color: var(--text-secondary);

    font-size: .95rem;
}

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

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.project-row {
    display: grid;
    grid-template-columns: 1.2fr .8fr auto;

    gap: 24px;
    align-items: center;

    padding: 32px;

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

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.03),
            rgba(255,255,255,.01)
        );

    transition:
        transform .35s ease,
        border-color .35s ease,
        background .35s ease;
}

.project-row:hover {
    transform: translateY(-6px);

    border-color: rgba(120, 255, 156, 0.18);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.04),
            rgba(255,255,255,.015)
        );

    box-shadow:
        0 10px 40px rgba(0,0,0,.25),
        0 0 80px rgba(120,255,156,.04);
}

.project-main h3 {
    margin: 0 0 12px;

    font-size: 1.8rem;
    letter-spacing: -.04em;
}

.project-main p {
    max-width: 60ch;

    color: var(--text-secondary);

    line-height: 1.8;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-meta span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);

    color: var(--accent);

    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-links {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    min-width: 120px;
}

.project-link {
    width: 52px;
    height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 16px;

    background: rgba(255,255,255,.03);

    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease;
}

.project-link:hover {
    transform: translateY(-4px);

    border-color: rgba(120,255,156,.2);

    background: rgba(120,255,156,.06);
}

.project-link i {
    width: 18px;
    height: 18px;

    color: white;
}

/* =========================================================
   TIMELINE
========================================================= */

.timeline {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 48px;

    padding-left: 48px;
}

.timeline::before {
    content: '';

    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;

    width: 2px;

    background:
        linear-gradient(
            to bottom,
            rgba(120,255,156,0),
            rgba(120,255,156,.5),
            rgba(120,255,156,0)
        );
}

.timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 32px;
}

.timeline-item::before {
    content: '';

    position: absolute;
    left: -44px;
    top: 8px;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 0 6px rgba(120,255,156,.08),
        0 0 24px rgba(120,255,156,.4);
}

.timeline-year {
    color: var(--accent);

    font-weight: 700;
    letter-spacing: .08em;
}

.timeline-content {
    padding: 32px;
    border-radius: 28px;
    border: 1px solid var(--surface-border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.03),
            rgba(255,255,255,.01)
        );
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 12px;

    font-size: 1.5rem;
}

.timeline-content p {
    color: var(--text-secondary);

    line-height: 1.8;
}

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

.contact-section {
    padding-bottom: 120px;
}

.contact-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 48px;
    padding: 72px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.03),
            rgba(255,255,255,.01)
        );
}

.contact-link {
    font-size: clamp(1.8rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -.04em;

    transition: color .3s ease;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-subtext {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 16px;
    opacity: 0.7;
    max-width: 40ch;
    line-height: 1.5;
}

.discord-info {
    margin-top: 24px;
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: 1rem;
    opacity: 0.9;
}

.discord-label {
    opacity: 0.6;
}

.discord-username {
    font-weight: 500;
    letter-spacing: 0.02em;
}

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

footer {
    padding: 48px 0 72px;

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

.footer-layout {
    display: flex;
    justify-content: space-between;

    gap: 32px;
}

.footer-layout p,
.footer-links a {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* =========================================================
   REVEAL ANIMATIONS
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: .1s;
}

.delay-2 {
    transition-delay: .2s;
}

.delay-3 {
    transition-delay: .3s;
}

.delay-4 {
    transition-delay: .4s;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .hero-layout,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 180px;
    }

    .hero h1 {
        max-width: 12ch;
        font-size: clamp(3.5rem, 10vw, 5rem);
    }

    .project-row {
        grid-template-columns: 1fr;

        align-items: flex-start;
    }

    .project-links {
        margin-top: 6px;
    }

    .contact-layout,
    .footer-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 780px) {

    :root {
        --section-spacing: 100px;
    }

    .container {
        width: min(100% - 32px, var(--container));
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;

        padding:
            140px 0 80px;
    }

    .hero-layout {
        gap: 56px;
    }

    .hero h1 {
        max-width: none;

        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-side {
        min-height: 320px;
    }

    .hero-orb {
        width: 280px;
        height: 280px;
    }

    .hero-panel {
        width: 100%;
        max-width: 320px;
    }

    .stack-group {
        padding: 28px;
    }

    .stack-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-heading {
        margin-bottom: 48px;
    }

    .section-heading h2 {
        max-width: none;
        font-size: clamp(2rem, 10vw, 3rem);
    }

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

    .project-row {
        padding: 24px;
    }

    .project-main h3 {
        font-size: 1.5rem;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .timeline-item::before {
        left: -24px;
    }

    .contact-layout {
        padding: 36px 28px;
    }

    .contact-link {
        font-size: 1.6rem;
    }

    .mobile-menu-inner {
        padding: 24px;
    }
}