@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Keep existing visualization colors */
    --primary-color: #1976D2;        /* Solar Panel Blue */
    --secondary-color: #FF9800;      /* Solar Orange */
    --accent-color: #4CAF50;         /* Green Energy */
    --warning-color: #FFC107;        /* Sun Yellow */
    
    /* Anthropic-inspired warm neutrals */
    --bg-cream: #f5f1eb;
    --bg-cream-light: #faf8f5;
    --bg-warm-gray: #e8e4df;
    --bg-warm-gray-dark: #d4cfc8;
    --card-bg: #ffffff;
    --card-bg-alt: #faf8f5;
    
    /* Coral/orange accents for interactive elements */
    --coral-accent: #e85d4e;
    --coral-accent-light: #ea6b4a;
    --coral-accent-hover: #d14d3e;
    
    /* Text colors for contrast */
    --text-dark: #1a1a1a;
    --text-primary: #2d2d2d;
    --text-secondary: #555555;
    --text-muted: #777777;
    
    /* Keep existing gradients for visualizations */
    --gradient-primary: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    --gradient-secondary: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    --gradient-accent: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    --gradient-sun: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    
    /* Enhanced styling */
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding-top: 72px;
    color: var(--text-primary);
    background-color: var(--bg-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation Bar */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-dark);
    padding: 0 40px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    transition: var(--transition-smooth);
}

.nav-bar .logo {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 18px;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
    padding: 0 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 72px; /* match nav bar height so text sits in the middle */
}

.nav-links a:hover {
    color: var(--coral-accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px; /* lift underline slightly so hover effect isn't cut off */
    left: 50%;
    background: var(--coral-accent);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Page Sections */
.page {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 56px 64px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.page.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--text-dark);
    margin: 0;
    font-size: 40px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    letter-spacing: -0.5px;
}

.page-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--coral-accent);
    border-radius: 2px;
}

/* Headings */
h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

h4 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 12px;
}

/* Cards */
.card {
    background-color: var(--card-bg-alt);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-top: 24px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Two Column Layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Navigation Buttons */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--bg-warm-gray);
}

.nav-button {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 50px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.25);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.35);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 32px 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Title Page Styles */
#title-page {
    text-align: center;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

#title-page h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 60px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

#title-page p {
    font-size: 22px;
    color: var(--text-secondary);
}

#globe-container {
    height: 500px;
    width: 100%;
    cursor: grab;
}

/* History Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--coral-accent));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 3px solid var(--coral-accent);
    top: 35px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition-smooth);
}

.timeline-item:hover::after {
    transform: scale(1.2);
    background-color: var(--coral-accent);
}

.timeline-item.right::after { left: -10px; }

.timeline-content {
    padding: 24px 28px;
    background-color: var(--card-bg);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.timeline-content:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.timeline-content h3 { 
    font-size: 20px; 
    margin-top: 0;
    color: var(--primary-color);
}

/* Interactive Buttons */
.interactive-buttons button {
    margin: 6px;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    background-color: var(--coral-accent);
    color: white;
    border: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.interactive-buttons button:hover {
    background-color: var(--coral-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 93, 78, 0.3);
}

.testimonial {
    display: none;
    margin-top: 24px;
    padding: 24px;
    background-color: var(--bg-cream-light);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--border-radius-sm);
    font-style: italic;
    color: var(--text-secondary);
}

/* Code Tabs */
.code-tabs {
    display: flex;
    margin-bottom: -1px;
    gap: 4px;
}

.code-tabs button {
    padding: 12px 20px;
    border: 1px solid var(--bg-warm-gray);
    background: var(--bg-cream-light);
    cursor: pointer;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.code-tabs button:hover {
    background: var(--card-bg);
    color: var(--text-dark);
}

.code-tabs button.active {
    background: white;
    border-bottom: 1px solid white;
    color: var(--primary-color);
    font-weight: 600;
}

.code-content-container {
    border: 1px solid var(--bg-warm-gray);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) var(--border-radius-sm);
    overflow: hidden;
}

.code-content { display: none; }
.code-content.active { display: block; }

.code-content h4 {
    padding: 20px 24px 0;
    margin: 0;
}

