/* ============================================================
   MPower 20-Year Milestone Page — style.css
   Fonts: Outfit (headings), Poppins (body/buttons)
   Colors: #E4022B (accent), #000 (text), #fff (bg)
   ============================================================ */

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

:root {
    --red: #E4022B;
    --red-dk: #b50122;
    --black: #111111;
    --grey: #555555;
    --light: #f5f5f5;
    --white: #ffffff;
    --font-h: 'Outfit', sans-serif;
    --font-b: 'Poppins', sans-serif;
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-b);
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.65;
}

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 4px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    /* Start fully transparent — blends with hero */
    background: transparent;
    border-bottom: none;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrolled state — added by JS */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.07);
    padding: 14px 40px;
}

.site-logo {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Fallback text logo */
.logo-fallback {
    display: none;
    align-items: center;
    gap: 2px;
}

.logo-text {
    font-family: var(--font-h);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--red);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 80px 80px;
    gap: 60px;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.hero-bg-blur {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(228, 2, 43, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(228, 2, 43, 0.06);
    border: 1px solid rgba(228, 2, 43, 0.2);
    color: var(--red);
    font-family: var(--font-b);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--red);
    border-radius: 50%;
    animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-headline {
    font-family: var(--font-h);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-years {
    display: block;
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    letter-spacing: -2px;

    /* Shine effect */
    background: linear-gradient(-60deg, var(--red) 30%, #ff8a9a 50%, var(--red) 70%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShine 4s linear infinite;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.hero-of {
    display: block;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--grey);
    font-weight: 400;
    letter-spacing: 0;
    margin: 2px 0;
}

.hero-brand {
    display: block;
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    color: var(--black);
    letter-spacing: -2px;
}

.hero-sub {
    font-family: var(--font-b);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
}

.hero-desc {
    font-family: var(--font-b);
    font-size: 0.95rem;
    color: var(--grey);
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-b);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceX 1.6s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 18px;
    color: white;
}

@keyframes bounceX {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* HERO VISUAL */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(228, 2, 43, 0.15);
}

.hero-ring-1 {
    width: 320px;
    height: 320px;
    animation: spin 20s linear infinite;
}

.hero-ring-2 {
    width: 450px;
    height: 450px;
    border-color: rgba(228, 2, 43, 0.08);
    animation: spin 30s linear infinite reverse;
}

.hero-ring-3 {
    width: 580px;
    height: 580px;
    border-color: rgba(228, 2, 43, 0.05);
    animation: spin 45s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.anniversary-badge {
    width: 200px;
    height: 200px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 80px rgba(228, 2, 43, 0.35);
    z-index: 2;
}

/* Mascot image replacing the circle badge */
.hero-mascot {
    width: 480px;
    height: 480px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 20px 48px rgba(228, 2, 43, 0.18));
    animation: floatMascot 4s ease-in-out infinite;
}

@keyframes floatMascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.anni-num {
    font-family: var(--font-h);
    font-size: 5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    letter-spacing: -3px;
}

.anni-label {
    font-family: var(--font-b);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ============================================================
   SCROLL SECTION  (horizontal slider)
   ============================================================ */
.horizontal-scroll-wrapper {
    position: relative;
    width: 100%;
    /* Height will be set by JS (e.g., 1000vh for 10 slides) */
}

.scroll-section {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: var(--white);
    /* ensure container clips the horizontal overflow properly */
    contain: layout;
}

/* Progress bar at top of scroll section */
.scroll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(228, 2, 43, 0.12);
    z-index: 50;
}

.scroll-progress-fill {
    height: 100%;
    background: var(--red);
    width: 0%;
    transition: width 0.4s ease;
}

/* The horizontal track */
.slides-track {
    display: flex;
    width: max-content;
    height: 100%;
    /* We handle translation natively via JS scrolling now, no transition on transform, 
       so it feels tightly coupled to the user's scroll finger/wheel */
    will-change: transform;
}

/* ── INDIVIDUAL SLIDE ───────────────────────────────────── */
.slide {
    width: 100vw;
    min-height: 90vh;
    height: 90vh;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.slide-img-col {
    flex: 0 0 48%;
    position: relative;
    overflow: hidden;
}

.slide-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.8s ease;
}



.slide:hover .slide-img-wrap img {
    transform: scale(1.04);
}

.slide-img-overlay {
    position: absolute;
    inset: 0;
    /* All images are on the right now, so gradient flows left to blend with text col */
    background: linear-gradient(to left, transparent 60%, white 100%);
}

.slide-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 80px 80px;
}

/* Slide tag */
.slide-tag {
    font-family: var(--font-b);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-tag::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--red);
}

