/* CloneX Universe - Cinematic CSS */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff0080;
    --accent-color: #7c3aed;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --text-primary: #ffffff;
    --text-secondary: #b8b8cc;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ff0080 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;
    --nav-height: 80px;
    --hero-zoom: 1.02; /* Default zoom level - perfect fit for both desktop and mobile */
}

/* Magnetic Cursor Effects */
.magnetic-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.8;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 20px var(--primary-color);
}

.magnetic-cursor.hovering {
    transform: scale(2);
    background: var(--secondary-color);
    box-shadow: 0 0 30px var(--secondary-color);
    opacity: 0.6;
}

.magnetic-cursor.clicking {
    transform: scale(0.5);
    background: var(--accent-color);
    box-shadow: 0 0 40px var(--accent-color);
}

/* Magnetic elements */
.magnetic-element {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: none;
}

.magnetic-element:hover {
    z-index: 10;
}

/* Quantum Particle Physics Simulation */
.quantum-physics-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.8;
}

.quantum-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.quantum-field-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 0, 128, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    animation: quantum-field-pulse 4s ease-in-out infinite alternate;
    opacity: 0.6;
}

@keyframes quantum-field-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
        filter: hue-rotate(0deg);
    }
    100% {
        transform: scale(1.1);
        opacity: 0.8;
        filter: hue-rotate(30deg);
    }
}

/* Quantum Physics Controls */
.quantum-controls {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-toggle {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    color: var(--accent-color);
    text-align: center;
}

.control-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-color);
    background: rgba(124, 58, 237, 0.1);
}

.control-toggle.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 30px var(--primary-color);
}

.toggle-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.toggle-text {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Quantum particle trail effects */
.quantum-particle-trail {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    animation: quantum-trail-fade 1s ease-out forwards;
}

@keyframes quantum-trail-fade {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.2);
    }
}

/* Quantum interaction zones */
.quantum-interaction-zone {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
    animation: quantum-zone-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes quantum-zone-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Enhanced particle effects when quantum field is active */
.quantum-physics-container.enhanced .quantum-field-overlay {
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(0, 255, 136, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 90% 10%, rgba(255, 170, 0, 0.08) 0%, transparent 60%);
    animation: quantum-field-enhanced 2s ease-in-out infinite alternate;
}

@keyframes quantum-field-enhanced {
    0% {
        transform: scale(0.9) rotate(0deg);
        filter: hue-rotate(0deg) saturate(100%);
    }
    100% {
        transform: scale(1.2) rotate(5deg);
        filter: hue-rotate(60deg) saturate(150%);
    }
}

/* Particle interaction feedback */
.quantum-interaction-feedback {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.2);
    animation: quantum-feedback-expand 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes quantum-feedback-expand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Quantum field distortion effects */
.quantum-field-distortion {
    position: absolute;
    width: 100px;
    height: 100px;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(0, 212, 255, 0.3),
        transparent,
        rgba(255, 0, 128, 0.3),
        transparent
    );
    border-radius: 50%;
    animation: quantum-distortion-spin 3s linear infinite;
    pointer-events: none;
}

@keyframes quantum-distortion-spin {
    0% {
        transform: rotate(0deg) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: rotate(180deg) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Apply magnetic behavior to interactive elements */
.nav-link, .primary-btn, .secondary-btn, .video-btn, .explore-btn,
.planet-card, .character-card, .floating-action-btn, .feature,
.control-toggle {
    cursor: none;
}

/* Responsive Quantum Physics */
@media (max-width: 768px) {
    .quantum-controls {
        bottom: 20px;
        left: 20px;
    }
    
    .control-toggle {
        width: 50px;
        height: 50px;
    }
    
    .toggle-icon {
        font-size: 1.2rem;
    }
    
    .toggle-text {
        font-size: 0.5rem;
    }
    
    .quantum-physics-container {
        opacity: 0.6;
    }
}

@media (max-width: 480px) {
    .control-toggle {
        width: 45px;
        height: 45px;
    }
    
    .toggle-icon {
        font-size: 1rem;
    }
    
    .quantum-physics-container {
        opacity: 0.4;
    }
}

/* Magnetic attraction animation */
@keyframes magneticAttraction {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(var(--magnetic-x, 0)) translateY(var(--magnetic-y, 0)); }
}

.magnetic-attracted {
    animation: magneticAttraction 0.3s ease-out forwards;
}

/* Global Styles and Touch Optimizations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
    /* Image protection - disable drag and selection */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-secondary);
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    touch-action: manipulation;
    
    /* Content protection - disable text selection on body (can be overridden for specific elements) */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Desktop-only elements */
