/*
  BARBRICKDESIGN - Main Styles
  Theme: Tron / N64 Vaporwave — neon cyan, magenta, deep purple, retro grid
  Copyright (c) 2008-2026 Ryan Barbrick (Barbrick Design)
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #050010 0%, #0d0021 40%, #100030 70%, #05000f 100%);
    background-attachment: fixed;
    color: #e0f0ff;
    line-height: 1.6;
    overflow-x: hidden;
}

.mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.cosmic-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Outer glow halo around grid lines (soft, wide) */
        linear-gradient(rgba(0, 255, 255, 0.05) 3px, transparent 3px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 3px, transparent 3px),
        /* Sharp primary grid lines */
        linear-gradient(rgba(0, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.18) 1px, transparent 1px),
        /* Large accent grid (every 5 cells) */
        linear-gradient(rgba(0, 180, 255, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 255, 0.10) 1px, transparent 1px),
        /* Magenta radial glow pools */
        radial-gradient(ellipse at 20% 80%, rgba(255, 0, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 128, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(123, 0, 255, 0.07) 0%, transparent 70%);
    background-size:
        50px 50px, 50px 50px,
        50px 50px, 50px 50px,
        250px 250px, 250px 250px,
        100% 100%, 100% 100%, 100% 100%;
    animation: grid-pulse 8s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.8; filter: brightness(1); }
    50%       { opacity: 1.0; filter: brightness(1.4); }
}

/* ============================================
   GRID-TRAVELING ENERGY PARTICLES
   ============================================ */
.grid-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

@keyframes grid-travel-h {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(100vw + 20px)); }
}

@keyframes grid-travel-v {
    from { transform: translateY(0); }
    to   { transform: translateY(calc(100vh + 20px)); }
}

/* ============================================
   LAYOUT CONTAINER
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 25%, #7b00ff 50%, #ff00ff 75%, #ff0080 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease-in-out infinite;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    filter: drop-shadow(0 0 16px rgba(0, 255, 255, 0.5));
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(224, 240, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    letter-spacing: 0.03em;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(160, 184, 216, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
    color: #000;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 28px rgba(0, 255, 255, 0.7), 0 8px 20px rgba(0, 128, 255, 0.4);
    color: #000;
}

.btn-secondary {
    background: rgba(123, 0, 255, 0.12);
    border: 2px solid rgba(255, 0, 255, 0.5);
    color: #e0b0ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: rgba(255, 0, 255, 0.15);
    border-color: rgba(255, 0, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    color: #fff;
}

/* ============================================
   STATS DISPLAY
   ============================================ */
.stats-row {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 20, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.08), inset 0 1px 0 rgba(0, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(160, 184, 216, 0.8);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

/* ============================================
   SECTIONS & CARDS
   ============================================ */
.section {
    padding: 4rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
}

.section-description {
    font-size: 1.1rem;
    color: rgba(160, 184, 216, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* Collapsible Section */
.collapsible-section {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
}

.collapsible-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 255, 255, 0.05);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.collapsible-header:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.collapsible-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    letter-spacing: 0.03em;
}

.collapsible-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.collapsible-section.active .collapsible-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.collapsible-section.active .collapsible-content {
    max-height: 5000px;
}

.collapsible-inner {
    padding: 2rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: linear-gradient(135deg, rgba(13, 0, 33, 0.95) 0%, rgba(20, 0, 60, 0.95) 100%);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, #ff00ff, transparent);
    opacity: 0.6;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2), 0 0 30px rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.5);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.card-description {
    font-size: 1rem;
    color: rgba(160, 184, 216, 0.85);
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .stats-row {
        gap: 1.5rem;
        padding: 1.5rem;
    }

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

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }
}

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }

    .collapsible-header {
        padding: 1rem 1.5rem;
    }

    .collapsible-title {
        font-size: 1.2rem;
    }
}
