@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --info: #38bdf8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Beams Background - Exact ReactBits Style */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #000000;
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    background-image: 
        repeating-linear-gradient(
            30deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 53px
        ),
        repeating-linear-gradient(
            120deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 53px
        ),
        repeating-linear-gradient(
            210deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 53px
        );
    animation: beamsMove 20s linear infinite;
    opacity: 0.4;
}

.animated-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(52, 211, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes beamsMove {
    0% { 
        transform: translate(0, 0) rotate(30deg);
    }
    100% { 
        transform: translate(-100px, -100px) rotate(30deg);
    }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Quantum Particles */
.quantum-particle {
    position: absolute;
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, transparent, #ffffff, transparent);
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px rgba(96, 165, 250, 0.5);
    animation: floatParticle 15s infinite ease-in-out;
    opacity: 0.6;
}

.quantum-particle:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
    animation-duration: 12s;
    transform: rotate(30deg);
}

.quantum-particle:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 18s;
    transform: rotate(120deg);
}

.quantum-particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 8s;
    animation-duration: 15s;
    transform: rotate(210deg);
}

@keyframes floatParticle {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(30deg); 
        opacity: 0.4; 
    }
    25% { 
        transform: translate(150px, -150px) scale(1.2) rotate(60deg); 
        opacity: 0.8; 
    }
    50% { 
        transform: translate(250px, 80px) scale(0.8) rotate(90deg); 
        opacity: 0.5; 
    }
    75% { 
        transform: translate(-80px, 200px) scale(1.1) rotate(120deg); 
        opacity: 0.6; 
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header with ASCII Text Style */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

.logo h1 {
    font-family: 'Space Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 50%, var(--success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(96, 165, 250, 0.5);
    animation: glitchText 8s infinite;
    position: relative;
}

/* ASCII-style glitch effect */
@keyframes glitchText {
    0%, 90%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    92% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(20deg);
    }
    94% {
        transform: translate(2px, -2px);
        filter: hue-rotate(-20deg);
    }
    96% {
        transform: translate(-1px, 1px);
    }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    font-family: 'Space Mono', monospace;
}

/* Threat Meter */
.threat-meter {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.threat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.threat-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.threat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
    border-radius: 6px;
    transition: width 1s ease;
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 20px rgba(248, 113, 113, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 30px rgba(248, 113, 113, 0.8); }
}

.threat-text {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Space Mono', monospace;
}

/* Glass Morphism Cards */
.card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Space Mono', monospace;
}

.card h2 i {
    background: rgba(96, 165, 250, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 12px;
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    flex-wrap: wrap;
}

.tab {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Algorithm Selection */
.algorithm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.algorithm-option {
    cursor: pointer;
}

.algorithm-option input[type="radio"] {
    display: none;
}

.option-content {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.option-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(96, 165, 250, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.algorithm-option input[type="radio"]:checked + .option-content {
    border-color: var(--primary);
    background: rgba(96, 165, 250, 0.1);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.algorithm-option input[type="radio"]:checked + .option-content::before {
    opacity: 1;
}

.option-content:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.5);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.option-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
}

.option-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
}

.stats i {
    color: var(--primary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Space Mono', monospace;
}

.badge.quantum-safe {
    background: rgba(52, 211, 153, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.badge.vulnerable {
    background: rgba(248, 113, 113, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(248, 113, 113, 0); }
    50% { box-shadow: 0 0 20px rgba(248, 113, 113, 0.4); }
}

.badge.hybrid {
    background: rgba(56, 189, 248, 0.2);
    color: var(--info);
    border: 1px solid var(--info);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(96, 165, 250, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #10b981);
    color: white;
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.4);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(52, 211, 153, 0.6);
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #0ea5e9);
    color: white;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}

.btn-info:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.6);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    color: white;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.pulse {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(96, 165, 250, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(96, 165, 250, 0.8); }
}

/* File Upload */
.file-upload-area {
    margin-bottom: 25px;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: var(--primary);
    background: rgba(96, 165, 250, 0.05);
    transform: translateY(-2px);
}

.file-label i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.file-label span {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

input[type="file"] {
    display: none;
}

.file-name {
    margin-top: 15px;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

/* Status Messages */
.status-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    display: none;
    font-family: 'Space Mono', monospace;
    animation: slideIn 0.4s ease;
}

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

.status-message.success {
    background: rgba(52, 211, 153, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
    display: block;
}

.status-message.error {
    background: rgba(248, 113, 113, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
    display: block;
}

/* Chat Interface */
.chat-container {
    max-height: 800px;
    display: flex;
    flex-direction: column;
}

.chat-intro {
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    max-height: 500px;
}

.chat-message {
    margin-bottom: 20px;
    animation: messageSlide 0.3s ease;
}

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

.chat-message.user {
    text-align: right;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    margin-left: auto;
}

.message-content {
    display: inline-block;
    max-width: 80%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.message-content strong {
    color: var(--primary);
    font-family: 'Space Mono', monospace;
}

.chat-input-area {
    display: flex;
    gap: 15px;
}

#chatInput {
    flex: 1;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

#chatInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

/* Loading Animation */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
}

.loading i {
    font-size: 2rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .algorithm-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        width: 100%;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

.footer p {
    margin: 8px 0;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* AI Analysis */
.ai-analysis {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.ai-analysis h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-family: 'Space Mono', monospace;
}

/* Risk Forms */
.risk-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
}

.risk-result {
    margin-top: 25px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* Benchmark Results */
.benchmark-results {
    margin-top: 25px;
}

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

.result-item {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(96, 165, 250, 0.3);
}

.result-item h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
}

.result-item .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Space Mono', monospace;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.result-item small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Space Mono', monospace;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
/* Enhanced Beams Background - Matching ReactBits Parameters */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #000000;
    transform: rotate(30deg) scale(1.5);
    transform-origin: center center;
}

.beam {
    position: absolute;
    width: 3px;  /* beamWidth */
    height: 30vh; /* beamHeight in relative units */
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    top: -30vh;
    filter: blur(1px);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
    animation: beamFall 5s linear infinite; /* speed = 2 */
}

/* Add noise effect - noiseIntensity: 1.75 */
.beam::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.175'/%3E%3C/svg%3E");
    opacity: 0.175; /* noiseIntensity converted */
    mix-blend-mode: overlay;
}

@keyframes beamFall {
    0% {
        transform: translateY(0) scaleY(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(130vh) scaleY(0.2); /* scale: 0.2 */
        opacity: 0;
    }
}

/* Vary beam intensities */
.beam:nth-child(odd) {
    opacity: 0.7;
}

.beam:nth-child(even) {
    opacity: 0.9;
}

.beam:nth-child(3n) {
    animation-duration: 4.5s;
}

.beam:nth-child(5n) {
    animation-duration: 5.5s;
}

/* Attack Simulator Styles */
.attack-container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
}

.attack-stage {
    text-align: center;
}

.stage-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: 'Space Mono', monospace;
    animation: pulse 2s infinite;
}

.progress-container {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 15px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stage-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
}

.attack-result {
    padding: 25px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    margin-top: 20px;
}

.result-broken {
    border: 2px solid var(--danger);
    background: rgba(248, 113, 113, 0.1);
}

.result-secure {
    border: 2px solid var(--success);
    background: rgba(52, 211, 153, 0.1);
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

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