@font-face {
    font-family: 'Good Times';
    src: url('../fonts/good_times.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --gaming-gradient: linear-gradient(135deg,
        #4A00E0,  /* Electric Purple */
        #8E2DE2,  /* Rich Purple */
        #3B14BA,  /* Deep Blue */
        #00BFFF   /* Sky Blue */
    );
    --gaming-gradient-soft: linear-gradient(135deg,
        rgba(74, 0, 224, 0.18),
        rgba(142, 45, 226, 0.18),
        rgba(0, 191, 255, 0.18)
    );
    --bg-dark-1: #05061a;
    --bg-dark-2: #0d0f2b;
    --text-color: #e7e8f5;
    --text-muted: #a9acc9;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(160deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 45%, #140b2e 75%, var(--bg-dark-1) 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Galaxy parallax background */
.galaxy-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.stars-layer {
    position: absolute;
    inset: -20%;
    will-change: transform;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: var(--peak, 0.8);
}

.stars-medium .star {
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.6);
}

.stars-large .star {
    box-shadow: 0 0 5px rgba(200, 220, 255, 0.9);
}

@media (prefers-reduced-motion: no-preference) {
    .star {
        animation: star-twinkle var(--dur, 5s) ease-in-out infinite;
        animation-delay: var(--delay, 0s);
    }
}

@keyframes star-twinkle {
    0%, 100% { opacity: calc(var(--peak, 0.8) * 0.25); }
    50% { opacity: var(--peak, 0.9); }
}

.shooting-stars {
    position: absolute;
    inset: 0;
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.9);
    transform: rotate(var(--angle, 25deg)) translateX(0);
    animation: shooting-star-fly var(--dur, 1.2s) linear forwards;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 130px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85));
    transform: translateY(-50%);
}

@keyframes shooting-star-fly {
    0% { transform: rotate(var(--angle, 25deg)) translateX(0); opacity: 1; }
    75% { opacity: 1; }
    100% { transform: rotate(var(--angle, 25deg)) translateX(var(--dist, 420px)); opacity: 0; }
}

.nebula {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle at 20% 30%, rgba(142, 45, 226, 0.25), transparent 45%),
        radial-gradient(circle at 80% 60%, rgba(0, 191, 255, 0.18), transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(74, 0, 224, 0.2), transparent 55%);
    filter: blur(40px);
}

@media (prefers-reduced-motion: no-preference) {
    .nebula {
        animation: nebula-drift 70s ease-in-out infinite alternate;
    }
}

@keyframes nebula-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

.aurora-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.aurora {
    position: absolute;
    left: -20%;
    width: 140%;
    height: 45%;
    background: linear-gradient(90deg,
        transparent,
        rgba(60, 255, 170, 0.25),
        rgba(120, 255, 200, 0.35),
        rgba(140, 90, 255, 0.3),
        rgba(0, 191, 255, 0.25),
        transparent
    );
    filter: blur(30px);
    mix-blend-mode: screen;
    opacity: 0;
    animation: aurora-pass var(--dur, 16s) ease-in-out forwards;
}

@keyframes aurora-pass {
    0% { opacity: 0; transform: translateX(-15%) skewY(-3deg); }
    15% { opacity: var(--peak, 0.5); }
    50% { opacity: var(--peak, 0.55); transform: translateX(5%) skewY(2deg); }
    85% { opacity: var(--peak, 0.45); }
    100% { opacity: 0; transform: translateX(20%) skewY(-2deg); }
}

.moon {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(0, 0, 0, 0.18) 6%, transparent 7%),
        radial-gradient(circle at 60% 55%, rgba(0, 0, 0, 0.14) 9%, transparent 10%),
        radial-gradient(circle at 42% 70%, rgba(0, 0, 0, 0.12) 5%, transparent 6%),
        radial-gradient(circle at 35% 35%, #fdfcf7 0%, #e4e1d8 45%, #b9b6ab 75%, #8f8c82 100%);
    box-shadow:
        0 0 30px 6px rgba(255, 255, 240, 0.22),
        0 0 70px 20px rgba(180, 170, 255, 0.1);
    will-change: transform;
}

.moon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow:
        0 0 70px 20px rgba(255, 255, 240, 0.6),
        0 0 130px 46px rgba(180, 170, 255, 0.28);
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .moon::after {
        animation: moon-glow-pulse 8s ease-in-out infinite;
        will-change: opacity;
    }
}

@keyframes moon-glow-pulse {
    0%, 100% { opacity: 0.5; }
    28% { opacity: 0.85; }
    52% { opacity: 0; }
    77% { opacity: 1; }
}

@media screen and (max-width: 768px) {
    .moon {
        width: 70px;
        height: 70px;
        top: 6%;
        right: 8%;
    }
}

