:root {
    --bg: #030712;
    --card: #0f172abd;            
    --card-border: #94a3b838;
    --text: #f8fafc;
    --body-text: #cbd5e1;
    --muted: rgba(203, 213, 225, 0.82);
    --accent: #22d3ee;           
    --accent-dark-text: #02111f; 
    --eyebrow: #7dd3fc;
    --green: #10b981;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--body-text);
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
}

section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 40px 96px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text);
    font-weight: 700;
}

.eyebrow {
    color: var(--eyebrow);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.section-heading h2 {
    font-size: 38px;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
    text-wrap: balance;
}

.section-heading p {
    margin: 0;
}

nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .logo svg {
    width: 24px;
    height: 24px;
}

nav .logo span,
.links a {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.links {
    display: flex;
    gap: 18px;
}

.links a {
    color: var(--body-text);
    text-decoration: none;
    transition: color 0.2s;
}

.links a:hover {
    color: var(--accent);
}

#home {
    padding: 80px 40px 96px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

#home h1 {
    font-size: 72px;
    letter-spacing: -0.06em;
    line-height: 0.95;
    margin: 0;
}

.avatar {
    width: 75px;
    height: 75px;
    object-fit: cover;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent);
    color: var(--accent-dark-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 13px 18px;
    border-radius: 12px;
    transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn.secondary {
    background-color: #0f172ab8;
    border: 1px solid #94a3b847;
    color: var(--text);
}

#home .intro {
    max-width: 640px;
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 18px;
}

.game-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 14px;
    min-height: 360px;
    box-shadow: 0 18px 55px #02061738;

    display: flex;
    flex-direction: column;
    gap: 16px;

    transition: transform 0.25s, border-color 0.25s;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: #22d3ee66;
}

.thumb {
    display: block;
    height: 170px;
    border-radius: 18px;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s;
}

.thumb:hover img {
    transform: scale(1.04);
}

.game-card h3 {
    font-size: 24px;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0;
    text-wrap: balance;
}

.game-card .desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(80px, 1fr));
    gap: 10px;
    margin-top: auto;
}

.stat {
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat.visits {
    background-color: #22d3ee14;
    border: 1px solid #22d3ee2e;
}

.stat.ccu {
    background-color: #10b98114;
    border: 1px solid #10b9812e;
}

.stat strong {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.stat span {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--eyebrow);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(40px, 1fr));
    gap: 16px;
}

.skill-card {
    background-color: var(--card);
    border: 1px solid #94a3b833;
    border-radius: 22px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-card svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skill-card h3 {
    font-size: 22px;
    line-height: 1.1;
    margin: 0;
}

.skill-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

#contact {
    padding: 88px 40px 64px;
}

.contact-card {
    background: linear-gradient(145deg, #082f49ad 0%, #0f172aeb 100%);
    border: 1px solid #22d3ee38;
    border-radius: 30px;
    padding: 42px 32px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.contact-card h2 {
    font-size: 38px;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
}

.contact-card p {
    max-width: 760px;
    margin: 0;
}

.btn.pill {
    border-radius: 999px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    section, nav, #home, #contact {
        padding-left: 20px;
        padding-right: 20px;
    }

    .card-grid,
    .skill-grid {
        grid-template-columns: 1fr;
    }

    #home h1 {
        font-size: 44px;
    }

    .section-heading h2,
    .contact-card h2 {
        font-size: 30px;
    }
}