body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    animation: gridFlow 20s linear infinite;
    z-index: -1;
}

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

.cyber-overlay {
    position: relative;
    z-index: 1;
    background: rgba(10, 14, 39, 0.85);
    min-height: 100vh;
}

.nexus-main {
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

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

.cyber-terminal {
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid #00ffff;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.4),
        inset 0 0 40px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.cyber-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    animation: terminalScan 6s infinite;
}

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

.terminal-header {
    background: linear-gradient(135deg, #001a2e, #003d5c, #001a2e);
    padding: 18px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #00ffff;
    position: relative;
    z-index: 2;
}

.terminal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.terminal-dot.red {
    background: linear-gradient(45deg, #ff3333, #ff6666);
    box-shadow: 0 0 15px #ff5555;
}

.terminal-dot.yellow {
    background: linear-gradient(45deg, #ffdd33, #ffee66);
    box-shadow: 0 0 15px #ffff55;
}

.terminal-dot.green {
    background: linear-gradient(45deg, #33ff33, #66ff66);
    box-shadow: 0 0 15px #55ff55;
}

.terminal-title {
    color: #00ffff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 15px #00ffff;
    margin-left: 20px;
    letter-spacing: 2px;
    flex: 1;
}

.terminal-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quantum-profile {
    display: grid;
    gap: 30px;
}

.profile-matrix {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.profile-matrix::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    animation: profileScan 8s infinite;
}

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

.matrix-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    border: 3px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 20, 40, 0.8);
    position: relative;
    z-index: 2;
}

.matrix-logo img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.matrix-details {
    flex: 1;
    position: relative;
    z-index: 2;
}

.matrix-title {
    font-size: 28px;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #00ffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.matrix-title i {
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
}

.matrix-actions {
    display: flex;
    gap: 15px;
}

.cyber-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 25px;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px #00ffff;
}

.cyber-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #00ffff;
}

.cyber-btn.primary {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

.cyber-btn.primary:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.7);
}

.cyber-btn.praised {
    background: rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

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

.cyber-btn:hover .btn-beam {
    left: 100%;
}

.data-grid {
    margin: 30px 0;
}

.data-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-node {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.8), rgba(0, 10, 30, 0.6));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-node:hover {
    border-color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
    transform: translateY(-3px);
}

.metric-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.metric-node:hover::before {
    left: 100%;
}

.node-label {
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.node-value {
    font-size: 24px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    position: relative;
    z-index: 2;
}

.info-matrix {
    margin: 30px 0;
}

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

.info-node {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.6), rgba(0, 10, 30, 0.4));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-node:hover {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.info-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-node:hover::before {
    left: 100%;
}

.info-label {
    color: #a0a0a0;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.info-value {
    color: #ffffff;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.domain-text {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.rating-stars img {
    filter: drop-shadow(0 0 10px #ffff00);
}

.tools-section {
    margin: 30px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.05));
    border: 2px solid #00ffff;
    border-radius: 12px;
}

.section-signal {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #00ff00, #00cc00);
    box-shadow: 0 0 20px #00ff00;
    animation: signalBlink 1.5s infinite;
    position: relative;
}

.section-signal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%);
}

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

.section-title {
    color: #00ffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 15px #00ffff;
    letter-spacing: 1px;
}

.tools-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.tool-node {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    color: #00ffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px #00ffff;
}

.tool-node:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #00ffff;
}

.tool-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tool-node:hover::before {
    left: 100%;
}

.content-terminal {
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid #00ffff;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.4),
        inset 0 0 40px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.content-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    animation: terminalScan 6s infinite;
}

.content-body {
    line-height: 1.8;
    color: #ffffff;
    font-size: 16px;
    padding: 25px;
    background: rgba(0, 20, 40, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.site-description {
    color: #ffffff;
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
}

.advantage-matrix {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.advantage-node {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.6), rgba(0, 10, 30, 0.4));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    line-height: 1.6;
}

.advantage-node:hover {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateX(5px);
}

.advantage-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.advantage-node:hover::before {
    left: 100%;
}

.advantage-node strong {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    position: relative;
    z-index: 2;
}

.recommendation-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 0;
}

.recommendation-node {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.8), rgba(0, 10, 30, 0.6));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recommendation-node:hover {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.recommendation-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.recommendation-node:hover::before {
    left: 100%;
}

.recommendation-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 20, 40, 0.8);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.recommendation-icon img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.recommendation-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    position: relative;
    z-index: 2;
}

.recommendation-node:hover .recommendation-title {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

@media (max-width: 768px) {
    .nexus-container {
        padding: 0 15px;
    }

    .terminal-content {
        padding: 20px;
    }

    .profile-matrix {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .matrix-title {
        font-size: 22px;
        justify-content: center;
    }

    .matrix-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .data-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tools-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .recommendation-matrix {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .terminal-header {
        padding: 15px 20px;
    }

    .terminal-title {
        font-size: 14px;
        margin-left: 15px;
    }

    .content-body {
        padding: 20px;
        font-size: 15px;
    }

    .cyber-btn {
        font-size: 13px;
        padding: 10px 16px;
    }

    .section-header {
        padding: 15px 20px;
    }

    .section-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nexus-main {
        padding: 20px 0;
    }

    .data-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tools-matrix {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .matrix-title {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
    }

    .matrix-actions {
        flex-direction: column;
        width: 100%;
    }

    .cyber-btn {
        justify-content: center;
    }

    .terminal-content {
        padding: 15px;
    }

    .content-body {
        padding: 15px;
        font-size: 14px;
    }
}

.star-image.loading {
    opacity: 0.5;
    filter: blur(2px);
}

.star-image.loaded {
    opacity: 1;
    filter: none;
    transition: all 0.3s ease;
}

.cyber-btn i {
    transition: all 0.3s ease;
}

.cyber-btn:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 15px currentColor;
}

.metric-node .node-value {
    animation: valueGlow 3s infinite;
}

@keyframes valueGlow {
    0%, 100% { 
        text-shadow: 0 0 15px #00ffff; 
    }
    50% { 
        text-shadow: 0 0 25px #00ffff, 0 0 35px #00ffff; 
    }
}

.terminal-dot {
    animation: dotPulse 2s infinite;
}

.terminal-dot.red {
    animation-delay: 0s;
}

.terminal-dot.yellow {
    animation-delay: 0.3s;
}

.terminal-dot.green {
    animation-delay: 0.6s;
}

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