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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    padding-top: 70px; /* Space for fixed nav */
}


.quickShadow {
    text-shadow: 1px 2px 2px black;
}

.quickRadius {
    border: 10px;
}

.secondaryShadow {
    text-shadow: 1px 1px 2px black;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(102, 126, 234, 0.3);
}

.nav-brand:hover {
    opacity: 0.9;
}

.nav-brand img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 8px 0;
}

.nav-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.nav-cta {
    background: white;
    color: #667eea !important;
    padding: 8px 20px 0 20px;
    border-radius: 25px;
    /* font-weight: 600; */
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* Header */
header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* Hurwitz dots: CSS-only background (no canvas) */
.header-hurwitz-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.header-hurwitz-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%);
}

.header-hurwitz-dot.center {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
}

/* Subtle pulse; off when user prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .header-hurwitz-dot {
        animation: header-hurwitz-pulse 4s ease-in-out infinite;
    }
    .header-hurwitz-dot.center {
        animation: header-hurwitz-pulse 5s ease-in-out infinite;
    }
    .header-hurwitz-dot:nth-child(n+2) {
        animation-delay: calc(var(--i, 0) * 0.08s);
    }
}

@keyframes header-hurwitz-pulse {
    0%, 100% { opacity: calc(0.75 * var(--opacity-scale, 1)); }
    50% { opacity: var(--opacity-scale, 1); }
}

header .header-content {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

header p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9em;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cta-button {
    display: inline-block;
    margin: 10px;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: white;
}

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

.stat-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.stat-card .number {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-card .label {
    font-size: 1em;
    opacity: 0.9;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section.white {
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.feature-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-item {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.faq-item h3 {
    color: #667eea;
    margin-bottom: 10px;
}

/* Code Block */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Link List */
.link-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.link-list li {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
}

.link-list a:hover {
    text-decoration: underline;
}

.link-list p {
    color: #666;
    font-size: 0.95em;
    margin-top: 8px;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 60px 0;
}

footer h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
}

footer p {
    opacity: 0.8;
    margin: 10px 0;
}

footer a {
    color: white;
    text-decoration: underline;
}

.tagline {
    font-size: 1.0em;
    font-weight: 100;
    font-style: italic;
    opacity: 0.85;
    margin: -5px 0 15px 0;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
}

#copyR {
    background: #333;
    color: white;
    text-align: center;
    width: 100%;
    border-radius: 5px;
    margin-top: 5%;
}

.stat-card.centered {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.service-card ul {
    list-style: none;
    margin: 15px 0;
}

.service-card ul li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.service-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.service-price {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-weight: 600;
    color: #667eea;
}

/* Why Choose Section */
.why-choose {
    padding: 80px 0;
    background: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature h3 {
    color: #667eea;
    margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: white;
}

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

.case-study {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.case-study h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.case-study .status {
    display: inline-block;
    padding: 5px 15px;
    background: #4caf50;
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: #f9f9f9;
}

.pricing-table {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th {
    background: #667eea;
    color: white;
    padding: 20px;
    text-align: left;
}

.pricing-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background: #f9f9f9;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.contact h2 {
    margin-bottom: 30px;
    font-size: 2.2em;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-info p {
    margin: 15px 0;
    font-size: 1.1em;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

.contact-info a:hover {
    text-decoration: none;
}

/* Form */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Comparison Table Styles */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 1.1em;
    min-width: 800px;
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1em;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.comparison-table th:last-child {
    border-right: none;
}

.comparison-table th.highlight-column {
    background: rgba(255,255,255,0.15);
    position: relative;
}

.comparison-table th.highlight-column::after {
    content: "⭐";
    margin-left: 8px;
    font-size: 0.9em;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s;
}

.comparison-table tbody tr:hover {
    background-color: #f9f9f9;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 20px;
    color: #555;
    border-right: 1px solid #e0e0e0;
}

.comparison-table td:last-child {
    border-right: none;
}

.comparison-table td.highlight-column {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    font-weight: 600;
}

.comparison-table td strong {
    color: #333;
    font-weight: 600;
}

.comparison-table td.highlight-column strong {
    color: #667eea;
}

/* GHZ Visualization Styles */
.visualization-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 40px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
}

.ghz-canvas {
    width: 100%;
    height: 100%;
    position: relative;
}

.visualization-controls {
    position: relative; /* Changed from absolute to fixed */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* Higher z-index to ensure it's on top */
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); /* Added shadow for better visibility */
}

.viz-button {
    background: rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.5);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s;
    font-family: inherit;
}

.viz-button:hover {
    background: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.viz-button.phase-btn.active {
    background: rgba(102, 126, 234, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.5);
}

.viz-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.9);
}

.viz-stat strong {
    color: #fff;
    font-weight: 700;
}

.visualization-info {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.visualization-info p {
    margin: 8px 0;
    color: #555;
    font-size: 0.95em;
}

.visualization-info a {
    color: #667eea;
    text-decoration: none;
}

.visualization-info a:hover {
    text-decoration: underline;
}

/* NIST Comparison Visualization */
.comparison-viz-container {
    width: 100%;
    height: 700px;
    margin: 40px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: visible;
}

.viz-tooltip {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 250px;
}

.viz-tooltip strong {
    color: #fff;
    font-weight: 600;
}

/* Eavesdropper Detection Styles */
.eavesdropper-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: 2px solid #ff4757;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    animation: pulse-danger 2s infinite;
}

.eavesdropper-btn:hover {
    background: linear-gradient(135deg, #ff4757, #c44569);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
    transform: translateY(-2px);
}

.eavesdropper-btn:active {
    transform: translateY(0);
}

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

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(255, 71, 87, 0.8); }
}

