﻿/* -----------------------------------------
   Universal Page Foundation
------------------------------------------ */
.page-root {
    position: relative;
    z-index: 5;
    padding-bottom: 200px;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.75);
    font-family: 'Inter', sans-serif;
}

/* Smooth fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section titles */
.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}

/* -----------------------------------------
   HERO
------------------------------------------ */
.hero {
    padding: 180px 0 140px;
    max-width: 1100px;
    margin: auto;

    border-radius: 14px;
}

.hero-content {
    max-width: 650px;
    margin-left: 50px;
}

.hero-tag {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.15;
}

    .hero-title span {
        color: #55d7ff;
    }

.hero-lede {
    margin-top: 15px;
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 500px;
}

.scroll-indicator {
    margin-top: 35px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Scroll arrow */
.scroll-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 8px auto 0;
    animation: bounce 1.4s infinite;
}

@keyframes bounce {
    0% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(6px) rotate(45deg);
    }

    100% {
        transform: translateY(0) rotate(45deg);
    }
}

/* -----------------------------------------
   NUMBERS
------------------------------------------ */
.numbers {
    padding: 120px 0;
 
}

.numbers-grid {
    max-width: 950px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.number-card {
    background: rgba(0,0,0,0.6);
    padding: 28px 38px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.number {
    font-size: 2.6rem;
    font-weight: 800;
}

.number-label {
    margin-top: 6px;
    font-size: 1rem;
    opacity: 0.85;
}

/* -----------------------------------------
   SCIENCE FACTS
------------------------------------------ */
.facts {
    padding: 140px 40px; /* add horizontal padding */
}


.fact-source {
    margin-top: 12px;
    font-size: 0.85rem;
    opacity: 0.85;
    color: #9be9ff;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s ease;
}

.fact-source:hover {
    opacity: 1;
    text-decoration: underline;
}


.facts-grid {
    max-width: 1350px; /* was 1200px */
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* force 5 columns */
    gap: 30px;
}


.fact-card .fact-source {
    margin-top: auto; /* pushes link to bottom so cards align */
}

.fact-card {
    background: rgba(0,0,0,0.6);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
}

    .fact-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .fact-card p {
        opacity: 0.92;
    }

.fact-source {
    margin-top: 12px;
    font-size: 0.8rem;
    opacity: 0.75;
}

/* -----------------------------------------
   STORY SECTION
------------------------------------------ */
.story {
    padding: 140px 0;
}

.story-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .story-link-wrapper:hover .story-wrapper {
        transform: scale(1.015);
        box-shadow: 0 12px 35px rgba(0,0,0,0.55);
        transition: 0.25s ease;
        cursor: pointer;
    }


.story-wrapper {
    max-width: 1150px;
    margin: auto;
    display: flex;
    gap: 40px;
    align-items: center;
    background: rgba(0,0,0,0.45);
    border-radius: 12px;
    padding: 60px;
}

.story-img {
    width: 480px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

/* -----------------------------------------
   SIGNUP SECTION
------------------------------------------ */
.signup {
    padding: 140px 0;

}

.signup-card {
    background: rgba(0,0,0,0.65);
    max-width: 500px;
    margin: auto;
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(14px);
}

.signup-sub {
    text-align: center;
    opacity: 0.85;
    margin-bottom: 30px;
}

.signup-form label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.input {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    margin-bottom: 18px;
    border-radius: 6px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.primary-btn {
    width: 100%;
    background: #55d7ff;
    padding: 12px;
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

    .primary-btn:hover {
        background: #7ceaff;
    }

.error-list {
    color: #ff6f6f;
    margin-top: 10px;
}

.thanks {
    margin-top: 25px;
    text-align: center;
}

/* -----------------------------------------
   SUPPORTERS SECTION
------------------------------------------ */
.supporters {
    padding: 140px 0;
}

.supporters-card {
    max-width: 600px;
    margin: auto;
    background: rgba(0,0,0,0.55);
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.supporters-number {
    font-size: 4rem;
    font-weight: 800;
    color: #55d7ff;
    text-shadow: 0 0 12px rgba(0,0,0,0.75);
}

.supporters-label {
    margin-top: 8px;
    opacity: 0.85;
}




/* -----------------------------------------------------
   MOBILE RESPONSIVE FIXES
   Add this at the VERY BOTTOM of your CSS file
------------------------------------------------------ */

/* Large tablets, small laptops */
@media (max-width: 1024px) {
    .hero {
        padding: 140px 20px;
    }
}

/* Standard phones + small tablets */
@media (max-width: 768px) {

    /* HERO */
    .hero {
        padding: 120px 20px;
        border-radius: 0;
    }

    .hero-content {
        margin: 0 auto;
        max-width: 100%;
        text-align: center;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-lede {
        font-size: 1rem;
        max-width: 100%;
    }


    /* NUMBERS */
    .numbers-grid {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .number-card {
        width: 100%;
        padding: 22px;
    }


    /* SCIENCE FACTS */
    .facts-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .fact-card {
        padding: 20px;
    }


    /* STORY SECTION */
    .story-wrapper {
        flex-direction: column;
        padding: 30px 20px;
    }

    .story-img {
        width: 100%;
        max-width: 360px;
    }

    .story-text {
        text-align: center;
    }


    /* SIGNUP */
    .signup-card {
        max-width: 95%;
        padding: 30px 20px;
    }

    .primary-btn {
        padding: 14px;
        font-size: 1.05rem;
    }


    /* SUPPORTERS */
    .supporters-card {
        max-width: 95%;
        padding: 30px 20px;
    }

    .supporters-number {
        font-size: 2.8rem;
    }
}

/* Small Phones — iPhone SE, older Androids */
@media (max-width: 480px) {

    .hero-title {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .hero-lede {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .number-card {
        padding: 20px;
    }

    .number {
        font-size: 2rem;
    }

    .fact-card h3 {
        font-size: 1.15rem;
    }

    .supporters-number {
        font-size: 2.4rem;
    }
}


/* ---------------------------------------
   Fullscreen background scroll transitions
---------------------------------------- */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    z-index: -20;
    pointer-events: none;
}

/* Images */
.bg-full {
    background-image: url('/images/Lake_Full_1.png');
}

.bg-medium {
    background-image: url('/images/Lake_Medium_2.png');
}

.bg-low {
    background-image: url('/images/Lake_Low_3.png');
}

.bg-dry {
    background-image: url('/images/Lake_Dry_4.png');
}

/* Active layer fades in */
.bg-layer.active {
    opacity: 1;
}

/* Fog overlay for readability */
.bg-fog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: rgba(0,0,0,0.45);
    pointer-events: none;
}



/* -----------------------------------------
   WHAT SIGNING UP DOES
------------------------------------------ */

.explain {
    padding: 140px 0;

}

.explain-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.explain-card {
    background: rgba(0,0,0,0.60);
    padding: 28px 30px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.55);
    text-shadow: 0 1px 4px rgba(0,0,0,0.75);
}


/* -----------------------------------------
   BEFORE/AFTER Split Slider (draggable)
------------------------------------------ */
.compare-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.55);
    /* FIX: consistent height so mask works properly */
    aspect-ratio: 16 / 9;
}

.compare-wrapper {
    aspect-ratio: 16/9;
}

    .compare-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }



.compare-img img {
    width: 100%;
    display: block;
    pointer-events: none;
}

.compare-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: 3;
    /* Start at 50% reveal */
    clip-path: inset(0 50% 0 0);
}


.compare-after {
    width: 100%;
}

/* Draggable handle */
.compare-handle {
    position: absolute;
    top: 0;
    left: 50%; /* Start in the middle */
    transform: translateX(-50%);
    width: 0px;
    height: 100%;
    cursor: ew-resize;
    z-index: 5;
}

/* Vertical line */
.handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #55d7ff;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

/* Circle / draggable knob */
.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    background: #55d7ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
    border: 3px solid rgba(255,255,255,0.9);
}

/* Labels */
.compare-labels {
    max-width: 900px;
    margin: 15px auto 0;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.compare-before img,
.compare-after img {
    height: 100%;
    object-fit: cover; /* ensures clean scaling */
}




.kofi-footer {
    width: 100%;
    position: relative;
    bottom: 0;
    margin-top: 80px;
    background: rgba(0,0,0,0.35); /* semi-transparent dark overlay */
    backdrop-filter: blur(6px); /* smooth glassy effect */
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
}


.share-section {
    margin-top: 20px;
    text-align: center;
}

.share-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #eee;
    opacity: 0.9;
}

.share-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.2s ease;
}

    .share-btn:hover {
        transform: scale(1.1);
        background: rgba(0,185,254,0.5);
    }

    /* Optional platform-specific accents */
    .share-btn.fb:hover {
        background: #3b5998;
    }

    .share-btn.x:hover {
        background: black;
    }

    .share-btn.reddit:hover {
        background: #ff4500;
    }

    .share-btn.email:hover {
        background: #258cfb;
    }
