/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === NEON LOGO EFFECT === */
.neon-logo {
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    color: #9d4edd;
    text-shadow: 
        0 0 5px #9d4edd,
        0 0 10px #9d4edd,
        0 0 15px #9d4edd,
        0 0 20px #7209b7,
        0 0 35px #7209b7,
        0 0 40px #7209b7;
    animation: flicker 2s infinite alternate;
    letter-spacing: 0.1em;
    padding: 2rem 0;
}

/* === FLICKERING ANIMATION === */
@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px #9d4edd,
            0 0 10px #9d4edd,
            0 0 15px #9d4edd,
            0 0 20px #7209b7,
            0 0 35px #7209b7,
            0 0 40px #7209b7;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* === HEADER SECTION === */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.nav-links a:hover {
    color: #9d4edd;
    text-shadow: 0 0 5px #9d4edd;
}

/* === MAIN CONTENT === */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
    font-style: italic;
}

/* === QUANTUM LABORATORY DASHBOARD === */
.quantum-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.lab-panel {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.lab-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.panel-title {
    color: #9d4edd;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.live-indicator {
    font-size: 0.8rem;
    color: #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === EVOLUTION CONSOLE === */
.evolution-console {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.console-line {
    margin: 0.3rem 0;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

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

.console-line.test { color: #9d4edd; font-weight: bold; }
.console-line.search { color: #ffc107; }
.console-line.memory { color: #00ff88; }
.console-line.evolution { color: #ff6b6b; }
.console-line.success { color: #00ff88; }
.console-line.metrics { color: #17a2b8; }
.console-line.quantum { color: #9d4edd; font-weight: bold; }

/* === MEMORY STATISTICS === */
.memory-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #9d4edd;
    background: rgba(157, 78, 221, 0.1);
}

.stat-label {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ff88;
}

.stat-value.quantum { color: #9d4edd; }
.stat-value.warning { color: #ffc107; }
.stat-value.error { color: #ff4757; }

/* === SISTEMA ARKAL V-IN STYLES === */
.system-core-section {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.08) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(157, 78, 221, 0.08) 100%);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 16px;
    margin: 4rem 0;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.system-core-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.1), transparent);
    animation: systemShimmer 4s infinite;
}

@keyframes systemShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.system-container {
    position: relative;
    z-index: 1;
}

.system-header {
    text-align: center;
    margin-bottom: 3rem;
}

.system-title {
    font-size: 2.2rem;
    color: #9d4edd;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.system-intro {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.evolution-process {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.process-title {
    color: #9d4edd;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.evolution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.evolution-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.evolution-item:hover {
    border-color: #9d4edd;
    background: rgba(157, 78, 221, 0.1);
    transform: translateY(-2px);
}

.evolution-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.evolution-text {
    color: #e0e0e0;
    line-height: 1.4;
}

.evolution-note {
    color: #ccc;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.strategic-core {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.strategic-title {
    color: #9d4edd;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(157, 78, 221, 0.5);
}

.strategic-description {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.strategic-subtitle {
    color: #ccc;
    font-size: 1rem;
    margin-top: 1.5rem;
}

.applications-table {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.app-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #9d4edd;
    transition: all 0.3s ease;
}

.app-row:hover {
    background: rgba(157, 78, 221, 0.1);
    transform: translateX(5px);
}

.app-sector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9d4edd;
    font-weight: bold;
}

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

.app-description {
    color: #e0e0e0;
    line-height: 1.5;
}

.unique-features {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.unique-title {
    color: #9d4edd;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
}

.unique-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.unique-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.unique-item:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateX(5px);
}

.check-icon {
    color: #00ff88;
    font-size: 1.2rem;
    min-width: 20px;
}

.unique-text {
    color: #e0e0e0;
    line-height: 1.4;
}

.system-summary {
    background: linear-gradient(45deg, rgba(157, 78, 221, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 2px solid #9d4edd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.summary-title {
    color: #9d4edd;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

.summary-text {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* === SECTION DIVIDERS === */
.section-divider {
    margin: 5rem 0;
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    color: #9d4edd;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

/* === FEATURES SECTION === */
.features-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05) 0%, rgba(114, 9, 183, 0.1) 50%, rgba(157, 78, 221, 0.05) 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.features-title {
    font-size: 2.5rem;
    color: #9d4edd;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

.features-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    font-style: italic;
    line-height: 1.4;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(157, 78, 221, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #9d4edd;
    box-shadow: 
        0 8px 32px rgba(157, 78, 221, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    color: #9d4edd;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-highlight {
    background: linear-gradient(45deg, #9d4edd, #7209b7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-highlight {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

/* === EVOLUTION METRICS === */
.evolution-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.metric-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9d4edd, #00ff88, #ffc107);
    animation: metricPulse 2s ease-in-out infinite;
}

@keyframes metricPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.metric-card:hover {
    border-color: #9d4edd;
    transform: translateY(-3px);
}

.metric-title {
    color: #9d4edd;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.metric-subtitle {
    color: #ccc;
    font-size: 0.8rem;
}

/* === DEMO ACCESS BUTTON === */
.demo-access {
    text-align: center;
    margin: 3rem 0;
}

.demo-button {
    background: linear-gradient(45deg, #7209b7, #9d4edd);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.5);
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #9d4edd;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
}

.modal-title {
    color: #9d4edd;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
}

.form-group input:focus {
    outline: none;
    border-color: #9d4edd;
    box-shadow: 0 0 5px rgba(157, 78, 221, 0.3);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-buttons button {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

.login-btn {
    background: #9d4edd;
    color: white;
}

.cancel-btn {
    background: #333;
    color: #ccc;
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border-top: 1px solid #333;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.footer-info h3 {
    color: #9d4edd;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(157, 78, 221, 0.5);
}

.footer-info p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid #9d4edd;
    border-radius: 6px;
    padding: 0.8rem;
    color: #9d4edd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #9d4edd;
    color: white;
    transform: translateY(-2px);
}

/* === CONTACT FORM === */
.contact-form {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    color: #9d4edd;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9d4edd;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
    background: rgba(157, 78, 221, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #7209b7, #9d4edd);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

/* === LOADING ANIMATION === */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(157, 78, 221, 0.3);
    border-radius: 50%;
    border-top-color: #9d4edd;
    animation: spin 1s ease-in-out infinite;
}

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

/* === MILITARY SIMULATION === */
.military-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.control-panel {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    position: relative;
}

.world-map-container {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    height: 350px;
}

.world-map {
    width: 100%;
    height: 100%;
}

.territory {
    stroke: #333;
    stroke-width: 2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.territory.controlled {
    fill: rgba(0, 255, 136, 0.3);
    stroke: #00ff88;
}

.territory.contested {
    fill: rgba(255, 193, 7, 0.3);
    stroke: #ffc107;
    animation: contestedPulse 2s infinite;
}

.territory.neutral {
    fill: rgba(128, 128, 128, 0.2);
    stroke: #666;
}

.territory:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

@keyframes contestedPulse {
    0%, 100% { stroke-opacity: 0.5; }
    50% { stroke-opacity: 1; }
}

.drone-base {
    fill: #9d4edd;
    stroke: #7209b7;
    stroke-width: 2;
    animation: basePulse 3s infinite;
}

.drone {
    fill: #00ff88;
    animation: droneOrbit 4s linear infinite;
}

@keyframes basePulse {
    0%, 100% { r: 8; opacity: 0.8; }
    50% { r: 12; opacity: 1; }
}

@keyframes droneOrbit {
    0% { transform: rotate(0deg) translateX(15px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(15px) rotate(-360deg); }
}

.satellite {
    fill: #ffc107;
    stroke: #ff8f00;
    stroke-width: 1;
    animation: satelliteMove 8s linear infinite;
}

@keyframes satelliteMove {
    0% { transform: translateX(0); }
    50% { transform: translateX(20px); }
    100% { transform: translateX(0); }
}

.cyber-attack {
    stroke: #ff4757;
    stroke-width: 2;
    animation: cyberPulse 1.5s infinite;
    opacity: 0.7;
}

@keyframes cyberPulse {
    0%, 100% { stroke-dasharray: 5,5; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 10,10; stroke-dashoffset: 10; }
}

.map-legend {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.8rem;
    font-size: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.controlled { background: rgba(0, 255, 136, 0.5); border: 1px solid #00ff88; }
.legend-color.contested { background: rgba(255, 193, 7, 0.5); border: 1px solid #ffc107; }
.legend-color.neutral { background: rgba(128, 128, 128, 0.3); border: 1px solid #666; }

.command-console {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1rem;
    height: 350px;
    overflow-y: auto;
}

.command-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.command-section h4 {
    color: #9d4edd;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.command-grid {
    display: grid;
    gap: 0.5rem;
}

.command-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.command-value {
    font-weight: bold;
    color: #00ff88;
}

.command-value.success { color: #00ff88; }
.command-value.warning { color: #ffc107; }
.command-value.error { color: #ff4757; }

.tactical-operations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.operation-panel, .strategy-panel {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
}

.operation-panel h4, .strategy-panel h4 {
    color: #9d4edd;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.operations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.operation-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.operation-item.active {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.operation-item:hover {
    border-color: #9d4edd;
    transform: translateY(-2px);
}

.operation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.operation-name {
    font-weight: bold;
    color: #e0e0e0;
}

.operation-status {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.operation-status.success {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.operation-status.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.operation-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #ccc;
}

.strategy-console {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1rem;
    height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.strategy-line {
    margin: 0.4rem 0;
    color: #00ff88;
    opacity: 0;
    animation: fadeInStrategy 0.8s ease forwards;
}

@keyframes fadeInStrategy {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === DRONE ROUTE SUPREMACY === */
.stealth-supremacy {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(157, 78, 221, 0.05) 100%);
    border: 1px solid #333;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.stealth-supremacy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.1), transparent);
    animation: stealthShimmer 4s infinite;
}

@keyframes stealthShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stealth-supremacy h3 {
    color: #9d4edd;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.stealth-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.stealth-panel, .tech-panel {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
}

.stealth-panel h4, .tech-panel h4 {
    color: #9d4edd;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.stealth-container {
    margin-bottom: 1.5rem;
}

.modern-radar {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 50, 0, 0.3) 50%, rgba(0, 0, 0, 0.9) 100%);
    border: 2px solid #00ff88;
    border-radius: 8px;
    width: 100%;
    height: 300px;
    position: relative;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.radar-grid-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

.coverage-zone {
    position: absolute;
    border: 2px solid #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 4px;
    animation: coverageAlert 3s infinite;
}

@keyframes coverageAlert {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.enemy-drone, .smart-drone {
    position: absolute;
    animation: droneMovement 8s linear infinite;
}

.drone-marker {
    font-size: 1rem;
    text-shadow: 0 0 10px currentColor;
    position: relative;
    z-index: 10;
}

.drone-marker.enemy {
    color: #ff4757;
    animation: enemyPulse 2s infinite;
}

.drone-marker.ours {
    color: #00ff88;
    animation: oursPulse 2s infinite;
}

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

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

@keyframes droneMovement {
    0% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(30px) translateY(-15px); }
    50% { transform: translateX(15px) translateY(20px); }
    75% { transform: translateX(-20px) translateY(10px); }
    100% { transform: translateX(0px) translateY(0px); }
}

.smart-path {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 2px dashed #00ff88;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    animation: smartPathRotate 4s linear infinite;
}

@keyframes smartPathRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.enemy-path {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 2px solid #ff4757;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

.altitude-indicator {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 136, 0.8);
    color: black;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
    animation: altitudeChange 3s infinite;
}

@keyframes altitudeChange {
    0%, 100% { background: rgba(0, 255, 136, 0.8); }
    50% { background: rgba(255, 193, 7, 0.8); }
}

.radar-legend {
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 1rem;
}

.legend-color.enemy-zone {
    background: rgba(255, 71, 87, 0.3);
    border: 1px solid #ff4757;
}

.legend-icon.enemy {
    color: #ff4757;
}

.legend-icon.ours {
    color: #00ff88;
}

.stealth-metrics {
    display: grid;
    gap: 0.8rem;
}

.stealth-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    font-size: 0.9rem;
}

.tech-explanation {
    margin-bottom: 1.5rem;
}

.tech-section {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border-left: 3px solid #9d4edd;
}

.tech-section h5 {
    color: #9d4edd;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.tech-section p {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.4;
}

.tech-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.stealth-operations {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.stealth-operations h4 {
    color: #9d4edd;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.stealth-console {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1rem;
    height: 150px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.stealth-log {
    margin: 0.4rem 0;
    color: #9d4edd;
    opacity: 0;
    animation: fadeInStealth 0.8s ease forwards;
}

@keyframes fadeInStealth {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === DROPDOWN STYLES === */
.dropdown {
    position: relative;
}

.dropdown ul {
    display: none;
    position: absolute;
    background: #000;
    list-style: none;
    padding: 5px 10px;
    margin: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    z-index: 1000;
    border: 1px solid #222;
}

.dropdown:hover ul {
    display: block;
}

.dropdown ul li {
    margin: 0;
    padding: 4px 0;
}

.dropdown ul li a {
    text-decoration: none;
    color: white;
    white-space: nowrap;
    display: block;
    padding: 5px 10px;
    transition: background 0.3s, color 0.3s;
}

.dropdown ul li a:hover {
    background: #a259ff;
    color: #000;
}

.dropdown > a {
    cursor: pointer;
    color: white;
    text-decoration: none;
}

/* === LANGUAGE SWITCH === */
.language-switch {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.flag-switch::before {
    content: "🇮🇹";
    display: inline-block;
    font-size: 20px;
    transition: all 0.3s ease;
    line-height: 1;
}

.flag-switch:hover::before {
    content: "🇬🇧";
    transform: scale(1.1);
}


/* === NO LINK COLORATO=== */
.no-link-style {
    color: inherit;
    text-decoration: none;
}
.no-link-style:hover {
    text-decoration: underline; /* opzionale */
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .neon-logo {
        font-size: 2.5rem;
    }
    
    .quantum-dashboard,
    .military-dashboard,
    .tactical-operations,
    .stealth-dashboard {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .evolution-metrics {
        grid-template-columns: 1fr;
    }

    .world-map-container {
        height: 250px;
    }

    .command-console {
        height: 250px;
    }

    .modern-radar {
        height: 200px;
    }

    .stealth-supremacy {
        padding: 1rem;
    }

    .evolution-grid {
        grid-template-columns: 1fr;
    }

    .app-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .system-core-section {
        padding: 2rem 1rem;
    }
}
