/* ============================================
   Nonelastic Breakup - Nuclear Physics Website
   Sci-Fi Theme CSS
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --accent-primary: #00f0ff;
    --accent-secondary: #ff00aa;
    --accent-tertiary: #7b2aff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --proton-color: #ff4444;
    --neutron-color: #4488ff;
    --alpha-color: #ffaa00;
    --target-color: #44ff88;
    --glow-primary: 0 0 20px rgba(0, 240, 255, 0.5);
    --glow-secondary: 0 0 20px rgba(255, 0, 170, 0.5);
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.nucleus-loader {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    position: relative;
}

.nucleus-loader::before,
.nucleus-loader::after {
    content: '';
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
}

.nucleus-loader::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-top-color: var(--accent-secondary);
    animation: spin 2s linear infinite reverse;
}

.nucleus-loader::after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top-color: var(--accent-tertiary);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader p {
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: var(--glow-primary);
}

.atom-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

.nav-controls button {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}

.nav-controls button:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
}

/* Glitch Effect */
.glitch {
    animation: glitch 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
    animation-delay: -1s;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    10% { clip: rect(70px, 9999px, 30px, 0); }
    20% { clip: rect(20px, 9999px, 90px, 0); }
    30% { clip: rect(50px, 9999px, 60px, 0); }
    40% { clip: rect(80px, 9999px, 40px, 0); }
    50% { clip: rect(10px, 9999px, 80px, 0); }
    60% { clip: rect(60px, 9999px, 20px, 0); }
    70% { clip: rect(40px, 9999px, 70px, 0); }
    80% { clip: rect(90px, 9999px, 50px, 0); }
    90% { clip: rect(25px, 9999px, 85px, 0); }
    100% { clip: rect(55px, 9999px, 35px, 0); }
}

@keyframes glitch {
    0%, 90%, 100% { opacity: 1; }
    92%, 94%, 96%, 98% { opacity: 0.8; transform: translateX(0); }
    91%, 93% { transform: translateX(-2px); }
    95%, 97% { transform: translateX(2px); }
}

.subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--accent-primary);
    letter-spacing: 6px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    position: relative;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border: none;
    border-radius: 30px;
    color: var(--bg-primary);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-primary:hover .btn-glow {
    left: 100%;
}

.btn-secondary {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    background: transparent;
    border: 2px solid var(--accent-primary);
    border-radius: 30px;
    color: var(--accent-primary);
    cursor: pointer;
    transition: var(--transition-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 13px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator p {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Sections Common */
section {
    padding: 100px 40px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.header-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: 0 auto;
    border-radius: 2px;
}

/* Concept Section */
#concept {
    background: var(--bg-secondary);
}

.concept-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.concept-card {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: var(--transition-medium);
}

.concept-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.concept-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mini-canvas {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.concept-svg {
    width: 100%;
    height: 100px;
    max-width: 180px;
}

.concept-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.concept-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.concept-details {
    max-width: 800px;
    margin: 0 auto;
}

.detail-block {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 30px;
    border-left: 4px solid var(--accent-primary);
}

.detail-block h4 {
    font-family: 'Orbitron', monospace;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.detail-block ul {
    list-style: none;
}

.detail-block li {
    padding: 10px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 30px;
}

.detail-block li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Comparison Section */
#comparison {
    background: var(--bg-primary);
}

.comparison-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

.comparison-panel {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-medium);
}

.comparison-panel.elastic:hover {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.comparison-panel.nonelastic:hover {
    border-color: rgba(255, 0, 170, 0.5);
    box-shadow: 0 0 30px rgba(255, 0, 170, 0.2);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 240, 255, 0.2);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.badge.accent {
    background: rgba(255, 0, 170, 0.2);
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.comparison-canvas {
    width: 100%;
    height: 250px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.panel-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.panel-info ul {
    list-style: none;
}

.panel-info li {
    padding: 8px 0;
    color: var(--text-secondary);
    padding-left: 25px;
    position: relative;
}

.elastic .panel-info li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.nonelastic .panel-info li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.play-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: transparent;
    border: 2px solid var(--text-muted);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.elastic .play-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.1);
}

.nonelastic .play-btn:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    background: rgba(255, 0, 170, 0.1);
}

.play-icon {
    font-size: 1.2rem;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vs-divider span {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-muted);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Examples Section */
#examples {
    background: var(--bg-secondary);
}

.examples-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.projectile-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.projectile-btn {
    padding: 15px 25px;
    background: var(--bg-tertiary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.projectile-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.projectile-btn.active {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.projectile-btn .formula {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.projectile-btn .name {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.example-3d {
    width: 100%;
    height: 400px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.projectile-info {
    position: relative;
    min-height: 200px;
}

.info-panel {
    display: none;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    animation: fadeIn 0.3s ease;
}

.info-panel.active {
    display: block;
}

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

.info-panel h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.structure {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-family: 'Orbitron', monospace;
}

.proton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--proton-color);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 15px var(--proton-color);
}

.neutron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--neutron-color);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 15px var(--neutron-color);
}

.alpha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--alpha-color);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 15px var(--alpha-color);
}

.deuteron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--proton-color), var(--neutron-color));
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

.triton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--proton-color), var(--neutron-color), var(--neutron-color));
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.core {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: var(--accent-tertiary);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 0 15px var(--accent-tertiary);
}

.halo-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: transparent;
    border: 2px dashed var(--neutron-color);
    border-radius: 20px;
    color: var(--neutron-color);
    font-size: 0.9rem;
}

.info-panel p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.reaction-example {
    background: rgba(0, 240, 255, 0.05);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-primary);
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
}

.reaction-example strong {
    color: var(--accent-primary);
}

/* Applications Section */
#applications {
    background: var(--bg-primary);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.app-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
}

.app-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.app-card h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.app-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.formula-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.formula-section h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 30px;
}

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

.formula-item {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.formula-item .formula {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 240, 255, 0.05);
    border-radius: var(--border-radius);
}

.formula-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.credits {
    font-size: 0.85rem;
}

/* Control Panel */
#control-panel {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

#toggle-panel {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

#toggle-panel:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: var(--glow-primary);
}

.panel-content {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 25px;
    min-width: 280px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#control-panel.active .panel-content {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.panel-content h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-primary);
}

.control-group span {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-top: 5px;
    font-family: 'Orbitron', monospace;
}

.control-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.control-buttons button {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.control-buttons button:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    #navbar {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 60px 20px;
    }

    .comparison-panel {
        min-width: 100%;
    }

    .vs-divider {
        width: 100%;
    }

    #control-panel {
        right: 15px;
        bottom: 15px;
        top: auto;
        transform: none;
    }

    .panel-content {
        right: 0;
        bottom: 60px;
        top: auto;
        transform: none;
    }

    #control-panel.active .panel-content {
        animation: slideUp 0.3s ease;
    }

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}
