:root {
    --bg: #030303;
    --bg-soft: #09090b;
    --panel: rgba(14, 5, 8, 0.88);
    --panel-strong: rgba(9, 1, 4, 0.96);
    --line: rgba(255, 9, 50, 0.18);
    --text: #f7efef;
    --muted: #d1b7be;
    --accent: #ff234d;
    --accent-strong: #ff365a;
    --accent-warm: #ff6d84;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.52);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 35, 77, 0.12), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(178, 0, 41, 0.07), transparent 22%),
        radial-gradient(circle at 50% 56%, rgba(140, 0, 35, 0.08), transparent 34%),
        radial-gradient(circle at 55% 110%, rgba(255, 35, 77, 0.04), transparent 18%),
        linear-gradient(180deg, #000000 0%, #030305 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

.page-noise,
.ambient,
.cursor-glow,
.cursor-ring,
.cursor-dot,
.scroll-progress {
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

.page-noise {
    inset: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 96px 96px;
}

.ambient {
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.55;
}

.ambient-one {
    width: 320px;
    height: 320px;
    top: 12%;
    left: -100px;
    background: rgba(255, 36, 74, 0.2);
    animation: floatY 11s ease-in-out infinite;
}

.ambient-two {
    width: 420px;
    height: 420px;
    right: -120px;
    top: 30%;
    background: rgba(148, 0, 41, 0.16);
    animation: floatY 14s ease-in-out infinite reverse;
}

.cursor-glow {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 44, 82, 0.22), rgba(18, 2, 8, 0.18) 35%, transparent 72%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.25s ease, left 0.08s linear, top 0.08s linear;
}

.cursor-ring,
.cursor-dot {
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.18s ease;
    z-index: 1300;
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 77, 103, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(4px);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffe7eb;
    transform: translate(-50%, -50%);
}

.scroll-progress {
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-strong), var(--accent), #ff1238);
    z-index: 1200;
}

.site-header,
.social-rail,
.mobile-nav {
    z-index: 20;
}

.site-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(calc(100% - 32px), var(--max-width));
    margin: 12px auto 0;
    padding: 0.95rem 1.25rem;
    border: 1px solid rgba(255, 48, 82, 0.14);
    background: rgba(3, 3, 5, 0.92);
    backdrop-filter: blur(22px);
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 35, 77, 0.28), rgba(106, 0, 24, 0.22));
    border: 1px solid rgba(255, 48, 82, 0.16);
    font-family: "Syne", sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.top-nav,
.hero-actions,
.project-tags,
.project-links,
.timeline-tags,
.contact-list,
.mobile-nav,
.social-rail,
.stats-band,
.mini-card-grid {
    display: flex;
}

.top-nav {
    gap: 1.6rem;
}

.top-nav a,
.header-cta,
.mobile-nav a {
    font-size: 0.92rem;
    color: var(--muted);
    transition: color 0.25s ease, transform 0.25s ease;
}

.top-nav a:hover,
.header-cta:hover,
.mobile-nav a:hover {
    color: var(--accent);
}

.header-cta {
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #edf4ff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 92px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(16, 8, 10, 0.96);
    backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-rail {
    position: fixed;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 0.9rem;
}

.social-rail a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 48, 82, 0.08);
    color: var(--muted);
    font-weight: 700;
    transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.social-rail a:hover {
    transform: translateY(-4px);
    color: var(--accent);
    border-color: rgba(255, 70, 105, 0.3);
}

main {
    position: relative;
    z-index: 1;
}

.section-shell,
.stats-band {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.hero {
    padding: 2.2rem 0 2rem;
}

.hero-frame {
    position: relative;
    min-height: calc(100vh - 130px);
    padding: 3.5rem 4rem 3rem;
    border-radius: 40px;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 35, 77, 0.12), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(162, 0, 37, 0.06), transparent 22%),
        radial-gradient(circle at 64% 72%, rgba(183, 0, 49, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(5, 1, 3, 0.98), rgba(1, 1, 3, 0.99)),
        linear-gradient(180deg, #050103, #000000);
    overflow: hidden;
    border: 1px solid rgba(255, 48, 82, 0.12);
    box-shadow: var(--shadow);
}

.hero-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 34%),
        linear-gradient(90deg, rgba(255, 35, 77, 0.05), transparent 20%, transparent 74%, rgba(168, 0, 37, 0.04));
}

