@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
    --surface: #f8fafc;
    --surface-muted: #eef2f7;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --line: rgba(15, 23, 42, 0.1);
    --line-strong: rgba(15, 23, 42, 0.18);
    --text: #0f172a;
    --text-muted: #475569;
    --accent: #1e3a5f;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.06);
}

html.dark {
    --surface: #020617;
    --surface-muted: #0f172a;
    --panel: rgba(15, 23, 42, 0.84);
    --panel-strong: #0f172a;
    --line: rgba(148, 163, 184, 0.14);
    --line-strong: rgba(148, 163, 184, 0.22);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #cbd5e1;
    --shadow-soft: 0 24px 50px rgba(2, 6, 23, 0.45);
    --shadow-card: 0 16px 34px rgba(2, 6, 23, 0.36);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent 30%),
        linear-gradient(180deg, var(--surface) 0%, #ffffff 42%, var(--surface) 100%);
    color: var(--text);
}

html.dark body {
    background:
        radial-gradient(circle at top left, rgba(148, 163, 184, 0.08), transparent 28%),
        linear-gradient(180deg, #020617 0%, #0b1120 42%, #020617 100%);
}

h1,
h2,
h3 {
    font-family: 'Manrope', sans-serif;
}

header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: transparent;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

header.scrolled {
    background: rgba(248, 250, 252, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

html.dark header.scrolled {
    background: rgba(2, 6, 23, 0.82);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.34);
}

#wavelength {
    pointer-events: none;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.88)),
        linear-gradient(120deg, rgba(30, 58, 95, 0.08), rgba(148, 163, 184, 0.1));
    border-bottom: 1px solid var(--line);
}

html.dark #wavelength {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.98)),
        linear-gradient(120deg, rgba(100, 116, 139, 0.16), rgba(30, 41, 59, 0.2));
}

.hero-overlay {
    background:
        linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.03) 50%, transparent 100%),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 59px,
            rgba(15, 23, 42, 0.05) 60px
        );
    opacity: 0.65;
}

html.dark .hero-overlay {
    background:
        linear-gradient(90deg, transparent 0%, rgba(148, 163, 184, 0.05) 50%, transparent 100%),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 59px,
            rgba(148, 163, 184, 0.08) 60px
        );
    opacity: 0.45;
}

.animate-blob,
.animation-delay-4000 {
    animation: none;
}

.subtitle-shine {
    color: var(--text-muted);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-actions {
    align-items: stretch;
}

.hero-action-primary,
.hero-action-secondary {
    min-width: 250px;
    min-height: 56px;
    letter-spacing: 0.01em;
    border-width: 1px;
}

.hero-action-primary {
    border-color: rgba(15, 23, 42, 0.9);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.hero-action-primary:hover {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
}

.hero-action-secondary {
    background: rgba(255, 255, 255, 0.82);
}

html.dark .hero-action-secondary {
    background: rgba(15, 23, 42, 0.88);
}

.game-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    border-radius: 0.4rem;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

html.dark .game-card {
    background: rgba(15, 23, 42, 0.92);
}

.game-card:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 58, 95, 0.42);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

html.dark .game-card:hover {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(148, 163, 184, 0.3);
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.45;
    pointer-events: none;
}

html.dark .game-card::before {
    background:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    opacity: 0.28;
}

.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.66);
    position: relative;
    z-index: 1;
}

html.dark .game-card-meta {
    background: rgba(15, 23, 42, 0.72);
}

.game-card-index,
.game-card-tag,
.game-card-footer {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-card-index {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
}

.game-card-tag {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent);
}

.game-card-body {
    padding: 1.4rem 1.25rem 1.1rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.game-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.16rem;
    font-weight: 700;
    color: var(--text);
}

.game-card p {
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 1.15rem;
    border-top: 1px solid var(--line);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(248, 250, 252, 0.86);
    position: relative;
    z-index: 1;
}

.game-card-footer i {
    font-size: 0.8rem;
}

html.dark .game-card-footer {
    background: rgba(15, 23, 42, 0.78);
}

#skills {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.96));
}

html.dark #skills {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
}

#games {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 2.75rem 2.75rem;
    background-position: -1px -1px;
}

html.dark #games {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
}

.grid-background {
    background-color: transparent;
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-action-primary,
    .hero-action-secondary {
        width: min(100%, 320px);
    }

    .game-card {
        min-height: 0;
    }

    .game-card-body {
        padding: 1.2rem 1rem 0.95rem;
    }

    .game-card-meta,
    .game-card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #wavelength {
        border-bottom: none;
    }
}
