:root {
    /* Cyber-Physics Lab Theme Palette */
    --bg-color: #0a0e1a;
    /* Deep Navy/Black */
    --card-bg: rgba(15, 23, 42, 0.6);
    /* Glassmorphism base */
    --primary-color: #00f0ff;
    /* Neon Cyan */
    --primary-hover: #33f3ff;
    /* Lighter Neon Cyan */
    --secondary-color: #a855f7;
    /* Electric Purple */
    --accent-color: #a855f7;
    /* Electric Purple */
    --text-main: #f8fafc;
    /* White/Light Grey */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --border-color: rgba(255, 255, 255, 0.1);
    /* Subtle white border */
    --border-glow: rgba(0, 240, 255, 0.3);
    /* Cyan glow border */

    /* Glows & Shadows */
    --shadow-sm: 0 0 10px rgba(0, 240, 255, 0.1);
    --shadow-md: 0 0 20px rgba(0, 240, 255, 0.2);
    --shadow-lg: 0 0 30px rgba(0, 240, 255, 0.3);
    --glow-primary: 0 0 20px rgba(0, 240, 255, 0.6);
    --glow-accent: 0 0 20px rgba(168, 85, 247, 0.6);

    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    scroll-margin-top: 120px;
}

/* Particle Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
}

/* Navigation - Floating Pill Shape */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 800px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.8),
        0 0 30px rgba(0, 240, 255, 0.4);
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 20px rgba(0, 240, 255, 1),
        0 0 40px rgba(0, 240, 255, 0.6);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 10rem 0 6rem;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.8),
        0 0 40px rgba(0, 240, 255, 0.5),
        0 0 60px rgba(0, 240, 255, 0.3);
    letter-spacing: 2px;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(0, 240, 255, 0.8),
            0 0 40px rgba(0, 240, 255, 0.5),
            0 0 60px rgba(0, 240, 255, 0.3);
    }

    50% {
        text-shadow: 0 0 30px rgba(0, 240, 255, 1),
            0 0 60px rgba(0, 240, 255, 0.7),
            0 0 90px rgba(0, 240, 255, 0.5);
    }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.hero-text {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 240, 255, 0.1);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    color: var(--text-muted);
    padding-left: 0;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: var(--primary-color);
}

/* Topics Grid */
.topics-section {
    padding: 5rem 0;
}

.topics-section h2,
.about-section h2,
.contact-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    letter-spacing: 1px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Glassmorphism Topic Cards */
.topic-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(168, 85, 247, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
}

.topic-card:hover::before {
    opacity: 1;
}

.topic-card:hover {
    transform: translateY(-8px) perspective(1000px) rotateX(2deg);
    box-shadow: var(--glow-primary), 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.topic-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.topic-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* About & Contact Sections */
.about-section,
.contact-section {
    padding: 5rem 0;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem;
    margin: 0 auto;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
}

.contact-card .btn {
    min-width: 180px;
    text-align: center;
    justify-content: center;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-lead {
    color: var(--text-main);
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.contact-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.contact-link:hover {
    text-shadow: 0 0 10px var(--primary-color);
}

.contact-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Topic Detail View */
.view {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.view.active {
    display: block;
}

.view.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topic-header {
    text-align: center;
    margin: 2rem 0 3rem;
    padding-top: 6rem;
}

.topic-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.topic-content-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.card-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.card-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: var(--glow-primary);
    transform: translateY(-4px);
}

.card-btn h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-btn p {
    color: var(--text-muted);
}

/* Simulation Section - Futuristic Monitor */
.content-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    margin-bottom: 3rem;
    max-width: 100%;
}

.content-section.hidden {
    display: none;
}

.content-section h2 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

#simulation-container {
    width: 100%;
    height: clamp(420px, 70vh, 620px);
    min-height: 360px;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
    border: 2px solid var(--primary-color);
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 240, 255, 0.4),
        0 0 60px rgba(0, 240, 255, 0.2);
}

/* Futuristic corner accents */
#simulation-container::before,
#simulation-container::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--secondary-color);
    z-index: 10;
}

#simulation-container::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    box-shadow: -5px -5px 15px rgba(168, 85, 247, 0.5);
}