.hero-copy,
.hero-stage {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 560px;
    padding-top: 1rem;
}

.eyebrow,
.section-tag,
.card-kicker,
.project-index,
.timeline-role,
.edu-year {
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.eyebrow,
.section-tag,
.card-kicker {
    color: var(--accent);
    font-size: 0.82rem;
}

.hero h1,
.section-heading h2,
.contact-copy h2,
.subsection-heading h3 {
    font-family: "Syne", sans-serif;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.2rem);
    line-height: 0.9;
    margin-top: 0.8rem;
    margin-bottom: 1.3rem;
    letter-spacing: -0.04em;
    color: var(--text);
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.hero-role {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    color: #ead5d8;
    font-weight: 700;
}

.hero-role span {
    color: var(--accent-warm);
}

.hero-summary,
.story-card p,
.glass-card p,
.project-body p,
.project-body li,
.timeline-body li,
.contact-copy p,
.education-card p {
    color: var(--muted);
}

.hero-summary {
    margin-top: 1.4rem;
    max-width: 48ch;
    font-size: 1.08rem;
    line-height: 1.85;
}

.hero-actions {
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 164px;
    padding: 0.95rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff1238, #ff5a5f);
    color: #090c18;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 38px rgba(255, 77, 103, 0.24);
}

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

.button-secondary {
    background: linear-gradient(180deg, rgba(19, 6, 10, 0.92), rgba(8, 3, 5, 0.98));
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.hero-stage {
    position: absolute;
    right: 3%;
    bottom: 0;
    width: min(38vw, 460px);
}

.welcome-figure {
    position: relative;
    min-height: 590px;
    padding-top: 0.75rem;
    overflow: visible;
}

.portrait-glow {
    position: absolute;
    left: 50%;
    bottom: 6%;
    width: 72%;
    height: 32%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 35, 77, 0.18), rgba(110, 0, 30, 0.08) 48%, transparent 72%);
    filter: blur(26px);
}

.welcome-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 45, 80, 0.18);
    animation: spinOrbit 14s linear infinite;
    transform: translateY(-18px);
}

.orbit-one {
    inset: 11% 10% 19% 10%;
}

.orbit-two {
    inset: 2% 2% 12% 2%;
    animation-duration: 18s;
    animation-direction: reverse;
}

.portrait-frame {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(66%, 340px);
    height: 470px;
    transform: translateX(-50%);
}

.hero-model-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: visible;
}

.hero-model-canvas {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.hero-model-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.frame-aura {
    position: absolute;
    inset: 24% 10% 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 90, 110, 0.14), transparent 24%),
        radial-gradient(circle at 50% 78%, rgba(156, 0, 35, 0.18), transparent 34%),
        radial-gradient(circle at 14% 16%, rgba(255, 35, 77, 0.12), transparent 24%);
    filter: blur(34px);
}

.hero-model-status {
    position: absolute;
    left: 50%;
    bottom: 14%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 4, 7, 0.82);
    border: 1px solid rgba(255, 48, 82, 0.16);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.hero-figure {
    position: relative;
    z-index: 1;
    width: min(100%, 350px);
    height: 510px;
    transform-origin: center bottom;
    animation: figureBob 4.6s ease-in-out infinite;
    filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.34));
}

.figure-shadow {
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 72%;
    height: 36px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.52), transparent 70%);
    filter: blur(8px);
}

.figure-head {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 132px;
    height: 146px;
    transform: translateX(-50%);
}

