/* =========================================================
   Prachi Kapoor — Portfolio
   Theme: deep space. One bold moment (the hero), everything
   else calm and readable.
   ========================================================= */

:root {
    --void: #06041a;          /* page background */
    --deep: #0e0b2e;          /* raised surfaces */
    --line: rgba(196, 184, 255, 0.16);
    --violet: #8c6dff;        /* main accent */
    --cyan: #6fe3ff;          /* second accent */
    --star: #f3f0ff;          /* main text */
    --dust: #a7a2c6;          /* secondary text */

    --font-display: "Syne", "Trebuchet MS", sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --wrap: min(1160px, 100% - 48px);
    --header-h: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--star);
    background:
        radial-gradient(1200px 700px at 85% 110%, rgba(140, 109, 255, 0.14), transparent 60%),
        radial-gradient(900px 600px at 0% 45%, rgba(111, 227, 255, 0.07), transparent 60%),
        var(--void);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
}

p {
    margin: 0 0 1.1em;
}

::selection {
    background: var(--violet);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
    border-radius: 6px;
}

/* ---------- Starfield ---------- */

#stars {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 700 15px/1 var(--font-body);
    color: var(--star);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #7a5cff, #4f7dff);
    box-shadow: 0 8px 30px -8px rgba(122, 92, 255, 0.8);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -6px rgba(122, 92, 255, 0.95);
}

.btn-ghost {
    border-color: rgba(243, 240, 255, 0.3);
    background: rgba(6, 4, 26, 0.35);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    border-color: var(--star);
    background: rgba(243, 240, 255, 0.08);
}

.btn-small {
    padding: 11px 22px;
    font-size: 14px;
    border-color: rgba(140, 109, 255, 0.6);
    background: rgba(140, 109, 255, 0.12);
}

.btn-small:hover {
    background: rgba(140, 109, 255, 0.28);
}

.btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    color: var(--star);
    border-bottom: 1px solid rgba(111, 227, 255, 0.4);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.link i {
    font-size: 19px;
    color: var(--cyan);
}

.link:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 max(24px, calc((100% - 1160px) / 2));
    transition: background-color 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background-color: rgba(6, 4, 26, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: auto;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font: 800 15px/1 var(--font-display);
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #b39dff, #5b3df5 60%, #2a1a8a);
    box-shadow: 0 0 20px rgba(140, 109, 255, 0.6);
}

.logo-name {
    font: 700 17px/1 var(--font-display);
    letter-spacing: 0.01em;
}

.nav {
    display: flex;
    gap: 6px;
}

.nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    color: var(--dust);
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.nav a:hover,
.nav a.active {
    color: var(--star);
    background: rgba(243, 240, 255, 0.07);
}

.menu-icon,
.close-icon {
    display: none;
    padding: 6px;
    border: 0;
    background: none;
    color: var(--star);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Mobile menu ---------- */

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    width: min(84%, 360px);
    padding: 22px 32px;
    display: flex;
    flex-direction: column;
    background: rgba(14, 11, 46, 0.96);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.45s;
}

.sidebar.open {
    transform: none;
    visibility: visible;
}

.sidebar .close-icon {
    display: block;
    align-self: flex-end;
    font-size: 38px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 30px;
}

.sidebar nav a {
    padding: 8px 0;
    font: 700 34px/1.2 var(--font-display);
    text-decoration: none;
}

.sidebar nav .sidebar-resume {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 22px;
    color: var(--cyan);
}

.sidebar .social-row {
    margin-top: auto;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(3, 2, 14, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}

.social-row {
    display: flex;
    gap: 12px;
}

.social-row a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    font-size: 21px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.social-row a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(111, 227, 255, 0.08);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 20px) 24px 110px;
    text-align: center;
    overflow: hidden;
}

/* The black hole sits right behind the name */
.horizon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1500px, 150vw);
    transform: translate(-50%, -52%);
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 55%, transparent 100%);
    animation: horizon-in 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.horizon video {
    width: 100%;
}

