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

:root {
    /* Professional Color Palette */
    --primary-blue: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    --secondary-purple: #6366f1;
    --secondary-purple-light: #8b5cf6;

    --accent-teal: #0891b2;
    --accent-emerald: #059669;
    --accent-orange: #ea580c;

    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

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

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --neutral-50: #0f172a;
    --neutral-100: #1e293b;
    --neutral-200: #334155;
    --neutral-300: #475569;
    --neutral-400: #64748b;
    --neutral-500: #94a3b8;
    --neutral-600: #cbd5e1;
    --neutral-700: #e2e8f0;
    --neutral-800: #f1f5f9;
    --neutral-900: #f8fafc;

    --primary-blue: #3b82f6;
    --primary-blue-dark: #60a5fa;
    --secondary-purple: #818cf8;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--neutral-600);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-blue);
    background-color: var(--neutral-100);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: var(--neutral-800);
    /* actually light in dark mode because of swap? No, wait. neutral-800 is light in dark mode. */
}

/* Fix for specific elements in dark mode */
[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--neutral-200);
}

[data-theme="dark"] .content {
    background: var(--neutral-50);
}

[data-theme="dark"] .problem {
    background: var(--neutral-100);
    border-color: var(--neutral-200);
}

[data-theme="dark"] .solution {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: var(--primary-blue);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .media-card {
    background: var(--neutral-100);
    border-color: var(--neutral-200);
}

[data-theme="dark"] .media-icon-container {
    background: var(--neutral-200);
    border-right: 1px solid var(--neutral-300);
}

[data-theme="dark"] .case-study {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .case-study-icon {
    background: var(--neutral-200);
}

[data-theme="dark"] #panelInfoArea {
    background: var(--neutral-100) !important;
    border-color: var(--neutral-200) !important;
    color: var(--neutral-700);
}

[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.95);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--neutral-700);
    background: var(--neutral-50);
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-lg) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--neutral-200);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo img {
    height: 40px;
    width: auto;
}

.contact-info {
    display: flex;
    gap: var(--space-2xl);
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--neutral-600);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-item:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Fallback */
    min-height: 100dvh;
    /* For mobile browsers */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Reset padding */
}

/* Removed .hero::before and keyframes float as they are replaced by the static high-impact image */

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-xl);
    max-width: 1000px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: var(--space-lg) var(--space-3xl);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Main Content */
.content {
    background: white;
    padding: var(--space-3xl) 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-2xl);
    color: var(--neutral-900);
    text-align: center;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    border-radius: 2px;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    align-items: stretch;
}

.problem,
.solution {
    padding: var(--space-2xl);
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.problem {
    background: white;
    border: 1px solid var(--neutral-200);
    color: var(--neutral-600);
}

.solution {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid var(--primary-blue);
    box-shadow: var(--shadow-lg);
    color: var(--neutral-800);
}

.problem:hover,
.solution:hover {
    transform: translateY(-4px);
}

.problem h3,
.solution h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.problem h3 {
    color: var(--neutral-500);
}

.solution h3 {
    color: var(--primary-blue);
}

.problem h4,
.solution h4 {
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: inherit;
}

/* Responsive */
@media (max-width: 768px) {
    .problem-solution {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.feature-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-200);
}

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


.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--neutral-900);
    font-weight: 600;
}

.feature-card p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.step {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: white;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    background: rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-family: var(--font-mono);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.step p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.investment-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: white;
    padding: var(--space-3xl) 0;
    text-align: center;
    border-radius: 12px;
    margin: var(--space-3xl) 0;
    box-shadow: var(--shadow-xl);
}

.investment-cta h2 {
    font-size: 2.25rem;
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

.investment-cta p {
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.case-study {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.case-study-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.case-study-icon {
    /* Now a container for the image */
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
    /* Fallback */
    padding: 0;
    /* Remove padding */
}

.case-study-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-study-text {
    max-width: 600px;
    text-align: left;
}

.case-study-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue-dark);
    margin-bottom: var(--space-sm);
}

.case-study-description {
    font-size: 1rem;
    color: var(--neutral-700);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.case-study-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.case-study-link:hover {
    border-bottom-color: var(--accent-orange);
}

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

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--neutral-300);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-contact:hover {
    color: var(--primary-blue-light);
}

/* List Styles */
.problem ul,
.solution ul {
    list-style: none;
    padding: 0;
}

.problem li,
.solution li {
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.problem li span:first-child,
.solution li span:first-child {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.problem li strong,
.solution li strong {
    color: var(--neutral-900);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-xs);
}

.problem li span:last-child span,
.solution li span:last-child span {
    font-weight: 400;
    color: var(--neutral-600);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .problem-solution {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .contact-info {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .footer-contacts {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .container {
        padding: 0 var(--space-lg);
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus,
button:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-large {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--neutral-600);
    line-height: 1.7;
}


.slideshow-container {
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    /* Add this line to center horizontally */
    position: relative;
    /* Needed for nav-button positioning */
}

.slide {
    display: none;
    width: 100%;
}

.active {
    display: block;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: #0074D9;
    /* or your brand color */
}

.feature-icon .material-icons {
    font-size: 36px;
}

/* In the Media */
.media-grid {
    display: flex;
    overflow-x: auto;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-bottom: var(--space-lg);
    /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.media-grid::-webkit-scrollbar {
    height: 8px;
}

.media-grid::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: 4px;
}

.media-grid::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 4px;
}

.media-grid::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

.media-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 0;
    /* Remove padding to let children handle it */
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    /* Responsive Widths for Horizontal Scroll */
    /* Default (Mobile): Show ~1.1 cards to encourage scroll */
    width: 85%;
    min-width: 280px;

    /* Golden Ratio-ish Height */
    height: 200px;

    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    overflow: hidden;
    /* Ensure content doesn't spill out */
}

/* Tablet & Desktop: Show 2 cards max */
@media (min-width: 768px) {
    .media-card {
        width: calc((100% - var(--space-xl)) / 2);
        min-width: auto;
    }
}

.media-icon-container {
    width: 100px;
    /* Fixed width for the icon area */
    background: var(--neutral-50);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--neutral-200);
    flex-shrink: 0;
    overflow: hidden;
    /* Ensure image stays within bounds */
}

.media-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback for icons if needed, though we are replacing them */
.media-icon-container .material-icons {
    font-size: 48px;
    color: var(--primary-blue);
    opacity: 0.8;
    display: none;
    /* Hide icons by default if we expect images */
}

.media-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    overflow-y: auto;
    /* Allow text scroll if it overflows vertically */
}

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

.media-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-md);
}

.media-outlet {
    font-weight: 600;
    color: var(--neutral-900);
}

.media-date {
    color: var(--neutral-500);
    font-size: 0.9rem;
}

.media-title {
    font-size: 1.25rem;
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.4;
}

.media-title a {
    color: var(--primary-blue-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.media-title a:hover {
    color: var(--secondary-purple);
    border-bottom-color: var(--secondary-purple);
}

.media-summary {
    color: var(--neutral-600);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Language Selector */
.language-selector select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--neutral-300);
    border-radius: 6px;
    background-color: white;
    color: var(--neutral-700);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.language-selector select:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.language-selector select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 90%;
    max-width: 1000px;
    /* aspect-ratio removed to let content dictate height */
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease forwards;
}

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

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

.modal-header {
    padding: var(--space-md);
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

.modal-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--neutral-600);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
}

.modal-action-btn:hover {
    color: var(--primary-blue);
    background: var(--neutral-200);
}

.modal-content {
    flex: 1;
    position: relative;
    background: black;
    aspect-ratio: 16/9;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}