#simulation-container::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    box-shadow: 5px 5px 15px rgba(168, 85, 247, 0.5);
}

/* Shared overlay cards for stats/graphs inside simulations */
.sim-overlay-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    box-shadow: var(--shadow-md);
    z-index: 4;
    backdrop-filter: blur(12px);
    max-width: 320px;
    width: max-content;
}

.sim-overlay-top-right {
    top: 10px;
    right: 10px;
}

.sim-overlay-bottom-left {
    bottom: 10px;
    left: 10px;
}

.sim-overlay-bottom-right {
    bottom: 10px;
    right: 10px;
}

.sim-overlay-center {
    left: 50%;
    transform: translateX(-50%);
}

.sim-overlay-bottom {
    bottom: 10px;
}

.sim-graph {
    width: 320px;
    max-width: 100%;
    height: auto;
    display: block;
}

.controls-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(10, 14, 26, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 3px;
    border: 1px solid var(--glass-border);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 15px var(--primary-color);
    border: 2px solid white;
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 25px var(--primary-color);
}

/* Materials Section */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.material-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.material-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}

.material-link .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    font-weight: 700;
}

/* Footer */
footer {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 0.75rem 1.5rem;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero .hero-text {
        font-size: 1rem;
    }

    .topic-content-selector {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translateX(-50%) translateY(-200%);
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        width: 90%;
        max-width: 300px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        transform: translateX(-50%) translateY(0);
    }

    #simulation-container {
        height: clamp(320px, 60vh, 480px);
        min-height: 320px;
    }

    #simulation-container .sim-overlay-card {
        left: 10px;
        right: 10px;
        max-width: none;
        width: auto;
        transform: none;
    }

    .controls-panel {
        grid-template-columns: 1fr;
        max-height: none;
        overflow-y: auto;
        padding: 1.5rem;
    }

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

    .sim-overlay-card {
    font-size: 0.9rem;
    padding: 10px 12px;
    width: auto;
    max-width: calc(100% - 20px);
}

    .sim-graph {
        width: 100%;
    }

    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    .topic-header {
        padding-top: 5rem;
    }

    .content-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .contact-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }

    .contact-card .btn {
        width: 100%;
    }

}

.control-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 3px;
    border: 1px solid var(--glass-border);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 15px var(--primary-color);
    border: 2px solid white;
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 25px var(--primary-color);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 3px;
    border: 1px solid var(--glass-border);
}

input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-color);
    border: 2px solid white;
    transition: transform 0.2s;
}

input[type=range]::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 25px var(--primary-color);
}

/* Checkbox custom styling */
input[type=checkbox] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-left: 10px;
    transition: all 0.2s;
}

input[type=checkbox]:checked {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

input[type=checkbox]:checked::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Select dropdown styling */
select {
    background: rgba(15, 23, 42, 0.8);
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
}

select:hover {
    border-color: var(--primary-color);
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Mobile specific improvements */
@media (max-width: 640px) {
    html, body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 14px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .topics-section h2,
    .about-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .topic-card {
        padding: 2rem;
    }

    #simulation-container {
        height: clamp(320px, 70vh, 520px);
        min-height: 320px;
    }

    .controls-panel {
        padding: 1rem;
        gap: 1rem;
        max-height: none;
    }

    /* Let overlays flow below the canvas instead of covering it */
    #simulation-container {
        position: relative;
    }

    .sim-overlay-card {
        position: static;
        margin: 8px auto 0;
        width: 100%;
        max-width: 100%;
    }

    .sim-overlay-top-right,
    .sim-overlay-bottom-left,
    .sim-overlay-bottom-right,
    .sim-overlay-bottom,
    .sim-overlay-center {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .hero {
        padding: 7rem 0 3rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #simulation-container {
        height: clamp(300px, 65vh, 480px);
        min-height: 300px;
    }

    .content-section {
        padding: 1rem;
    }

    .controls-panel {
        padding: 1rem;
    }

    .sim-overlay-card {
        margin: 6px auto 0;
    }
}

/* Landscape mobile fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 6rem 0 2rem;
    }

    #simulation-container {
        height: 300px;
    }

    .topic-header {
        padding-top: 4rem;
        margin: 1rem 0 2rem;
    }
}
