/* GLOBAL STYLES */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: black;
    color: white;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: white;
}

a:focus-visible,
.cta-button:focus-visible,
.slide-btn:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 3px;
}
/* HERO SECTION */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to bottom, black, #2e005b);
}

.hero h1 {
    font-size: 3rem;
    color: #8000ff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    padding: 15px 30px;
    background-color: #8000ff; /* royal purple */
    color: white;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.cta-button:hover {
    background-color: #a64dff;
}

/* ABOUT SECTION */
.about, .help, .contact, .donation-info, .top-slideshow {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.top-slideshow {
    padding-bottom: 110px;
}

.about h2, .help h2, .contact h2, .donation-info h2, .top-slideshow h2 {
    color: #8000ff;
    margin-bottom: 20px;
}


.purple-halo {
    font-weight: 800;
    line-height: 1.75;
    letter-spacing: 0.3px;
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    max-width: 860px;
    margin: 0 auto;
    text-shadow:
        0 0 5px rgba(166, 77, 255, 0.78),
        0 0 12px rgba(128, 0, 255, 0.68),
        0 0 20px rgba(128, 0, 255, 0.48);
}

.investment-list {
    list-style: none;
    padding: 0;
    max-width: 860px;
    margin: 30px auto 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.investment-list li {
    padding-left: 35px;
    position: relative;
    font-weight: 600;
    color: #fff;
    line-height: 1.6;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.investment-list li:before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #8000ff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(128, 0, 255, 0.6);
}

/* FITNESS DISCIPLINE SECTION */
.fitness-discipline {
    position: relative;
    padding: 100px 20px !important;
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.08) 0%, rgba(166, 77, 255, 0.05) 100%);
    border: 2px solid rgba(128, 0, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(128, 0, 255, 0.3), inset 0 0 50px rgba(128, 0, 255, 0.05);
    margin: 80px auto !important;
}

.fitness-discipline h2 {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    color: #fff !important;
    text-shadow: 
        0 0 10px rgba(166, 77, 255, 0.8),
        0 0 20px rgba(128, 0, 255, 0.7),
        0 0 40px rgba(128, 0, 255, 0.5),
        0 0 60px rgba(128, 0, 255, 0.3);
    font-weight: 900 !important;
    letter-spacing: 1px;
    margin-bottom: 40px !important;
}

.fitness-discipline .purple-halo {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem) !important;
    font-weight: 800 !important;
    text-shadow:
        0 0 8px rgba(166, 77, 255, 0.85),
        0 0 16px rgba(128, 0, 255, 0.75),
        0 0 32px rgba(128, 0, 255, 0.55);
    line-height: 1.8;
    letter-spacing: 0.4px;
}

.burpeebros-qr {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 40px auto 0;
    display: block;
    border: 2px solid rgba(128, 0, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(128, 0, 255, 0.2);
}

/* HELP SECTION */
.help-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.option {
    background-color: #1a001f;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
}

.group-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.group-tab {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(166, 77, 255, 0.6);
    background-color: #1a001f;
    color: #fff;
    cursor: pointer;
}

.group-tab.active {
    background-color: #8000ff;
}

.slideshow {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.slide-frame {
    width: min(720px, 100%);
    background-color: #1a001f;
    border: 1px solid rgba(128, 0, 255, 0.5);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(128, 0, 255, 0.25);
}

.slide-frame img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
}

.slide-frame p {
    margin: 0;
    padding: 12px 14px;
    color: #e6d4ff;
    display: none;
}

.slide-counter {
    display: none !important;
    padding-top: 0 !important;
    font-size: 0.88rem;
    color: #c7a8ff !important;
}

.slide-btn {
    border: 1px solid rgba(166, 77, 255, 0.55);
    background-color: #2e005b;
    color: white;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.slide-btn:hover {
    background-color: #4b0a86;
}

/* CONTACT SECTION */
.contact {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

/* IMAGE GALLERY SECTION */
.image-gallery {
    display: flex;
    justify-content: center;
    padding: 60px 40px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: 30px;
}

.gallery-image {
    width: 500px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #8000ff;
    box-shadow: 0 8px 20px rgba(128, 0, 255, 0.3);
    transition: transform 0.6s ease-out;
}

.gallery-images-stacked {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-images-stacked .gallery-image {
    width: 500px;
    height: auto;
}

.gallery-image.rotate-in {
    animation: fireGlow 2s ease-in-out infinite, flicker 4s ease-in-out infinite;
}

@keyframes fireGlow {
    0% {
        box-shadow: 0 8px 20px rgba(128, 0, 255, 0.3);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 8px 40px rgba(255, 100, 0, 0.8), 0 0 60px rgba(255, 50, 0, 0.6);
        filter: brightness(1.3) saturate(1.5);
    }
    100% {
        box-shadow: 0 8px 60px rgba(255, 69, 0, 0.9), 0 0 80px rgba(255, 20, 0, 0.7);
        filter: brightness(1.4) saturate(1.8);
    }
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.95;
    }
}

.gallery-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.qr {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.qr img {
    width: 150px;
    height: 150px;
    border: 3px solid #8000ff;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.qr:hover img {
    transform: translateY(-6px) scale(1.06);
    border-color: #a64dff;
    box-shadow: 0 12px 28px rgba(128, 0, 255, 0.45);
}

.bottom-gallery {
    margin-top: 20px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #8000ff #140018;
}

.bottom-gallery img {
    width: 100%;
    height: auto;
    scroll-snap-align: center;
    border-radius: 12px;
}

.bottom-gallery::-webkit-scrollbar {
    height: 10px;
}

.bottom-gallery::-webkit-scrollbar-track {
    background: #140018;
    border-radius: 999px;
}

.bottom-gallery::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, #350f5a, #a64dff);
    border-radius: 999px;
}

.photo-wall {
    padding: 80px 20px;
    max-width: 1100px;
    margin: auto;
    text-align: center;
    position: relative;
}

.parallax {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(10, 0, 20, 0.9)),
        url('assets/images/MMFmoment-01.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
}

.parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 10%, rgba(128, 0, 255, 0.35), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(255, 110, 40, 0.35), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.parallax > * {
    position: relative;
    z-index: 1;
}

.photo-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.photo-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #120016;
    border: 1px solid rgba(166, 77, 255, 0.45);
    box-shadow: 0 12px 26px rgba(38, 0, 71, 0.6), 0 0 20px rgba(128, 0, 255, calc(0.25 + var(--glow, 0.2)));
    transform: translateZ(0);
    content-visibility: auto;
    contain-intrinsic-size: 240px 180px;
}

.photo-card::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 110, 40, 0.55), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(128, 0, 255, 0.75), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(166, 77, 255, 0.45), transparent 65%);
    opacity: calc(0.25 + var(--glow, 0.2));
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

.photo-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0ms);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.photo-card.in-view::after {
    opacity: calc(0.55 + var(--glow, 0.2));
}

.photo-card:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .parallax {
        background-attachment: scroll;
    }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #1a001f;
    color: #ccc;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .help-options {
        flex-direction: column;
        align-items: center;
    }

    .slideshow {
        gap: 8px;
    }

    .slide-btn {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .parallax {
        background-attachment: scroll;
    }
}

/* MAGNIFYING GLASS EFFECT */
.magnify-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.magnify-image {
    width: 100%;
    height: 100%;
    display: block;
}

.magnify-glass {
    position: absolute;
    pointer-events: none;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #a64dff;
    box-shadow: 0 0 15px rgba(128, 0, 255, 0.6), 0 0 30px rgba(166, 77, 255, 0.4);
    background-repeat: no-repeat;
    background-size: 200%;
    transform: scale(0);
    transition: transform 0.2s ease;
    z-index: 10;
}
