/* Enhanced Rainbow Design System with Gold Integration - Kensenich */
/* Extracted gold colors: #ffcc00, #ff8800 for perfect integration */

:root {
    /* Colors - Enhanced Rainbow with Gold */
    --accent-blue: #00ffff;
    --accent-mid-blue: #0080ff;
    --accent-deep-blue: #0040ff;
    --accent-purple: #8000ff;
    --accent-pink: #ff00ff;
    --accent-gold: #ffcc00;
    --accent-orange: #ff8800;
    
    /* Extended Gradients including Gold */
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-rainbow: linear-gradient(45deg, #00ffff, #0080ff, #0040ff, #8000ff, #ff00ff, #ffcc00);
    --gradient-rotating: conic-gradient(from 0deg, #00ffff, #0080ff, #0040ff, #8000ff, #ff00ff, #ffcc00, #00ffff);
    --gradient-gold: linear-gradient(135deg, #ffcc00, #ff8800);
    --gradient-blue-gold: linear-gradient(135deg, #00ffff, #ffcc00);
    
    /* Background */
    --background-primary: linear-gradient(135deg, #001122, #000033, #000000, #001133, #000022);
    --card-background: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
    
    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: #94a3b8;
    
    /* Spacing */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Inter', sans-serif;
    background: var(--background-primary);
    background-size: 400% 400%;
    animation: morphingBackground 15s ease-in-out infinite;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Enhanced Background with Gold Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 100, 200, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(255, 204, 0, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, rgba(0, 0, 100, 0.06) 1px, transparent 1px);
    background-size: 120px 120px, 160px 160px, 140px 140px;
    animation: backgroundFloat 25s ease-in-out infinite;
    z-index: -1;
}

@keyframes morphingBackground {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes backgroundFloat {
    0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%; }
    33% { background-position: 100% 50%, -50% 100%, 75% 25%; }
    66% { background-position: -50% 100%, 100% 0%, 25% 75%; }
}

/* Enhanced Text Classes */
.gradient-text {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: rainbowShift 8s ease-in-out infinite;
}

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

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

.kensenich-blue {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-deep-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 8, 20, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a:hover {
    color: var(--accent-blue);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-rainbow);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

/* Mobile Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--gradient-rainbow);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Styles */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 8, 20, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding-top: 100px;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.mobile-nav .nav {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    display: flex !important;
}

.mobile-nav .nav a {
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-nav .mobile-buttons {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Main Content */
.main {
    padding-top: 100px;
}

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

.section {
    padding: 4rem 0;
}

.hero {
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Cards */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--card-background);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-rainbow);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 255, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card .pill {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Enhanced Buttons with Gold */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 1),
        0 0 20px rgba(0, 255, 255, 0.8),
        0 0 30px rgba(255, 0, 255, 0.6);
}

.btn-gold {
    background: var(--gradient-gold);
    color: white;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px) scale(1.05);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 204, 0, 0.8),
        0 0 30px rgba(255, 136, 0, 0.6);
}

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

.btn-ghost:hover {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Special Gold Accent Elements */
.gold-accent {
    color: var(--accent-gold);
}

.gold-border {
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.gold-glow:hover {
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

/* Process Section */
.process {
    background: rgba(0, 8, 20, 0.5);
    backdrop-filter: blur(8px);
}

/* Footer */
.footer {
    background: rgba(0, 8, 20, 0.8);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

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

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    background: var(--card-background);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1rem;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 204, 0, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

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

/* Particle System with Gold */
.particle-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.8), rgba(255, 204, 0, 0.4), transparent);
    border-radius: 50%;
    width: var(--size);
    height: var(--size);
    animation: float var(--duration) var(--delay) infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .header-content nav {
        display: none;
    }

    .header-content > div:not(.burger-menu) {
        display: none;
    }

    .header {
        padding: 0.8rem 0;
    }

    .header-content {
        padding: 0 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

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