/* ==========================================
   NEBULAGAMES | MAIN STYLESHEET
   Version 1.1
   ========================================== */


/* ---------- ROOT ---------- */

:root {
    --background: #080d16;
    --background-light: #0d1420;
    --surface: #111b29;
    --surface-hover: #172537;
    --primary: #35c9f5;
    --primary-dark: #159bc9;
    --primary-glow: rgba(53, 201, 245, 0.15);
    --text: #f4f8fc;
    --text-secondary: #9baabb;
    --border: rgba(255, 255, 255, 0.08);
    --red: #ed4d5c;
    --yellow: #e9c64d;
    --font-main: 'DM Sans', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --container: 1160px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.container {
    width: min(90%, var(--container));
    margin: 0 auto;
}

.section-padding {
    padding: 110px 0;
}


/* ---------- NAVIGATION ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 13, 22, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #42d9ff, #138cb8);
    border-radius: 10px;
    color: #06121a;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 21px;
    box-shadow: 0 0 25px rgba(53, 201, 245, 0.2);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 17px;
}

.brand-name span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links>a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-links>a:hover,
.nav-links>a.active {
    color: var(--primary);
}

.nav-links .nav-contact {
    padding: 10px 18px;
    border: 1px solid rgba(53, 201, 245, 0.4);
    border-radius: 6px;
    color: var(--primary);
}

.nav-contact span {
    margin-left: 5px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}


/* ---------- HERO ---------- */

.hero {
    position: relative;
    min-height: 690px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(53, 201, 245, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 201, 245, 0.035) 1px, transparent 1px);
    background-size: 65px 65px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    right: 5%;
    top: 5%;
    background: radial-gradient( circle, rgba(24, 160, 210, 0.17), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
}

.hero h1 {
    max-width: 850px;
    font-family: var(--font-heading);
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -3px;
}

.hero h1 span,
.section-heading h2 span,
.contact-content h2 span {
    color: var(--primary);
}

.hero-description {
    max-width: 570px;
    margin-top: 27px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    padding: 13px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: #06121a;
    box-shadow: 0 0 25px rgba(53, 201, 245, 0.15);
}

.btn-primary:hover {
    background: #72dfff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(53, 201, 245, 0.25);
}

.btn-secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-bottom {
    display: flex;
    gap: 13px;
    margin-top: 80px;
    color: #66788b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    flex-wrap: wrap;
}

.hero-separator {
    color: var(--primary);
}

.hero-decoration {
    position: absolute;
    right: 6%;
    bottom: -95px;
    font-family: var(--font-heading);
    font-size: clamp(200px, 30vw, 420px);
    font-weight: 800;
    color: rgba(53, 201, 245, 0.025);
    pointer-events: none;
}


/* ---------- SECTION HEADINGS ---------- */

.eyebrow {
    display: block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.section-heading>p {
    max-width: 560px;
    margin-top: 17px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
}


/* ---------- INTRODUCTION ---------- */

.intro-section {
    background: var(--background-light);
    border-bottom: 1px solid var(--border);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.intro-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 2;
    margin-bottom: 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-top: 12px;
}

.text-link span {
    transition: transform 0.3s;
}

.text-link:hover span {
    transform: translateX(5px);
}


/* ---------- PROJECTS ---------- */

.projects-section {
    background: var(--background);
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 48px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.35s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: rgba(53, 201, 245, 0.35);
}

.project-visual {
    position: relative;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.astralyx-card .project-visual {
    background: linear-gradient(135deg, #28131e, #130d17);
}

.velox-card .project-visual {
    background: linear-gradient(135deg, #292514, #17150d);
}

.project-visual-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.2;
}

.astralyx-card .project-visual-glow {
    background: var(--red);
}

.velox-card .project-visual-glow {
    background: var(--yellow);
}

.project-number {
    position: absolute;
    top: 22px;
    left: 23px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    letter-spacing: 2px;
}

.project-symbol {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 120px;
    font-weight: 800;
    opacity: 0.85;
}

.astralyx-card .project-symbol {
    color: var(--red);
    text-shadow: 0 0 50px rgba(237, 77, 92, 0.4);
}

.velox-card .project-symbol {
    color: var(--yellow);
    text-shadow: 0 0 50px rgba(233, 198, 77, 0.4);
}

.project-visual-name {
    position: absolute;
    bottom: 15px;
    right: 22px;
    font-size: 10px;
    letter-spacing: 4px;
    font-weight: 800;
    opacity: 0.4;
}

.project-info {
    padding: 27px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.project-category {
    color: var(--text-secondary);
    font-size: 9px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.project-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.active-status {
    color: #55d99c;
}

.active-status span {
    background: #55d99c;
}

.upcoming-status {
    color: var(--yellow);
}

.upcoming-status span {
    background: var(--yellow);
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 25px;
}

.project-info p {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.9;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.project-link span {
    transition: transform 0.3s;
}

.project-link:hover span {
    transform: translate(4px, -4px);
}


/* ---------- DEVELOPMENT ---------- */

.development-section {
    background: var(--background-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.development-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 50px;
}

.development-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: 0.3s ease;
}

.development-card:hover {
    border-color: rgba(53, 201, 245, 0.4);
    transform: translateY(-5px);
}

.development-icon {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
}

.development-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    margin-top: 25px;
}

.development-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.9;
    margin-top: 12px;
}


/* ---------- VALUES ---------- */

.values-section {
    background: var(--background);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.values-list {
    border-top: 1px solid var(--border);
}

.value-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.value-item>span {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
}

.value-item h3 {
    font-family: var(--font-heading);
    font-size: 16px;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
}


/* ---------- CONTACT ---------- */

.contact-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: radial-gradient( ellipse at 50% 100%, rgba(27, 161, 211, 0.17), transparent 65%), var(--background-light);
    border-top: 1px solid var(--border);
    text-align: center;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.2;
}

.contact-content p {
    max-width: 500px;
    margin: 20px auto 30px;
    color: var(--text-secondary);
    font-size: 14px;
}


/* ---------- FOOTER ---------- */

.site-footer {
    background: #060a11;
    border-top: 1px solid var(--border);
    padding: 65px 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 55px;
}

.footer-brand p {
    max-width: 290px;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.9;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-column h4 {
    color: var(--primary);
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 12px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-notice {
    padding: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #8796a8;
    font-size: 12px;
    line-height: 1.9;
}


/* ---------- FOOTER BOTTOM ---------- */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    color: #8796a8;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.footer-bottom span {
    line-height: 1.8;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 850px) {
    .nav-links {
        gap: 18px;
    }
    .intro-grid,
    .values-grid {
        gap: 45px;
    }
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .hero {
        min-height: 620px;
    }
}

@media (max-width: 650px) {
    .section-padding {
        padding: 75px 0;
    }
    .navbar {
        height: 72px;
    }
    .menu-toggle {
        display: block;
        z-index: 1002;
    }
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 5% 22px;
        background: #0b121e;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links>a {
        padding: 14px 0;
    }
    .nav-links .nav-contact {
        margin-top: 10px;
        text-align: center;
    }
    .hero {
        min-height: 630px;
    }
    .hero h1 {
        letter-spacing: -2px;
    }
    .hero-description {
        font-size: 14px;
    }
    .hero-bottom {
        margin-top: 55px;
        font-size: 9px;
        gap: 8px;
    }
    .intro-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .section-top {
        align-items: flex-start;
        flex-direction: column;
    }
    .project-grid,
    .development-grid {
        grid-template-columns: 1fr;
    }
    .project-visual {
        height: 200px;
    }
    .desktop-only {
        display: none;
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
    }
    .contact-section {
        padding: 75px 0;
    }
}


/* ---------- ACCESSIBILITY ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* FOOTER LEGAL LINKS */

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal a {
    color: #8492a6;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #42c8d8;
}

@media (max-width: 480px) {
    .footer-legal {
        gap: 15px;
    }
    .footer-legal a {
        font-size: 11px;
    }
}


/* ---------- NEBULAGAMES BRAND LOGO ---------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand-name {
    white-space: nowrap;
}


/* MOBILE LOGO */

@media (max-width: 480px) {
    .brand-logo {
        width: 32px;
        height: 32px;
        min-width: 32px;
        max-width: 32px;
    }
    .brand {
        gap: 7px;
    }
}


/* ---------- FOOTER BRAND LOGO ---------- */

.footer-brand .brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    max-width: 100%;
}

.footer-brand .brand-logo {
    width: 45px;
    height: 45px;
    min-width: 45px;
    max-width: 45px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-brand .brand-name {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .footer-brand .brand-logo {
        width: 35px;
        height: 35px;
        min-width: 35px;
        max-width: 35px;
    }
    .footer-brand .brand {
        gap: 8px;
    }
}


/* ==========================================
   NEBULAGAMES | ANIMATION SYSTEM
   Version 1.0
   ========================================== */


/* ---------- PAGE ENTRANCE ---------- */

@keyframes pageEntrance {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-enter {
    animation: pageEntrance 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}


/* ---------- SCROLL REVEAL ---------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------- HERO GLOW ---------- */

@keyframes ambientGlow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.hero-glow {
    animation: ambientGlow 9s ease-in-out infinite;
    will-change: transform, opacity;
}


/* ---------- STATUS INDICATOR ---------- */

@keyframes statusPulse {
    0%,
    100% {
        box-shadow: 0 0 7px var(--primary);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 17px var(--primary);
        opacity: 0.65;
    }
}

.status-dot {
    animation: statusPulse 2.5s ease-in-out infinite;
}


/* ---------- PROJECT VISUAL GLOW ---------- */

@keyframes projectGlow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.18;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.3;
    }
}

.project-visual-glow {
    animation: projectGlow 6s ease-in-out infinite;
}


/* ---------- CARD INTERACTIONS ---------- */

.project-card,
.development-card,
.contact-card,
.team-member-card,
.news-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.development-card:hover,
.contact-card:hover,
.team-member-card:hover,
.news-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}


/* ---------- BUTTON INTERACTIONS ---------- */

.btn,
.contact-button {
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover,
.contact-button:hover {
    box-shadow: 0 7px 28px rgba(53, 201, 245, 0.22);
}


/* ---------- BRAND INTERACTION ---------- */

.brand-logo {
    transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.06);
}


/* ---------- NAVIGATION INTERACTION ---------- */

.nav-links>a {
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links>a:hover {
    transform: translateY(-2px);
}


/* ---------- FOOTER INTERACTION ---------- */

.footer-column a {
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-column a:hover {
    transform: translateX(4px);
}


/* ---------- ACCESSIBILITY ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .page-enter {
        animation: none !important;
    }
}


/* ---------- MOBILE PERFORMANCE ---------- */

@media (max-width: 650px) {
    .hero-glow {
        animation-duration: 12s;
    }
    .project-visual-glow {
        animation-duration: 8s;
    }
    .reveal {
        transform: translateY(18px);
    }
}


/* ==========================================
   NEBULAGAMES | LIQUID WATER BACKGROUND
   Version 1.0
   ========================================== */

body {
    background-color: var(--background);
    background-image: radial-gradient( ellipse at 15% 25%, rgba(21, 155, 201, 0.12), transparent 38%), radial-gradient( ellipse at 85% 45%, rgba(53, 201, 245, 0.08), transparent 35%), radial-gradient( ellipse at 45% 90%, rgba(16, 105, 160, 0.12), transparent 40%);
    background-size: 180% 180%;
    background-attachment: fixed;
    animation: nebulaWaterFlow 18s ease-in-out infinite alternate;
}


/* ---------- WATER MOVEMENT ---------- */

@keyframes nebulaWaterFlow {
    0% {
        background-position: 0% 20%;
    }
    25% {
        background-position: 45% 65%;
    }
    50% {
        background-position: 100% 35%;
    }
    75% {
        background-position: 60% 100%;
    }
    100% {
        background-position: 10% 50%;
    }
}


/* ---------- SUBTLE WATER LIGHT ---------- */

.hero-glow {
    animation: ambientGlow 9s ease-in-out infinite, nebulaWaterFlow 18s ease-in-out infinite alternate;
}


/* ---------- MOBILE OPTIMIZATION ---------- */

@media (max-width: 650px) {
    body {
        background-attachment: scroll;
        animation-duration: 25s;
    }
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    body,
    .hero-glow {
        animation: none !important;
    }
}


/* ==========================================
   NEBULAGAMES | COMMUNITY SECTION
   Version 1.0
   ========================================== */

.community-section {
    background: var(--background-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.community-card {
    position: relative;
    overflow: hidden;
    padding: 75px 55px;
    background: radial-gradient( ellipse at 90% 15%, rgba(53, 201, 245, 0.15), transparent 45%), linear-gradient( 135deg, #111d2c, #0c1725);
    border: 1px solid rgba(53, 201, 245, 0.2);
    border-radius: 12px;
}

.community-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.community-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.community-content h2 span {
    color: var(--primary);
}

.community-content p {
    max-width: 560px;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
}

.community-button {
    margin-top: 30px;
    background: var(--primary);
    color: #06121a;
    box-shadow: 0 0 25px rgba(53, 201, 245, 0.13);
}

.community-button:hover {
    background: #72dfff;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(53, 201, 245, 0.25);
}

.discord-icon {
    font-size: 18px;
}

.community-note {
    display: block;
    margin-top: 25px;
    color: #72869b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.community-decoration {
    position: absolute;
    right: 35px;
    bottom: -75px;
    color: rgba(53, 201, 245, 0.045);
    font-family: var(--font-heading);
    font-size: clamp(150px, 22vw, 280px);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: transform 0.6s ease;
}

.community-card:hover .community-decoration {
    transform: translateY(-8px) rotate(-3deg);
}


/* ---------- COMMUNITY MOBILE ---------- */

@media (max-width: 650px) {
    .community-card {
        padding: 48px 25px;
    }
    .community-content h2 {
        font-size: 37px;
    }
    .community-content p {
        font-size: 13px;
    }
    .community-decoration {
        right: 5px;
        bottom: -35px;
        font-size: 150px;
    }
    .community-note {
        font-size: 8px;
        letter-spacing: 1.3px;
    }
}


/* ==========================================
   NEBULAGAMES | COPYRIGHT FOOTER
   Version 1.0
   ========================================== */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.copyright-logo {
    width: 52px;
    height: 52px;
    min-width: 52px;
    object-fit: contain;
    display: block;
}

.copyright-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.copyright-text strong {
    color: #aab6c7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.copyright-text span {
    color: #8796a8;
    font-size: 11px;
    line-height: 1.6;
}

.footer-tagline {
    color: #8796a8;
    font-size: 11px;
    text-align: right;
}


/* ---------- COPYRIGHT APPEARANCE ---------- */

.copyright-logo {
    filter: grayscale(100%);
    opacity: 0.25;
}

.copyright-text strong {
    color: #777783;
}

.copyright-text span {
    color: #777783;
}

.footer-tagline {
    color: #777783;
}


/* ---------- MOBILE ---------- */

@media (max-width: 650px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }
}


/* ==========================================
   NEBULAGAMES | CREDITS PAGE
   Version 1.0
   ========================================== */


/* ---------- CREDITS HERO ---------- */

.credits-page {
    overflow: hidden;
}

.credits-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 75% 45%, rgba(53, 201, 245, 0.13), transparent 40%), linear-gradient(135deg, #080d16, #0b1725 55%, #080d16);
    border-bottom: 1px solid var(--border);
}

.credits-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(53, 201, 245, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 201, 245, 0.035) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
}

.credits-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    padding-bottom: 90px;
}

.credits-overline {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.credits-overline-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 13px var(--primary);
}

.credits-hero h1 {
    margin-top: 30px;
    max-width: 800px;
    font-family: var(--font-heading);
    font-size: clamp(58px, 9vw, 105px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -5px;
}

.credits-hero h1 span {
    display: block;
    color: var(--primary);
}

.credits-hero-content>p {
    max-width: 560px;
    margin-top: 28px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 2;
}

.credits-hero-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 65px;
}

.credits-hero-bottom span {
    color: #74869a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.credits-hero-bottom span::before {
    content: "/";
    color: var(--primary);
    margin-right: 10px;
}

.credits-hero-mark {
    position: absolute;
    right: 6%;
    bottom: -75px;
    color: rgba(53, 201, 245, 0.035);
    font-family: var(--font-heading);
    font-size: clamp(200px, 32vw, 440px);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.credits-hero-mark span {
    color: rgba(53, 201, 245, 0.12);
}

.credits-orbit {
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(53, 201, 245, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.credits-orbit-one {
    top: -180px;
    right: -80px;
}

.credits-orbit-two {
    top: -120px;
    right: -20px;
    width: 300px;
    height: 300px;
}


/* ---------- INTRODUCTION ---------- */

.credits-intro {
    padding: 85px 0;
    background: #0c1420;
    border-bottom: 1px solid var(--border);
}

.credits-intro-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.credits-section-label {
    display: block;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.credits-intro h2,
.credits-section-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.credits-intro h2 span,
.credits-section-heading h2 span {
    color: var(--primary);
}

.credits-intro-inner>p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 2;
}


/* ---------- SECTION LAYOUT ---------- */

.credits-section {
    position: relative;
    padding: 100px 0;
    background: var(--background);
}

.credits-section-alt {
    background: #0b121e;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.credits-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 48px;
}

.credits-section-number {
    color: rgba(53, 201, 245, 0.12);
    font-family: var(--font-heading);
    font-size: 75px;
    font-weight: 800;
    line-height: 1;
}


/* ---------- CONTRIBUTOR CARDS ---------- */

.credits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.credit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    padding: 27px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(20, 35, 52, 0.95), rgba(12, 20, 32, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.credit-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -95px;
    top: -95px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.035;
    filter: blur(35px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.credit-card:hover {
    transform: translateY(-7px);
    border-color: rgba(53, 201, 245, 0.35);
    background: linear-gradient(145deg, #17283a, #0d1928);
}

.credit-card:hover::before {
    opacity: 0.12;
    transform: scale(1.4);
}

.credit-card-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.credit-card-category {
    color: #748ba1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.credit-card-symbol {
    color: rgba(53, 201, 245, 0.55);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
}

.credit-card-content {
    position: relative;
    z-index: 1;
    margin-top: 45px;
}

.credit-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.credit-card-content>p {
    min-height: 65px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.9;
}


/* ---------- CONTRIBUTOR IDENTITY ---------- */

.credit-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.credit-avatar {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    min-width: 39px;
    background: linear-gradient(135deg, #35c9f5, #147ba5);
    border-radius: 9px;
    color: #06121a;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
}

.credit-person>div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.credit-person strong {
    color: #e9f3fa;
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.credit-person small {
    margin-top: 2px;
    color: #8093a7;
    font-size: 10px;
}


/* ---------- SPECIAL CARD STYLES ---------- */

.credit-card-featured {
    border-color: rgba(53, 201, 245, 0.25);
    background: radial-gradient(ellipse at 100% 0%, rgba(53, 201, 245, 0.12), transparent 55%), linear-gradient(145deg, #15283a, #0d1928);
}

.credit-card-featured .credit-avatar {
    box-shadow: 0 0 18px rgba(53, 201, 245, 0.2);
}

.credit-card-leadership .credit-card-symbol {
    color: rgba(233, 198, 77, 0.65);
}

.credit-card-leadership:hover {
    border-color: rgba(233, 198, 77, 0.35);
}

.credit-card-leadership .credit-avatar {
    background: linear-gradient(135deg, #f1d56b, #b18b2c);
}


/* ---------- TECHNOLOGY LIST ---------- */

.credits-tools {
    padding: 100px 0;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.credits-tools-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 45px;
}

.credits-tool {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.credits-tool:hover {
    background: rgba(53, 201, 245, 0.045);
    border-color: rgba(53, 201, 245, 0.3);
}

.credits-tool-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    min-width: 43px;
    border-radius: 9px;
    background: rgba(53, 201, 245, 0.1);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
}

.credits-tool>div {
    display: flex;
    flex-direction: column;
}

.credits-tool strong {
    font-size: 12px;
    font-weight: 800;
}

.credits-tool small {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 10px;
}

.credits-external-link {
    display: inline-flex;
    gap: 9px;
    margin-top: 25px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.credits-external-link span {
    transition: transform 0.25s ease;
}

.credits-external-link:hover span {
    transform: translate(3px, -3px);
}


/* ---------- FINAL THANK YOU ---------- */

.credits-thanks {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(53, 201, 245, 0.13), transparent 65%), #0b1420;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.credits-thanks-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.credits-thanks h2 {
    max-width: 750px;
    margin: 0 auto;
    font-family: var(--font-heading);
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.2;
    letter-spacing: -2px;
}

.credits-thanks h2 span {
    display: block;
    color: var(--primary);
}

.credits-thanks p {
    max-width: 550px;
    margin: 22px auto 30px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 2;
}

.credits-team-button {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 14px 23px;
    background: var(--primary);
    border-radius: 6px;
    color: #06121a;
    font-size: 12px;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease;
}

.credits-team-button:hover {
    background: #72dfff;
    transform: translateY(-4px);
}

.credits-thanks-mark {
    position: absolute;
    right: 5%;
    bottom: -95px;
    color: rgba(53, 201, 245, 0.035);
    font-family: var(--font-heading);
    font-size: clamp(160px, 26vw, 300px);
    font-weight: 800;
    pointer-events: none;
}


/* ---------- TABLET ---------- */

@media (max-width: 900px) {
    .credits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .credits-intro-inner {
        gap: 40px;
    }
    .credits-tools-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 650px) {
    .credits-hero {
        min-height: 540px;
    }
    .credits-hero-content {
        padding-top: 75px;
        padding-bottom: 75px;
    }
    .credits-hero h1 {
        font-size: clamp(52px, 12vw, 75px);
        letter-spacing: -3px;
    }
    .credits-hero-content>p {
        font-size: 13px;
    }
    .credits-hero-bottom {
        gap: 15px;
        margin-top: 45px;
    }
    .credits-hero-bottom span {
        font-size: 8px;
    }
    .credits-hero-mark {
        right: -5%;
        font-size: 210px;
    }
    .credits-intro {
        padding: 70px 0;
    }
    .credits-intro-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .credits-section,
    .credits-tools {
        padding: 75px 0;
    }
    .credits-section-heading {
        align-items: flex-start;
        margin-bottom: 35px;
    }
    .credits-section-number {
        font-size: 48px;
    }
    .credits-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .credit-card {
        min-height: 255px;
        padding: 24px;
    }
    .credit-card-content {
        margin-top: 35px;
    }
    .credit-card-content>p {
        min-height: auto;
    }
    .credits-tools-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .credits-thanks {
        padding: 80px 0;
    }
    .credits-thanks h2 {
        font-size: 39px;
        letter-spacing: -1.5px;
    }
    .credits-thanks-mark {
        right: -10%;
        font-size: 170px;
    }
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    .credit-card,
    .credits-tool,
    .credits-team-button {
        transition: none !important;
    }
    .credit-card:hover,
    .credits-team-button:hover {
        transform: none;
    }
}


/* ---------- CREDITS AVATARS ---------- */

.credits-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    display: block;
}