/* ============================================
   STACKHOLD - PREMIUM PERFORMANCE DARK THEME
   Luxury feel with optimized performance
============================================ */

:root {
    /* Deep Luxury Colors */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: rgba(20, 20, 30, 0.85);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    
    /* Premium Accents */
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-glow: rgba(168, 85, 247, 0.3);
    
    /* UI Elements */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(168, 85, 247, 0.3);
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 6px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== OPTIMIZED PARTICLE BACKGROUND ========== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    background: radial-gradient(ellipse at center, 
        rgba(168, 85, 247, 0.05) 0%, 
        rgba(0, 0, 0, 1) 70%
    );
}

/* ========== PREMIUM NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.navbar-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-logo:hover {
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Desktop Navigation */
.navbar-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.navbar-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.navbar-link:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.1);
}

.navbar-link.active {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--border-glow);
}

/* Mobile Menu Button */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========== LUXURY HERO SECTION ========== */
.hero {
    padding: 12rem 5% 8rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, 
        rgba(168, 85, 247, 0.1) 0%, 
        transparent 70%
    );
    filter: blur(60px);
    z-index: -1;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, 
        var(--text-primary) 0%, 
        var(--accent-blue) 50%, 
        var(--accent-purple) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Luxury Buttons */
.btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, 
        var(--accent-purple), 
        var(--accent-blue)
    );
    color: white;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-purple);
    transform: translateY(-3px);
}

/* ========== PREMIUM FEATURES ========== */
.features {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    margin-bottom: 5rem;
    font-weight: 700;
}

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

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent-purple), 
        var(--accent-blue)
    );
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, 
        var(--accent-purple), 
        var(--accent-blue)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.feature-card .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ========== LUXURY CTA SECTION ========== */
.cta-section {
    padding: 6rem 5%;
    text-align: center;
    background: rgba(20, 20, 30, 0.7);
    border-radius: var(--radius-lg);
    margin: 6rem 5%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(168, 85, 247, 0.1) 0%, 
        transparent 50%
    );
    z-index: -1;
}

.cta-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-section p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    line-height: 1.7;
}

.cta-section .btn {
    padding: 1.3rem 4rem;
    font-size: 1.2rem;
}

/* ========== PREMIUM FOOTER ========== */
.footer {
    background: rgba(10, 10, 15, 0.95);
    padding: 5rem 5% 3rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-purple), 
        transparent
    );
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .navbar-link {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    /* Mobile Optimizations */
    .hero {
        padding: 10rem 5% 6rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 2.5rem 2rem;
    }
    
    .cta-section {
        margin: 4rem 1rem;
        padding: 4rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .footer {
        padding: 4rem 1rem 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }
    
    /* Reduce effects on mobile for performance */
    #particles-js {
        opacity: 0.2;
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar-logo {
        font-size: 1.6rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize for GPU rendering */
.feature-card,
.btn {
    will-change: transform;
    backface-visibility: hidden;
}

/* Simple scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-purple), var(--accent-blue));
    border-radius: 5px;
}

/* Selection styling */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

/* Discord footer social links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link.discord {
    background: var(--discord-blue);
}

.social-link.email {
    background: var(--accent-purple);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}