:root {
    --bg-main: #0a0a0a;
    --bg-soft: #161616;
    --card-bg: #1b1b1b;
    --text-main: #f5f5f5;
    --text-muted: #b6b6b6;
    --accent: #ffffff;
    --neon: #9ee6ff;
    --accent-soft: rgba(255, 255, 255, 0.08);
    --border: #323232;
    --max-width: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.08), transparent 35%), var(--bg-main);
}

#shader-background {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

#shader-background canvas {
    width: 100% !important;
    height: 100% !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.76));
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 65%);
}

a {
    color: inherit;
}

.container {
    width: min(92%, var(--max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: transparent;
    border: 0;
}

.site-header__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 86px;
    padding: 0.9rem 0 0.5rem;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.14));
    backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 20px rgba(158, 230, 255, 0.14);
    animation: navEnter 0.6s ease both, liquidPulse 6s ease-in-out infinite;
}

.nav__group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.nav a {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    width: 0;
    height: 1px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(158, 230, 255, 0.55);
}

.nav a:hover::after {
    width: 62%;
}

.nav__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    margin: 0 0.3rem;
    flex: 0 0 auto;
    background: #151515;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07), 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 16px rgba(158, 230, 255, 0.18);
    transform: translateY(0);
    transition: transform 0.25s ease;
}

.nav__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav__avatar::after {
    display: none;
}

.nav__avatar:hover {
    transform: translateY(-2px) scale(1.03);
}

@keyframes navEnter {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes liquidPulse {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.08);
    }
}

.hero {
    padding: 4.2rem 0 4rem;
    text-align: center;
    animation: fadeUp 0.65s ease both;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.hero h1 {
    margin: 0 0 0.9rem;
    line-height: 1.12;
    font-size: clamp(2rem, 4vw, 3.2rem);
    text-shadow: 0 0 10px rgba(158, 230, 255, 0.35);
    animation: neonBreathe 4.5s ease-in-out infinite;
}

.hero p {
    margin: 0;
    color: var(--text-muted);
    max-width: 64ch;
    margin-inline: auto;
}

.hero__actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    text-decoration: none;
    font-weight: 600;
    padding: 0.72rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.25s ease;
}

.btn--primary {
    background: var(--accent);
    color: #0b0b0b;
}

.btn--primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 18px rgba(158, 230, 255, 0.32);
}

.btn--ghost {
    border-color: var(--border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
    border-color: var(--accent);
}

.section {
    padding: 1rem 0 3rem;
    text-align: center;
    animation: fadeUp 0.75s ease both;
}

.section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.card {
    background: rgba(27, 27, 27, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: #757575;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 14px rgba(158, 230, 255, 0.12);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card p {
    margin: 0;
    color: var(--text-muted);
}

.stack-slider {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.45rem;
    max-width: 920px;
    margin: 0 auto;
}

.stack-slider__track {
    display: flex;
    width: max-content;
    gap: 0.5rem;
    animation: stackSlide 24s linear infinite;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    font-size: 0.84rem;
    color: #e8e8e8;
    background: var(--accent-soft);
    white-space: nowrap;
}

.tag__icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes stackSlide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.stack-showcase {
    margin-top: 1.2rem;
    display: grid;
    gap: 1rem;
}

.stack-showcase__card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 1rem;
    align-items: center;
    text-align: left;
}

.stack-showcase__image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.stack-showcase__body h3 {
    margin: 0 0 0.45rem;
}

.stack-showcase__body p {
    margin: 0;
    color: var(--text-muted);
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
}

.project-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #232323;
}

.project-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.project-card a:hover {
    text-decoration: underline;
}

.social-section {
    padding-top: 0.5rem;
}

.social-box {
    border: 1px solid var(--border);
    background: rgba(22, 22, 22, 0.72);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 1rem;
}

.social-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #dbdbdb;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: #b8e9ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 14px rgba(158, 230, 255, 0.35);
}

.social-link__icon {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.social-link__img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.2);
}

.site-footer {
    margin-top: 1.4rem;
    padding: 1rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.footer-wrap {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.footer-main {
    margin: 0;
    font-weight: 700;
    color: #ececec;
}

.footer-main a {
    color: #78a9ff;
    text-decoration: underline;
}

.footer-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: #9ee6ff;
    background: rgba(158, 230, 255, 0.15);
    font-size: 0.72rem;
    font-weight: 800;
    vertical-align: middle;
}

.footer-title-icon__img {
    width: 0.9rem;
    height: 0.9rem;
    object-fit: contain;
}

.footer-sub {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes neonBreathe {
    0%,
    100% {
        text-shadow: 0 0 8px rgba(158, 230, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 16px rgba(158, 230, 255, 0.52);
    }
}

@media (max-width: 900px) {
    .nav {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 0.6rem;
    }

    .nav__group {
        flex-wrap: wrap;
    }

    .stack-showcase__card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stack-showcase__image {
        height: 160px;
    }
}