.desktop-only {
    display: block;
}

/* Improved touch targets for mobile */
button, .nav-link, .planet-card, .hero-card, .character-card {
    min-height: 44px;
    min-width: 44px;
}

/* Image protection styles */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none; /* Prevent context menu on images */
}

/* Allow pointer events for interactive elements */
.nav-link, .hero-card, .character-card, .planet-card, button, a {
    pointer-events: auto !important;
}

/* Better tap targets for mobile */
@media (max-width: 768px) {
    .nav-link {
        padding: 12px 20px;
        display: block;
    }
    
    .planet-card, .hero-card, .character-card {
        min-height: 60px;
    }
}

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

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
    padding: 15px 20px 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding: 0;
    margin-left: 20px;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 30px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: left;
}

.logo-subtitle {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
    margin-top: 4px;
    margin-left: 0;
    line-height: 1;
    text-align: center;
    align-self: center;
}

.nav-links {
    display: flex;
    gap: 40px;
    transition: all 0.3s ease;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

/* Floating Action Button */
.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A90E2 0%, #7B68EE 50%, #9D4EDD 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    /* Prevent text selection and cursor issues */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Prevent text cursor */
    pointer-events: auto;
    outline: none;
}

.floating-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.6);
}

.fab-icon {
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent text selection on icon */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.fab-text {
    display: none;
}

/* Mobile FAB Adjustments */
@media (max-width: 768px) {
    .floating-action-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    /* Keep circular on mobile - no expansion */
    .floating-action-btn:hover {
        width: 56px;
        height: 56px;
        padding-right: 0;
        border-radius: 50%;
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(74, 144, 226, 0.6);
    }
    
    .fab-icon {
        font-size: 22px;
        min-width: 56px;
    }
    
    /* Hide text on mobile */
    .fab-text {
        display: none;
    }
    
    /* No margin change for icon on mobile */
    .floating-action-btn:hover .fab-icon {
        margin-right: 0;
    }
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--nav-height));
    margin-top: var(--nav-height);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    overflow: hidden;
    padding: 0 40px 80px 40px;
}

.hero:hover .hero-image {
    opacity: 0.9;
    transform: scale(1.06);
}

.hero:hover .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.0) 0%,
        rgba(26, 26, 46, 0.0) 50%,
        rgba(16, 21, 62, 0.0) 100%
    );
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: -1;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 1.0;
    transition: all 0.3s ease;
    transform: scale(var(--hero-zoom));
    transform-origin: center top;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.1) 0%,
        rgba(26, 26, 46, 0.0) 50%,
        rgba(16, 21, 62, 0.1) 100%
    );
    z-index: 1;
}

.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
    animation: particles 20s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes particles {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(5deg); }
}

.quantum-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
    z-index: 2;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    z-index: 3;
    max-width: 500px;
    padding: 0 20px;
    position: relative;
    text-align: center;
    margin-right: 0;
}

.hero-text-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 50px 40px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-title {
    margin-bottom: 30px;
}

.main-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 0.85;
    margin: 0;
}

.title-line {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.universe-text {
    font-size: 0.45em;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
    100% { filter: drop-shadow(0 0 40px rgba(255, 0, 128, 0.7)); }
}

.hero-tagline-container {
    margin-bottom: 30px;
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tagline-normal {
    color: var(--text-secondary);
}

.tagline-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.primary-btn, .secondary-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 200px;
}

.video-btn {
    background: linear-gradient(135deg, #FF0080 0%, #7C3AED 100%);
    color: white;
    border: none;
}

.explore-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover, .video-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 0, 128, 0.5);
}

.secondary-btn:hover, .explore-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

