/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --discord-color: #5865f2;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --light-text: #ffffff;
    --muted-text: #aaaaaa;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(46, 204, 113, 0.3);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg), #1a3c40);
    color: var(--light-text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER STYLES ===== */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--light-text);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    position: relative;
}

.logo-icon::after {
    content: '🌵';
    position: absolute;
    font-size: 28px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--muted-text);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-discord {
    background: var(--discord-color);
    color: white;
    border-color: var(--discord-color);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

/* ===== CACTUS SUPPORT THEME ===== */
.support-wrapper {
    --primary-color: #d500f9;
    /* Vivid Purple */
    --secondary-color: #aa00ff;
    /* Deep Purple */
    --border-color: rgba(213, 0, 249, 0.3);
    /* Apply background to the wrapper so it covers the page content area */
    background: linear-gradient(135deg, var(--darker-bg), #2a0a2e);
    min-height: 80vh;
    /* Ensure it takes up space */
}

/* Ensure purple applies to headings inside */
.support-wrapper h2,
.support-wrapper h3,
.support-wrapper .section-title {
    /* Variables should handle colors, but just in case */
}

.btn-support {
    background: #d500f9;
    color: white;
    border-color: #d500f9;
}

.btn-support:hover {
    background: #aa00ff;
    box-shadow: 0 5px 15px rgba(213, 0, 249, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #0d0d0d, #1a3c40);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), #4cd964);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted-text);
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ===== STATS STYLES ===== */
.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 15px;
    min-width: 150px;
    border: 1px solid rgba(46, 204, 113, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== HERO BUTTONS ===== */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== SECTION STYLES ===== */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* ===== FEATURES STYLES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.1);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* ===== COMMANDS STYLES ===== */
.command-section {
    margin-bottom: 50px;
}

.command-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    font-size: 1.6rem;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.command-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.command-item:hover {
    transform: translateX(5px);
    background: rgba(46, 204, 113, 0.1);
}

.command-name {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1rem;
}

.command-desc {
    color: var(--muted-text);
    font-size: 0.9rem;
    margin-top: 8px;
    line-height: 1.5;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: #0d0d0d;
    padding: 4rem 0 2rem;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: var(--muted-text);
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--muted-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* ===== CODE STYLES ===== */
code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* ===== TIP BOX ===== */
.tip-box {
    background: rgba(46, 204, 113, 0.1);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    margin: 30px 0;
}

.tip-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tip-box ul {
    color: var(--muted-text);
    padding-left: 20px;
}

.tip-box li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #1a3c40, #2c5364);
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
    border-radius: 20px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--muted-text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .stats {
        gap: 20px;
    }

    .stat-item {
        min-width: calc(50% - 10px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .command-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stat-item {
        min-width: 100%;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 1s ease-out;
}

/* ===== LOGO STYLES ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--light-text);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(46, 204, 113, 0.1);
    padding: 5px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* ===== RESPONSIVE LOGO ===== */
@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }
}