:root {
    --bg-title: #000000;
    --bg-warm: #1a0f0f;
    --bg-neutral: #0f121a;
    --bg-tech: #0f1a18;
    --bg-data: #1a1a1a;
    --bg-alert: #2a1212;
    --bg-insight: #1a150f;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;

    --accent-warm: #ff6b6b;
    --accent-cool: #4ecdc4;
    --accent-caution: #ffd93d;
    --accent-extreme: #ff4757;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-warm);
    overflow-x: hidden;
    transition: background-color 0.8s ease;
}

h1,
h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 1.5rem;
    text-align: ;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Scroll Snap Container */
.story-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Section Styling */
.scroll-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.scroll-section.active .content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.scroll-section.active .animate-text {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--accent-cool);
}

.stat-item.caution .stat-number {
    color: var(--accent-caution);
}

.stat-item.extreme .stat-number {
    color: var(--accent-extreme);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Content Images */
.content-image {
    width: 90%;
    height: auto;
    /* border-radius: 12px; */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
}

/* Content Plot */
.content-plot {
    width: 100%;
    height: auto;
    border-radius: 0px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Split Layout */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    /* Wider container for split layout */
    text-align: left;
}

.split-layout .text-content {
    flex: 1;
    min-width: 300px;
}

.split-layout .image-content {
    flex: 1.2;
    min-width: 300px;
}

.split-layout .content-image {
    margin-top: 0;
    /* Reset margin for split layout */
}

/* Impact Section Styles */
.impact-section {
    text-align: center;
}

.definition-text {
    font-size: 1.3rem;
    font-weight: 300;
    /* border-left: 4px solid var(--accent-caution); */
    /* padding-left: 1.5rem; */
    margin: 2rem auto;
    max-width: 700px;
    text-align: center;
    /* background: rgba(255, 255, 255, 0.05); */
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

.comparison-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.big-number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-secondary);
}

.stat-block.highlight .big-number {
    color: var(--accent-extreme);
    text-shadow: 0 0 30px rgba(255, 71, 87, 0.3);
}

.stat-desc {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    color: var(--text-primary);
}

.stat-divider {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .comparison-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        transform: rotate(90deg);
    }
}

.key-insight {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--accent-extreme);
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.call-to-action {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
}

.call-to-action h3 {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    color: var(--accent-cool);
    margin-bottom: 1rem;
}

.call-to-action p {
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: auto;
    margin-right: auto;
}

.links-container {
    max-width: 1000px;
    width: 100%;
}

/* Responsive Split Layout */
@media (max-width: 968px) {
    .split-layout {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .split-layout .text-content,
    .split-layout .image-content {
        width: 100%;
    }
}

/* Background Elements */
.background-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 100, 100, 0.1) 0%, transparent 70%),
        linear-gradient(0deg, transparent 0%, rgba(255, 200, 150, 0.15) 50%, transparent 100%);
    background-size: 100% 100%, 100% 200%;
    pointer-events: none;
    animation: heatwave 8s infinite linear;
    opacity: 1;
}

.title-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('title_background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: normal;
    animation: none;
}

@keyframes heatwave {
    0% {
        background-position: 50% 50%, 0% 0%;
    }

    100% {
        background-position: 50% 50%, 0% -200%;
    }
}

/* Add a second layer for more depth */
.background-element::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    animation: shimmer 4s infinite alternate;
}

@keyframes shimmer {
    0% {
        opacity: 0.2;
        transform: scale(1);
    }

    100% {
        opacity: 0.4;
        transform: scale(1.02);
    }
}

/* Button */
.btn-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--text-primary);
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-link:hover {
    transform: translateY(-2px);
}

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

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}