@keyframes horizon-in {
    from {
        opacity: 0;
        transform: translate(-50%, -52%) scale(0.7);
        filter: blur(20px);
    }
}

.hero > * {
    min-width: 0;
}

.hero {
    grid-template-columns: minmax(0, 1fr);
}

.hero-content {
    width: 100%;
    max-width: 980px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 28px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(6, 4, 26, 0.55);
    backdrop-filter: blur(6px);
    font-size: 14px;
    font-weight: 600;
    color: var(--dust);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5ff2a6;
    box-shadow: 0 0 0 0 rgba(95, 242, 166, 0.6);
    animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
    70% { box-shadow: 0 0 0 10px rgba(95, 242, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(95, 242, 166, 0); }
}

.hero-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(68px, 13.5vw, 196px);
    line-height: 0.86;
    letter-spacing: -0.045em;
    color: #fff;
    text-shadow:
        0 0 40px rgba(140, 109, 255, 0.55),
        0 0 120px rgba(111, 227, 255, 0.25);
    margin-bottom: 30px;
}

.hero-role {
    text-shadow: 0 1px 12px rgba(6, 4, 26, 0.9), 0 0 2px rgba(6, 4, 26, 0.9);
    max-width: 34em;
    margin: 0 auto 36px;
    font-size: clamp(17px, 1.5vw, 20px);
    color: #d6d2ee;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* Page-load sequence: the one orchestrated moment */
.load {
    animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.load-1 { animation-delay: 0.5s; }
.load-2 { animation-delay: 0.65s; }
.load-3 { animation-delay: 0.9s; }
.load-4 { animation-delay: 1.05s; }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px);
        filter: blur(8px);
    }
}

.scroll-hint {
    position: absolute;
    bottom: 34px;
    left: 50%;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 1.5px solid rgba(243, 240, 255, 0.45);
    border-radius: 20px;
}

.scroll-hint span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--star);
    animation: wheel 2s ease-in-out infinite;
}

@keyframes wheel {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Sections ---------- */

.section {
    width: var(--wrap);
    margin: 0 auto;
    padding: 80px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--violet);
    margin-bottom: 26px;
}

.section-heading::after {
    content: "";
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, var(--violet), transparent);
}

.statement {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.015em;
    color: #fff;
    max-width: 19em;
    margin-bottom: 30px;
}

/* ---------- About ---------- */

.about {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text > p:not(.statement) {
    color: var(--dust);
    max-width: 36em;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.planet {
    position: relative;
    width: min(320px, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
}

.planet::before {
    content: "";
    position: absolute;
    inset: -9%;
    border-radius: 50%;
    border: 1px solid rgba(111, 227, 255, 0.25);
    transform: rotateX(72deg) rotateZ(-18deg);
    box-shadow: 0 0 30px rgba(111, 227, 255, 0.25);
}

.planet video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    mix-blend-mode: screen;
    box-shadow: 0 0 80px -10px rgba(111, 227, 255, 0.35);
}

.facts {
    width: 100%;
    max-width: 360px;
    margin: 0;
}

.facts div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.facts div:last-child {
    border-bottom: 1px solid var(--line);
}

.facts dt {
    color: var(--dust);
    font-size: 15px;
}

.facts dd {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
    text-align: right;
}

/* ---------- Work ---------- */

.project {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 90px;
}

.project:last-child {
    margin-bottom: 0;
}

.project-flip .project-frame {
    order: 2;
}

.project-frame {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background: var(--deep);
    border: 1px solid var(--line);
    box-shadow:
        0 40px 80px -30px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 0 70px -20px rgba(140, 109, 255, 0.45);
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.project-frame:hover {
    box-shadow:
        0 50px 90px -30px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 90px -10px rgba(140, 109, 255, 0.6);
}

.frame-bar {
    display: flex;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--line);
}

.frame-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(243, 240, 255, 0.22);
}

.project-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
}

.mali-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 22% 28%, rgba(255, 134, 200, 0.55), transparent 48%),
        radial-gradient(circle at 80% 78%, rgba(140, 109, 255, 0.55), transparent 52%),
        linear-gradient(135deg, #2b0d3f, #0e0b2e);
}

