/* Base Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Modern Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(to right, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 1.5rem;
    margin: 2rem auto;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-top: 0;
}

/* Subtle pattern overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

/* Title Styling */
.main-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    text-align: center;
    background: linear-gradient(45deg, var(--accent-primary), #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(79, 70, 229, 0.1);
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), #4f46e5);
    border-radius: 3px;
}

/* Subtitle Styling */
.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.75rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Modern Card Grid System */
.grid-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem auto;
}

/* Enhanced Info Cards */
.info-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    animation: fadeUp 0.6s ease-out;
}

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Interactive EDID Structure */
.edid-interactive {
    background: var(--bg-tertiary);
    padding: 5rem 0;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.edid-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-primary);
    opacity: 0.2;
}

.interactive-container {
    background: var(--bg-secondary);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.edid-visual {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.byte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.byte-section {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.byte-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-primary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.byte-label {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.8;
}

.byte-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.byte-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.byte-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.byte-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    background: var(--bg-secondary);
}

.byte-section:hover::before {
    opacity: 1;
    width: 6px;
}

.byte-section.active {
    background: var(--accent-primary);
    color: white;
    border-color: transparent;
}

.byte-section.active .byte-label,
.byte-section.active .byte-title,
.byte-section.active .byte-desc {
    color: white;
}

.byte-info {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 2rem;
}

.byte-info h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.info-default {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.info-content {
    min-height: 200px;
    transition: all 0.3s ease;
}

.info-content h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Dark mode adjustments */
[data-theme="dark"] .byte-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .byte-info {
    background: var(--bg-secondary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .edid-visual {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .byte-info {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .edid-interactive {
        padding: 3rem 1rem;
    }

    .interactive-container {
        padding: 1.5rem;
    }

    .byte-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
}

/* Extensions Section */
.extensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.extension-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeUp 0.6s ease-out;
}

.extension-icon {
    font-size: 2.5rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.extension-card:hover .extension-icon {
    transform: scale(1.2);
}

.extension-card ul {
    margin-top: 1.5rem;
}

.extension-card li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.extension-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.extension-card li:hover {
    transform: translateX(5px);
}

/* Tools Section */
.tools-section {
    padding: 4rem 0;
}

.tool-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeUp 0.6s ease-out;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

/* Dark Mode Enhancements */
[data-theme="dark"] .info-card,
[data-theme="dark"] .extension-card,
[data-theme="dark"] .tool-card {
    background: var(--bg-secondary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

[data-theme="dark"] .hero-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .info-icon {
    background: var(--bg-tertiary);
}

/* Info Cards - Enhanced */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

/* Extensions Section - Enhanced */
.edid-extensions {
    padding: 4rem 0;
    background: var(--bg-tertiary);
    border-radius: 1.5rem;
    margin: 4rem 0;
}

/* Common Issues Section - Enhanced */
.common-issues {
    margin: 4rem 0;
}

.issues-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.issue-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.solution {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    border-left: 4px solid var(--accent-primary);
}

/* Features Section - Enhanced */
.features-section {
    padding: 4rem 0;
    background: var(--bg-tertiary);
    border-radius: 1.5rem;
    margin: 4rem 0;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

/* Tools Section - Enhanced */
.tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Dark mode specific adjustments */
[data-theme="dark"] .edid-block {
    background: var(--bg-secondary);
}

/* Ensure tooltips are readable in dark mode */
[data-theme="dark"] .edid-block::after {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* EDID Interactive Visualization */
.edid-visual {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.byte-label,
.byte-content {
    pointer-events: none;
}

.info-content {
    min-height: 150px;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.info-content.updating {
    opacity: 0;
}

.info-content h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.info-content p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Extensions Grid */
.extension-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.extension-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.extension-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Common Issues Section */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.issue-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.solution {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-primary);
}

/* Dark mode adjustments */
[data-theme="dark"] .extension-card,
[data-theme="dark"] .issue-card {
    background: var(--bg-secondary);
    box-shadow: 0 4px 6px var(--shadow-color);
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-primary);
}

/* Dark mode specific adjustments */
[data-theme="dark"] .edid-block {
    background: var(--bg-secondary);
}

/* Ensure tooltips are readable in dark mode */
[data-theme="dark"] .edid-block::after {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* EDID Interactive Visualization */
.edid-interactive {
    margin: 4rem 0;
    animation: fadeIn 0.5s ease-out;
}

.interactive-container {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.edid-visual {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.byte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.byte-section {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    width: 100%;
}

.byte-section:hover,
.byte-section.active {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.byte-label,
.byte-content {
    pointer-events: none;
}

.info-content {
    min-height: 150px;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.info-content.updating {
    opacity: 0;
}

.info-content h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.info-content p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Extensions Grid */
.extension-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.extension-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.extension-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Common Issues Section */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.issue-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.solution {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-primary);
}

/* Dark mode adjustments */
[data-theme="dark"] .extension-card,
[data-theme="dark"] .issue-card {
    background: var(--bg-secondary);
    box-shadow: 0 4px 6px var(--shadow-color);
}

/* Section Title Styling */
section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-primary);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    position: relative;
    padding-bottom: 1rem;
    background: none;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Hero Section Title Styling */
.main-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 4px;
}

/* Subtitle Styling */
.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Dark mode adjustments */
[data-theme="dark"] .subtitle {
    color: #94a3b8;
}

/* Ensure header stays consistent with home page */
.header {
    background-color: var(--bg-secondary);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Ensure brand text positioning matches home page */
.brand-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.brand-edid {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-craft {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Remove the main padding adjustments since we're using sticky positioning */
main {
    padding-top: 0;
}

main.container {
    padding-top: 0;
    margin-top: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Fundamentals Section */
.fundamentals-section {
    margin: 5rem 0;
}

.fundamentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.fundamental-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.fundamental-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.process-flow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: bold;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.benefit-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

/* Structure Section */
.structure-section {
    margin: 5rem 0;
    background: var(--bg-tertiary);
    padding: 4rem 2rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
}

.structure-container {
    max-width: 1400px;
    margin: 0 auto;
}

.structure-visual h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.byte-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.byte-section-detailed {
    background: var(--bg-secondary);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.byte-section-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), #4f46e5);
}

.byte-section-detailed:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.byte-range {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.byte-content h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.byte-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.byte-purpose {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 0.75rem;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 4px solid var(--accent-primary);
}

.byte-details, .version-info, .display-features, .color-info, .timing-types, .descriptor-types, .footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.byte-details span, .version-info span, .display-features span, .color-info span, .timing-types span, .descriptor-types span, .footer-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

/* Extensions Section */
.extensions-section {
    margin: 5rem 0;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.extensions-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.extension-card-detailed {
    background: var(--bg-secondary);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.extension-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.extension-header {
    background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
    color: white;
    padding: 2rem;
    text-align: center;
}

.extension-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.extension-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.extension-tag {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.extension-content {
    padding: 2.5rem;
}

.extension-content > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-categories, .displayid-features {
    display: grid;
    gap: 2rem;
}

.feature-category, .feature-group {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.feature-category h4, .feature-group h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-category ul, .feature-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-category li, .feature-group li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.feature-category li:last-child, .feature-group li:last-child {
    border-bottom: none;
}

.feature-category li::before, .feature-group li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.data-blocks-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.data-blocks-info h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.data-block-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.data-block-tag {
    background: var(--accent-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.other-extensions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ext-item {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--accent-primary);
    color: var(--text-secondary);
}

.ext-item strong {
    color: var(--text-primary);
}

/* Ultra HD Section */
.ultra-hd-section {
    margin: 5rem 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 4rem 2rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
}

.resolution-showcase {
    margin-top: 3rem;
}

.resolution-tier {
    margin-bottom: 4rem;
}

.resolution-tier h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.resolution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.resolution-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resolution-card.current {
    border-color: var(--accent-primary);
}

.resolution-card.future {
    border-color: #9333ea;
    background: linear-gradient(135deg, var(--bg-primary), rgba(147, 51, 234, 0.05));
}

.resolution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.resolution-header {
    text-align: center;
    margin-bottom: 2rem;
}

.resolution-header h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.resolution-spec {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.resolution-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.resolution-features, .resolution-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: var(--accent-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-tag {
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-tag.experimental {
    background: #f59e0b;
    color: white;
}

.status-tag.research {
    background: #9333ea;
    color: white;
}

/* Technical Challenges */
.technical-challenges {
    margin: 4rem 0;
}

.technical-challenges h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.challenge-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.challenge-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.challenge-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.challenge-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.solutions {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid var(--accent-primary);
}

.solutions h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.solutions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solutions li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.solutions li::before {
    content: '✓';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Interface Evolution */
.interface-evolution {
    margin: 4rem 0;
}

.interface-evolution h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.interface-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.timeline-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    background: var(--accent-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .fundamentals-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-flow {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .byte-grid-detailed {
        grid-template-columns: 1fr;
    }
    
    .extensions-grid-detailed {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .resolution-grid {
        grid-template-columns: 1fr;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .interface-timeline {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
}

/* CVT Section */
.cvt-section {
    margin: 5rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    border-radius: 2rem;
}

.cvt-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.cvt-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.cvt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cvt-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cvt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cvt-card h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

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

.cvt-card li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.cvt-card li::before {
    content: '▶';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.version-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.version h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.parameter-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
}

.param-name {
    font-weight: 600;
    color: var(--text-primary);
}

.param-value {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.cvt-calculator {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
}

.btn-calculator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-calculator:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.arrow {
    transition: transform 0.3s ease;
}

.btn-calculator:hover .arrow {
    transform: translateX(5px);
}

/* Timing Standards Section */
.timing-standards {
    margin: 5rem 0;
    padding: 3rem 0;
}

.timing-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.timing-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.timing-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.timing-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.timing-comparison {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
}

.timing-comparison h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.comparison-table {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1px;
    background: var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
}

.table-row {
    display: contents;
}

.table-row.header {
    background: var(--accent-primary);
}

.cell {
    padding: 1rem;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
}

.table-row.header .cell {
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
}

/* Common Issues Section */
.common-issues {
    margin: 5rem 0;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.issue-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.issue-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.issue-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.issue-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.solution {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid var(--accent-primary);
}

.solution strong {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Tools Section */
.tools-section {
    margin: 5rem 0;
    text-align: center;
}

.tools-section h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    display: block;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.tool-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.tool-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Additional responsive styles for new sections */
@media (max-width: 768px) {
    .cvt-section {
        margin: 3rem 0;
        padding: 2rem 1rem;
    }
    
    .cvt-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timing-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .table-row:not(.header) .cell:not(:first-child) {
        display: none;
    }
    
    .cell {
        justify-content: flex-start;
        text-align: left;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .issues-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced EDID Visualization */
.visualization-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.edid-visual-enhanced {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.byte-map-container {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.byte-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.byte-map-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.byte-map-controls {
    display: flex;
    gap: 1rem;
}

.btn-toggle {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-toggle:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-toggle.active {
    background: var(--accent-secondary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.byte-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.byte-section-enhanced {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.byte-section-enhanced:nth-child(1) { animation-delay: 0.1s; }
.byte-section-enhanced:nth-child(2) { animation-delay: 0.2s; }
.byte-section-enhanced:nth-child(3) { animation-delay: 0.3s; }
.byte-section-enhanced:nth-child(4) { animation-delay: 0.4s; }
.byte-section-enhanced:nth-child(5) { animation-delay: 0.5s; }
.byte-section-enhanced:nth-child(6) { animation-delay: 0.6s; }
.byte-section-enhanced:nth-child(7) { animation-delay: 0.7s; }
.byte-section-enhanced:nth-child(8) { animation-delay: 0.8s; }
.byte-section-enhanced:nth-child(9) { animation-delay: 0.9s; }
.byte-section-enhanced:nth-child(10) { animation-delay: 1.0s; }
.byte-section-enhanced:nth-child(11) { animation-delay: 1.1s; }
.byte-section-enhanced:nth-child(12) { animation-delay: 1.2s; }
.byte-section-enhanced:nth-child(13) { animation-delay: 1.3s; }
.byte-section-enhanced:nth-child(14) { animation-delay: 1.4s; }
.byte-section-enhanced:nth-child(15) { animation-delay: 1.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.byte-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.byte-section-enhanced:hover::before {
    left: 100%;
}

.byte-section-enhanced:hover,
.byte-section-enhanced.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}

.byte-section-enhanced.explored {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb), 0.3);
}

.section-label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.byte-section-enhanced:hover .section-label,
.byte-section-enhanced.active .section-label {
    color: white;
}

.hex-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
}

.hex-display.visible {
    opacity: 1;
    max-height: 100px;
    margin-top: 0.75rem;
}

.byte-section-enhanced:hover .hex-display,
.byte-section-enhanced.active .hex-display {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.section-indicator {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.byte-section-enhanced.explored .section-indicator {
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
}

.byte-section-enhanced:hover .section-indicator,
.byte-section-enhanced.active .section-indicator {
    background: white;
    transform: scale(1.2);
}

.info-panel-enhanced {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.info-panel-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.info-panel-status {
    background: var(--accent-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.info-content-enhanced {
    min-height: 300px;
    transition: all 0.4s ease;
}

.default-info {
    text-align: center;
    padding: 2rem 1rem;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.default-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.default-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exploration-progress {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-header span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.progress-counter {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

/* Section Information Display */
.section-info {
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.section-header h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
    border-left: 4px solid var(--accent-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.info-item strong {
    display: block;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.section-details,
.technical-notes {
    margin-bottom: 2rem;
}

.section-details h5,
.technical-notes h5 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-details h5::before {
    content: "📋";
    font-size: 1.2rem;
}

.technical-notes h5::before {
    content: "⚙️";
    font-size: 1.2rem;
}

.section-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-details li {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-primary);
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 2rem;
}

.section-details li::before {
    content: "▶";
    position: absolute;
    left: 0.75rem;
    color: var(--accent-primary);
    font-size: 0.8rem;
}

.section-details li:last-child {
    margin-bottom: 0;
}

.technical-notes p {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    border: 1px solid var(--border-color);
    font-style: italic;
}

/* Enhanced hover effects for sections */
.byte-section-enhanced:hover .hex-display {
    animation: hexPulse 0.3s ease-out;
}

@keyframes hexPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Progress animation enhancements */
.progress-fill[style*="100%"] {
    background: linear-gradient(90deg, var(--accent-primary), #10b981);
    animation: progressComplete 0.6s ease-out;
}

@keyframes progressComplete {
    0% { transform: scaleX(0.8); }
    50% { transform: scaleX(1.1); }
    100% { transform: scaleX(1); }
}

/* Responsive adjustments for section info */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-description {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    .section-details li {
        padding: 0.5rem 0.75rem;
        padding-left: 1.5rem;
    }
    
    .technical-notes p {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Sample EDID Data Section */
.sample-edid-container {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.sample-edid-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.sample-edid-container h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.sample-edid-container h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.sample-edid-display {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.edid-hex-dump {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: fit-content;
    height: auto;
    max-height: none;
}

.edid-hex-dump::before {
    content: 'EDID Hex Dump';
    position: absolute;
    top: -12px;
    left: 1rem;
    background: var(--bg-primary);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.hex-row {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2rem;
    width: 100%;
}

.hex-row:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hex-row:last-child {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.offset {
    color: var(--accent-primary);
    font-weight: 700;
    margin-right: 1rem;
    min-width: 25px;
    text-align: right;
    font-size: 0.8rem;
    opacity: 0.8;
}

.hex-row:hover .offset {
    color: white;
    opacity: 1;
}

.hex-values {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    word-spacing: 0.25rem;
}

.edid-interpretation {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.edid-interpretation::before {
    content: 'Analysis';
    position: absolute;
    top: -12px;
    left: 1rem;
    background: var(--bg-primary);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.edid-interpretation p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.edid-interpretation p:last-child {
    margin-bottom: 0;
}

.edid-interpretation strong {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Add byte highlighting animation */
.hex-row.highlight {
    animation: byteHighlight 2s ease-in-out;
}

@keyframes byteHighlight {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        color: white;
        transform: scale(1.02);
    }
}

/* Enhanced hex value display */
.hex-byte {
    display: inline-block;
    padding: 0.1rem 0.2rem;
    margin: 0.05rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.hex-byte:hover {
    background: rgba(var(--accent-primary-rgb), 0.2);
    transform: scale(1.1);
}

/* Responsive design for sample EDID */
@media (max-width: 1200px) {
    .sample-edid-display {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sample-edid-container {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .sample-edid-container h4 {
        font-size: 1.2rem;
    }
    
    .edid-hex-dump {
        font-size: 0.75rem;
        padding: 1rem;
        line-height: 1.6;
    }
    
    .edid-interpretation {
        padding: 1rem;
    }
    
    .hex-row {
        padding: 0.35rem;
        font-size: 0.75rem;
    }
    
    .offset {
        min-width: 20px;
        font-size: 0.7rem;
    }
}

/* Dark mode adjustments for sample EDID */
[data-theme="dark"] .sample-edid-container {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .edid-hex-dump {
    background: var(--bg-primary);
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .edid-interpretation {
    background: var(--bg-primary);
}

.timing-highres {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    margin-top: 3rem;
}

.timing-highres h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.timing-highres p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.timing-highres .feature-list {
    margin-bottom: 1.5rem;
}
  