.hair {
    position: absolute;
    inset: 0 0 18px;
    border-radius: 58px 58px 34px 34px;
    background:
        radial-gradient(circle at 28% 24%, rgba(178, 135, 78, 0.92), transparent 30%),
        radial-gradient(circle at 62% 22%, rgba(151, 107, 58, 0.95), transparent 28%),
        radial-gradient(circle at 70% 40%, rgba(100, 69, 38, 0.9), transparent 28%),
        linear-gradient(180deg, #9a6f43, #57371c 68%, #29180d);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.face {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 110px;
    height: 120px;
    transform: translateX(-50%);
    border-radius: 54px 54px 46px 46px;
    background: radial-gradient(circle at 50% 32%, rgba(255, 228, 206, 0.98), rgba(237, 194, 160, 0.96) 64%, rgba(197, 143, 108, 0.98));
    box-shadow: inset 0 -10px 16px rgba(173, 117, 85, 0.22);
}

.eyes,
.brows {
    position: absolute;
    left: 50%;
    width: 84px;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.eyes {
    top: 70px;
}

.eye {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.14);
}

.eye::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #74d4ff, #2d7dff 62%, #123470);
}

.eye::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #101319;
}

.brows {
    top: 54px;
}

.brow {
    width: 30px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #8b623a, #6c4727);
}

.mouth {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 28px;
    height: 12px;
    transform: translateX(-50%);
    border-bottom: 3px solid rgba(110, 63, 55, 0.78);
    border-radius: 0 0 20px 20px;
}

.figure-torso {
    position: absolute;
    left: 50%;
    bottom: 116px;
    width: 196px;
    height: 228px;
    transform: translateX(-50%);
}