.mali-preview i {
    font-size: 60px;
}

.mali-preview strong {
    font: 800 clamp(34px, 4.4vw, 52px)/1 var(--font-display);
    letter-spacing: -0.03em;
}

.mali-sub {
    color: #f6dcef;
    font-size: 16px;
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-info h3 {
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.project-info p {
    color: var(--dust);
    max-width: 30em;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 4px 0 30px;
}

.tags li {
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    border-radius: 999px;
    background: rgba(111, 227, 255, 0.08);
    border: 1px solid rgba(111, 227, 255, 0.22);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

/* ---------- Experience ---------- */

.job {
    padding: 36px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(140, 109, 255, 0.12), rgba(14, 11, 46, 0.7) 45%);
    border: 1px solid var(--line);
}

.job-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.job-logo {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 30px;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #6fe3ff, #5b3df5 70%);
    box-shadow: 0 0 30px rgba(111, 227, 255, 0.35);
}

.job h3 {
    font-size: clamp(22px, 2.4vw, 28px);
    margin-bottom: 4px;
}

.job-company {
    margin: 0;
    color: var(--dust);
    font-weight: 600;
}

.job-duration {
    margin-left: auto;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--cyan);
    border: 1px solid rgba(111, 227, 255, 0.3);
}

.job-desc {
    color: #d6d2ee;
    max-width: 46em;
}

.job .tags {
    margin-bottom: 0;
}

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

.job-current {
    border-color: rgba(111, 227, 255, 0.35);
}

.job-meta {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: rgba(167, 162, 198, 0.8);
}

.job-duration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.job-points {
    margin: 0 0 22px;
    padding-left: 20px;
    color: #d6d2ee;
    max-width: 50em;
}

.job-points li {
    margin-bottom: 8px;
}

.job-points li::marker {
    color: var(--violet);
}

/* ---------- Education ---------- */

.edu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--line);
}

.edu {
    position: relative;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 24px;
    padding: 0 0 34px 34px;
}

.edu:last-child {
    padding-bottom: 0;
}

.edu::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--void);
    border: 2px solid var(--violet);
}

.edu:first-child::before {
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.edu-dates {
    font-weight: 700;
    font-size: 15px;
    color: var(--dust);
    padding-top: 2px;
}

.edu h3 {
    font-size: clamp(20px, 2vw, 24px);
    margin-bottom: 6px;
}

.edu-school {
    margin: 0 0 6px;
    font-weight: 600;
    color: var(--violet);
}

.edu-note {
    margin: 0;
    color: var(--dust);
    max-width: 40em;
}

/* ---------- Project previews ---------- */

.project-role {
    margin: -6px 0 14px;
    font-weight: 700;
    font-size: 15px;
    color: var(--violet) !important;
}

.preview {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.preview-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
}

/* Aero AI: voice waveform */
.preview-voice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(111, 227, 255, 0.35), transparent 55%),
        linear-gradient(160deg, #0a2140, #0e0b2e 70%);
}

.preview-voice strong {
    font: 800 clamp(30px, 4vw, 44px)/1 var(--font-display);
    letter-spacing: -0.03em;
    color: #fff;
}

.voice-orb {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 30px;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #9ff0ff, #2a7bff 70%);
    box-shadow: 0 0 0 10px rgba(111, 227, 255, 0.12), 0 0 40px rgba(111, 227, 255, 0.6);
}

.wave {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 46px;
}

.wave span {
    width: 5px;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(var(--cyan), var(--violet));
    animation: wave 1.2s ease-in-out infinite;
    transform-origin: center;
}

.wave span:nth-child(2n) { animation-delay: -0.3s; }
.wave span:nth-child(3n) { animation-delay: -0.6s; }
.wave span:nth-child(5n) { animation-delay: -0.9s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.25); }
    50% { transform: scaleY(1); }
}

/* Multi-agent network */
.preview-agents {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(140, 109, 255, 0.3), transparent 60%),
        linear-gradient(160deg, #150d3a, #0e0b2e 70%);
}