.code-content > p {
    padding: 0 24px 16px;
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

pre code.hljs {
    border-radius: 0;
    padding: 1.5em;
    background: #1e1e1e;
    font-size: 13px;
    line-height: 1.6;
}

/* Chart Container */
.chart-container {
    flex: 1;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    min-height: 300px;
    max-height: 340px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

#tilt-slider {
    width: 100%;
    cursor: pointer;
}

/* Community Logos */
.community-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.community-logos a {
    display: block;
    padding: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.community-logos a:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.community-logos img {
    height: 60px;
    width: 60px;
    object-fit: contain;
}

#run-code-btn {
    padding: 14px 28px;
    font-size: 15px;
    cursor: pointer;
    background: var(--coral-accent);
    color: white;
    border: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    margin-top: 20px;
    font-weight: 600;
}

#run-code-btn:hover {
    background-color: var(--coral-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 93, 78, 0.3);
}

/* Solar Fundamentals Page Styles */
.solar-fundamentals {
    margin-bottom: 40px;
}

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

.concept-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--primary-color);
}

.concept-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.concept-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.concept-card h3 {
    color: var(--text-dark);
    margin-bottom: 14px;
    font-size: 20px;
}

.concept-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.visual-demo, .positioning-demo {
    margin-top: 20px;
}

.mini-diagram, .positioning-svg {
    width: 100%;
    height: auto;
    max-height: 120px;
}

.weather-impact-chart {
    margin-top: 20px;
}

.weather-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.weather-bar span:first-child {
    width: 85px;
    text-align: left;
    font-weight: 500;
    color: var(--text-secondary);
}

.weather-bar span:last-child {
    width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
}

.bar {
    height: 18px;
    border-radius: 9px;
    flex: 1;
    transition: width 0.8s ease;
}

.power-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.flow-step {
    text-align: center;
    padding: 14px;
    background: var(--bg-cream-light);
    border-radius: var(--border-radius-sm);
    min-width: 80px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.flow-step:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-soft);
}

.step-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.arrow {
    font-size: 20px;
    color: var(--coral-accent);
    font-weight: bold;
}

/* Key Insight Box */
.key-insight {
    background: linear-gradient(135deg, var(--bg-cream-light) 0%, var(--bg-warm-gray) 100%);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    border-left: 5px solid var(--secondary-color);
    margin-top: 40px;
}

.key-insight h3 {
    color: var(--secondary-color);
    margin-bottom: 14px;
    font-size: 22px;
}

.key-insight p {
    font-size: 17px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.7;
}

/* Feature List Styles */
.feature-list {
    margin-top: 28px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px 24px;
    background: var(--card-bg-alt);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--primary-color);
}

.feature-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 30px;
    margin-right: 20px;
    margin-top: 2px;
    min-width: 45px;
}

.feature-content h4 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 600;
}

.feature-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Solar Simulation Styles */
.solar-simulation-container {
    background: linear-gradient(135deg, var(--bg-cream-light) 0%, var(--bg-warm-gray) 100%);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

#interactive-solar-panel {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
}

#solar-panel-svg {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.simulation-controls {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.simulation-controls p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.simulation-controls ul {
    margin: 0;
    padding-left: 20px;
}

.simulation-controls li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Weather-to-Power Chain Styles */
.weather-to-power-explanation {
    padding: 20px 0;
}

.intro-text {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
}

.process-chain {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 48px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    background: #FFFFFF;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
    flex-shrink: 0;
}

.step-visual {
    width: 110px;
    height: 110px;
    background: var(--bg-cream-light);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.step-svg {
    width: 100%;
    height: 100%;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--text-dark);
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0 0 14px 0;
    font-size: 15px;
    line-height: 1.7;
}

.step-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(25, 118, 210, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
}

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

.process-arrow {
    font-size: 28px;
    color: var(--coral-accent);
    text-align: center;
    margin: 12px 0;
    font-weight: bold;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Summary Cards */
.chain-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 40px;
}

.summary-card {
    background: linear-gradient(135deg, var(--bg-cream-light) 0%, var(--bg-warm-gray) 100%);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--secondary-color);
}

.summary-card h3 {
    color: var(--text-dark);
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.summary-card ul {
    margin: 0;
    padding-left: 20px;
}

.summary-card li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.summary-card li strong {
    color: var(--text-dark);
}

/* Enhanced Title Slide Styles */
.title-slide {
    display: grid;
    grid-template-areas: 
        "background background"
        "content visualization";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--bg-cream-light) 0%, var(--bg-warm-gray) 100%);
    overflow: hidden;
}

