@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Sora:wght@300;400;500;600;700&display=swap");

:root {
    --bg-0: #07131a;
    --bg-1: #0b1d26;
    --surface: rgba(9, 27, 36, 0.62);
    --surface-solid: #0f2a36;
    --text: #e9f7ff;
    --muted: #9dc2d0;
    --accent: #1de3cf;
    --accent-soft: rgba(29, 227, 207, 0.28);
    --line: rgba(157, 194, 208, 0.24);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Sora", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(29, 227, 207, 0.16), transparent 38%),
        radial-gradient(circle at 85% 15%, rgba(109, 198, 255, 0.16), transparent 35%),
        linear-gradient(145deg, var(--bg-0), var(--bg-1));
    text-align: center;
    line-height: 1.55;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 28px 20px;
    background-image:
        linear-gradient(180deg, rgba(2, 11, 16, 0.58), rgba(4, 16, 24, 0.84)),
        url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero h1 {
    margin: 0;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(58px, 9vw, 132px);
    letter-spacing: 1.8px;
    line-height: 0.9;
    text-shadow: 0 0 30px rgba(29, 227, 207, 0.45);
}

.hero p {
    margin: 6px 0 24px;
    font-size: clamp(14px, 2.2vw, 18px);
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--muted);
}

.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: none;
    margin: 0 auto 10px;
}

.social-link {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(7, 28, 39, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-link img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.3);
    transition: filter 0.25s ease;
}

.social-link:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: rgba(29, 227, 207, 0.12);
}

.social-link:hover img {
    filter: none;
}

.social-link::after {
    content: attr(aria-label);
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%) translateY(4px);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #d4edf8;
    background: rgba(4, 18, 25, 0.95);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-link:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.social-link.discord:hover {
    background: rgba(88, 101, 242, 0.22);
    border-color: #5865f2;
}

.social-link.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.social-link.twitch:hover {
    background: rgba(145, 70, 255, 0.2);
    border-color: #9146ff;
}

.social-link.kick:hover {
    background: rgba(83, 252, 24, 0.18);
    border-color: #53fc18;
}

.social-link.tiktok:hover {
    background: rgba(37, 244, 238, 0.2);
    border-color: #25f4ee;
}

.hero-more {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: min(760px, 100%);
}

.read-more {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.35px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 31, 43, 0.44);
    animation: bounceHint 1.8s ease-in-out infinite;
}

.quick-jumps {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    margin: 0 auto;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(5, 22, 31, 0.4);
}

.quick-jumps a {
    text-decoration: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 14px;
    background: transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-jumps a:hover {
    color: var(--bg-1);
    border-color: var(--accent);
    background: var(--accent);
}

/* SECTIONS */
.section {
    padding: 72px 20px;
}

.section:nth-of-type(odd) {
    background: linear-gradient(180deg, rgba(9, 31, 44, 0.45), rgba(9, 31, 44, 0));
}

.section h2 {
    margin: 0 0 14px;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
    font-size: clamp(36px, 5vw, 50px);
    text-shadow: 0 0 18px rgba(29, 227, 207, 0.28);
}

.section p {
    margin: 0 auto;
    max-width: 760px;
    color: var(--muted);
}

/* CARDS */
.cards {
    width: min(1200px, 100%);
    margin: 24px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    width: min(320px, 100%);
    padding: 22px;
    transition: transform 0.28s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card h3 {
    margin: 0 0 14px;
    font-size: 21px;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-soft);
    box-shadow: 0 20px 40px rgba(3, 11, 15, 0.45);
}

/* PROJECT CARDS: 2 per row, then wraps naturally */
.projects-cards .card {
    flex: 1 1 calc(50% - 18px);
    min-width: 320px;
    max-width: 580px;
    width: auto;
}

.iframe-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #030a0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.iframe-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* FOOTER */
.footer {
    padding: 26px 20px 30px;
    color: #87a9b8;
    font-size: 13px;
    letter-spacing: 0.3px;
}

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

@media (max-width: 900px) {
    .hero {
        min-height: 92vh;
    }

    .projects-cards .card {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 58px 16px;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }

    .socials {
        max-width: none;
        gap: 10px;
        margin-bottom: 14px;
    }

    .social-link img {
        width: 24px;
        height: 24px;
    }

    .social-link::after {
        display: none;
    }

    .quick-jumps {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
        gap: 7px;
        padding: 6px;
        border: 1px solid var(--line);
        background: rgba(5, 22, 31, 0.4);
    }

    .quick-jumps a {
        width: auto;
        border: 1px solid transparent;
        background: transparent;
    }

    .projects-cards .card {
        flex-basis: 100%;
        min-width: 0;
        max-width: none;
    }

    .card {
        border-radius: 18px;
        padding: 18px;
    }
}