.agents-svg {
    width: 92%;
    height: auto;
}

.agent-links path {
    stroke: rgba(196, 184, 255, 0.35);
    stroke-width: 1.5;
    stroke-dasharray: 5 6;
    fill: none;
}

.agent-pulses circle {
    fill: var(--cyan);
    filter: drop-shadow(0 0 6px var(--cyan));
}

.agent-nodes circle {
    fill: #1a1450;
    stroke: rgba(196, 184, 255, 0.5);
    stroke-width: 1.5;
}

.agent-nodes .hub {
    fill: #5b3df5;
    stroke: #b39dff;
    filter: drop-shadow(0 0 16px rgba(140, 109, 255, 0.8));
}

.agent-labels text {
    fill: #e6e2ff;
    font: 600 10px var(--font-body);
    text-anchor: middle;
}

.agent-labels .hub-label {
    font-size: 11px;
    font-weight: 700;
    fill: #fff;
}

/* Voice calling dashboard */
.preview-dash {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 6% 7%;
    background: linear-gradient(160deg, #101a3a, #0e0b2e 70%);
}

.dash-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dash-stat {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}

.dash-stat b {
    display: block;
    width: 55%;
    height: 18px;
    margin-bottom: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(140, 109, 255, 0.55), rgba(111, 227, 255, 0.4));
    font: 800 clamp(18px, 2.2vw, 26px)/1.1 var(--font-display);
    color: #fff;
}

.dash-stat span {
    font-size: 12px;
    color: var(--dust);
}

.dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.dash-name {
    flex: 1;
    max-width: 55%;
    height: 8px;
    border-radius: 4px;
    background: rgba(243, 240, 255, 0.18);
}

.dash-list li:nth-child(2) .dash-name { max-width: 40%; }
.dash-list li:nth-child(3) .dash-name { max-width: 48%; }
.dash-list li:nth-child(4) .dash-name { max-width: 35%; }

.pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.pill-live {
    color: #5ff2a6;
    background: rgba(95, 242, 166, 0.12);
    animation: blink 1.6s ease-in-out infinite;
}

.pill-done {
    color: var(--cyan);
    background: rgba(111, 227, 255, 0.1);
}

.pill-queue {
    color: #ffd27a;
    background: rgba(255, 210, 122, 0.1);
}

@keyframes blink {
    50% { opacity: 0.45; }
}

/* Spam filter */
.preview-spam {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 120, 140, 0.22), transparent 50%),
        linear-gradient(160deg, #1b0f33, #0e0b2e 70%);
}

.mail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 78%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mail-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}

.mail-list i {
    font-size: 20px;
    color: var(--dust);
}

.mail-list .is-spam {
    border-color: rgba(255, 120, 140, 0.35);
    background: rgba(255, 120, 140, 0.06);
}

.mail-line {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: rgba(243, 240, 255, 0.18);
}

.pill-spam {
    color: #ff8fa3;
    background: rgba(255, 120, 140, 0.14);
}

.spam-shield {
    position: absolute;
    right: 7%;
    bottom: 9%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 28px;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #ffb3c1, #e0456a 70%);
    box-shadow: 0 0 30px rgba(255, 120, 140, 0.5);
}

/* ---------- Skills ---------- */

.skills {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.orbit {
    --size: min(460px, 40vw);
    position: relative;
    width: var(--size);
    aspect-ratio: 1;
    justify-self: center;
}

.orbit::before,
.orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.orbit::before { inset: 8%; }
.orbit::after { inset: 24%; border-style: dashed; opacity: 0.6; }

.orbit-core {
    position: absolute;
    inset: 34%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140, 109, 255, 0.6), rgba(6, 4, 26, 0.1) 70%);
    box-shadow: 0 0 70px rgba(140, 109, 255, 0.55);
}

.orbit-core span {
    font: 800 calc(var(--size) * 0.1)/1 var(--font-display);
    color: #fff;
}

.orbit-ring {
    position: absolute;
    inset: 0;
    animation: spin 40s linear infinite;
}