.title-background {
    grid-area: background;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.geometric-bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hexagon {
    position: absolute;
    width: 100px;
    height: 57px;
    background: rgba(25, 118, 210, 0.04);
    margin: 28px 0;
}

.hexagon:before,
.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
}

.hexagon:before {
    bottom: 100%;
    border-bottom: 29px solid rgba(25, 118, 210, 0.04);
}

.hexagon:after {
    top: 100%;
    border-top: 29px solid rgba(25, 118, 210, 0.04);
}

.hexagon:nth-child(1) { top: 20%; right: 15%; transform: rotate(30deg); }
.hexagon:nth-child(2) { bottom: 25%; right: 20%; transform: rotate(60deg); }

.title-content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 44px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.97);
    margin: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

.logo-section {
    margin-bottom: 20px;
}

.pvlib-logo {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -2px;
}

.logo-pv {
    color: var(--primary-color);
}

.logo-lib {
    color: var(--accent-color);
}

.main-title {
    margin-bottom: 20px;
}

.title-line-1 {
    display: block;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.title-line-2 {
    font-family: 'Source Serif 4', Georgia, serif;
    display: block;
    font-size: 2.6rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.institution-card {
    background: rgba(76, 175, 80, 0.08);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 24px;
}

.institution-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.institution-info h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--accent-color);
}

.institution-info p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    width: fit-content;
    font-size: 14px;
}

.title-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    background: rgba(25, 118, 210, 0.08);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.feature-tag:hover {
    background: var(--primary-color);
    color: white;
}

.title-visualization {
    grid-area: visualization;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}

.title-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.institution h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.institution h4 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

.title-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Enhanced Community Styles */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.community-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--accent-color);
    box-sizing: border-box;
    min-width: 0;
}

.community-section:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.community-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.2rem;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-warm-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.community-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community-link {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-cream-light);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.community-link:hover {
    background: white;
    border-color: var(--coral-accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.community-link i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 18px;
    width: 32px;
    text-align: center;
    transition: var(--transition-smooth);
}

.community-link:hover i {
    color: var(--coral-accent);
    transform: scale(1.1);
}

.community-link h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.community-link p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Community Stats */
.community-stats {
    background: var(--bg-cream-light);
    border-radius: var(--border-radius);
    padding: 40px 28px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.community-stats h3 {
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 32px;
    font-size: 1.7rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.stat-card {
    padding: 24px 20px;
    color: white;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.stats-grid .stat-card:nth-child(1) { background: var(--gradient-primary); }
.stats-grid .stat-card:nth-child(2) { background: var(--gradient-accent); }
.stats-grid .stat-card:nth-child(3) { background: var(--gradient-secondary); }
.stats-grid .stat-card:nth-child(4) { background: linear-gradient(135deg, var(--coral-accent) 0%, var(--coral-accent-hover) 100%); }

.stats-grid .stat-card .stat-label {
    color: white;
    opacity: 1;
}

.stat-number {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Enhanced Demo Page Styles */
.demo-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    height: calc(100vh - 180px);
    min-height: 700px;
    max-height: 850px;
    overflow: visible;
}

.demo-sidebar {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.demo-controls h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.step-list {
    margin-bottom: 28px;
}

.demo-step {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.demo-step:hover {
    background: var(--bg-cream-light);
}

.demo-step.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.demo-step.completed {
    background: rgba(76, 175, 80, 0.08);
    border-color: var(--accent-color);
}

.demo-step.completed .step-number {
    background: var(--accent-color);
    color: white;
}

.demo-step.completed .step-number::after {
    content: ' ✓';
    font-size: 0.7rem;
}

.step-title {
    font-weight: 500;
    font-size: 0.95rem;
}

.parameter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-warm-gray);
}

.parameter-group:last-child {
    border-bottom: none;
}

.parameter-group h4 {
    margin-bottom: 14px;
    color: var(--text-primary);
    font-size: 1rem;
}

.parameter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--bg-warm-gray);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.parameter-group select:hover {
    border-color: var(--primary-color);
}

.parameter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.param-item {
    margin-bottom: 14px;
}

.param-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.param-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-warm-gray);
    outline: none;
    -webkit-appearance: none;
    transition: var(--transition-smooth);
}

.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
    transition: var(--transition-smooth);
}

