:root {
    color-scheme: dark light;
    --bg: #070b10;
    --panel: #0b1220;
    --muted: #8aa0b8;
    --brand: #22d3ee;
    --brand-2: #8b5cf6;
    --text: #e6edf3;
    --border: #132033;
    --glow: 0 0 24px rgba(34, 211, 238, 0.25),
        0 0 44px rgba(139, 92, 246, 0.15);
    --header-translate: 0px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
        Cantarell, Noto Sans, Helvetica Neue, Arial;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    user-select: none;
}

#intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 10;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.intro-content {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 6;
}

#animated-text {
    font-size: clamp(34px, 5vw, 64px);
    margin-bottom: 20px;
    text-shadow: var(--glow);
    color: var(--text);
    font-weight: 900;
    font-family: 'Century Gothic', sans-serif;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.bouncing-arrow {
    font-size: 24px;
    animation: bounce 1s infinite;
    margin-top: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

main {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1s ease, transform 1s ease;
}

main.visible {
    opacity: 1;
    transform: translateX(0);
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg,
        rgba(7, 11, 16, 0.85),
        rgba(7, 11, 16, 0.45));
    border-bottom: 1px solid var(--border);
    transform: translateY(0);
    transition: none;
}

@media (max-width: 768px) {
    header {
        display: none;
    }

    .container {
        width: 95vw;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: clamp(28px, 8vw, 48px);
    }

    .hero p {
        font-size: clamp(14px, 4vw, 16px);
        max-width: 90vw;
    }

    section {
        padding: 40px 0;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .col-12,
    .col-8,
    .col-6,
    .col-4 {
        grid-column: 1 / -1;
    }

    .about .stat {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .roster .member {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .status .row {
        flex-direction: column;
        gap: 8px;
    }

    .discord-layout {
        flex-direction: column;
        gap: 12px;
    }

    .center-text {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 12px 0;
    }

    .clan-column,
    .gang-column {
        text-align: center;
    }

    footer .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .mobile-menu-overlay a {
        font-size: 16px;
        padding: 10px 20px;
    }
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.logo {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.2s;
}

nav a.active,
nav a:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

main,
main section,
main .container {
    text-align: center;
}

.hero {
    position: relative;
    isolation: isolate;
    padding: 90px 0 70px;
    text-align: center;
    overflow: hidden;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 1;
}

.bg-grid {
    position: absolute;
    inset: -20%;
    opacity: 0.18;
    background-image: radial-gradient(#22d3ee 1px, transparent 1px);
    background-size: 22px 22px;
    mask: linear-gradient(#000, rgba(0, 0, 0, 0.1));
    z-index: -2;
    transform: translateZ(0);
}

canvas#fx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    filter: blur(0.2px);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 64px);
    margin: 6px 0 10px;
    line-height: 1.02;
    text-shadow: var(--glow);
}

.hero p {
    color: var(--muted);
    font-size: clamp(15px, 2vw, 18px);
    margin: 0 auto 20px;
    max-width: 820px;
}

section {
    padding: 56px 0;
}

h2 {
    font-size: clamp(22px, 2.8vw, 30px);
    margin: 0 0 16px;
}

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

.card {
    background: linear-gradient(180deg,
        var(--panel),
        rgba(11, 15, 20, 0.9));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.muted {
    color: var(--muted);
}

.about .stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.roster .member {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.12s ease;
    text-align: center;
}

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

.member.copied {
    outline: 2px solid #22d3ee;
    filter: brightness(1.07);
}

.events .event {
    border-left: 3px solid #22d3ee;
    padding-left: 12px;
}

.rules li {
    margin: 6px 0;
}

#rules .container.card {
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.02);
}

.status .row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

#status .container.card {
    text-align: center;
}

.discord-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.discord-column {
    flex: 1;
    min-width: 0;
}

.discord-column .badge {
    display: block;
    margin-bottom: 5px;
}

.clan-column {
    text-align: left;
}

.gang-column {
    text-align: right;
}

.center-text {
    text-align: center;
    flex: 2;
    padding: 0 20px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-text p {
    margin: 0;
    color: var(--text);
    font-size: 16px;
}

@media (max-width: 768px) {
    .discord-layout {
        flex-direction: column;
        gap: 16px;
    }

    .center-text {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 16px 0;
    }

    .clan-column {
        text-align: center;
    }

    .gang-column {
        text-align: center;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

footer {
    border-top: 1px solid var(--border);
    padding: 22px 0 42px;
    color: var(--muted);
    font-size: 14px;
}

.col-12 {
    grid-column: 1 / -1;
}

.col-8 {
    grid-column: span 8;
}

.col-6 {
    grid-column: span 6;
}

.col-4 {
    grid-column: span 4;
}

@media (max-width: 980px) {
    .col-8 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .col-6,
    .col-4 {
        grid-column: 1 / -1;
    }
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn.primary {
    background-color: #5865F2;
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

.btn.primary:hover {
    background-color: #4752C4;
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
}

.btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(88, 101, 242, 0.4);
}

.skill {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.12s ease;
}

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

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill:hover .progress-bar {
    opacity: 1;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}

.project {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.12s ease;
}

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