h1, h2, h3, .motto, .logo-text {
    font-family: 'Good Times', sans-serif;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

a {
    color: inherit;
}

/* Top navigation */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: rgba(5, 6, 26, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.top-nav.scrolled {
    background: rgba(5, 6, 26, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--card-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    margin-right: -0.75rem;
    pointer-events: none;
    transition: opacity 0.25s ease, max-width 0.35s ease, margin-right 0.35s ease;
}

.top-nav.scrolled .nav-brand {
    opacity: 1;
    max-width: 350px;
    margin-right: 0;
    pointer-events: auto;
}

.nav-brand img {
    width: 42px;
    height: 42px;
    margin: 2px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.nav-brand span {
    font-family: 'Good Times', sans-serif;
    font-size: 1.1rem;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    width: 196px;
    height: 196px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 40px rgba(142, 45, 226, 0.5);
}

@media screen and (max-width: 768px) {
    .hero-logo {
        width: 90px;
        height: 90px;
    }
}

.hero .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #b8b3ff;
    background: rgba(74, 0, 224, 0.25);
    border: 1px solid rgba(142, 45, 226, 0.4);
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
}

.hero .motto {
    font-size: 1.25rem;
    color: #d8d8f0;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    background: var(--gaming-gradient);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 8px 24px rgba(74, 0, 224, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(74, 0, 224, 0.55);
}

/* Sections */
.section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.75rem;
    background: var(--gaming-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-color);
}

.about-text p + p {
    margin-top: 1rem;
}

.founder-info {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.founder-image {
    flex: 0 0 130px;
}

.founder-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.founder-details h3 {
    margin-bottom: 0.25rem;
    color: white;
}

.founder-details .founder-role {
    color: #b8b3ff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.founder-details p {
    color: var(--text-muted);
}

/* Values */
.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    padding: 1.75rem 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(142, 45, 226, 0.5);
}

.value-card i {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    background: var(--gaming-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-card h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Game / project cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 180px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-image.logo-showcase {
    background: var(--gaming-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem;
}

.project-image.logo-showcase img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-title {
    font-family: 'Good Times', sans-serif;
    background: var(--gaming-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.project-status {
    color: #9fe8ff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.project-card p.project-description {
    color: var(--text-muted);
    flex: 1;
}

.collaboration {
    display: inline-block;
    background: var(--gaming-gradient);
    color: white;
    padding: 0.3rem 0.85rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-top: 0.85rem;
    align-self: flex-start;
}

.project-card.placeholder {
    justify-content: center;
    align-items: center;
    text-align: center;
    border-style: dashed;
    color: var(--text-muted);
    min-height: 260px;
}

.project-card.placeholder i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #6a3093;
}

/* Social / community */
.social-section {
    background: var(--gaming-gradient-soft);
    padding: 3.5rem 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.social-section p.social-sub {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 0.5rem auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.social-link i {
    font-size: 1.4rem;
}

.x { background: linear-gradient(45deg, #333333, #000000); }
.instagram { background: linear-gradient(45deg, #833AB4, #FD1D1D, #F77737); }
.tiktok { background: linear-gradient(45deg, #000000, #25F4EE, #FE2C55); }
.twitch { background: linear-gradient(45deg, #9146FF, #6441A5); }
.youtube { background: linear-gradient(45deg, #FF0000, #CC0000); }
.patreon { background: linear-gradient(45deg, #FF424D, #141518); }

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: #b8b3ff;
    text-decoration: none;
}

/* Language switcher */
.language-switcher {
    position: relative;
}

.language-button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.language-button i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem;
}

.language-button.active i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(8, 9, 30, 0.95);
    border-radius: 0.8rem;
    overflow: hidden;
    display: none;
    flex-direction: column;
    min-width: 160px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    z-index: 950;
}

.language-dropdown.show {
    display: flex;
    animation: dropdownOpen 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownOpen {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.language-dropdown button {
    background: none;
    border: none;
    color: white;
    padding: 0.75rem 1.2rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-dropdown button:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 1.5rem;
}

.language-dropdown button[data-lang].active {
    background: rgba(142, 45, 226, 0.25);
    font-weight: 600;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5, 6, 26, 0.95);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-banner button {
    background: white;
    color: black;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cookie-banner button.reject {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-banner button:hover {
    transform: translateY(-1px);
}

.cookie-banner button.reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media screen and (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(5, 6, 26, 0.97);
        padding: 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--card-border);
        transform: translateY(-130%);
        transition: transform 0.3s ease;
    }

    .nav-links.show {
        transform: translateY(0);
    }

    .nav-toggle {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .container { padding: 1rem; }
    .hero h1 { font-size: 2.4rem; }
    .hero .motto { font-size: 1rem; }
    .section { padding: 1.5rem; }

    .founder-info {
        flex-direction: column;
        text-align: center;
    }

    .founder-image {
        margin: 0 auto;
    }

    .social-links { gap: 1rem; }

    .social-link {
        width: 100%;
        justify-content: center;
    }

    .section {
        background: rgba(13, 15, 43, 0.55);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .top-nav.scrolled {
        background: rgba(5, 6, 26, 0.92);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .nav-brand span { display: none; }
}
