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

html {
    scroll-behavior: smooth;
}

body {
    color: #f3f3f7;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 12% 8%,
            rgba(140, 124, 255, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 18%,
            rgba(0, 210, 255, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 75% 55%,
            rgba(255, 70, 180, 0.08),
            transparent 25%
        ),
        radial-gradient(
            circle at 25% 85%,
            rgba(70, 100, 255, 0.10),
            transparent 30%
        ),
        #08090d;
}

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

/* =========================
   NAVIGATION
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 9, 13, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.nav-container {
    width: min(1150px, 90%);
    margin: auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    transition: transform 0.25s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo span {
    color: #8c7cff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    position: relative;
    color: #9699a7;
    font-size: 13px;
    font-weight: 600;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: #8c7cff;
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    width: 100%;
}

.menu-button {
    display: none;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 100vh;
    width: min(1150px, 90%);
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 80px;
    overflow: visible;
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: 5%;
    right: -200px;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.20),
            rgba(0, 210, 255, 0.08) 35%,
            transparent 70%
        );
    pointer-events: none;
    animation: heroGlow 7s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    animation: heroEnter 1s ease both;
}

.eyebrow {
    color: #8c7cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 18px;
    animation: fadeUp 0.8s 0.1s ease both;
}

.hero h1 {
    font-size: clamp(60px, 10vw, 125px);
    line-height: 0.95;
    letter-spacing: -6px;
    margin-bottom: 30px;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero h1 span {
    color: #8c7cff;
    animation: pulseAccent 3s ease-in-out infinite;
}

.hero-description {
    max-width: 650px;
    color: #979aa8;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 35px;
    animation: fadeUp 0.8s 0.3s ease both;
}

/* =========================
   BUTTONS
========================= */

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.4s ease both;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;
}

.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent
    );
    transition: left 0.5s ease;
}

.button:hover::before {
    left: 100%;
}

.button.primary {
    background: #8c7cff;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(140, 124, 255, 0.18);
}

.button.primary:hover {
    transform: translateY(-3px);
    opacity: 0.92;
    box-shadow: 0 12px 35px rgba(140, 124, 255, 0.28);
}

.button.secondary {
    border: 1px solid #292b35;
    color: #ffffff;
}

.button.secondary:hover {
    border-color: #8c7cff;
    transform: translateY(-3px);
}

/* =========================
   QUICK STATS
========================= */

.quick-stats {
    display: flex;
    gap: 70px;
    margin-top: 100px;
    padding-top: 30px;
    border-top: 1px solid #20222b;
    animation: fadeUp 0.8s 0.5s ease both;
}

.stat {
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
}

.stat:hover {
    transform: translateY(-4px);
}

.stat strong {
    font-size: 32px;
    letter-spacing: -1px;
}

