/* ========================================
   PARSEFORGE - FUTURISTIC CYBER DESIGN
   Blue, Black & Dark Green Theme
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cyber Color Palette */
    --bg-primary: #0a0e27;
    --bg-secondary: #151932;
    --bg-tertiary: #1a1f3a;
    --bg-card: rgba(26, 31, 58, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    /* Neon Accents */
    --neon-blue: #00d9ff;
    --neon-green: #00ff88;
    --neon-purple: #b84dff;
    --electric-blue: #0066ff;
    --cyber-green: #1de9b6;
    
    /* Status Colors */
    --success: #00ff88;
    --danger: #ff3366;
    --warning: #ffaa00;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Effects */
    --glow-blue: 0 0 20px rgba(0, 217, 255, 0.5);
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.5);
    --glow-purple: 0 0 20px rgba(184, 77, 255, 0.5);
    
    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-neon: rgba(0, 217, 255, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(29, 233, 182, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, #0d1129 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Cyber Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Animated Background Particles */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========================================
   NAVIGATION - Glassmorphism Style
   ======================================== */
.navbar {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--neon-blue) 50%, 
        transparent 100%);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Futuristic Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(29, 233, 182, 0.1) 100%);
    border: 1px solid var(--border-neon);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-blue);
    border-color: var(--neon-blue);
}

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--cyber-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.3)); }
    to { filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.8)); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap:1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--cyber-green));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a.active {
    color: var(--neon-blue);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: var(--bg-glass);
    border: 1px solid var(--border-neon);
    color: var(--neon-blue);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    box-shadow: var(--glow-blue);
}

/* ========================================
   BUTTONS - Neon & Holographic Styles
   ======================================== */
.btn-primary, .btn-secondary, .btn-cta, .btn-danger {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--neon-blue) 100%);
    color: white !important;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-blue), 0 8px 25px rgba(0, 217, 255, 0.4);
    color: white !important;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--neon-blue);
    border: 1px solid var(--border-neon);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.btn-cta {
    background: linear-gradient(135deg, var(--cyber-green) 0%, var(--neon-green) 100%);
    color: var(--bg-primary);
    border: 1px solid var(--cyber-green);
    box-shadow: 0 4px 15px rgba(29, 233, 182, 0.3);
    font-weight: 700;
}

.btn-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--glow-green), 0 8px 25px rgba(29, 233, 182, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ff3366 0%, #ff0055 100%);
    color: white;
    border: 1px solid #ff3366;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.5), 0 8px 25px rgba(255, 51, 102, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Navigation Button Spacing */
.nav-links li:last-child a.btn-primary {
    padding: 0.875rem 2rem;
    margin-left: 1.5rem;
    color: white !important;
}

/* ========================================
   HERO SECTION - Holographic Style
   ======================================== */
.hero {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
    animation: float 15s infinite ease-in-out;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--neon-blue) 50%, var(--cyber-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom:2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
    min-width: 180px;
    justify-content: center;
    text-align: center;
}

/* Cyber Code Window */
.hero-code {
    position: relative;
}

.code-window {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(26, 31, 58, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(0, 217, 255, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glass);
}

.code-header {
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.1) 0%, rgba(29, 233, 182, 0.1) 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.code-dots span:nth-child(1) { background: #ff3366; box-shadow: 0 0 10px #ff3366; }
.code-dots span:nth-child(2) { background: #ffaa00; box-shadow: 0 0 10px #ffaa00; }
.code-dots span:nth-child(3) { background: #00ff88; box-shadow: 0 0 10px #00ff88; }

.code-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.code-window pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 0;
}

.code-window code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.keyword { color: var(--neon-purple); font-weight: 600; }
.string { color: var(--cyber-green); }
.comment { color: var(--text-muted); font-style: italic; }
.function { color: var(--neon-blue); }

/* ========================================
   CARDS - Glassmorphism Design
   ======================================== */
.card, .feature-card, .stat-card, .chart-card, .key-item, .pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before, .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(29, 233, 182, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover, .feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 
        var(--glow-blue),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before, .feature-card:hover::before {
    opacity: 1;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: 6rem 0;
}

.features h2, section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--cyber-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   STATS GRID
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.stat-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(29, 233, 182, 0.2) 100%);
    border: 1px solid var(--border-neon);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
    margin: 0.25rem 0;
}

.stat-change {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-change.positive {
    color: var(--success);
}

/* ========================================
   QUICK START / STEPS
   ======================================== */
.quick-start {
    padding: 6rem 0;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--cyber-green) 100%);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: var(--glow-blue);
    border: 3px solid var(--bg-primary);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
}

/* ========================================
   FOOTER - Dark Cyber Style
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #000000 100%);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-glass);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--neon-blue) 30%,
        var(--cyber-green) 70%,
        transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--neon-blue);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--neon-blue);
    padding-left: 5px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .nav-links li:last-child a.btn-primary {
        margin-left: 0;
        margin-top: 0.5rem;
        color: white !important;
    }
    
    .features-grid, .quick-start-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .sdk-tabs {
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .features h2, .quick-start h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: row;
    }
}
