@font-face {
    font-family: "ChakraPetch";
    src: url("assets/fonts/chakraPetch/ChakraPetch-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MinecraftFont";
    src: url("assets/fonts/minecraftFont/MinecraftFont.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PlaypenSansHebrew";
    src: url("assets/fonts/PlaypenSansHebrew/PlaypenSansHebrew.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Komigo";
    src: url("assets/fonts/komigo/Komigo3D-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #050b16;
    --bg-soft: rgba(10, 17, 34, 0.78);
    --panel: rgba(13, 22, 43, 0.72);
    --panel-strong: rgba(15, 24, 45, 0.92);
    --line: rgb(255, 53, 90);
    --line-strong: rgb(255, 150, 171);
    --text: #f4f7ff;
    --muted: #a6b2ca;
    --accent: #ff4b78;
    --accent-soft: rgba(255, 75, 120, 0.16);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --container: min(1120px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(80, 115, 255, 0.16), transparent 32%),
        radial-gradient(circle at right 20%, rgba(255, 75, 120, 0.15), transparent 28%),
        linear-gradient(180deg, #040914 0%, #07111f 45%, #040813 100%);
    color: var(--text);
    font-family: "ChakraPetch", system-ui, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.page-glow {
    position: fixed;
    inset: auto;
    width: 32rem;
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.page-glow-left {
    top: -8rem;
    left: -8rem;
    background: rgba(56, 102, 255, 0.65);
}

.page-glow-right {
    right: -10rem;
    bottom: -10rem;
    background: rgba(255, 75, 120, 0.55);
}

.shell {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.profile-card {
    width: var(--container);
    display: grid;
    gap: 28px;
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        var(--bg-soft);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: calc(var(--radius-xl) - 6px);
    background:
        radial-gradient(circle at top right, rgba(255, 75, 120, 0.15), transparent 35%),
        radial-gradient(circle at left center, rgba(77, 108, 255, 0.22), transparent 26%),
        linear-gradient(135deg, rgba(10, 18, 35, 0.95), rgba(11, 19, 36, 0.72));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transform: translateX(-100%);
    animation: shine 9s linear infinite;
}

.hero__identity {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 28px);
    padding: clamp(20px, 4vw, 36px);
}

.avatar {
    flex: 0 0 auto;
    width: clamp(96px, 16vw, 156px);
    aspect-ratio: 1;
    border-radius: 24px;
    background: url("./assets/img/icon.png") center/cover no-repeat;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.45));
}

.hero__content {
    display: grid;
    gap: 10px;
}

.eyebrow,
.section-kicker,
.project-card__badge,
.other-role {
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.nick {
    font-family: "PlaypenSansHebrew", cursive;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 0.95;
}

.hero__description {
    max-width: 58ch;
    color: var(--muted);
    line-height: 1.6;
    font-size: clamp(0.95rem, 2vw, 1.06rem);
}

.section {
    display: grid;
    gap: 16px;
}

.section__head {
    display: grid;
    gap: 6px;
}

.section__head--split {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 16px;
}

.section-title {
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    text-transform: uppercase;
    line-height: 1;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.social-card,
.project-card,
.other-element-outer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(12, 20, 39, 0.94), rgba(9, 15, 29, 0.72));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.social-card::before,
.project-card::before,
.other-element-outer::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(120deg, rgba(255,255,255,0.12), transparent 30%, transparent 70%, rgba(255,255,255,0.08));
    opacity: 0;
    transition: opacity 220ms ease;
    z-index: -1;
}

.social-card:hover,
.social-card:focus-visible,
.project-card:hover,
.project-card:focus-visible,
.other-element-outer:hover,
.other-element-outer:focus-visible {
    border-color: var(--line-strong);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.social-card:hover::before,
.social-card:focus-visible::before,
.project-card:hover::before,
.project-card:focus-visible::before,
.other-element-outer:hover::before,
.other-element-outer:focus-visible::before {
    opacity: 1;
}

.social-card {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
}

.social-card__icon {
    width: 34px;
    aspect-ratio: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.discord .social-card__icon { background-image: url("./assets/img/discord2.png"); }
.twitter .social-card__icon { background-image: url("./assets/img/twitter.png"); }
.twitch .social-card__icon { background-image: url("./assets/img/twitch2.png"); }
.kick .social-card__icon { background-image: url("./assets/img/kick2.png"); }

.social-card__text {
    display: grid;
    gap: 4px;
}

.social-card__text strong {
    font-size: 1rem;
}

.social-card__text span {
    color: var(--muted);
    font-size: 0.92rem;
}

.social-card__arrow {
    color: var(--muted);
    font-size: 1.2rem;
    transition: transform 220ms ease, color 220ms ease;
}

.social-card:hover .social-card__arrow,
.social-card:focus-visible .social-card__arrow {
    transform: translateX(4px);
    color: var(--text);
}

.project-card {
    min-height: 220px;
    display: flex;
    align-items: end;
    background:
        linear-gradient(180deg, rgba(5, 10, 20, 0.18), rgba(6, 11, 21, 0.86)),
        radial-gradient(circle at top right, rgba(255, 75, 120, 0.24), transparent 32%),
        linear-gradient(135deg, #09101e, #0c1830);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 26%);
    pointer-events: none;
}

.project-card__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    padding: 24px;
}

.project-card h3 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
}

.project-card p {
    max-width: 54ch;
    color: var(--muted);
    line-height: 1.6;
}

.carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.carousel-button {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(11, 18, 34, 0.82);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(18, 28, 52, 0.98);
}

.carousel-button img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.other-slider-outer {
    overflow: hidden;
    
}

.other-slider {
    display: flex;
    gap: 16px;
    will-change: transform;
}

.other-slider.animate {
    transition: transform 320ms ease;
}

.other-element-outer {
    flex: 0 0 calc((100% - 32px) / 3);
    min-height: 214px;
    cursor: pointer;
}

.other-element {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding: 20px;
    backdrop-filter: blur(6px);
    background: linear-gradient(180deg, rgba(7, 13, 25, 0.5), rgba(7, 13, 25, 0.75));
    border-radius: var(--radius-md);
}

.other-element-outer.darqLite {
    background: url("./assets/img/darqLite/bg.jpeg") center/cover no-repeat;
}

.other-element-outer.neo {
    background: url("./assets/img/neo/bg.png") center/cover no-repeat;
}

.other-element-outer.wer {
    background: url("./assets/img/wer/bg.png") center/cover no-repeat;
}

.other-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.other-logo {
    width: 72px;
    aspect-ratio: 1;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.darqLite .other-logo {
    background-image: url("./assets/img/darqLite/icon.png");
}

.neo .other-logo {
    background-image: url("./assets/img/neo/icon.webp");
}

.wer .other-logo {
    background-image: url("./assets/img/wer/icon.png");
}

.other-nick {
    font-size: clamp(1.1rem, 2vw, 1.7rem);
    line-height: 1.2;
}

.darqLite .other-nick {
    font-family: "Komigo", cursive;
}

.neo .other-nick {
    font-family: "MinecraftFont", sans-serif;
    font-weight: 400;
}

.other-description {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    max-width: 100%;
}

.social-card:focus-visible,
.project-card:focus-visible,
.carousel-button:focus-visible,
.other-element-outer:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

@keyframes shine {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

@media (max-width: 980px) {
    .other-element-outer {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (max-width: 720px) {
    .shell {
        padding: 18px 12px;
    }

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

    .hero__identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .section__head--split {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .carousel-controls {
        justify-content: flex-start;
    }

    .other-slider-outer {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 2px;
    }

    .other-slider {
        transform: none !important;
        width: max-content;
    }

    .other-slider.animate {
        transition: none;
    }

    .other-element-outer {
        flex-basis: min(82vw, 280px);
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
