/* ═══════════════════════════════════════════
   RESET + BASE
═══════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Space Grotesk', sans-serif;
    background: #030816;
    color: #fff;
    scroll-behavior: smooth;
}

* { cursor: auto; }

body {
    overflow: hidden;
    background: #030816;
    -webkit-font-smoothing: antialiased;
    user-select: auto;
    -webkit-user-select: auto;
}

/* ═══════════════════════════════════════════
   BACKGROUND
═══════════════════════════════════════════ */
#bgCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
#enterOverlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: center;
    background: #030816;
    opacity: 1;
    transition: opacity .7s ease;
}
#enterOverlay.fade-out {
    opacity: 0;
    pointer-events: none;
}
#enterContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    animation: enterFadeIn 0.8s ease both;
}
@keyframes enterFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.enter-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.enter-cross {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 2.5rem;
    color: #fff;
    animation: enterGlow 2.5s ease-in-out infinite alternate;
}
.enter-name {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #fff;
    animation: enterGlow 2.5s ease-in-out infinite alternate;
}
.enter-sub {
    font-family: 'Orbitron', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.58);
    animation: enterGlow 2.5s ease-in-out infinite alternate;
}
@keyframes enterGlow {
    from { filter: drop-shadow(0 0 8px rgba(255,255,255,0.08)); }
    to   { filter: drop-shadow(0 0 32px rgba(255,255,255,0.55)); }
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════ */
#customCursor { display: none; }

/* ═══════════════════════════════════════════
   TAP RIPPLE
═══════════════════════════════════════════ */
.tap-ripple {
    position: fixed;
    width: 0; height: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.55);
    transform: translate(-50%,-50%);
    pointer-events: none;
    z-index: 99998;
    animation: tapRipple 0.7s ease-out forwards;
}
@keyframes tapRipple {
    to { width: 80px; height: 80px; opacity: 0; }
}
.tap-cross {
    position: fixed;
    transform: translate(-50%,-50%);
    pointer-events: none;
    z-index: 99998;
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    animation: tapCross 0.6s ease-out forwards;
}
@keyframes tapCross {
    to { opacity: 0; transform: translate(-50%,-110%) scale(1.5); }
}

/* ═══════════════════════════════════════════
   MUSIC TOGGLE
═══════════════════════════════════════════ */
.music-toggle {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 1000;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    transition: background 0.25s, color 0.25s;
}
.music-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ═══════════════════════════════════════════
   SCROLL DOTS (right side)
═══════════════════════════════════════════ */
.scroll-dots {
    position: fixed;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.scroll-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.18);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.scroll-dot.active {
    background: #fff;
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════
   SITE WRAPPER — SCROLL CONTAINER
═══════════════════════════════════════════ */
.site-wrapper {
    position: fixed;
    inset: 0;
    z-index: 10;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.site-wrapper::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════
   SECTIONS — shared
═══════════════════════════════════════════ */
.section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 1.2rem 5rem;
}

/* Scroll for more text button */
.scroll-btn {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.3);
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 1rem;
    white-space: nowrap;
    transition: color 0.3s;
    animation: scrollPulse 2.8s ease-in-out infinite;
}
.scroll-btn:hover { color: rgba(255,255,255,0.65); }
@keyframes scrollPulse {
    0%, 100% { opacity: 0.55; transform: translateX(-50%) translateY(0); }
    50%       { opacity: 1;    transform: translateX(-50%) translateY(-4px); }
}

/* ═══════════════════════════════════════════
   SECTION 1 — HERO
═══════════════════════════════════════════ */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    max-width: 420px;
}

/* DC tag images */
.tags-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}
.tag-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), filter 0.25s;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.1));
}
.tag-img:hover {
    transform: scale(1.45) translateY(-5px);
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.7));
}

/* Hero title — top of section (typewriter) */
.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
    min-height: 1.5em;
}
.hero-cursor-dev {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    animation: cursorBlink 1.1s step-end infinite;
    margin-left: 1px;
}

/* Avatar — no border-radius */
.hero-avatar-wrap { position: relative; }
.hero-avatar {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    object-fit: cover;
    animation: avatarFloat 4s ease-in-out infinite;
    display: block;
}
@keyframes avatarFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-9px); }
}

 

 
.hero-cursor {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    animation: cursorBlink 1.1s step-end infinite;
    margin-left: 1px;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Links row */
.links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    width: 100%;
}
.link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 50px;
    padding: 0.38rem 1rem;
    font-size: 0.73rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.link-item:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.26);
    color: #fff;
    transform: translateY(-2px);
}
.link-icon { font-size: 0.82rem; }
.link-label { white-space: nowrap; }

