/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;700;900&display=swap');

:root {
    /* Colors */
    /* Colors */
    --primary: #55FFFF;
    --primary-hover: #33E3FF;
    --primary-glow: rgba(85, 255, 255, 0.5);

    --bg-dark: #0a0a0a;
    --bg-card: #171717;
    --bg-card-hover: #262626;

    --text-main: #ffffff;
    --text-muted: #a3a3a3;

    --border: #262626;

    /* Spacing */
    --container-padding: 2rem;
    --max-width: 1200px;

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.2;
}

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

ul,
ol {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-primary {
    color: var(--primary);
}

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

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

.text-green {
    color: #22c55e !important;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(85, 255, 255, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn.copied {
    background-color: #22c55e;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--bg-card);
    border-color: var(--text-muted);
}

.btn-discord {
    background-color: #5865F2 !important;
    /* Force Blurple */
    color: #fff !important;
    border: none;
    box-shadow: 0 0px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background-color: #4752c4 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    /* Added transition for smooth color change */
}

.logo:hover {
    color: var(--primary);
    /* Aqua on hover */
}

.logo img {
    height: 32px;
    width: auto;
    border-radius: 8px;
    /* Added rounded corners */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* Offset for fixed navbar */
    position: relative;
    /* Removed overflow: hidden to prevent background glow cutoff */
}

.hero-home {
    background-image: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('static/img/card2.png');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    /* Fixed top to ensure consistent glow position across pages */
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(120px);
    -webkit-filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(85, 255, 255, 0.1);
    border: 1px solid rgba(85, 255, 255, 0.2);
    border-radius: 2rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ip-container {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.ip-address {
    padding: 0 1rem;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Specific grid for about-us members to allow tighter cards */
.about-us-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.about-us-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 0.5rem 0 0.5rem;
    /* Minimal padding */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    /* Spotlight effect: Ellipse centered at bottom, sized to frame the skin */
    background: radial-gradient(ellipse 130px 280px at center bottom, #333 0%, var(--bg-card) 80%);
    gap: 0.5rem;
    text-align: center;
    max-width: 280px;
    /* Force card to be just wider than the 260px wide ellipse */
    margin: 0;
    /* removed auto margin to fix flex gap */
    width: 100%;
}

.about-us-card:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    background: radial-gradient(ellipse 140px 300px at center bottom, #444 0%, var(--bg-card-hover) 80%);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    padding: 2px;
}

.member-avatar-3d {
    width: auto;
    height: 300px;
    /* Fixed height for consistency */
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.about-us-card:hover .member-avatar-3d {
    transform: scale(1.02);
    /* Subtle zoom on hover */
}

.member-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-align: center;
    /* Explicitly center */
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.role-badge {
    display: none;
    /* Hidden as per request */
}

/* FAQ Section */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    padding: 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    padding-right: 4rem;
    transition: color 0.3s;
    user-select: none;
    font-family: 'Outfit', sans-serif;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary);
    transition: transform 0.3s ease, content 0.3s;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer {
    overflow: hidden;
}

.faq-answer p {
    padding: 0 2rem 2rem 2rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Features/Gamemodes */
.features {
    padding: 5rem 0;
    border-top: 2px solid var(--primary);
    /* Aqua and slightly thicker line */
    box-shadow: 0 -2px 10px rgba(85, 255, 255, 0.1);
    /* Subtle glow to match */
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.card-link:hover {
    transform: translateY(-5px);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.status-badge {
    position: absolute;
    top: -5px;
    /* Moved up 5px as requested */
    left: 0;
    /* Moved to left side */
    padding: 0.5rem 1rem;
    border-radius: 0.5rem 0 1rem 0;
    /* Squared top-left, rounded bottom-right */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.status-online {
    background: rgba(34, 197, 94, 0.2);
    /* Green background */
    color: #22c55e;
    /* Green text */
}

/* New Released - Explicitly Green */
.status-new {
    background: rgba(34, 197, 94, 0.2);
    /* Green background */
    color: #22c55e;
    /* Green text */
}

.status-offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-coming {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

/* Network Stats */
.network-stats {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-card));
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.05;
    z-index: 0;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}


/* Footer (Integrated from original idea but modernized) */
.site-footer {
    background-color: #050505;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    margin-top: 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h5 {
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* Responsive */
/* Mobile Adjustments */
@media (max-width: 768px) {

    /* --- Navbar --- */
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        order: 3;
        padding-top: 1rem;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links .lang-switcher {
        padding: 0.75rem 0;
        justify-content: flex-start;
    }

    .mobile-menu-btn {
        display: block !important;
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
        font-size: 1.5rem;
        padding: 0.5rem;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-container>.btn {
        order: 2;
        margin-left: auto;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* --- Hero --- */
    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero::before {
        width: 300px;
        height: 300px;
        filter: blur(80px);
        -webkit-filter: blur(80px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* --- Container --- */
    .container {
        padding: 0 1rem;
    }

    /* --- Section Headers --- */
    .section-header h2 {
        font-size: 1.8rem;
    }

    /* --- Gamemode Cards Grid --- */
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* --- About Us Grid --- */
    .about-us-grid {
        justify-content: center;
    }

    .about-us-card {
        max-width: 220px;
    }

    .member-avatar-3d {
        height: 220px;
    }

    .member-name {
        font-size: 1.2rem;
    }

    /* --- FAQ --- */
    .faq-question {
        font-size: 1.1rem;
        padding: 1.5rem;
        padding-right: 3.5rem;
    }

    .faq-answer p {
        padding: 0 1.5rem 1.5rem 1.5rem;
        font-size: 1rem;
    }

    .faq-question::after {
        right: 1rem;
        font-size: 1.5rem;
    }

    /* --- Stats Grid --- */
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .stat-icon i {
        font-size: 1.5rem;
    }

    /* --- Network Stats Section --- */
    .network-stats {
        padding: 3rem 0;
    }

    /* --- Features Section --- */
    .features {
        padding: 3rem 0;
    }

    /* --- Footer --- */
    .footer-top {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        text-align: center;
    }

    .footer-column {
        align-items: center;
        min-width: 120px;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* --- Legal Tabs --- */
    .tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* --- Contact Support Grid --- */
    .card h3 {
        font-size: 1.2rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

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

    .about-us-card {
        max-width: 180px;
    }

    .member-avatar-3d {
        height: 180px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        height: 24px;
    }
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.legal-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Article Typography */
.article-content {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 2.2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    color: var(--primary);
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    background: linear-gradient(to right, rgba(85, 255, 255, 0.1), transparent);
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content ul li {
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(85, 255, 255, 0.05);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-content a:hover {
    color: var(--primary-hover);
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

.article-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.article-content strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Scroll Down Arrow Animation */
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-down-arrow:hover {
    background-color: var(--primary);
    transform: translateX(-50%) scale(1.1);
}

.scroll-down-arrow i {
    color: var(--primary);
    font-size: 16px;
}

.scroll-down-arrow:hover i {
    color: #000;
}

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