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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #00ff00;
    overflow-x: hidden;
    position: relative;
}

/* Matrix Rain Effect */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-size: 20px;
    animation: matrix-fall linear infinite;
}

@keyframes matrix-fall {
    to {
        top: 100%;
    }
}

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

/* Header */
.header {
    text-align: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.main-title {
    font-size: 4em;
    background: linear-gradient(45deg, #00ff00, #00ffff, #00ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite;
    text-shadow: 0 0 30px #00ff00;
}

@keyframes glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 10px #00ff00); }
    50% { filter: brightness(1.2) drop-shadow(0 0 20px #00ffff); }
}

.subtitle {
    color: #00ffff;
    font-size: 1.5em;
    margin-top: 20px;
    animation: pulse 2s infinite;
}

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

/* Navigation */
.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
    padding: 20px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #00ff00;
    border-radius: 10px;
}

.nav-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 255, 0.1));
    border: 2px solid #00ff00;
    color: #00ff00;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    border-radius: 5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, #00ffff, transparent);
    transition: width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

.nav-btn:hover::before {
    width: 100%;
    height: 100%;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 255, 0, 0.3));
    box-shadow: 0 0 20px #00ffff, inset 0 0 10px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.3), rgba(0, 255, 255, 0.3));
    box-shadow: 0 0 30px #00ff00;
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 10px;
    margin-top: 30px;
}

.content-section.active {
    display: block;
}

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

.section-title {
    font-size: 2.5em;
    color: #00ffff;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 20px #00ffff;
}

/* Cards */
.card {
    background: linear-gradient(135deg, rgba(0, 50, 0, 0.9), rgba(0, 30, 30, 0.9));
    border: 1px solid #00ff00;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff00, #00ffff, #00ff00);
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.3s;
}

.card:hover::after {
    opacity: 0.5;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.card-header {
    font-size: 1.8em;
    color: #00ffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card-icon {
    font-size: 1.5em;
    margin-right: 10px;
}

/* Strategy Grid */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.strategy-item {
    background: rgba(0, 40, 40, 0.5);
    border: 1px solid #00ffff;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.strategy-item:hover {
    background: rgba(0, 60, 60, 0.7);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.strategy-header {
    color: #00ff00;
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* Alert Box */
.alert-box {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 100, 0, 0.1));
    border: 2px solid #ff4444;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    animation: alertPulse 2s infinite;
}

@keyframes alertPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.8); }
}

.alert-box h3 {
    color: #ff4444;
    margin-bottom: 10px;
}

/* Success Box */
.success-box {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 100, 0.1));
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

/* Interactive Elements */
.interactive-panel {
    background: rgba(0, 50, 50, 0.3);
    border: 1px solid #00ffff;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.input-group {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-group label {
    color: #00ffff;
    min-width: 150px;
}

.input-group input, .input-group select {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    color: #00ff00;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.calculate-btn {
    background: linear-gradient(135deg, #00ff00, #00ffff);
    color: #000;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    width: 100%;
}

.calculate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.7);
}

/* Results Display */
.results-display {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.results-display.show {
    display: block;
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Simulation Display */
.simulation-container {
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.simulation-graph {
    height: 300px;
    position: relative;
    background: linear-gradient(180deg, rgba(0, 255, 0, 0.05), transparent);
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.data-table th {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    font-weight: bold;
    text-transform: uppercase;
}

.data-table tr:hover {
    background: rgba(0, 255, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5em;
    }
    
    .strategy-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group label {
        min-width: auto;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 50px;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 0, 0.2);
    border-top: 4px solid #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Code Block */
.code-block {
    background: #000;
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

.code-block code {
    color: #00ff00;
    font-size: 0.9em;
}

/* Lists */
ul {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin: 8px 0;
    color: #00ffff;
}

p {
    margin: 10px 0;
    line-height: 1.6;
}

strong {
    color: #00ffff;
}