.detection-status {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: bold;
    color: #ff4757;
    text-shadow: 0 0 20px rgba(255, 71, 87, 1);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.detection-status.show {
    opacity: 1;
}

.detection-status.detected {
    color: #ff4757;
    animation: detection-pulse 1s ease-out;
}

@keyframes detection-pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Laser beam effect */
.laser-beam {
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #ff4757, #ff6b6b, transparent);
    box-shadow: 0 0 10px #ff4757, 0 0 20px #ff4757, 0 0 30px #ff4757;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.1s;
}

.laser-beam.active {
    opacity: 1;
}


/* ============================================
   MEDIA QUERIES
   ============================================ */

/* Extra Small Devices (phones, < 480px) */

/* Hide comparison link on all mobile screens */
@media (max-width: 768px) {
    .nav-links .comparison-link,
    .nav-links li:has(a[href*="comparison.html"]) {
        display: none;
    }
}

@media (max-width: 768px) {
    .comparison-viz-container {
        height: 900px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .comparison-viz-container {
        height: 1100px;
    }
}

@media (max-width: 768px) {
    .visualization-container {
        height: 500px;
    }
    
    .visualization-controls {
        padding: 10px 15px;
        gap: 10px;
        bottom: 10px;
    }
    
    .viz-button {
        padding: 6px 14px;
        font-size: 0.85em;
    }
    
    .viz-stat {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .visualization-container {
        height: 400px;
    }
    
    .visualization-controls {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .viz-stat {
        font-size: 0.75em;
    }
}


@media (max-width: 479px) {
    .mobile-menu-toggle {
        display: block;
        font-size: 1.3em;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        flex-direction: column;
        padding: 15px;
        gap: 12px;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    body {
        padding-top: 55px;
    }
    
    .nav-brand {
        font-size: 1.2em;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    header p {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .centered-stat-wrapper {
        grid-column: span 1 !important;
        display: block !important;
    }
    
    .centered-stat-wrapper .stat-card {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .comparison-table {
        font-size: 0.75em;
        min-width: 450px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 6px;
    }
    
    .comparison-table th {
        font-size: 0.95em;
    }
}

/* Small Devices (phones, 480px - 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        flex-direction: column;
        padding: 18px;
        gap: 15px;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    body {
        padding-top: 60px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    header p {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .centered-stat-wrapper {
        grid-column: span 1 !important;
        display: block !important;
    }
    
    .centered-stat-wrapper .stat-card {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .comparison-table {
        font-size: 0.8em;
        min-width: 500px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
    
    .comparison-table th {
        font-size: 1em;
    }
}

/* Medium Devices (large phones/small tablets, 576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    body {
        padding-top: 60px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    header p {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .centered-stat-wrapper {
        grid-column: span 1 !important;
        display: block !important;
    }
    
    .centered-stat-wrapper .stat-card {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .comparison-table {
        font-size: 0.85em;
        min-width: 550px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 15px 10px;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    body {
        padding-top: 60px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    header p {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .centered-stat-wrapper {
        grid-column: span 1 !important;
        display: block !important;
    }
    
    .centered-stat-wrapper .stat-card {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .comparison-table {
        font-size: 0.9em;
        min-width: 600px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 15px 12px;
    }
}

/* Tablets Portrait (768px - 834px) - iPad, iPad Mini */
@media (min-width: 768px) and (max-width: 834px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        flex-direction: column;
        padding: 22px;
        gap: 18px;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    body {
        padding-top: 65px;
    }
    
    .comparison-table {
        font-size: 0.95em;
        min-width: 700px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 18px 15px;
    }
}

/* Tablets Landscape / Small Desktops (835px - 991px) */
@media (min-width: 835px) and (max-width: 991px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        gap: 18px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .comparison-table {
        font-size: 1em;
        min-width: 750px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 18px 15px;
    }
}

/* Tablets Large / Small Desktops (992px - 1023px) */
@media (min-width: 992px) and (max-width: 1023px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        gap: 22px;
        
    }
    
    .comparison-table {
        font-size: 1em;
        min-width: 800px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 20px 18px;
    }
}

/* Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    header h1 {
        font-size: 2em;
    }
    
    header p {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .centered-stat-wrapper {
        grid-column: span 1 !important;
        display: block !important;
    }
    
    .centered-stat-wrapper .stat-card {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .comparison-table {
        font-size: 1em;
        min-width: 800px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 20px 18px;
    }
}

/* Desktops (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        gap: 25px;
    }
    
    .nav-brand {
        font-size: 1.4em;
    }
    
    .comparison-table {
        font-size: 1.05em;
        min-width: 900px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 20px 18px;
    }
}

/* Medium Desktops (max-width: 1280px) */
@media (max-width: 1280px) {
    header h1 {
        font-size: 2em;
    }
    
    header p {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .centered-stat-wrapper {
        grid-column: span 1 !important;
        display: block !important;
    }
    
    .centered-stat-wrapper .stat-card {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .comparison-table {
        font-size: 1.05em;
        min-width: 900px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 20px 18px;
    }
}

/* Medium Desktops (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        gap: 28px;
    }
    
    .comparison-table {
        font-size: 1.1em;
        min-width: 1000px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 20px;
    }
}

/* Large Desktops (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        gap: 30px;
    }
    
    .comparison-table {
        font-size: 1.1em;
        min-width: 100%;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 20px;
    }
}

/* Extra Large Desktops (1920px+) */
@media (min-width: 1920px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        gap: 35px;
    }
    
    .nav-brand {
        font-size: 1.6em;
    }
    
    .comparison-table {
        font-size: 1.15em;
        min-width: 100%;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 22px 24px;
    }
}

/* ============================================
   Panel Controls and Stats - Responsive Design
   ============================================ */

/* Base styles for panel controls and stats */
#panel-controls {
    display: flex !important;
    justify-content: space-evenly !important;
    width: 100% !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

#panel-stats {
    display: flex !important;
    justify-content: space-evenly !important;
    width: 100% !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* Tablet and smaller screens (768px and below) */
@media (max-width: 768px) {
    #panel-controls {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    #panel-controls .viz-button {
        width: 100% !important;
        max-width: 300px !important;
    }
    
    #panel-stats {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    
    #panel-stats .viz-stat {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

/* Mobile screens (480px and below) */
@media (max-width: 480px) {
    #panel-controls {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 10px 0 !important;
    }
    
    #panel-controls .viz-button {
        width: 100% !important;
        padding: 10px 16px !important;
        font-size: 0.9em !important;
    }
    
    #panel-stats {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px 0 !important;
    }
    
    #panel-stats .viz-stat {
        width: 100% !important;
        font-size: 0.85em !important;
        padding: 5px 0 !important;
    }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
    #panel-controls .viz-button {
        font-size: 0.85em !important;
        padding: 8px 14px !important;
    }
    
    #panel-stats .viz-stat {
        font-size: 0.8em !important;
    }
}