.param-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: var(--bg-cream-light);
    border-radius: 8px;
    font-size: 0.9rem;
}

.result-item span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.result-item span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

.demo-run-button {
    width: 100%;
    padding: 16px;
    background: var(--coral-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.demo-run-button:hover {
    background: var(--coral-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 93, 78, 0.3);
}

.demo-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-height: 700px;
    max-height: calc(100vh - 200px);
    overflow: visible;
}

.demo-code-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-width: 0;
    max-height: calc(100vh - 200px);
    min-height: 700px;
}

.code-explanation {
    margin-bottom: 20px;
}

.step-explanation {
    display: none;
    padding: 16px;
    background: var(--bg-cream-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.step-explanation.active {
    display: block;
}

.step-explanation h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.15rem;
}

.demo-code-display {
    background: #1e1e1e;
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-y: auto;
    overflow-x: auto;
    flex: 1;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.large-code-display {
    min-height: 550px;
    max-height: none;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d2d;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    border-bottom: 1px solid #404040;
    flex-shrink: 0;
}

.colab-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--coral-accent);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.colab-button:hover {
    background: var(--coral-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 93, 78, 0.3);
}

.code-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.run-step-button {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.run-step-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.demo-code-display pre {
    margin: 0;
    padding: 16px;
    background: transparent;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    overflow: visible;
    flex: 1;
}

.demo-code-display pre code {
    display: block;
    white-space: pre;
    overflow-x: auto;
}

/* Custom scrollbar for code display */
.demo-code-display::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.demo-code-display::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 5px;
}

.demo-code-display::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.demo-code-display::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

.demo-code-section::-webkit-scrollbar {
    width: 10px;
}

.demo-code-section::-webkit-scrollbar-track {
    background: var(--bg-cream-light);
    border-radius: 5px;
}

.demo-code-section::-webkit-scrollbar-thumb {
    background: var(--bg-warm-gray-dark);
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.demo-code-section::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.demo-output {
    background: var(--bg-cream-light);
    border: 1px solid var(--bg-warm-gray);
    border-radius: var(--border-radius-sm);
    padding: 16px;
}

.demo-chart-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    min-height: 700px;
    max-height: calc(100vh - 200px);
    overflow: visible;
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.chart-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 14px;
    margin-bottom: 20px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

.chart-tab {
    padding: 12px 18px;
    border: 2px solid var(--bg-warm-gray);
    background: var(--bg-cream-light);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    flex-shrink: 0;
}

.chart-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chart-tab.active {
    background: white;
    color: var(--primary-color);
    border-color: var(--coral-accent);
    box-shadow: 0 0 0 1px var(--coral-accent);
}

.chart-insights {
    margin-top: 16px;
    flex-shrink: 0;
    min-height: 250px;
    overflow: visible;
}

.insights {
    display: none;
    background: var(--bg-cream-light);
    border-radius: var(--border-radius-sm);
}

.scrollable-insights {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--bg-warm-gray);
    padding: 20px;
    margin-top: 10px;
    box-sizing: border-box;
}

.scrollable-insights::-webkit-scrollbar {
    width: 8px;
}

.scrollable-insights::-webkit-scrollbar-track {
    background: var(--bg-cream-light);
    border-radius: 4px;
}

.scrollable-insights::-webkit-scrollbar-thumb {
    background: var(--bg-warm-gray-dark);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.scrollable-insights::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.insights.active {
    display: block;
}

.insights h4 {
    margin-top: 0;
    color: var(--accent-color);
}

.insights ul {
    margin: 0;
    padding-left: 20px;
}

.insights li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.insights li strong {
    color: var(--text-dark);
}

/* 3D Interactive Page Styles */
.interactive-3d-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    height: 500px;
    margin-bottom: 24px;
}

.controls-panel {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.controls-panel h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.control-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-warm-gray);
}

.control-group:last-child {
    border-bottom: none;
}