.stat span {
    color: #777b89;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* =========================
   SECTIONS
========================= */

.section {
    width: min(1150px, 90%);
    margin: auto;
    padding-top: 120px;
    padding-bottom: 120px;
}

.section.dark {
    width: 100%;
    padding-left: max(5%, calc((100% - 1150px) / 2));
    padding-right: max(5%, calc((100% - 1150px) / 2));
    background: #0c0e13;
}

.section-heading {
    margin-bottom: 55px;
}

.section-number {
    color: #8c7cff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section h2 {
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1;
    letter-spacing: -3px;
}

.section-subtitle {
    color: #777b89;
    margin-top: 16px;
    font-size: 14px;
}

/* =========================
   ABOUT
========================= */

.about-content {
    max-width: 780px;
}

.about-content p {
    color: #a3a6b2;
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.about-content p:nth-child(2) {
    animation-delay: 0.12s;
}

/* =========================
   TESTING EXPERIENCE
========================= */

.games-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #20222b;
}

.game-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 5px;
    border-bottom: 1px solid #20222b;
    transition:
        padding 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.game-row:hover {
    padding-left: 14px;
    padding-right: 14px;
    background: #101218;
    transform: translateX(4px);
}

.game-info {
    min-width: 0;
}

.game-info h3 {
    font-size: 17px;
    margin-bottom: 3px;
    transition: color 0.2s ease;
}

.game-row:hover .game-info h3 {
    color: #ffffff;
}

.game-info span {
    color: #777b89;
    font-size: 12px;
}

.game-status {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        text-shadow 0.2s ease;
}

/* TESTING STATUS */

.game-status.testing {
    color: #42e878;
}

/* TESTED STATUS */

.game-status.tested {
    color: #ff4f5e;
}

/* IN DEVELOPMENT */

.game-status.development {
    color: #777b89;
}

.game-row:hover .game-status {
    transform: translateX(-3px);
}

.game-status.testing {
    text-shadow: 0 0 12px rgba(66, 232, 120, 0.35);
}

.stats-note {
    color: #5f6270;
    font-size: 11px;
    margin-top: 18px;
}

/* =========================
   STUDIOS
========================= */

.studio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.studio {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 17px;
    font-weight: 800;
}

.studio img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 50%;
    padding: 7px;
    background: #0b0d12;
    border: 1.3px solid #292b35;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.studio span {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

.studio:hover img {
    transform: scale(1.2);
    border-color: #8c7cff;
    background: #101218;
}

@media (hover: none) and (pointer: coarse) {
    .studio {
        cursor: pointer;
    }

    .studio.mobile-active {
        border-color: #8c7cff;
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    .studio.mobile-active::before {
        height: 100%;
    }

    .studio.mobile-active img {
        transform: scale(1.08);
        border-color: #8c7cff;
        background: #101218;
    }
}

/* =========================
   SKILLS
========================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.skill-card {
    position: relative;
    min-height: 230px;
    padding: 28px;
    background: #111319;
    border: 1px solid #20222b;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.skill-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -60px;
    bottom: -60px;
    background: radial-gradient(
        circle,
        rgba(140, 124, 255, 0.12),
        transparent 70%
    );
    transition: transform 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: #8c7cff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.skill-card:hover::after {
    transform: scale(2);
}

.skill-number {
    color: #8c7cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.skill-card h3 {
    margin-top: 40px;
    font-size: 20px;
}

.skill-card p {
    color: #777b89;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 10px;
}

.skill-card.skill-pressed {
    border-color: #8c7cff !important;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(140, 124, 255, 0.22);
    animation: skillPress 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================
   CONTACT
========================= */

.contact-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.contact-content {
    max-width: 700px;
}

.contact-content h2 {
    margin-bottom: 25px;
}

.contact-content > p:not(.section-number) {
    color: #777b89;
    font-size: 16px;
    margin-bottom: 30px;
}

/* =========================
   DISCORD CONTACT
========================= */

.discord-contact {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
    padding: 14px 18px;
    background: #111319;
    border: 1px solid #20222b;
    border-radius: 10px;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.discord-contact:hover {
    border-color: #8c7cff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(140, 124, 255, 0.12);
}

.discord-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #5865F2;
    color: #ffffff;

    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.discord-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.discord-contact:hover .discord-icon {
    transform: rotate(-5deg) scale(1.06);
}

.discord-info {
    display: flex;
    flex-direction: column;
}

.discord-info span {
    color: #777b89;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.discord-info strong {
    color: #ffffff;
    font-size: 14px;
}

/* =========================
   FOOTER
========================= */

footer {
    border-top: 1px solid #20222b;
    padding: 25px 0;
}

.footer-container {
    width: min(1150px, 90%);
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #555866;
    font-size: 11px;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroGlow {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-30px, 25px) scale(1.1);
        opacity: 1;
    }
}

@keyframes pulseAccent {
    0%,
    100% {
        text-shadow: 0 0 0 rgba(140, 124, 255, 0);
    }

    50% {
        text-shadow: 0 0 25px rgba(140, 124, 255, 0.35);
    }
}

@keyframes skillPress {
    0% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(3px) scale(0.97);
    }

    55% {
        transform: translateY(-8px) scale(1.025);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {
    .nav-links {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        background: rgba(11, 12, 16, 0.97);
        border-bottom: 1px solid #20222b;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-button {
        display: block;
    }

    .hero h1 {
        letter-spacing: -4px;
    }

    .quick-stats {
        gap: 35px;
    }

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

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

@media (max-width: 550px) {
    .nav-container {
        height: 64px;
    }

    .nav-links {
        top: 64px;
    }

    .hero {
        padding-top: 90px;
    }

    .hero h1 {
        font-size: 58px;
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 15px;
    }

    .quick-stats {
        gap: 25px;
        margin-top: 70px;
    }

    .stat strong {
        font-size: 25px;
    }

    .stat span {
        font-size: 9px;
    }

    .section {
        padding-top: 85px;
        padding-bottom: 85px;
    }

    .section.dark {
        padding-left: 5%;
        padding-right: 5%;
    }

    .section h2 {
        letter-spacing: -2px;
    }

    .game-row {
        padding: 18px 2px;
    }

    .game-row h3 {
        font-size: 15px;
    }

    .game-info span {
        font-size: 10px;
    }

    .game-status {
        font-size: 9px;
    }

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

    .skill-card {
        min-height: auto;
    }

    .footer-container {
        flex-direction: column;
    }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================
   GAME ICONS
========================= */

.game-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.game-info img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #20222b;
}

.game-details {
    min-width: 0;
}

/* =========================
   MOBILE GAME ROW ACTIVE
========================= */

@media (hover: none) and (pointer: coarse) {
    .game-row.mobile-active {
        padding-left: 14px;
        padding-right: 14px;
        background: #101218;
        transform: translateX(4px);
    }

    .game-row.mobile-active .game-info h3 {
        color: #ffffff;
    }

    .game-row.mobile-active .game-status {
        transform: translateX(-3px);
    }

    .game-row.mobile-active .game-info img {
        transform: scale(1.06);
        border-color: #8c7cff;
    }
}

/* =========================
   STUDIO MOBILE
========================= */

@media (hover: none) and (pointer: coarse) {
    .studio {
        cursor: pointer;
    }

    .studio.mobile-active {
        border-color: #8c7cff;
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    .studio.mobile-active::before {
        height: 100%;
    }
}

/* =========================
   STUDIO ICONS
========================= */

.studio {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 17px;
    font-weight: 800;
}

.studio img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 50%;
    padding: 7px;
    background: #0b0d12;
    border: 1.3px solid #292b35;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.studio:hover img {
    transform: scale(1.2);
    border-color: #8c7cff;
    background: #101218;
}

/* =========================
   MOBILE STUDIO
========================= */

@media (hover: none) and (pointer: coarse) {
    .studio.mobile-active {
        border-color: #8c7cff;
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    .studio.mobile-active::before {
        height: 100%;
    }

    .studio.mobile-active img {
        transform: scale(1.08);
        border-color: #8c7cff;
        background: #101218;
    }
}

/* =========================
   SECOND TAP
   No highlight, stays enlarged
========================= */

.studio.mobile-selected {
    transform: translateY(-5px);
}

.studio.mobile-selected img {
    transform: scale(1.08);
}

/* =========================
   BACKGROUND GRID
========================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}

html,
body {
    overflow-x: hidden;
}

/* =========================
   NAVBAR SCROLLED
========================= */

.navbar.scrolled {
    background: rgba(8, 9, 13, 0.96);
    border-bottom-color: rgba(140, 124, 255, 0.18);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
