/* Space Theme & Animations */
:root {
    --space-bg: #0f172a;
    --space-accent: #6366f1;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
}

body {
    background-color: var(--space-bg);
    background-image:
        radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Moving Stars Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.stars-1,
.stars-2,
.stars-8-pointed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Small Stars */
.stars-1 {
    background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="1" fill="white" opacity="0.8"/></svg>') repeat top center;
    background-size: 50px 50px;
    animation: moveStars 40s linear infinite;
    opacity: 0.5;
}

.stars-2 {
    background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="1.5" fill="white" opacity="0.6"/></svg>') repeat top center;
    background-size: 100px 100px;
    animation: moveStars 60s linear infinite;
    opacity: 0.4;
}

/* 8-Pointed Stars (Removed) */
.stars-8-pointed {
    display: none;
}

@keyframes moveStars {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 1000px;
    }
}

/* Transparency & Glassmorphism */
.navbar,
.footer,
.product-card,
.news-card,
.stat-card,
.contact-info,
.ai-chatbot-preview {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--text-primary) !important;
}

/* Section Transparency Overrides */
section,
.section,
.stats-section,
.about-section,
.contact-section,
.hero-section {
    background-color: transparent !important;
    background-image: none !important;
}

/* Specific Gradient Overrides to be transparent/glass */
.bg-gradient-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-dark {
    background-color: transparent !important;
}

.bg-light,
.bg-white {
    background-color: transparent !important;
}

/* Text Colors Overrides */
h1,
h2,
h3,
h4,
h5,
h6,
.display-3,
.display-4,
.display-5 {
    color: white !important;
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

p,
.lead,
small,
span,
div,
li {
    color: var(--text-secondary);
}

/* Specific Component Tweaks */
.product-card,
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.product-card:hover,
.news-card:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
}

.product-title,
.news-title {
    color: white !important;
}

.stat-card i {
    color: var(--space-accent);
    text-shadow: 0 0 10px var(--space-accent);
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    border: none;
}

.btn-gradient:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.7);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #a5b4fc;
    border-color: #6366f1;
}

.btn-outline-primary:hover {
    background-color: #6366f1;
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.btn-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Forms (like chatbot input) */
.form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--space-accent);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Card Placeholders */
.placeholder-image,
.news-image-placeholder {
    background: rgba(255, 255, 255, 0.05);
}

.hero-overlay {
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Chatbot Widget */
.chatbot-widget {
    background: rgba(15, 23, 42, 0.95) !important;
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.user-message .message-content {
    background: var(--space-accent);
    color: white;
}