/* --- Modern Design System --- */
:root {
    --primary-color: #0071e3;
    --secondary-color: #147ce5;
    --accent-color: #00b8ff;
    --text-color: #1d1d1f;
    --text-light: #86868b;
    --background: #ffffff;
    --card-bg: #f5f5f7;
    --nav-height: 44px;
    --section-padding: 60px 0;
    --border-radius: 18px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Custom Cursor --- */
* {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 2C8.268 2 2 8.268 2 16C2 23.732 8.268 30 16 30C23.732 30 30 23.732 30 16C30 8.268 23.732 2 16 2ZM16 28C9.373 28 4 22.627 4 16C4 9.373 9.373 4 16 4C22.627 4 28 9.373 28 16C28 22.627 22.627 28 16 28Z' fill='%230071e3'/%3E%3Cpath d='M16 8C11.582 8 8 11.582 8 16C8 20.418 11.582 24 16 24C20.418 24 24 20.418 24 16C24 11.582 20.418 8 16 8ZM16 22C12.686 22 10 19.314 10 16C10 12.686 12.686 10 16 10C19.314 10 22 12.686 22 16C22 19.314 19.314 22 16 22Z' fill='%230071e3'/%3E%3C/svg%3E") 16 16, auto;
}

a, button, .nav-links a, .cta-button, .join-button, .menu-btn, .nav-arrow {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 2C8.268 2 2 8.268 2 16C2 23.732 8.268 30 16 30C23.732 30 30 23.732 30 16C30 8.268 23.732 2 16 2ZM16 28C9.373 28 4 22.627 4 16C4 9.373 9.373 4 16 4C22.627 4 28 9.373 28 16C28 22.627 22.627 28 16 28Z' fill='%230071e3'/%3E%3Cpath d='M16 8C11.582 8 8 11.582 8 16C8 20.418 11.582 24 16 24C20.418 24 24 20.418 24 16C24 11.582 20.418 8 16 8ZM16 22C12.686 22 10 19.314 10 16C10 12.686 12.686 10 16 10C19.314 10 22 12.686 22 16C22 19.314 19.314 22 16 22Z' fill='%230071e3'/%3E%3C/svg%3E") 16 16, pointer;
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-color);
    background: var(--background);
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* --- Menu Navigation --- */
.menu-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.menu-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 980px;
    padding: 0 22px;
}

.logo h1 {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.004em;
}

/* --- Welcome Section --- */
.welcome-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--background);
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.welcome-content {
    max-width: 734px;
    padding: 0 20px;
    z-index: 1;
}

.welcome-content h1 {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-color);
}

.welcome-content p {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* --- Community Stats --- */
.community-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: #fafafa;
}

.stat-number {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 17px;
    line-height: 1.47059;
    color: var(--text-light);
}

/* --- Leadership Section --- */
.leadership-section {
    padding: var(--section-padding);
    background: var(--card-bg);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.leader-card {
    background: var(--background);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.leader-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
}

.leader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-name {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-color);
    margin: 12px 0 4px;
}

.leader-role {
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-light);
    margin-bottom: 12px;
}

.leader-bio {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-light);
}

/* --- Rules Section --- */
.rules-section {
    padding: var(--section-padding);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
}

.rule-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
    text-align: left;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.rule-number {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.rule-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
}

/* --- Description Section --- */
.description-section {
    padding: var(--section-padding);
    background: var(--card-bg);
}

.description-content {
    max-width: 734px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.description-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 16px;
    text-align: left;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.description-text:last-child {
    margin-bottom: 0;
}

/* --- Join Section --- */
.join-section {
    padding: var(--section-padding);
    text-align: center;
}

.join-button {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 980px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: var(--transition);
}

.join-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    background: var(--background);
    color: var(--text-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.16);
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

footer p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* --- Loading Animation Styles --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.loading-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    position: relative;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
}

.loading-progress {
    width: 200px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.loading-text {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-light);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design --- */
@media (max-width: 1068px) {
    .welcome-content h1 {
        font-size: 40px;
    }

    .menu-item h2 {
        font-size: 32px;
    }

    .carousel-stats {
        gap: 20px;
    }

    .stat-item {
        padding: 16px 32px;
        min-width: 180px;
    }
}

@media (max-width: 734px) {
    .welcome-content h1 {
        font-size: 32px;
    }

    .welcome-content p {
        font-size: 20px;
    }

    .menu-item h2 {
        font-size: 28px;
    }

    .menu-item p {
        font-size: 18px;
    }

    .carousel-stats {
        margin-top: 30px;
    }

    .stat-item {
        padding: 16px 32px;
    }

    .loading-logo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .welcome-content h1 {
        font-size: 28px;
    }

    .welcome-content p {
        font-size: 18px;
    }

    .menu-item h2 {
        font-size: 24px;
    }

    .menu-item p {
        font-size: 16px;
    }

    .nav-arrow {
        width: 36px;
        height: 36px;
    }
}

/* --- Menu Carousel --- */
.menu-carousel {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background: var(--background);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    will-change: transform;
}

.menu-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
    position: relative;
    background: var(--background);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.menu-item h2 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000000;
    margin-bottom: 16px;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    z-index: 2;
}

.menu-item p {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #000000;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    z-index: 2;
}

/* --- Carousel Stats --- */
.carousel-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 600px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    background: var(--card-bg);
    padding: 20px 40px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.stat-label {
    font-size: 16px;
    line-height: 1.4;
    color: #000000;
    font-weight: 600;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Navigation Arrows --- */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.16);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
    left: 20px;
}

.nav-arrow.right {
    right: 20px;
}

.nav-arrow i {
    font-size: 16px;
    color: var(--text-color);
}

/* --- Content Section --- */
.content-section {
    background: var(--background);
    padding: var(--section-padding);
}

.content-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.content-container.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* --- Stats Content --- */
#stats-content {
    display: none;
}

#about-content .description-content {
    margin-top: 40px;
}

.description-text {
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 16px;
    text-align: left;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 500;
}

.menu-buttons {
    display: flex;
    gap: 20px;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.menu-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.menu-btn:hover {
    color: var(--primary-color);
}

.menu-btn:hover::after {
    width: 100%;
}

.menu-btn.active {
    color: var(--primary-color);
}

.menu-btn.active::after {
    width: 100%;
}

@media (max-width: 734px) {
    .menu-buttons {
        display: none;
    }
} 