.orbit-item {
    --angle: calc(360deg / var(--count) * var(--i));
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--size) * 0.14);
    height: calc(var(--size) * 0.14);
    margin: calc(var(--size) * -0.07);
    transform: rotate(var(--angle)) translateX(calc(var(--size) * 0.42)) rotate(calc(-1 * var(--angle)));
}

.orbit-item img {
    width: 100%;
    height: 100%;
    padding: 16%;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(14, 11, 46, 0.92);
    border: 1px solid var(--line);
    animation: spin 40s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skills-intro {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.2;
    color: #fff;
    max-width: 18em;
    margin-bottom: 40px;
}

.skill-group {
    margin-bottom: 30px;
}

.skill-group h3 {
    font-size: 18px;
    margin-bottom: 14px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    background: rgba(243, 240, 255, 0.04);
    border: 1px solid var(--line);
}

.chips i {
    font-size: 19px;
    color: var(--violet);
}

/* ---------- Contact ---------- */

.contact {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text > p:not(.statement) {
    color: var(--dust);
    max-width: 30em;
}

.email-link {
    display: inline-block;
    margin: 14px 0 30px;
    font: 700 clamp(19px, 2.2vw, 28px)/1.3 var(--font-display);
    color: #fff;
    text-decoration: none;
    word-break: break-word;
    background: linear-gradient(90deg, var(--violet), var(--cyan)) left bottom / 100% 2px no-repeat;
    padding-bottom: 6px;
    transition: color 0.2s;
}

.email-link:hover {
    color: var(--cyan);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
}

.contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dust);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-list a:hover {
    color: var(--star);
}

.contact-list i {
    font-size: 20px;
    color: var(--violet);
}

.contact-form {
    display: flex;
    flex-direction: column;
    padding: 36px;
    border-radius: 20px;
    background: rgba(14, 11, 46, 0.7);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.contact-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dust);
    margin: 20px 0 8px;
}

.contact-form label:first-of-type {
    margin-top: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    font: 16px/1.5 var(--font-body);
    color: var(--star);
    background: rgba(6, 4, 26, 0.6);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(140, 109, 255, 0.25);
}

.contact-form .btn {
    margin-top: 28px;
    align-self: flex-start;
}

.form-status {
    margin: 14px 0 0;
    min-height: 1.5em;
    font-size: 15px;
}

.form-status.success { color: #5ff2a6; }
.form-status.error { color: #ff9a9a; }

/* ---------- Footer ---------- */

.footer {
    width: var(--wrap);
    margin: 0 auto;
    padding: 30px 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: var(--dust);
}

.footer p {
    margin: 0;
    font-size: 15px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
    .about,
    .skills,
    .contact {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .orbit {
        --size: min(380px, 80vw);
        order: 2;
    }

    .project,
    .project-flip {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 70px;
    }

    .project-flip .project-frame {
        order: 0;
    }

    .section {
        padding: 70px 0;
    }
}

@media (max-width: 820px) {
    :root {
        --header-h: 64px;
    }

    .nav,
    .header-cta {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .horizon {
        width: 230vw;
        top: 38%;
    }
}

@media (max-width: 520px) {
    :root {
        --wrap: calc(100% - 40px);
    }

    body {
        font-size: 16px;
    }

    .logo-name {
        font-size: 16px;
    }

    .hero {
        padding-bottom: 90px;
    }

    .hero-name {
        font-size: clamp(44px, 15.5vw, 96px);
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .scroll-hint {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .orbit {
        display: none;
    }

    .contact-form {
        padding: 24px;
    }

    .job {
        padding: 24px;
    }

    .edu {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-left: 26px;
    }

    .mail-list {
        width: 88%;
        gap: 7px;
    }

    .mail-list li {
        padding: 8px 10px;
    }

    .job-head {
        flex-wrap: wrap;
    }

    .job-duration {
        margin-left: 0;
        order: 3;
    }

    .dash-stat span {
        font-size: 10px;
    }

    .contact-form .btn {
        align-self: stretch;
    }

    .footer {
        flex-direction: column-reverse;
        text-align: center;
    }
}

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
