:root {
    /* Modern Color Palette - Professional & Elegant */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;

    /* Sophisticated Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --border: var(--gray-200);

    /* Shadows - Layered depth */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Prevent text overflow */
p, li, td, th, .timeline-description, .feature-description {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Container */
.page-wrapper {
    min-height: 100vh;
    padding: var(--space-xl) var(--space-md);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    width: 100%;
}

/* Prevent horizontal scroll */
.container * {
    max-width: 100%;
}

/* Fixed Navigation */
.nav-fixed {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: var(--space-3xl) var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-tag-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    font-size: 1rem;
    opacity: 0.9;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-2xl) var(--space-xl);
    background: var(--gray-50);
}

.stat-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.4;
}

/* Navigation Tabs */
.tabs {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.tab:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.tab.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.tab-icon {
    font-size: 1.125rem;
}

/* Content Area */
.content {
    padding: var(--space-2xl) var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Section Headers */
.section-header {
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-icon {
    font-size: 1.75rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Feature Cards */
.feature-card {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    background: white;
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) 0;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}

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

.highlight-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--space-lg);
}

.highlight-text {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--space-2xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-2xl);
    padding-left: var(--space-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.timeline-count {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.timeline-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.skill-category {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.skill-category:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.skill-category-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.skill-list {
    list-style: none;
}

.skill-item {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px solid var(--gray-100);
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: var(--gray-50);
}

th {
    padding: var(--space-lg);
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

td {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

tr:hover {
    background: var(--gray-50);
}

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

/* Metrics Bar */
.metric-bar {
    margin: var(--space-lg) 0;
}

.metric-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-size: 0.9375rem;
}

.metric-value {
    color: var(--primary);
    font-weight: 700;
}

.bar-container {
    height: 10px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button:active {
    transform: translateY(0);
}

/* Case Study Styles */
.case-study {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-2xl);
    transition: all var(--transition-base);
}

.case-study:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.case-header {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    padding: var(--space-xl);
    border-bottom: 2px solid var(--border);
}

.case-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.case-tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.case-body {
    padding: var(--space-xl);
}

.case-section {
    margin-bottom: var(--space-xl);
}

.case-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.before-after {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-lg) 0;
}

.before-card, .after-card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    position: relative;
}

.before-card {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #f87171;
}

.after-card {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid #34d399;
}

.before-label, .after-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
}

.before-label {
    background: #dc2626;
    color: white;
}

.after-label {
    background: #059669;
    color: white;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 1rem;
}

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

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

.metric-value {
    font-weight: 700;
    font-size: 1.125rem;
}

.savings-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--success);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    font-weight: 900;
    margin: var(--space-lg) 0;
    box-shadow: var(--shadow-md);
}

.diagram-placeholder {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin: var(--space-lg) 0;
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.tech-badge {
    padding: var(--space-xs) var(--space-md);
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.impact-metrics {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--success);
}

.impact-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.impact-list {
    list-style: none;
}

.impact-item {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.impact-item::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    z-index: 1001;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Quick Links */
.quick-links {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.quick-links-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.quick-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.quick-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(4px);
}

.quick-link-icon {
    font-size: 1rem;
}

/* Section Anchors */
.section-anchor {
    scroll-margin-top: 100px;
}

/* Tab Count Badge */
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--gray-300);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: var(--space-xs);
}

.tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Footer */
footer {
    background: var(--gray-900);
    color: white;
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}

footer h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

footer p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto var(--space-md);
}

/* Responsive Design */
@media (width <= 768px) {
    .page-wrapper {
        padding: var(--space-sm);
    }

    .hero {
        padding: var(--space-2xl) var(--space-lg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .hero-meta-item {
        font-size: 0.9375rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        padding: var(--space-xl) var(--space-md);
    }

    .stat-card {
        padding: var(--space-lg);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    .tabs {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-xs);
    }

    .tab {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8125rem;
        min-width: auto;
    }

    .tab-icon {
        font-size: 1rem;
    }

    .content {
        padding: var(--space-xl) var(--space-md);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .card {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }

    .card-title {
        font-size: 1.25rem;
    }

    .grid-2, .grid-3, .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .feature-card {
        padding: var(--space-lg);
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.875rem;
    }

    .timeline {
        padding-left: var(--space-lg);
    }

    .timeline-item {
        padding-left: var(--space-md);
        margin-bottom: var(--space-xl);
    }

    .timeline-year {
        font-size: 1.125rem;
    }

    .timeline-count {
        font-size: 0.9375rem;
    }

    .timeline-description {
        font-size: 0.875rem;
    }

    .highlight-box {
        padding: var(--space-xl) var(--space-lg);
    }

    .highlight-title {
        font-size: 1.5rem;
    }

    .highlight-text {
        font-size: 1rem;
    }

    .table-container {
        overflow-x: scroll;
    }

    table {
        font-size: 0.8125rem;
    }

    th, td {
        padding: var(--space-sm) var(--space-xs);
    }

    .before-after {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .case-study {
        margin-bottom: var(--space-xl);
    }

    .case-header {
        padding: var(--space-lg);
    }

    .case-title {
        font-size: 1.25rem;
    }

    .case-body {
        padding: var(--space-lg);
    }

    .case-tags {
        gap: var(--space-xs);
    }

    .case-tag {
        font-size: 0.75rem;
        padding: 4px var(--space-sm);
    }

    .savings-badge {
        font-size: 1.125rem;
        padding: var(--space-sm) var(--space-md);
    }

    .diagram-placeholder {
        padding: var(--space-lg);
        font-size: 0.875rem;
    }

    footer {
        padding: var(--space-2xl) var(--space-lg);
    }

    footer h2 {
        font-size: 1.5rem;
    }

    footer p {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (width <= 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .tab {
        flex: 1;
        min-width: 60px;
        padding: var(--space-sm);
    }

    .tab span:not(.tab-icon) {
        display: none;
    }

    .tab-icon {
        font-size: 1.25rem;
    }

    .case-title {
        font-size: 1.125rem;
    }

    .metric-row {
        flex-direction: column;
        gap: var(--space-xs);
        align-items: flex-start;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .tab-badge {
        display: none;
    }
}

/* Print Styles */
@media print {
    .nav-fixed, .tabs, .cta-button {
        display: none;
    }

    .container {
        box-shadow: none;
    }

    .tab-content {
        display: block !important;
    }
}