/* Stats — fixed bottom-left corner */
.stats-fixed {
    position: fixed;
    bottom: 1.2rem;
    left: 1.4rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.38);
    font-family: 'Space Grotesk', sans-serif;
}
.stats-fixed i { font-size: 0.72rem; }
.stat-sep { color: rgba(255,255,255,0.16); }

/* Widgets row */
.widgets-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

/* Discord widget */
.discord-widget {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.16);
    border-top: 1.5px solid rgba(255,255,255,0.28);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    display: flex;
    align-items: center;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.discord-widget:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.discord-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}
.discord-avatar-wrap { position: relative; flex-shrink: 0; }
.discord-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,0.1);
}
.discord-status-dot {
    position: absolute;
    bottom: 1px; right: 1px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ed4245;
    border: 2px solid #000000;
}
.discord-info {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
    overflow: hidden;
}
.discord-username {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}
.discord-activity {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.64rem;
}
.activity-label  { color: rgba(255,255,255,0.32); white-space: nowrap; }
.activity-name   { color: rgba(255,255,255,0.62); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   SECTION 2 — ABOUT & SKILLS
═══════════════════════════════════════════ */
/* Section 2 main heading (with crosses) */
.s2-main-heading {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 2rem;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.1em;
    text-align: center;
}
.s2-cross {
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
}

.s2-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
    max-width: 480px;
}
.s2-bio {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    text-align: center;
    line-height: 1.8;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
}
.s2-hi {
    color: #fff;
    font-weight: 600;
}
.s2-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.14), transparent);
}
.s2-heading {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* Pills */
.pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    justify-content: center;
    width: 100%;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 0.32rem 0.85rem;
    font-size: 0.71rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    font-family: 'Space Grotesk', sans-serif;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.pill:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.22);
    color: #fff;
    transform: translateY(-2px);
}
.pill img {
    width: 14px; height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}
.pill-fa { font-size: 0.8rem; }

/* ═══════════════════════════════════════════
   SECTION 3 — WORKS
═══════════════════════════════════════════ */
.s3-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    width: 100%;
    max-width: 860px;
}
.s3-heading {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 2rem;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.1em;
    text-align: center;
}
.s3-cross {
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
}

/* Works list */
.works-grid { display: flex; flex-direction: column; gap: 0.85rem; width: 100%; }
.work-card {
    --rx: 0deg; --ry: 0deg; --ty: 0px; --mx: 50%; --my: 0%;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.8rem 1.5rem 1.4rem;
    border-radius: 26px;
    transform-style: preserve-3d;
    box-shadow: 0 22px 44px -20px rgba(0,0,0,0.85), 0 2px 8px rgba(0,0,0,0.35);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.work-card.in-view { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty)); }
