:root {
    --bg-0: #05090f;
    --bg-1: #0b1522;
    --panel: rgba(13, 24, 38, 0.72);
    --panel-border: rgba(130, 177, 255, 0.25);
    --text: #d7e2f0;
    --muted: #8ba2bc;
    --accent: #73b8ff;
    --accent-2: #53e6bf;
    --shadow: rgba(5, 12, 20, 0.45);
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 25%, rgba(115, 184, 255, 0.2), transparent 42%),
        radial-gradient(circle at 85% 12%, rgba(83, 230, 191, 0.2), transparent 34%),
        linear-gradient(155deg, var(--bg-0) 0%, var(--bg-1) 100%);
    color: var(--text);
    overflow-x: hidden;
}

.ambient-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.92;
}

.page-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    justify-content: center;
}

.main-shell {
    width: min(100%, var(--max-width));
    margin: auto;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 26px;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px var(--shadow);
    overflow: hidden;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(130, 177, 255, 0.18);
}

.logo {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
    font-size: 0.95rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(130, 177, 255, 0.48);
    background-color: rgba(130, 177, 255, 0.12);
    outline: none;
}

.nav-links a.active {
    border-color: rgba(83, 230, 191, 0.5);
    background-color: rgba(83, 230, 191, 0.14);
}

.content {
    padding: clamp(20px, 3vw, 42px);
}

.hero {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(220px, 280px) 1fr;
    align-items: center;
}

.hero-pfp {
    width: min(230px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    border: 1px solid rgba(130, 177, 255, 0.4);
    object-fit: cover;
    justify-self: center;
    box-shadow: 0 16px 38px rgba(2, 9, 16, 0.5);
}

.kicker {
    margin: 0;
    color: var(--accent-2);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    font-weight: 600;
}

h1 {
    margin: 8px 0 14px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.06;
}

.subtitle {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 52ch;
}

.live-time {
    margin-top: 18px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-family: "JetBrains Mono", monospace;
    color: var(--accent);
    font-size: 0.86rem;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(115, 184, 255, 0.3);
    background: rgba(115, 184, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-2);
    box-shadow: 0 0 16px var(--accent-2);
}

.section {
    margin-top: 34px;
}

.section h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.section p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.tech-tags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    border-radius: 999px;
    border: 1px solid rgba(130, 177, 255, 0.32);
    background: rgba(130, 177, 255, 0.08);
    padding: 6px 12px;
    font-size: 0.86rem;
    color: #c8d9ea;
}

.projects-grid {
    display: grid;
    gap: 12px;
}

.project-card {
    border-radius: 16px;
    border: 1px solid rgba(130, 177, 255, 0.22);
    background: rgba(9, 17, 28, 0.72);
    padding: 16px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(83, 230, 191, 0.4);
    box-shadow: 0 12px 24px rgba(4, 13, 24, 0.45);
}

.project-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.project-card h3 a {
    color: var(--accent);
    text-decoration: none;
}

.project-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.footer-links {
    margin-top: 34px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(130, 177, 255, 0.3);
    color: var(--text);
    padding: 8px 12px;
    background: rgba(130, 177, 255, 0.08);
    transition: transform 180ms ease, border-color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(83, 230, 191, 0.52);
    outline: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 650ms ease forwards;
}

.fade-delay-1 { animation-delay: 80ms; }
.fade-delay-2 { animation-delay: 160ms; }
.fade-delay-3 { animation-delay: 240ms; }
.fade-delay-4 { animation-delay: 320ms; }
.fade-delay-5 { animation-delay: 420ms; }

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-cursor-enabled,
.custom-cursor-enabled a,
.custom-cursor-enabled button,
.custom-cursor-enabled img,
.custom-cursor-enabled input,
.custom-cursor-enabled textarea,
.custom-cursor-enabled select {
    cursor: none;
}

.cursor-follower-layer {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}

.cursor-follower-layer.is-visible {
    opacity: 1;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #e8f3ff;
    box-shadow: 0 0 16px rgba(115, 184, 255, 0.8);
}

.cursor-ring {
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(232, 243, 255, 0.95);
    transition: width 300ms ease, height 300ms ease, border-color 300ms ease;
}

.cursor-follower-layer.is-hovering .cursor-ring {
    width: 44px;
    height: 44px;
    border-color: rgba(83, 230, 191, 0.95);
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .subtitle {
        margin-inline: auto;
    }

    .live-time {
        justify-content: center;
    }

    .content {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .project-card,
    .footer-links a,
    .nav-links a {
        transition: none;
    }

    .cursor-follower-layer,
    .ambient-canvas {
        display: none;
    }
}

@media (max-width: 900px) {
    .custom-cursor-enabled,
    .custom-cursor-enabled a,
    .custom-cursor-enabled button,
    .custom-cursor-enabled img,
    .custom-cursor-enabled input,
    .custom-cursor-enabled textarea,
    .custom-cursor-enabled select {
        cursor: auto;
    }
}
