/* ===== ROOT VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #00d4ff;
    --secondary-color: #ff6b35;
    --accent-color: #7c3aed;
    --bg-dark: #0a0a0f;
    --bg-darker: #05050a;
    --bg-card: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --text-muted: #8b8ba0;
    --border-color: #2a2a3e;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #f59e0b 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    
    /* Spacing */
    --container-max-width: 1200px;
    --container-padding: 20px;
    --section-padding: 80px 0;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Orbitron', monospace;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-small: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-large: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--font-display);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--section-padding);
}

.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.hero-title {
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.server-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0.8;
}

.server-ip, .server-version {
    font-family: var(--font-display);
    font-size: 0.9rem;
}

#server-ip {
    color: var(--primary-color);
    cursor: pointer;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: var(--gradient-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
}

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

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

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

.feature-card {
    background: var(--gradient-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left var(--transition-slow);
}

.feature-card:hover::before {
    left: 100%;
}

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

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

.feature-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    line-height: 1.7;
}

/* ===== STORE SECTION ===== */
.store {
    padding: var(--section-padding);
}

.store-section {
    margin-bottom: 4rem;
}

.store-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.store-section-title i {
    color: var(--primary-color);
}

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

.rank-card {
    background: var(--gradient-dark);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.rank-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    pointer-events: none;
}

.rank-card.popular {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rank-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.rank-header {
    margin-bottom: 2rem;
}

.rank-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.rank-card.bronze .rank-icon { color: #cd7f32; }
.rank-card.silver .rank-icon { color: #c0c0c0; }
.rank-card.gold .rank-icon { color: #ffd700; }
.rank-card.diamond .rank-icon { color: #b9f2ff; }
.rank-card.elite .rank-icon { color: #ff6b35; }
.rank-card.legend .rank-icon { color: #ff0080; }
.rank-card.champion .rank-icon { color: #7c3aed; }

.rank-name {
    font-size: 1.5rem;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.rank-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.rank-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.rank-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.rank-features i {
    color: var(--success-color);
    font-size: 0.8rem;
}

.rank-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.rank-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== COINS STORE ===== */
.coins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.coin-package {
    background: var(--gradient-dark);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.coin-package.popular {
    border-color: var(--secondary-color);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.coin-package:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.coin-header {
    margin-bottom: 1.5rem;
}

.coin-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.coin-amount {
    font-size: 2rem;
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.coin-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.coin-description {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.coin-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.coin-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== STATS SECTION ===== */
.stats {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

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

.stats-card {
    background: var(--gradient-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

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

.stats-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.leaderboard-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.rank {
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
    min-width: 40px;
}

.player {
    flex: 1;
    margin-left: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.value {
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-display);
}

/* ===== COMMUNITY SECTION ===== */
.community {
    padding: var(--section-padding);
}

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

.community-card {
    background: var(--gradient-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

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

.community-card.discord:hover {
    border-color: #5865f2;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
}

.community-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.community-card.discord .community-icon {
    color: #5865f2;
}

.community-card.rules .community-icon {
    color: var(--warning-color);
}

.community-card.wiki .community-icon {
    color: var(--success-color);
}

.community-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.community-description {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.community-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.community-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== SUPPORT SECTION ===== */
.support {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.support-content {
    max-width: 600px;
    margin: 0 auto;
}

.support-card {
    background: var(--gradient-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.support-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-large);
}

.support-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.support-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.support-description {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.support-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.coffee-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.coffee-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
}

.coffee-amounts {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.amount-button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.amount-button:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

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

.footer-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

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

.server-details p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
        --section-padding: 60px 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-darker);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-large);
        border-top: 1px solid var(--border-color);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .server-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .ranks-grid {
        grid-template-columns: 1fr;
    }
    
    .coins-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .rank-card,
    .coin-package,
    .feature-card,
    .stats-card,
    .community-card,
    .support-card {
        padding: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .hero-content {
        padding: 60px 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

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

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #00b8d4;
}