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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Navigation Bar */
.navigation {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 25px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    font-size: 1.2em;
}

.nav-text {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: white;
}

.nav-title {
    flex: 1;
    text-align: center;
}

.nav-title h1 {
    color: white;
    margin: 0;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Suggested Simulations Section */
.suggested-section {
    background: white;
    padding: clamp(20px, 4vw, 40px);
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.suggested-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.simulation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(15px, 3vw, 25px);
}

.simulation-card {
    display: block;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.simulation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    border-color: #3498db;
    background: white;
}

.card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.simulation-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.simulation-card p {
    color: #666;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.5;
    margin: 0;
}

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

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.theory-section {
    margin-bottom: 30px;
}

.theory-card {
    background: white;
    border-radius: 8px;
    padding: clamp(15px, 3vw, 25px);
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theory-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

.equation {
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow-x: auto;
}

.simulation-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.visualization {
    flex: 2;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.visualization canvas {
    width: 100%;
    height: clamp(300px, 50vh, 500px);
    background: #f8f9fa;
    border-radius: 4px;
}

.controls {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.control-group input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

.control-group span {
    display: inline-block;
    min-width: 60px;
    text-align: right;
    color: #666;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

button {
    display: block;
    width: 100%;
    padding: clamp(8px, 2vw, 12px);
    margin: 10px 0;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

button:hover {
    background: #2980b9;
}

.data-display {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.data-group {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-group h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.data-group p {
    margin-bottom: 10px;
    color: #666;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.data-group span {
    color: #2c3e50;
    font-weight: bold;
}

/* Media Queries */
@media (max-width: 768px) {
    .simulation-container {
        flex-direction: column;
    }
    
    .visualization, .controls {
        flex: none;
        width: 100%;
    }
    
    .data-display {
        flex-direction: column;
    }
    
    .data-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .theory-card, .visualization, .controls, .data-group {
        padding: 15px;
    }
    
    .equation {
        font-size: 0.9rem;
    }
} 