/* Slide headings */
.slide-title {
    font-family: var(--font-h);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.slide-subtitle {
    font-family: var(--font-h);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    color: var(--grey);
    margin-bottom: 22px;
    line-height: 1.4;
}

.slide-year {
    display: inline-block;
    background: var(--red);
    color: white;
    font-family: var(--font-b);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 100px;
    margin-left: 6px;
    vertical-align: middle;
}

.slide-body {
    font-family: var(--font-b);
    font-size: 0.92rem;
    color: var(--grey);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 500px;
}

/* Key points list */
.slide-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slide-points li {
    font-family: var(--font-b);
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--black);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.slide-points li::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    min-width: 7px;
    background: var(--red);
    border-radius: 50%;
    margin-top: 6px;
}

/* Quote block */
.slide-quote {
    background: var(--light);
    border-left: 3px solid var(--red);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin-top: 4px;
    max-width: 500px;
    position: relative;
}

.quote-icon {
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--red);
    position: absolute;
    top: 8px;
    left: 16px;
    opacity: 0.4;
}

.slide-quote p {
    font-family: var(--font-b);
    font-size: 0.88rem;
    font-style: italic;
    color: var(--black);
    line-height: 1.7;
    padding-left: 20px;
}

/* Mission pillars */
.mission-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    border: 1px solid rgba(228, 2, 43, 0.15);
    border-radius: 100px;
    padding: 8px 18px;
    font-family: var(--font-b);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--black);
    transition: background 0.25s, transform 0.2s;
}

.pillar:hover {
    background: rgba(228, 2, 43, 0.08);
    transform: translateY(-2px);
}

.pillar-icon {
    font-size: 1rem;
}

/* Stats row (slide 10) */
.stats-row {
    display: flex;
    gap: 36px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: var(--font-h);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-plus {
    font-size: 2rem;
    vertical-align: super;
}

.stat-label {
    font-family: var(--font-b);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── NAV BUTTONS ────────────────────────────────────────── */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    z-index: 30;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.nav-btn:hover {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 8px 28px rgba(228, 2, 43, 0.35);
}

.nav-btn:hover svg {
    stroke: white;
}

.nav-btn svg {
    width: 20px;
}

/* Keep buttons floating cleanly at the very edges */
.nav-prev {
    left: 20px;
}

.nav-next {
    right: 20px;
}

.nav-btn:disabled {
    opacity: 0.25;
    pointer-events: none;
}

/* ── SLIDE DOTS & COUNTER ───────────────────────────────── */
.slide-nav {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 20;
}

.slide-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, width 0.25s;
}

.dot.active {
    background: var(--red);
    width: 24px;
    border-radius: 4px;
}

.slide-counter {
    font-family: var(--font-b);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--grey);
    letter-spacing: 0.15em;
}

/* ============================================================
   CALL TO ACTION
   ============================================================ */
