/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../images/why-now/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    margin-top: 80px;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

/* Countdown Timer */
.countdown-timer {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    display: inline-block;
}

.timer-item .number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.timer-item .label {
    font-size: 1.5rem;
    display: block;
    margin-top: 0.5rem;
}

.timer-desc {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

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

.stat-card {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1rem;
}

/* Urgency Section */
.urgency-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.urgency-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.urgency-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.urgency-card:hover {
    transform: translateY(-5px);
}

/* Current State Section */
.current-state {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.state-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.highlight {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.action-gaps {
    list-style: none;
    padding: 0;
}

.action-gaps li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.primary-button,
.secondary-button {
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.primary-button {
    background: var(--white);
    color: var(--primary-color);
}

.secondary-button {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

/* Updated styles for the new content */
.alarming-facts {
    padding: 4rem 0;
    background: var(--bg-light);
}

.fact-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.fact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.fact-card:nth-child(3) {
    animation-delay: 0.4s;
}

.fact-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.fact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1.5rem;
}

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

.highlight {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.fact-details {
    list-style: none;
    padding: 0;
}

.fact-details li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item.warning {
    background: var(--primary-color);
    color: var(--white);
}

.timeline-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.impact-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.impact-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.impact-item ul {
    list-style: none;
    padding: 0;
}

.impact-item li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.fact-visual {
    position: relative;
    opacity: 0;
    animation: scaleIn 0.6s ease-out 0.3s forwards;
}

.fact-visual img {
    width: 100%;
    border-radius: 8px;
}

.source {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .stats-grid,
    .urgency-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .state-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fact-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 1200px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }

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

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

    .cta-buttons {
        flex-direction: column;
    }

    .fact-header {
        flex-direction: column;
        text-align: center;
    }

    .fact-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .fact-content {
        grid-template-columns: 1fr;
    }

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

    .timeline-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }

    .fact-card {
        padding: 1.5rem;
    }

    .highlight {
        font-size: 1.1rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes countUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Interactive Elements */
.fact-card {
    transition: transform 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
}

.timeline-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Interactive Chart Styles */
.chart-container {
    position: relative;
    height: 300px;
    margin: 2rem 0;
}

.interactive-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 100;
}

/* Progress Indicators */
.progress-bar {
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transform-origin: left;
    animation: progressFill 1.5s ease-out forwards;
}

@keyframes progressFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Add these styles to your existing why-now.css */

.satellite-evidence {
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-radius: 12px;
}

.satellite-evidence h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.evidence-text {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.satellite-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.satellite-item {
    position: relative;
    transition: transform 0.3s ease;
}

.satellite-item:hover {
    transform: scale(1.05);
    z-index: 2;
}

.satellite-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.year-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.temperature-scale {
    margin-top: 1rem;
    text-align: center;
}

.scale-gradient {
    height: 20px;
    background: linear-gradient(to right, #2c7bb6, #ffffbf, #d7191c);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Enhanced mobile responsiveness for satellite grid */
@media (max-width: 768px) {
    .satellite-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .satellite-evidence {
        padding: 1rem;
    }

    .evidence-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .satellite-grid {
        grid-template-columns: 1fr;
    }

    .year-label {
        font-size: 0.8rem;
    }
}

/* Mass Extinction Section Styles */
.extinction-card {
    background: linear-gradient(to bottom, var(--white), #fff5f5);
    padding: 4rem 2rem;
}

.extinction-subtitle {
    font-size: 1.4rem;
    color: #e63946;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 800px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1200px;
    margin: 3rem auto;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-item.highlight {
    background: #fff5f5;
    border: 2px solid #e63946;
}

.stat-item.highlight i {
    color: #e63946;
}

.stat-content .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

/* Impact Sections */
.impact-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.impact-column h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

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

.impact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.impact-list li:hover {
    transform: translateX(10px);
}

.impact-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Source Section */
.source-section {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.source-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.source-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.source-list a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .extinction-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .source-list {
        flex-direction: column;
        gap: 1rem;
    }

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

@media (max-width: 480px) {
    .extinction-card {
        padding: 2rem 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .impact-list li {
        padding: 0.75rem;
    }
}

/* Sea Level and Agriculture Section Specific Styles */
.sea-level-card, .agriculture-card {
    background: linear-gradient(to bottom, var(--white), #f0f8ff);
    padding: 4rem 2rem;
}

.sea-level-subtitle, .agriculture-subtitle {
    font-size: 1.4rem;
    color: #2c5282;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 800px;
}

.agriculture-card {
    background: linear-gradient(to bottom, var(--white), #f0fff4);
}

.agriculture-subtitle {
    color: #276749;
}

.agriculture-stats .stat-item i {
    color: #276749;
}

.agriculture-stats .stat-item.highlight {
    background: #f0fff4;
    border: 2px solid #276749;
}

.graph-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.graph-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Additional Mobile Responsiveness */
@media (max-width: 768px) {
    .sea-level-subtitle, .agriculture-subtitle {
        font-size: 1.2rem;
    }

    .graph-container {
        margin-top: 2rem;
    }
}

/* Temperature Section Enhanced Styles */
.temperature-card {
    background: linear-gradient(to bottom, var(--white), #fff5f5);
    padding: 4rem 2rem;
}

.temperature-subtitle {
    font-size: 1.4rem;
    color: #c53030;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 800px;
}

.temperature-stats .stat-item i {
    color: #c53030;
}

.temperature-stats .stat-item.highlight {
    background: #fff5f5;
    border: 2px solid #c53030;
}

.satellite-evidence {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.satellite-evidence h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.evidence-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Enhanced Hover Effects */
.satellite-item {
    position: relative;
    overflow: hidden;
}

.satellite-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(197, 48, 48, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.satellite-item:hover::after {
    opacity: 1;
}

.satellite-item:hover .year-label {
    transform: translateX(-50%) translateY(-5px);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .temperature-subtitle {
        font-size: 1.2rem;
    }

    .satellite-evidence h3 {
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    .temperature-card {
        padding: 2rem 1rem;
    }

    .satellite-evidence {
        padding: 1rem;
        margin-top: 2rem;
    }
} 