.control-group h4 {
    color: var(--text-primary);
    margin-bottom: 14px;
    font-size: 1rem;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.control-group select,
.form-range {
    width: 100%;
    margin-bottom: 14px;
}

.control-group select {
    padding: 10px 12px;
    border: 2px solid var(--bg-warm-gray);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.control-group select:hover,
.control-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-range {
    height: 6px;
    border-radius: 3px;
    background: var(--bg-warm-gray);
    outline: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
    transition: var(--transition-smooth);
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.system-info {
    background: var(--bg-cream-light);
    padding: 16px;
    border-radius: var(--border-radius-sm);
}

.system-info h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.info-item span:first-child {
    color: var(--text-secondary);
}

.info-item span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.visualization-panel {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.view-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.view-btn {
    padding: 8px 16px;
    border: 2px solid var(--bg-warm-gray);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.view-btn:hover {
    background: var(--coral-accent);
    color: white;
    border-color: var(--coral-accent);
}

.threejs-container {
    flex: 1;
    border: 2px solid var(--bg-warm-gray);
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, #87ceeb, #e0f6ff);
}

.view-info {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.generation-profile {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    margin-top: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.generation-profile h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.profile-container {
    height: 250px;
    margin-bottom: 16px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-cream-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.stat-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Page 9 - Live Demo layout refinements */
#page-9 .page-header {
    margin-bottom: 40px; /* lift subsequent content a bit closer to the title */
}

#page-9 .demo-container {
    gap: 28px;              /* a bit more space between sidebar and main area */
    margin-top: 8px;        /* subtle lift under the header */
    min-height: 750px;      /* ensure enough vertical space */
}

#page-9 .demo-sidebar {
    padding: 30px;          /* more breathing room inside each box */
    overflow-y: auto;       /* allow scrolling in sidebar */
    overflow-x: hidden;
}

#page-9 .demo-code-section {
    padding: 30px;          /* more breathing room inside each box */
    overflow-y: auto;       /* allow scrolling for code */
    overflow-x: hidden;
    min-height: 750px;      /* ensure enough space for code content */
}

#page-9 .demo-chart-section {
    padding: 30px;          /* more breathing room inside each box */
    overflow: visible;      /* prevent hover shadows from being clipped */
    min-height: 750px;      /* match code section height */
}

#page-9 .demo-run-button {
    margin-top: 4px;        /* avoid button shadow touching container edge */
}

/* Base List Styling */
ul, ol {
    padding-left: 24px;
    color: var(--text-secondary);
}

ul li, ol li {
    margin-bottom: 10px;
    line-height: 1.7;
}

ul li strong, ol li strong {
    color: var(--text-dark);
}

/* Page 4 - Why Use pvlib list */
#page-4 > ul {
    list-style: none;
    padding-left: 0;
}

#page-4 > ul > li {
    padding: 16px 20px;
    margin-bottom: 14px;
    background: var(--card-bg-alt);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-smooth);
}

#page-4 > ul > li:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

#page-4 > ul > li strong {
    color: var(--primary-color);
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus,
select:focus {
    outline: 2px solid var(--coral-accent);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
    outline: none;
}

/* Selection styling */
::selection {
    background: rgba(232, 93, 78, 0.2);
    color: var(--text-dark);
}

/* Smooth link transitions */
a {
    transition: var(--transition-smooth);
}

/* Responsive Design */
@media (max-width: 992px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
    .page { 
        padding: 40px 32px; 
    }
}

@media (max-width: 1100px) {
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-bar { padding: 0 20px; }
    
    #title-page h1 { font-size: 44px; }
    .page-header h2 { font-size: 30px; }
    
    .timeline::after { left: 31px; }
    .timeline-item { 
        width: 100%; 
        padding-left: 70px; 
        padding-right: 20px; 
    }
    .timeline-item.right { left: 0%; }
    .timeline-item::after { left: 21px; }
    
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .power-flow {
        flex-direction: column;
        gap: 10px;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .step-visual {
        width: 100px;
        height: 100px;
    }
    
    .chain-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .demo-main {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .demo-sidebar {
        order: 2;
    }
    
    .interactive-3d-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .title-slide {
        grid-template-areas: 
            "background"
            "content"
            "visualization";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .title-content {
        padding: 28px;
        margin: 12px;
    }
    
    .title-line-1 {
        font-size: 1.3rem;
    }
    
    .title-line-2 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .page {
        padding: 32px 24px;
        margin-bottom: 32px;
    }
}