.cta-section {
    position: relative;
    background: var(--black);
    color: var(--white);
    padding: 120px 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.cta-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 680px;
    width: 100%;
    /* Added to guarantee perfect centering of all child text blocks */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-badge {
    font-family: var(--font-b);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cta-headline {
    font-family: var(--font-h);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.cta-sub {
    font-family: var(--font-b);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 44px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-b);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 8px 32px rgba(228, 2, 43, 0.35);
}

.cta-btn:hover {
    background: #c7001f;
    transform: translateY(-2px);
    box-shadow: 0 14px 48px rgba(228, 2, 43, 0.45);
}

.cta-btn svg {
    width: 18px;
    transition: transform 0.2s;
}

.cta-btn:hover svg {
    transform: translateX(4px);
}

.cta-bg-decoration {
    position: absolute;
    bottom: -40px;
    right: -40px;
    font-family: var(--font-h);
    font-size: 300px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 24px 40px;
    font-family: var(--font-b);
    font-size: 0.8rem;
}

/* ============================================================
   SLIDE ENTRANCE ANIMATIONS
   ============================================================ */
.slide-content-col>* {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.slide.in-view .slide-content-col>* {
    opacity: 1;
    transform: translateY(0);
}

.slide.in-view .slide-content-col>*:nth-child(1) {
    transition-delay: 0.05s;
}

.slide.in-view .slide-content-col>*:nth-child(2) {
    transition-delay: 0.15s;
}

.slide.in-view .slide-content-col>*:nth-child(3) {
    transition-delay: 0.25s;
}

.slide.in-view .slide-content-col>*:nth-child(4) {
    transition-delay: 0.35s;
}

.slide.in-view .slide-content-col>*:nth-child(5) {
    transition-delay: 0.45s;
}

.slide.in-view .slide-content-col>*:nth-child(6) {
    transition-delay: 0.55s;
}

/* Hero entrance */
.hero-content>* {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.75s ease forwards;
}

.hero-content>*:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-content>*:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-content>*:nth-child(3) {
    animation-delay: 0.55s;
}

.hero-content>*:nth-child(4) {
    animation-delay: 0.7s;
}

.hero-content>*:nth-child(5) {
    animation-delay: 0.85s;
}

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

.hero-visual {
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 100px 40px 60px;
        text-align: center;
    }

    /* Center-align all hero content on tablet */
    .hero-content {
        align-items: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-badge {
        margin: 0 auto 24px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero-scroll-hint {
        justify-content: center;
    }

    /* Slides stack vertically; allow height to grow with content */
    .slide {
        flex-direction: column;
        height: auto !important;
        min-height: 100vh;
        overflow-y: auto;
    }

    /* Image column: fixed height so image is visible but doesn't dominate */
    .slide-img-col {
        flex: 0 0 280px;
        height: 280px;
        width: 100%;
    }

    .slide-img-wrap {
        height: 100%;
    }

    .slide-img-overlay {
        background: linear-gradient(to top, white 10%, transparent 60%) !important;
    }

    .slide-content-col {
        padding: 36px 32px 80px !important;
        flex: 1;
    }

    /* Title should be centered */
    .slide-title,
    .slide-subtitle,
    .slide-tag {
        text-align: center;
        justify-content: center;
    }

    .slide-tag::before {
        display: none;
    }

    .nav-prev {
        left: 20px;
    }

    .nav-next {
        right: 20px;
    }

    .cta-section {
        padding: 80px 32px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
    .site-header {
        padding: 14px 20px;
    }

    .site-logo {
        height: 40px;
    }

    .hero-section {
        padding: 90px 20px 48px;
    }

    /* Center hero content on mobile */
    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-years,
    .hero-brand {
        font-size: clamp(2.4rem, 10vw, 3rem);
        letter-spacing: -1px;
    }

    .hero-of {
        font-size: 1.2rem;
    }

    /* Image: smaller height on mobile */
    .slide-img-col {
        flex: 0 0 220px;
        height: 220px;
    }

    .slide-content-col {
        padding: 28px 20px 72px !important;
    }

    /* Keep text centered on mobile too */
    .slide-title,
    .slide-subtitle,
    .slide-tag,
    .slide-subtitle .slide-year {
        text-align: center;
    }

    .slide-body {
        text-align: left;
    }

    .slide-points {
        text-align: left;
    }

    .stats-row {
        gap: 8px;
        justify-content: center;
        flex-wrap: nowrap;
        align-items: flex-end;
    }

    .stat-item {
        flex: 1;
        align-items: center;
        text-align: center;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    .mission-pillars {
        justify-content: center;
    }

    .slide-quote {
        max-width: 100%;
    }

    .cta-section {
        padding: 64px 20px;
    }

    .cta-headline {
        font-size: 1.9rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .nav-prev {
        left: 10px;
    }

    .nav-next {
        right: 10px;
    }

    .slide-nav {
        bottom: 16px;
    }
}