/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: #eaeaea;
    background-color: #220800;
    /* Midnight Arcade */
}

/* =========================
   LAYOUT
========================= */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
    font-family: "Orbitron", sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #FB9E0A;
    text-shadow:
        0 0 12px rgba(253, 229, 37, 0.6),
        0 0 28px rgba(251, 158, 10, 0.6),
        0 0 50px rgba(188, 44, 2, 0.4);
}

h2 {
    font-family: "Orbitron", sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #FB9E0A;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-family: "Orbitron", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #10D9EE;
}

p {
    max-width: 720px;
    margin: 0 auto 1.75rem auto;
    color: #d6f9fc;
}

/* =========================
   HOME MAIN SECTION
========================= */
#home {
    /* Fade Midnight Arcade - Linear gradient from left (dark) to right */
    background: linear-gradient(90deg, #220800 0%, #000000 100%);
    width: 100%;
    overflow: hidden;
    /* Prevents scrollbars during animation */
}

/* Container to control width and flex layout */
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    /* Vertically center items */
    justify-content: space-between;
    /* Push text left, image right */
    gap: 4rem;
    /* Space between text and image */
}

/* --- Left Side: Text --- */
.hero-text {
    flex: 1;
    /* Takes up available space */
    text-align: left;
    /* Aligns text to left */
}

/* Animation Setup for Text */
.hero-text h1,
.hero-text p,
.hero-text .cta-buttons {
    opacity: 0;
    /* Hidden initially */
    animation: fadeSlideIn 1s ease-out forwards;
}

/* Staggered Delays (Fade in one after another) */
.hero-text h1 {
    animation-delay: 0.2s;
}

.hero-text p {
    font-size: 1.25rem;
    color: #7CF7FC;
    text-shadow: 0 0 10px rgba(124, 247, 252, 0.4);
    margin: 0 0 2rem 0;
    /* Reset auto margins for left align */
    animation-delay: 0.4s;
}

.hero-text .cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-start;
    /* Align buttons left */
    margin-top: 1rem;
    animation-delay: 0.6s;
}

/* --- Right Side: Image --- */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeSlideIn 1s ease-out forwards;
    animation-delay: 0.8s;
    /* Image loads last */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    /* Limit height so it doesn't get too huge */
}

/* --- Animation Keyframes --- */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        /* Slides up from 30px down */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   LEVEL UP HINT
========================= */
.level-up-hint {
    /* Positioning: Sticks it to the bottom */
    position: fixed;
    bottom: 2rem;
    /* Distance from the bottom of the screen */
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    /* Ensure it stays above other elements */

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    /* Typography */
    font-family: "Orbitron", sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #10D9EE;
    letter-spacing: 1px;

    /* Animation Control */
    opacity: 0;
    pointer-events: none;
    /* User can't click it */
    animation: hintCycle 3s ease-in-out forwards;
    animation-delay: 1.5s;
    /* Appears after the main text finishes fading in */
}

.hint-arrow {
    font-size: 1.2rem;
    margin-left: 20px;
    animation: bounce 1s infinite;
}

/* --- Hint Animation Sequence --- */
@keyframes hintCycle {
    0% {
        opacity: 0;
        transform: translateY(-50%, -10px);
    }

    10%,
    90% {
        opacity: 1;
        transform: translateY(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translateY(50%, 10px);
    }
}

/* --- Subtle Arrow Bounce --- */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* =========================
   BUTTONS
========================= */
button,
.primary-btn {
    background: #FB9E0A;
    color: #fff;
    border: none;
    padding: 1rem 2.25rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow:
        inset 0 0 10px #FDE525,
        0 0 20px rgba(251, 158, 10, 0.6),
        0 0 40px rgba(188, 44, 2, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.4);
}

button:hover,
.primary-btn:hover {
    background-color: #FDE525;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow:
        inset 0 0 15px #FDE525,
        0 0 30px rgba(253, 229, 37, 0.8),
        0 0 60px rgba(251, 158, 10, 0.6),
        0 0 90px rgba(188, 44, 2, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Secondary Button */
.secondary-btn {
    background: transparent;
    color: #10D9EE;
    border: 1px solid #10D9EE;
    box-shadow:
        0 0 10px rgba(16, 217, 238, 0.3);
}

.secondary-btn:hover {
    box-shadow:
        0 0 18px rgba(124, 247, 252, 0.6),
        0 0 32px rgba(16, 217, 238, 0.4);
}

/* =========================
   CARDS
========================= */
.card,
.step-card,
.impact-card {
    background: linear-gradient(135deg, rgba(34, 8, 0, 0.8), rgba(0, 0, 0, 0.9));
    border: 1px solid #10D9EE;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* =========================
   HOW IT WORKS
========================= */
.steps-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.step-card {
    max-width: 340px;
    transition: transform 0.3s ease;
}

/* =========================
   DONATION / IMPACT
========================= */
#impact {
    background: #220800;
}

.impact-metrics {
    margin-top: 3rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.metric-label {
    color: #7CF7FC;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.metric-value {
    font-size: 2.6rem;
    font-weight: 700;
    color: #FB9E0A;
    text-shadow:
        0 0 12px rgba(253, 229, 37, 0.6),
        0 0 28px rgba(251, 158, 10, 0.6);
}

/* =========================
   FORMS
========================= */
form {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* =========================
   RESPONSIVE
========================= */
/* Tablets & Small Laptops */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.5rem;
    }


    h1,
    h2,
    h3 {
        text-align: center;
    }

    .hero-container {
        gap: 2rem;
    }
}

/* Phones (Vertical Stack) */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    #home {
        /* Change from 90deg (horizontal) to 180deg (top-down) */
        background: linear-gradient(180deg, #220800 0%, #000000 100%);
    }

    /* Stack Hero Content */
    .hero-container {
        flex-direction: column;
        /* Stacks image under text */
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        order: 1;
        /* Ensures text stays on top */
    }

    .hero-image {
        order: 2;
        width: 100%;
    }

    .hero-image img {
        max-height: 300px;
        /* Prevent logo from taking over the whole screen */
    }

    .level-up-hint {
        display: none;
    }

    /* Center Buttons on Mobile */
    .hero-text .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
        /* Allows buttons to wrap if screen is very narrow */
        gap: 1rem;
    }

    .primary-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        /* Make buttons full-width for easier tapping */
        max-width: 280px;
    }

    /* Adjust Level Up Hint for mobile */
    .level-up-hint {
        align-items: center;
        font-size: 0.8rem;
    }

    /* Cards/Grid adjustments */
    .metrics-grid {
        grid-template-columns: 1fr;
        /* Single column for metrics */
        gap: 1.5rem;
    }
}