.sweater {
    position: absolute;
    inset: 0;
    border-radius: 76px 76px 34px 34px;
    background:
        radial-gradient(circle at 50% 10%, rgba(60, 62, 72, 0.4), transparent 24%),
        linear-gradient(180deg, #22242b, #111318 72%, #07080d);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 34px rgba(0, 0, 0, 0.28);
}

.sweater::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10px;
    width: 92px;
    height: 46px;
    transform: translateX(-50%);
    border-radius: 0 0 44px 44px;
    border-top: 0;
    background: linear-gradient(180deg, #1b1c22, #0d0f13);
}

.lanyard {
    position: absolute;
    left: 50%;
    top: 26px;
    width: 70px;
    height: 116px;
    transform: translateX(-50%);
    border-radius: 0 0 12px 12px;
}

.lanyard::before,
.lanyard::after {
    content: "";
    position: absolute;
    top: 0;
    width: 6px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(180deg, #9d0f2f, #520716);
}

.lanyard::before {
    left: 18px;
    transform: rotate(18deg);
}

.lanyard::after {
    right: 18px;
    transform: rotate(-18deg);
}

.lanyard::before {
    box-shadow: 28px 74px 0 4px rgba(230, 232, 238, 0.96);
}

.figure-arm {
    position: absolute;
    top: 188px;
    width: 52px;
    height: 154px;
    transform-origin: top center;
}

.arm-left {
    left: 40px;
    transform: rotate(46deg);
}

.arm-right {
    right: 46px;
    transform: rotate(-18deg);
}

.arm-segment {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(180deg, #22242b, #101217);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.hand {
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 30px;
    height: 30px;
    transform: translateX(-50%);
    border-radius: 18px;
    background: linear-gradient(180deg, #f0be9a, #cd9368);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.laptop {
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 248px;
    height: 156px;
    transform: translateX(-50%);
}

.laptop-screen {
    position: absolute;
    right: 8px;
    bottom: 38px;
    width: 164px;
    height: 116px;
    border-radius: 14px 14px 8px 8px;
    background:
        linear-gradient(180deg, rgba(19, 23, 31, 0.98), rgba(8, 11, 16, 0.98)),
        linear-gradient(180deg, #bec4cc, #8a929d);
    transform: skew(-8deg);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.26);
    overflow: hidden;
}

.laptop-screen::before {
    content: "";
    position: absolute;
    inset: 12px 14px 16px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
        linear-gradient(180deg, rgba(14, 18, 28, 0.98), rgba(6, 9, 15, 0.98));
}

.laptop-screen::after {
    content: "";
    position: absolute;
    inset: 26px 26px 28px;
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(255, 55, 96, 0.92) 0 22%, transparent 22% 28%, rgba(68, 192, 255, 0.9) 28% 52%, transparent 52% 58%, rgba(255, 170, 66, 0.9) 58% 74%, transparent 74% 80%, rgba(106, 255, 170, 0.92) 80% 100%),
        linear-gradient(180deg, transparent 0 70%, rgba(255, 255, 255, 0.08) 70% 72%, transparent 72%);
    opacity: 0.9;
}

.laptop-base {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 220px;
    height: 48px;
    border-radius: 12px 12px 22px 22px;
    background: linear-gradient(180deg, #d5dae1, #9ca4af);
    clip-path: polygon(8% 0, 100% 0, 88% 100%, 0 100%);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.22);
}

.hero-figure .arm-left .hand,
.hero-figure .arm-right .hand {
    bottom: 8px;
}

.hero-figure .arm-left .hand {
    left: 54%;
}

.hero-figure .arm-right .hand {
    left: 46%;
}

.hero-badge {
    position: absolute;
    right: 8%;
    top: 8%;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(29, 8, 13, 0.92), rgba(12, 3, 6, 0.96));
    border: 1px solid rgba(255, 48, 82, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.hero-badge span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
}

.hero-badge strong {
    display: block;
    margin-top: 0.25rem;
    font-family: "Syne", sans-serif;
    font-size: 1.4rem;
}

.stats-band {
    gap: 1rem;
    margin-top: 0.8rem;
    margin-bottom: 4.5rem;
}

.stat-card,
.glass-card,
.project-panel,
.timeline-card,
.mini-card,
.education-card,
.contact-panel,
.story-card {
    background:
        linear-gradient(180deg, rgba(24, 6, 10, 0.92), rgba(8, 3, 5, 0.98)),
        var(--panel);
    border: 1px solid rgba(255, 48, 82, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.stat-card {
    flex: 1;
    padding: 1.4rem;
    border-radius: var(--radius-lg);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-family: "Syne", sans-serif;
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
}

section.section-shell {
    padding-bottom: 5.5rem;
}

.section-heading {
    margin-bottom: 2rem;
    max-width: 780px;
}

.section-heading h2,
.contact-copy h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.04;
    margin-top: 0.7rem;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.05fr 1.1fr;
    gap: 1.3rem;
    align-items: start;
}

.story-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.story-card p + p {
    margin-top: 1rem;
}

.skill-grid,
.project-grid,
.dual-grid,
.education-stack {
    display: grid;
}

.skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.glass-card {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    min-height: 210px;
}

.glass-card h3,
.project-body h3,
.timeline-head h3,
.mini-card h3,
.education-card h3 {
    margin-top: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 1.28rem;
}

.project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.project-panel {
    border-radius: 28px;
    overflow: hidden;
}

.project-visual {
    position: relative;
    min-height: 210px;
    padding: 1.4rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    font-weight: 800;
    color: #ffffff;
}

.project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.project-image-contain {
    inset: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    background: rgba(5, 8, 16, 0.78);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.project-visual-badge {
    position: relative;
    z-index: 1;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(9, 12, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}


.project-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 7, 7, 0.04), rgba(7, 7, 7, 0.52)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.12), transparent 28%);
    z-index: 0;
}

.project-visual-one {
    background: linear-gradient(135deg, #15596c, #274f8a 70%);
}

.project-visual-two {
    background: linear-gradient(135deg, #1e6078, #395a9b 70%);
}

.project-visual-servicenow {
    background: linear-gradient(135deg, #15695e, #345a9e 70%);
}

.project-visual-servicenow::before {
    background:
        linear-gradient(180deg, rgba(7, 7, 7, 0.08), rgba(7, 7, 7, 0.38)),
        radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.1), transparent 28%);
}

.project-body {
    padding: 1.6rem;
}

.project-index,
.timeline-date,
.edu-year {
    color: var(--accent-warm);
    font-size: 0.84rem;
}

.project-body ul,
.timeline-body ul {
    list-style: none;
    margin-top: 1rem;
}

.project-body li,
.timeline-body li {
    position: relative;
    padding-left: 1.1rem;
    margin-top: 0.8rem;
}

.project-body strong {
    color: var(--text);
    font-weight: 800;
}

.project-body li::before,
.timeline-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.project-tags,
.timeline-tags {
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.project-tags span,
.timeline-tags span {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 35, 77, 0.08);
    border: 1px solid rgba(255, 48, 82, 0.08);
    color: #f3dbe1;
    font-size: 0.88rem;
}

.project-links {
    margin-top: 1rem;
    gap: 0.75rem;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.58rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 35, 77, 0.14);
    border: 1px solid rgba(255, 48, 82, 0.18);
    color: var(--text);
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-links a:hover {
    transform: translateY(-2px);
    background: rgba(255, 35, 77, 0.2);
    border-color: rgba(255, 48, 82, 0.35);
}

.project-subsection {
    margin-top: 2.2rem;
}

.subsection-heading {
    margin-bottom: 1.2rem;
}

.subsection-heading h3 {
    margin-top: 0.55rem;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    color: var(--text);
    line-height: 1.1;
}

.service-project {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.1rem;
}

.project-meta-grid h4 {
    margin-bottom: 0.6rem;
    color: var(--text);
    font-size: 1rem;
}

.timeline-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.4rem;
}

.dual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.mini-card-grid {
    flex-direction: column;
    gap: 1rem;
}

.mini-card {
    padding: 1.3rem 1.4rem;
    border-radius: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 60, 94, 0.28);
}

.education-stack {
    gap: 1rem;
}

.education-card {
    padding: 1.6rem;
    border-radius: 24px;
}

.education-card strong {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--accent);
}

