/*
Theme Name: SPECTRA Theme
Theme URI: https://spectra.homes
Author: SPECTRA
Author URI: https://spectra.homes
Description: Custom theme for SPECTRA Mobile Service System with animated backgrounds and modern design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spectra-theme
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --spectra-primary: #00d4ff;
    --spectra-secondary: #00ff88;
    --spectra-dark: #0a0a1a;
    --spectra-card: rgba(26, 26, 46, 0.9);
    --spectra-border: rgba(0, 212, 255, 0.2);
    --spectra-text: #ffffff;
    --spectra-muted: #888888;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--spectra-dark);
    color: var(--spectra-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Animated Background */
.spectra-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0a0a1a 100%);
}

.spectra-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(138, 43, 226, 0.05) 0%, transparent 40%);
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 0.8; }
}

/* Particles */
.spectra-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.spectra-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(90vh) scale(1); }
    90% { opacity: 1; transform: translateY(10vh) scale(1); }
    100% { transform: translateY(0) scale(0); opacity: 0; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--spectra-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--spectra-secondary);
}

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

/* Logo */
.spectra-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 50%, #00d4ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 3s ease infinite;
    letter-spacing: 6px;
}

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

/* Cards */
.spectra-card {
    background: var(--spectra-card);
    border: 1px solid var(--spectra-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.spectra-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.spectra-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--spectra-primary), var(--spectra-secondary));
    border: none;
    border-radius: 12px;
    color: var(--spectra-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.spectra-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    color: var(--spectra-dark);
}

/* Forms */
.spectra-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 26, 0.8);
    border: 2px solid var(--spectra-border);
    border-radius: 12px;
    color: var(--spectra-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.spectra-input:focus {
    outline: none;
    border-color: var(--spectra-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--spectra-muted); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

    .spectra-logo {
        font-size: 1.8rem;
    }
}
