/* Custom CSS Variables */
:root {
    --bs-primary: #6366f1;
    --bs-primary-rgb: 99, 102, 241;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --youtube: #ff0000;
    --twitch: #9146ff;
    --kick: #53fc18;
}

/* Override Bootstrap defaults */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: var(--bg-darker) !important;
    color: var(--text-primary) !important;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Text Overrides */
.text-muted {
    color: var(--text-secondary) !important;
    opacity: 0.9;
}

/* Navbar Styling */
.navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.logo-icon {
    font-size: 1.5rem;
}

.beta-badge {
    background: var(--bs-primary);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 0.25rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Button Overrides */
.btn-primary {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.btn-hero {
    background: linear-gradient(135deg, var(--bs-primary), var(--secondary)) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
    border-color: var(--bs-primary) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-light {
    background: white !important;
    color: var(--bs-primary) !important;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('media/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--bs-primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
}

.stat-number {
    background: linear-gradient(135deg, var(--bs-primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    letter-spacing: 1px;
}

/* LED Simulator */
.led-simulator {
    width: 300px;
    height: 300px;
    background: var(--bg-card);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.led-glow {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--secondary), var(--accent));
    animation: ledPulse 2s ease-in-out infinite;
    box-shadow: 0 0 40px var(--bs-primary),
                0 0 80px var(--secondary),
                0 0 120px var(--accent);
}

.led-pulse {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes ledPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0; }
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.platform-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.platform-icon.youtube {
    background: var(--youtube);
    top: 10%;
    left: -20%;
    animation-delay: 0s;
}

.platform-icon.twitch {
    background: var(--twitch);
    top: 50%;
    right: -20%;
    animation-delay: 1s;
}

.platform-icon.kick {
    background: var(--kick);
    bottom: 10%;
    left: -10%;
    animation-delay: 2s;
    color: var(--bg-darker);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    background: var(--bg-dark);
}

.feature-card.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-primary);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.feature-icon {
    font-size: 3rem;
}

.feature-card .card-text {
    color: var(--text-secondary) !important;
}

/* Platforms Section */
.platform-card.card {
    background: var(--bg-card);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.platform-card:hover {
    transform: translateY(-5px);
}

.youtube-card {
    border-color: var(--youtube) !important;
}

.youtube-card:hover {
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.twitch-card {
    border-color: var(--twitch) !important;
}

.twitch-card:hover {
    box-shadow: 0 10px 30px rgba(145, 70, 255, 0.3);
}

.kick-card {
    border-color: var(--kick) !important;
}

.kick-card:hover {
    box-shadow: 0 10px 30px rgba(83, 252, 24, 0.3);
}

.platform-logo {
    font-size: 4rem;
}

.platform-card .card-text {
    color: var(--text-secondary) !important;
}

/* How It Works Section */
.how-it-works {
    background: var(--bg-dark);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.step p {
    color: var(--text-secondary);
}

/* Versions Section */
.version-card.card {
    background: var(--bg-card);
    border: 2px solid rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

.version-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--bs-primary), var(--secondary));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 10;
}

.led-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.led-preview.rgb {
    background: linear-gradient(135deg, #ff0000, #00ff00, #0000ff, #ff0000);
    background-size: 200% 200%;
    animation: rgbShift 3s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.5),
                0 0 80px rgba(0, 255, 0, 0.5),
                0 0 120px rgba(0, 0, 255, 0.5);
}

@keyframes rgbShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.led-preview.single {
    width: 60px;
    height: 60px;
}

.led-preview.single.red {
    background: #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.led-preview.single.green {
    background: #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.led-preview.single.blue {
    background: #0000ff;
    box-shadow: 0 0 30px rgba(0, 0, 255, 0.5);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--bs-primary), var(--secondary));
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a:hover {
    color: var(--text-primary) !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-visual {
        margin-top: 3rem;
    }
    
    .led-simulator {
        width: 250px;
        height: 250px;
    }
    
    .led-glow {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .led-simulator {
        width: 200px;
        height: 200px;
    }

    .led-glow {
        width: 80px;
        height: 80px;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
