/* ==================== VARIABLES ==================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #22d3ee;
    --accent: #f472b6;
    --kofi: #ff5e5b;
    --success: #22c55e;
    --dark: #0f0f1a;
    --darker: #080810;
    --card: #16162a;
    --card-hover: #1e1e38;
    --border: #2a2a4a;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(8, 8, 16, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-logo i {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5em;
    cursor: pointer;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.05) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 30px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.hero-badge .pulse {
    font-size: 0.5em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: 4em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 1.3em;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.4);
}

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

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

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.5em;
    animation: bounce 2s infinite;
}

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

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

.section-header.light {
    color: var(--text);
}

.section-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1em;
}

/* ==================== FEATURES ==================== */
.features {
    padding: 120px 0;
    background: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2em;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--gradient);
    color: white;
}

.feature-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95em;
}

/* ==================== JOIN SECTION ==================== */
.join-section {
    padding: 120px 0;
    background: var(--darker);
}

.join-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

.join-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.join-content {
    flex: 1;
}

.join-content h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.join-content > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.ip-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--darker);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 20px;
}

.ip-address {
    font-family: 'Consolas', monospace;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--secondary);
    flex: 1;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.ip-note {
    color: var(--text-muted);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.join-image {
    flex-shrink: 0;
}

.minecraft-block {
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    color: white;
    animation: float-block 3s ease-in-out infinite;
}

@keyframes float-block {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ==================== DISCORD SECTION ==================== */
.discord-section {
    padding: 120px 0;
    background: var(--darker);
    position: relative;
}

.discord-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(88, 101, 242, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.discord-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.discord-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.discord-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.discord-feature:hover {
    border-color: #5865F2;
    transform: translateX(10px);
}

.discord-feature i {
    width: 50px;
    height: 50px;
    background: rgba(88, 101, 242, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    color: #5865F2;
    flex-shrink: 0;
}

.discord-feature h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.discord-feature p {
    color: var(--text-muted);
    font-size: 0.9em;
}

.discord-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #5865F2;
    color: white;
    text-decoration: none;
    padding: 16px 35px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.3);
}

.discord-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(88, 101, 242, 0.4);
    background: #4752C4;
}

.discord-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 15px;
}

.discord-widget-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    overflow: hidden;
}

.discord-widget-container iframe {
    border-radius: 12px;
    background: #2f3136;
}

.widget-help {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8em;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .discord-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .discord-feature {
        padding: 15px;
    }

    .discord-feature i {
        width: 40px;
        height: 40px;
        font-size: 1.1em;
    }
}

/* ==================== SUPPORT SECTION ==================== */
.support-section {
    padding: 120px 0;
    background: var(--dark);
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.support-info h3 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
}

.support-info > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.support-list {
    list-style: none;
    margin-bottom: 30px;
}

.support-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.support-list li i {
    color: var(--primary);
    font-size: 1.2em;
    width: 25px;
}

.thanks-box {
    display: flex;
    gap: 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 25px;
}

.thanks-box > i {
    font-size: 2em;
    color: var(--primary);
}

.thanks-box h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.thanks-box p {
    color: var(--text-muted);
    font-size: 0.95em;
}

.support-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
}

.kofi-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 94, 91, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5em;
    color: var(--kofi);
}

.support-card h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
}

.support-card > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.kofi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--kofi);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 94, 91, 0.3);
}

.kofi-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 94, 91, 0.4);
}

.kofi-button img {
    height: 24px;
}

.support-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 20px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--darker);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--primary);
}

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

.footer-links h4,
.footer-social h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--card);
    color: var(--text);
}

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

.social-link.discord:hover {
    background: #5865F2;
}

.social-link.twitter:hover {
    background: #1DA1F2;
}

.social-link.youtube:hover {
    background: #FF0000;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9em;
}

.footer-bottom i {
    color: var(--kofi);
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
    transition: transform 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2em;
    }

    .stat-divider {
        display: none;
    }

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

    .join-card {
        flex-direction: column;
        padding: 40px 30px;
        text-align: center;
    }

    .join-content h2 {
        font-size: 2em;
    }

    .ip-box {
        flex-direction: column;
    }

    .ip-address {
        font-size: 1.1em;
    }

    .minecraft-block {
        width: 150px;
        height: 150px;
        font-size: 4em;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .kofi-button {
        width: 100%;
    }
}