@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-arrow {
    width: 2px;
    height: 30px;
    background: var(--gradient-primary);
    margin-bottom: 10px;
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-number {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Origin Section */
.origin-section {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.origin-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.origin-block {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.origin-block:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.origin-block.highlight {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--accent-color);
}

.origin-block h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.origin-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.consciousness-core {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: relative;
    animation: coreGlow 4s ease-in-out infinite alternate;
}

@keyframes coreGlow {
    0% { 
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5),
                   0 0 40px rgba(0, 212, 255, 0.3),
                   0 0 60px rgba(0, 212, 255, 0.1);
    }
    100% { 
        box-shadow: 0 0 40px rgba(255, 0, 128, 0.7),
                   0 0 80px rgba(255, 0, 128, 0.5),
                   0 0 120px rgba(255, 0, 128, 0.3);
    }
}

/* Characters Section */
.characters-section {
    background: linear-gradient(135deg, rgba(16, 21, 62, 0.8) 0%, rgba(10, 10, 15, 0.9) 100%);
}

.character-section {
    margin-bottom: 80px;
}

.section-divider {
    text-align: center;
    margin: 60px 0;
}

.section-divider h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.character-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.character-card:hover::before {
    opacity: 0.05;
}

.character-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

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

.character-name {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.character-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.character-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.character-powers {
    margin-top: 20px;
}

.character-powers h4 {
    font-family: var(--font-primary);
    color: var(--accent-color);
    margin-bottom: 10px;
}

.power-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.power-tag {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.villain-card {
    border-color: rgba(255, 0, 128, 0.5);
    background: rgba(255, 0, 128, 0.05);
}

.villain-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 25px 50px rgba(255, 0, 128, 0.3);
}

.guardian-card {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.05);
}

.guardian-card:hover {
    border-color: #ffd700;
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.3);
}

.ally-card {
    border-color: rgba(50, 205, 50, 0.5);
    background: rgba(50, 205, 50, 0.05);
}

.ally-card:hover {
    border-color: #32cd32;
    box-shadow: 0 25px 50px rgba(50, 205, 50, 0.3);
}

/* Planets Section */
.planets-section {
    background: var(--darker-bg);
}

.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.planet-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.planet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.planet-card:hover::before {
    opacity: 0.05;
}

.planet-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

/* Planet-specific colors */
.planet-card.inferna:hover {
    border-color: #ff4500;
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.3);
}

.planet-card.glaciera:hover {
    border-color: #87ceeb;
    box-shadow: 0 20px 40px rgba(135, 206, 235, 0.3);
}

.planet-card.mechalon:hover {
    border-color: #ffd700;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.planet-card.verdantis:hover {
    border-color: #32cd32;
    box-shadow: 0 20px 40px rgba(50, 205, 50, 0.3);
}

.planet-card.umbra:hover {
    border-color: #9400d3;
    box-shadow: 0 20px 40px rgba(148, 0, 211, 0.3);
}

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

.planet-name {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.planet-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.planet-ruler {
    margin-bottom: 20px;
    font-weight: 600;
}

.planet-details p {
    margin-bottom: 10px;
}

.planet-meaning {
    font-style: italic;
    color: var(--accent-color);
}

/* TimeMachine Section */
.timemachine-section {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.8) 0%, rgba(26, 26, 46, 0.8) 100%);
}

.timemachine-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.time-feature {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.time-feature.highlight {
    background: rgba(124, 58, 237, 0.1);
    border-left-color: var(--accent-color);
}

.time-feature h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.big-text {
    font-size: 1.3rem;
    line-height: 1.4;
}

.timemachine-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.time-portal {
    position: relative;
    width: 250px;
    height: 250px;
}

.portal-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: portalSpin 10s linear infinite;
}

.portal-ring::before,
.portal-ring::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation: portalSpin 8s linear infinite reverse;
}

.portal-ring::after {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-color: var(--accent-color);
    animation: portalSpin 6s linear infinite;
}

.portal-center {
    position: absolute;
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: portalPulse 3s ease-in-out infinite alternate;
}

@keyframes portalSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes portalPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    100% { 
        transform: scale(1.2);
        box-shadow: 0 0 40px rgba(255, 0, 128, 0.8);
    }
}

/* Saga Section */
.saga-section {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(16, 21, 62, 0.95) 100%);
}

.journey-chapter {
    text-align: center;
    margin: 40px 0 60px 0;
    padding: 30px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.chapter-header {
    margin: 0;
}

.chapter-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chapter-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    font-weight: 600;
    margin: 0;
}

.saga-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.video-container {
    position: relative;
    margin-bottom: 30px;
}

.youtube-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.youtube-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.4);
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 13px;
}

