:root {
    --primary: #6c38ff;
    --primary-dark: #5a2ce2;
    --secondary: #ff3e81;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f8f9fa;
    --gray: #2d2d2d;
    --glass: rgba(30, 30, 30, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 25% 25%, rgba(108, 56, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 62, 129, 0.15) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.glass-nav {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(108, 56, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 56, 255, 0.4);
}

.secondary-button {
    background: transparent;
    color: var(--light);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: rgba(108, 56, 255, 0.1);
    transform: translateY(-2px);
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
    user-select: none;
    text-align: left;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0;
    opacity: 0.8;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-smalltext {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../include/images/notionbg.png') center/cover no-repeat;
    opacity: 0.2;
    z-index: 1;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

.about-section {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 2rem;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(45, 45, 45, 0.5);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(108, 56, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.join-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(108, 56, 255, 0.1), rgba(33, 33, 33, 0.8));
}

.join-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.join-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer {
    background: var(--darker);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 50px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.credit {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
}

.credit a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    overflow-y: auto;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    margin: 20px auto;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modal-model {
    height: 200px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.7));
}

.modal-info {
    flex: 1;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.modal-description {
    padding: 1.5rem;
    background: rgba(45, 45, 45, 0.3);
    border-radius: 8px;
    line-height: 1.8;
    margin-top: 1rem;
}

.modal-description ul,
.modal-description ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.modal-description li {
    margin-bottom: 0.5rem;
    position: relative;
}

.modal-description p {
    margin-bottom: 1rem;
}

.modal-description p:last-child {
    margin-bottom: 0;
}

.modal-description a {
    text-decoration: underline;
    color: aliceblue;
}

@font-face {
    font-family: 'Minecraft';
    src: url('../font/jdgraphics-minecraft.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.mc-font {
    font-family: 'Minecraft', monospace;
}

.no-description {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 790px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-model {
        height: 150px;
    }

    .nav-container {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        height: 50px;
    }

    .mobile-menu-button {
        display: block;
        position: absolute;
        top: 1rem;
        right: 2rem;
        z-index: 10;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--light);
        cursor: pointer;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.2s ease;
        margin-top: 1rem;
    }

    .nav-links.show {
        max-height: 500px;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link.cta-button {
        margin-top: 0.5rem;
    }
}


@media (max-width: 400px) {
    .logo {
        width: 80%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

.nav-container.simple {
    align-items: start;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: transparent;
    pointer-events: none;
}