.contact-shell {
    padding-bottom: 6rem;
}

.contact-panel {
    padding: 2rem;
    border-radius: 32px;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 1rem;
}

.contact-list {
    flex-direction: column;
    gap: 0.9rem;
    justify-content: center;
}

.contact-list a,
.contact-list span {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 7, 10, 0.94), rgba(8, 3, 5, 0.96));
    border: 1px solid rgba(255, 48, 82, 0.08);
    color: #f1dde2;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0s);
}

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

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.story-card,
.glass-card,
.project-panel,
.timeline-card,
.mini-card,
.education-card,
.contact-panel,
.stat-card {
    position: relative;
    overflow: hidden;
}

.story-card::before,
.glass-card::before,
.project-panel::before,
.timeline-card::before,
.mini-card::before,
.education-card::before,
.contact-panel::before,
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 34%);
    pointer-events: none;
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(22px);
    }
}

@keyframes floatBob {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-12px);
    }
}

@keyframes figureBob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes spinOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes waveHand {
    0%,
    100% {
        transform: rotate(-8deg);
    }
    15% {
        transform: rotate(18deg);
    }
    30% {
        transform: rotate(-2deg);
    }
    45% {
        transform: rotate(16deg);
    }
    60% {
        transform: rotate(0deg);
    }
}

@media (max-width: 1100px) {
    .hero-frame {
        padding: 2.6rem 2rem 2rem;
        min-height: auto;
    }

    .hero-stage {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(100%, 420px);
        margin: 1.2rem auto 0;
    }

    .about-layout,
    .project-grid,
    .dual-grid,
    .contact-panel,
    .service-project,
    .project-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .top-nav,
    .header-cta,
    .social-rail {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .site-header {
        width: min(calc(100% - 20px), var(--max-width));
        margin-top: 10px;
    }

    .hero {
        padding-top: 1rem;
    }

    .hero-frame {
        border-radius: 28px;
    }

    .welcome-figure {
        min-height: 440px;
    }

    .stats-band {
        flex-direction: column;
        margin-bottom: 3rem;
    }

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

@media (max-width: 640px) {
    .section-shell,
    .stats-band {
        width: min(calc(100% - 20px), var(--max-width));
    }

    .hero-frame {
        padding: 1.8rem 1.1rem 1.4rem;
    }

    .hero h1 {
        font-size: 2.9rem;
    }

    .hero-role {
        font-size: 0.95rem;
    }

    .hero-summary {
        font-size: 0.98rem;
    }

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

    .button {
        width: 100%;
    }

    .welcome-figure {
        min-height: 410px;
    }

    .portrait-frame {
        width: min(68%, 250px);
        height: 350px;
        bottom: 0;
    }

    .hero-model-canvas {
        width: 100%;
    }

    .hero-badge {
        top: 6%;
        right: 4%;
        max-width: 160px;
    }

    .timeline-head {
        flex-direction: column;
    }

    .contact-panel,
    .timeline-card,
    .story-card,
    .glass-card,
    .education-card,
    .stat-card {
        padding: 1.3rem;
    }
}