.video-info {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.video-info h4 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.play-button {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.video-placeholder:hover .play-button {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.saga-journey h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.journey-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
    font-style: italic;
}

.journey-steps {
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    font-family: var(--font-primary);
}

.phase-indicator {
    background: rgba(124, 58, 237, 0.2);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    text-align: center;
}

.phase-indicator p {
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Studios Section */
.studios-section {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.8) 0%, rgba(10, 10, 15, 0.9) 100%);
}

.studios-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.feature h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.studios-tagline {
    text-align: center;
    padding: 50px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 20px;
    border: 2px solid var(--accent-color);
}

.studios-tagline h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 3rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo .logo-text {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: var(--text-secondary);
    margin-top: 10px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Responsive Design */
/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .planets-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .origin-content,
    .timemachine-content,
    .saga-content {
        gap: 50px;
    }
    
    .hero {
        justify-content: center;
        align-items: flex-end;
        padding: 80px 30px 50px;
    }
    
    .hero-content {
        max-width: 500px;
        text-align: center;
    }
    
    .hero-text-container {
        padding: 35px 25px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --nav-height: 85px; /* Slightly taller for mobile due to larger text */
    }
    
    .nav-container {
        padding: 15px 20px 15px 0;
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
        margin-right: 20px;
    }
    
    .nav-logo {
        order: 1;
        flex: none;
        align-self: flex-start;
        margin-left: 20px;
        align-items: flex-start;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }
    
    .logo-text {
        font-size: 38px;
        text-align: left;
    }
    
    .logo-subtitle {
        font-size: 16px;
        text-align: center;
        margin-left: 0;
        margin-top: 5px;
        align-self: center;
    }
    
    .nav-cta {
        order: 2;
        margin-right: 15px;
    }
    
    .nav-links {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        padding: 20px 0;
        margin-top: 15px;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        gap: 15px;
        text-align: center;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    /* Hero Section Mobile */
    .hero {
        height: 100vh;
        padding: 80px 20px 40px;
        justify-content: center;
        align-items: center;
    }
    
    .hero-content {
        max-width: 95%;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }
    
    .hero-text-container {
        padding: 35px 25px;
        border-radius: 15px;
    }
    
    .main-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        line-height: 0.85;
        margin-bottom: 15px;
    }
    
    .hero-tagline {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    /* Hide desktop-only elements on mobile */
    .desktop-only {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .video-btn, .explore-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .hero-image {
        object-position: center top;
    }
    
    /* Sections Mobile */
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Layout Mobile */
    .origin-content,
    .timemachine-content,
    .saga-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .planets-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .planet-card {
        padding: 25px;
        text-align: center;
    }
    
    .character-card {
        padding: 25px;
        text-align: center;
    }
    
    .journey-chapter {
        margin: 20px 0 40px 0;
        padding: 20px;
    }
    
    .chapter-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }
    
    .chapter-subtitle {
        font-size: 0.9rem;
    }
    
    .origin-block,
    .time-feature {
        padding: 25px;
    }
    
    .studios-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .video-placeholder {
        margin-bottom: 30px;
    }
    
    .video-container {
        margin-bottom: 25px;
    }
    
    .youtube-video {
        margin-bottom: 20px;
    }
    
    .video-info {
        padding: 15px;
        margin-top: 15px;
    }
    
    .video-info h4 {
        font-size: 1.2rem;
    }
    
    .video-info p {
        font-size: 0.9rem;
    }
    
    .consciousness-core {
        width: 150px;
        height: 150px;
    }
    
    .time-portal {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    :root {
        --nav-height: 75px; /* Smaller for very small screens */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 12px 15px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .logo-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
        margin-left: 0;
        margin-top: 3px;
        align-self: center;
    }
    
    .cta-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .hero-content {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .main-title {
        font-size: clamp(2rem, 15vw, 3.5rem);
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4.5vw, 1.2rem);
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .primary-btn, .secondary-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        max-width: 200px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .planet-card,
    .origin-block,
    .time-feature,
    .hero-card {
        padding: 20px;
    }
    
    .planet-icon {
        font-size: 2.5rem;
    }
    
    .planet-name {
        font-size: 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .consciousness-core {
        width: 120px;
        height: 120px;
    }
    
    .time-portal {
        width: 150px;
        height: 150px;
    }
    
    .journey-steps {
        margin-bottom: 25px;
    }
    
    .step {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        margin-right: 15px;
        font-size: 0.9rem;
    }
}

/* Plasma Energy Conduits System */
.plasma-energy-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.plasma-energy-system.active {
    opacity: 1;
}

.plasma-conduits-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Plasma Conduit Paths */
.plasma-conduit {
    fill: none;
    stroke-width: 3px;
    stroke: url(#plasmaGradient);
    filter: url(#plasmaGlow);
    opacity: 0.8;
    animation: plasma-flow 3s linear infinite;
}

.plasma-conduit.primary {
    stroke: url(#plasmaGradientPrimary);
    stroke-width: 4px;
}

.plasma-conduit.secondary {
    stroke: url(#plasmaGradientSecondary);
    stroke-width: 2px;
    opacity: 0.6;
}

.plasma-conduit.accent {
    stroke: url(#plasmaGradientAccent);
    stroke-width: 2.5px;
    opacity: 0.7;
}

/* Plasma Flow Animation */
@keyframes plasma-flow {
    0% {
        stroke-dasharray: 0 100;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 50 50;
        stroke-dashoffset: -25;
    }
    100% {
        stroke-dasharray: 0 100;
        stroke-dashoffset: -100;
    }
}

/* Plasma Energy Nodes */
.plasma-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.plasma-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    box-shadow: 
        0 0 20px var(--primary-color),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: plasma-pulse 2s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

.plasma-node.major {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, var(--secondary-color) 0%, var(--primary-color) 50%, transparent 70%);
    box-shadow: 
        0 0 30px var(--secondary-color),
        0 0 15px var(--primary-color),
        inset 0 0 15px rgba(255, 255, 255, 0.4);
    animation: plasma-pulse-major 1.5s ease-in-out infinite;
}

.plasma-node.accent {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    box-shadow: 
        0 0 15px var(--accent-color),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
    animation: plasma-pulse-accent 2.5s ease-in-out infinite;
}

/* Plasma Pulse Animations */
@keyframes plasma-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

@keyframes plasma-pulse-major {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.8;
    }
}

@keyframes plasma-pulse-accent {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

/* Plasma Controls */
.plasma-controls {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.plasma-controls.visible {
    opacity: 1;
    transform: translateY(0);
}

.plasma-controls .control-toggle {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 0, 128, 0.3);
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.plasma-controls .control-toggle:hover {
    border-color: var(--secondary-color);
    background: rgba(10, 10, 15, 0.95);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.2);
}

.plasma-controls .control-toggle.active {
    border-color: var(--secondary-color);
    background: rgba(255, 0, 128, 0.1);
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.3);
}

.plasma-controls .toggle-icon {
    font-size: 1.2rem;
    animation: none;
    transition: transform 0.3s ease;
}

.plasma-controls .control-toggle.active .toggle-icon {
    transform: scale(1.2);
    animation: plasma-icon-glow 2s ease-in-out infinite;
}

@keyframes plasma-icon-glow {
    0%, 100% { text-shadow: 0 0 10px var(--secondary-color); }
    50% { text-shadow: 0 0 20px var(--secondary-color), 0 0 30px var(--primary-color); }
}

.plasma-controls .toggle-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Plasma Energy Field Effects */
.plasma-energy-field {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 212, 255, 0.1) 0%,
        rgba(255, 0, 128, 0.05) 50%,
        transparent 70%
    );
    animation: plasma-field-expand 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes plasma-field-expand {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.1;
    }
}

/* Responsive Design for Plasma System */
@media (max-width: 768px) {
    .plasma-controls {
        bottom: 20px;
        left: 20px;
    }
    
    .plasma-controls .control-toggle {
        padding: 10px 16px;
        gap: 8px;
    }
    
    .plasma-controls .toggle-icon {
        font-size: 1rem;
    }
    
    .plasma-controls .toggle-text {
        font-size: 0.8rem;
    }
    
    .plasma-conduit {
        stroke-width: 2px;
    }
    
    .plasma-conduit.primary {
        stroke-width: 3px;
    }
    
    .plasma-node {
        width: 10px;
        height: 10px;
    }
    
    .plasma-node.major {
        width: 14px;
        height: 14px;
    }
    
    .plasma-node.accent {
        width: 8px;
        height: 8px;
    }
}