.work-card.tilting { transition: opacity 0.6s ease, transform 0.12s linear, box-shadow 0.4s ease; }
/* Glass pane (blur lives here so the card itself can stay 3D) */
.work-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(130,180,255,0.14), rgba(130,180,255,0.03) 45%, rgba(255,255,255,0.05));
    border: 1px solid rgba(120,175,255,0.22);
    box-shadow: inset 1.5px 1.5px 0 rgba(255,255,255,0.28), inset -1px -1px 0 rgba(255,255,255,0.05), inset 0 0 34px rgba(90,150,255,0.06);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
}
/* Highlight that follows the cursor */
.work-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    transform: translateZ(1px);
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(170,205,255,0.16), transparent 62%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.work-card.tilting::after { opacity: 1; }
.work-card.in-view:hover {
    --ty: -4px;
    box-shadow: 0 30px 56px -18px rgba(0,0,0,0.9), 0 0 44px rgba(80,140,255,0.12);
}
.work-num {
    flex: none;
    width: 2.3em;
    text-align: center;
    font: 700 clamp(2.2rem, 5vw, 3.4rem) 'Orbitron', sans-serif;
    color: rgba(80,150,255,0.22);
    transform: translateZ(8px);
    transition: color 0.3s ease;
}
.work-card:hover .work-num { color: rgba(110,175,255,0.4); }
.work-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.55rem; transform: translateZ(22px); }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.work-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font: 700 0.68rem 'Space Grotesk', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    border: 1px solid;
}
.work-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live     { color: #4ade80; background: rgba(34,197,94,0.10);  border-color: rgba(34,197,94,0.32); }
.badge-oss      { color: #60a5fa; background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.36); }
.badge-ended    { color: #fb923c; background: rgba(251,146,60,0.10); border-color: rgba(251,146,60,0.32); }
.badge-archived { color: #9ca3af; background: rgba(156,163,175,0.10); border-color: rgba(156,163,175,0.28); }
.badge-removed  { color: #f87171; background: rgba(239,68,68,0.10);  border-color: rgba(239,68,68,0.30); }
.work-kind { font: 600 0.72rem 'Space Grotesk', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(200,220,255,0.4); text-align: right; }
.work-title { font: 700 1.45rem 'Space Grotesk', sans-serif; letter-spacing: -0.01em; color: #fff; }
.work-desc { font-size: 0.92rem; line-height: 1.6; color: rgba(215,228,255,0.64); }
.work-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.15rem; }
.work-tags span { font: 500 0.75rem 'Space Grotesk', sans-serif; color: #7cc0ff; padding: 0.28rem 0.75rem; border-radius: 7px; background: rgba(70,150,255,0.08); border: 1px solid rgba(90,170,255,0.3); }
@media (max-width: 560px) {
    .work-card { gap: 0.8rem; padding: 1.2rem 1.1rem; }
    .work-num { width: 1.7em; font-size: 1.8rem; }
    .work-title { font-size: 1.2rem; }
    .work-kind { display: none; }
}

/* ═══════════════════════════════════════════
   ABOUT BUTTON
═══════════════════════════════════════════ */
.about-btn {
    position: fixed;
    top: 1.2rem;
    right: 4.2rem;
    z-index: 1000;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    transition: background 0.25s, color 0.25s;
}
.about-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ═══════════════════════════════════════════
   ABOUT PANEL
═══════════════════════════════════════════ */
.about-panel {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(5,5,8,0.96);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.about-panel.panel-open {
    opacity: 1;
    pointer-events: all;
}
.about-close-btn {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s;
}
.about-close-btn:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}
.about-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    max-width: 420px;
    padding: 2rem;
    text-align: center;
}
.about-heading {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 1.6rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.about-cross {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.4);
}
.about-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
}
.about-hi {
    color: #fff;
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   DISCORD STATUS COLORS
═══════════════════════════════════════════ */
.status-online  { background: #23a55a !important; }
.status-idle    { background: #f0b232 !important; }
.status-dnd     { background: #f23f43 !important; }
.status-offline { background: #80848e !important; }


/* Main identity */
.main-identity { align-self: flex-start; text-align: left; margin: 0 0 1.4rem clamp(1rem, 7vw, 7rem); animation: identityIn 1s ease both; }
.main-identity h1 { margin: 0; font-family: 'Orbitron', sans-serif; font-size: clamp(2.3rem, 6vw, 5rem); font-weight: 600; letter-spacing: 0.08em; color: #fff; animation: titleGlow 3.8s ease-in-out infinite; }
.main-identity p { margin: 0.4rem 0 0; color: rgba(255,255,255,0.78); font: 500 clamp(0.75rem, 1.3vw, 1rem) 'Space Grotesk', sans-serif; letter-spacing: 0.18em; transition: color .25s, text-shadow .25s; }
.main-identity p:hover, .main-identity p.copied { color: #fff; text-shadow: 0 0 16px rgba(255,255,255,.75); }
.dc-link { color: inherit; text-decoration: none; cursor: pointer; }
.dc-link:hover { text-decoration: underline; text-underline-offset: 0.35em; }
@keyframes identityIn { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes titleGlow { 0%, 100% { text-shadow: 0 0 0 rgba(255,255,255,0); transform: translateX(0); } 50% { text-shadow: 0 0 22px rgba(255,255,255,.3); transform: translateX(3px); } }

/* Skill cards — languages & apps */
.skills-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; width: min(760px, 92vw); }
.skill-card { --mx: 50%; --my: 0px; position: relative; width: 112px; min-height: 112px; padding: 1rem 0.6rem 0.85rem; border-radius: 18px; border: 1px solid rgba(150,195,255,0.16); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; background: radial-gradient(130px circle at var(--mx) var(--my), rgba(150,195,255,0.16), transparent 70%), linear-gradient(160deg, rgba(120,170,255,0.09), rgba(255,255,255,0.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 24px -14px rgba(0,0,0,0.9); transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease; }
.skill-card img { width: 44px; height: 44px; object-fit: contain; background: none; filter: drop-shadow(0 0 0.6px rgba(255,255,255,0.55)) drop-shadow(0 4px 10px rgba(0,0,0,0.45)); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.skill-card img[alt="Lua"] { filter: brightness(2.2) saturate(1.2) drop-shadow(0 0 0.6px rgba(255,255,255,0.55)) drop-shadow(0 4px 10px rgba(0,0,0,0.45)); }
.skill-card img[alt="GitHub"], .skill-card img[alt="JSON"] { filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(160,200,255,0.35)); }
.skill-card .skill-icon { width: 44px; height: 44px; display: grid; place-items: center; font-size: 2rem; color: #fff; filter: drop-shadow(0 0 8px rgba(160,200,255,0.3)); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.skill-card span { color: rgba(255,255,255,0.88); font: 600 0.72rem 'Space Grotesk', sans-serif; text-align: center; letter-spacing: 0.01em; }
.skill-card:hover { transform: translateY(-6px); border-color: rgba(150,195,255,0.4); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 18px 30px -14px rgba(0,0,0,0.9), 0 0 24px rgba(90,150,255,0.14); }
.skill-card:hover img, .skill-card:hover .skill-icon { transform: scale(1.12) rotate(-3deg); }
.works-empty { color: rgba(255,255,255,0.55); }



/* ═══════════════════════════════════════════
   ANIMATED BACKGROUND — deep blue + white that merge
═══════════════════════════════════════════ */
.bg-flow { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; isolation: isolate; background: radial-gradient(120% 90% at 50% 0%, #081633 0%, #030816 58%, #02040c 100%); }
.bg-flow .blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.bg-flow .b1 { top: -28vmax; left: -24vmax;  background: radial-gradient(circle, rgba(36,98,230,0.6) 0%, rgba(36,98,230,0) 62%);   animation: flowA 24s ease-in-out infinite alternate; }
.bg-flow .b2 { top: -8vmax;  right: -34vmax; background: radial-gradient(circle, rgba(235,243,255,0.36) 0%, rgba(235,243,255,0) 60%); animation: flowB 30s ease-in-out infinite alternate; }
.bg-flow .b3 { bottom: -34vmax; left: -6vmax;  background: radial-gradient(circle, rgba(20,70,190,0.65) 0%, rgba(20,70,190,0) 62%);  animation: flowC 28s ease-in-out infinite alternate; }
.bg-flow .b4 { bottom: -26vmax; right: -14vmax; background: radial-gradient(circle, rgba(215,230,255,0.28) 0%, rgba(215,230,255,0) 60%); animation: flowD 34s ease-in-out infinite alternate; }
@keyframes flowA { to { transform: translate3d(52vmax, 34vmax, 0) scale(1.18); } }
@keyframes flowB { to { transform: translate3d(-58vmax, 26vmax, 0) scale(0.92); } }
@keyframes flowC { to { transform: translate3d(46vmax, -40vmax, 0) scale(1.12); } }
@keyframes flowD { to { transform: translate3d(-52vmax, -30vmax, 0) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .bg-flow .blob { animation: none; } }

/* ═══════════════════════════════════════════
   HERO — buttons + stats
═══════════════════════════════════════════ */
.hero-content { max-width: 460px; }
.tags-row, .hero-actions, .hero-stats { opacity: 0; transform: translateY(14px); }
body.entered .tags-row     { animation: fadeUp 0.7s 0.15s cubic-bezier(.2,.8,.2,1) forwards; }
body.entered .hero-actions { animation: fadeUp 0.7s 0.30s cubic-bezier(.2,.8,.2,1) forwards; }
body.entered .hero-stats   { animation: fadeUp 0.7s 0.45s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-actions { display: flex; justify-content: center; gap: 0.8rem; width: 100%; margin-top: 0.5rem; }
.hero-btn { font: 600 0.85rem 'Space Grotesk', sans-serif; letter-spacing: 0.05em; color: #fff; padding: 0.72rem 1.7rem; border-radius: 999px; border: 1px solid rgba(160,200,255,0.3); background: rgba(120,170,255,0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease; }
.hero-btn.primary { background: #fff; color: #04112b; border-color: #fff; }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(80,140,255,0.35); background: rgba(150,195,255,0.2); }
.hero-btn.primary:hover { background: #fff; }
.hero-stats { display: flex; gap: 0.6rem; width: 100%; margin-top: 0.3rem; }
.stat { flex: 1; min-width: 0; padding: 0.8rem 0.5rem; border-radius: 14px; text-align: center; background: linear-gradient(160deg, rgba(130,180,255,0.12), rgba(255,255,255,0.03)); border: 1px solid rgba(150,195,255,0.18); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12); transition: transform .25s ease, border-color .25s ease; }
.stat:hover { transform: translateY(-3px); border-color: rgba(150,195,255,0.4); }
.stat b { display: block; font: 700 1.15rem 'Orbitron', sans-serif; letter-spacing: 0.04em; color: #fff; }
.stat span { display: block; margin-top: 0.3rem; font: 500 0.64rem 'Space Grotesk', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(200,220,255,0.6); }

/* Hero title centered to match the buttons and stats */
.main-identity { align-self: center; text-align: center; margin: 0 0 0.6rem; }
