﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: Montserrat;
    text-transform: uppercase;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Section Base Styles */
.section {
    height: 100vh;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    position:relative;
    align-items: center;
    justify-content: center;
    background-position: center -50px;
}

/* =========================
   DESKTOP-ONLY PARALLAX LAYERS
   (Hidden by default = no mobile impact)
   ========================= */
.parallax-layer {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    display: none; /* IMPORTANT: keeps mobile untouched */
}

/* Top Logo Styling */
.top-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    height: auto;
    z-index: 10;
}

/* Ball Container with Corner Brackets */
.ball-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    margin-top: 0%;
}

/* Green Cricket Ball */
.green-ball {
    width: 70%;
    height: 70%;
    object-fit: contain;
    z-index: 5;
    /* animation: ballPulse 2s ease-in-out infinite; */
}
/*
@keyframes ballPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}
*/
/* Corner Brackets */
.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    z-index: 6;
}

.corner-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.corner-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

.corner-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 8px;
}

.corner-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

/* Scan Container */
.scan-container {
    width: 280px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Button Container */
.button-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0 20px;
    flex-direction: column;
    margin: 0 auto;
}

/* Action Buttons */
.action-btn {
    background: #FFF;
    color: #ae2a00;
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 0px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    white-space: nowrap;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-shadow: black 5px 5px 15px 0px;
    /* Add these for depth */
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
    border: 2px solid rgba(174, 42, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    white-space: nowrap;
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-radius: 25px;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.btn-text {
    pointer-events: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn::placeholder {
    color: #ae2a00;
    text-align: center;
}

/* Terms and Conditions */
.terms-container {
    margin: 15px 0 10px;
    margin: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index:2;
}

.terms-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.terms-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00ff88;
}

.terms-text {
    color: white;
    font-size: 12px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Disclaimer Text */
.disclaimer-text {
    color: white;
    font-size: 12px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
    max-width: 400px;
    font-weight: bold;
    margin-top:10px;
}

/* Slide to Submit Container */
.slide-container {
    width: 90%;
    max-width: 400px;
    margin: 20px auto 15px;
    padding: 0 20px;
    z-index: 2;
}

.slide-track {
    position: relative;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #8B2F20 0%, #C84F35 100%);
    background: linear-gradient(90deg, #01A42D 0%, #017821 100%);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.6);
    transition: all 0.3s ease;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.slide-button {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #ae2a00;
    transition: all 0.3s ease;
    z-index: 2;
    touch-action: none;
}

    .slide-button:active {
        cursor: grabbing;
    }

.ball-icon {
    width: 60px;
    height: 60px;
    background-image: url('assets/images/white-ball.png');
    background-size: contain;
    background-position: center;
    border-radius: 50%;
    position: relative;
    background-repeat:no-repeat;
}

.slide-track.completed {
    background: linear-gradient(90deg, #9B2D1F 0%, #D85A40 100%);
}

    .slide-track.completed .slide-text {
        opacity: 0;
    }

    .slide-track.completed::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 32px;
        font-weight: bold;
        animation: checkPop 0.5s ease;
    }

@keyframes checkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Shake animation for validation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Highlight terms when invalid */
.terms-container.invalid {
    animation: shake 0.5s ease-in-out;
}

    .terms-container.invalid .terms-text {
        color: #FFF;
    }

.error-message {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4444;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    width:75%;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .error-message.show {
        opacity: 1;
        visibility: visible;
    }
        

/* Section 1 */
.section-1 {
    background-image: url('assets/images/section1.png');
    background-color: #2a1f4a;
    background-color:#000;
}

/* Section 2 */
.section-2 {
    background-image: url('assets/images/section-2.png');
    background-color: transparent;
    margin-top: -135px;
    mix-blend-mode: inherit;
}

/* Section 3 */
.section-3 {
    background-image: url('assets/images/section-3.png');
    background-color: transparent;
    margin-top: -225px;
    padding-bottom:250px;
    padding-top:150px;
}

/* Section 4 */
.section-4 {
    background-color: #ffffff;
}

/* Section 2 - Daily Rewards */
.rewards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 0px;
    position: relative;
    z-index: 5; /* keeps content above parallax layers */
}

.rewards-heading {
    font-size: 32px;
    font-weight: bold;
    color: #FF8C42;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.rewards-items {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
}

.reward-item {
    display: block;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reward-img {
    max-width: 300px;
    height: auto;
    object-fit: fill;
    /* filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); */
}

.rewards-description {
    color: white;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
    max-width: 500px;
    background: transparent;
    padding: 15px 20px;
    border-radius: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin-top: -25px;
    font-weight: bold;
}

.trees-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Digital Counter Display */
.counter-display {
    display: flex;
    gap: 8px;
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), inset 0 2px 5px rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.digit-box {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
    border: 2px solid #333;
}

.digit {
    font-family: 'Courier New', monospace;
    font-size: 48px;
    font-weight: bold;
    color: #c6ff00;
    text-shadow: 0 0 10px #c6ff00, 0 0 20px #c6ff00;
    display: block;
    line-height: 1;
}

.trees-heading {
    font-size: 28px;
    font-weight: bold;
    color: #FF8C42;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.trees-description {
    color: white;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 450px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Video Player */
.video-container {
    width: 100%;
    max-width: 500px;
}

.video-player {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.video-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.video-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.league-text {
    color: #00A9E0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.league-divider {
    color: white;
}

.video-subtitle {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.play-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .play-button:hover {
        background: white;
        transform: scale(1.1);
    }

/* Video Thumbnails */
.video-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto !important;
    padding: 10px 0;
    scrollbar-width: thin;
}

    .video-thumbnails::-webkit-scrollbar {
        height: 6px;
    }

    .video-thumbnails::-webkit-scrollbar-thumb {
        background: #666;
        border-radius: 3px;
    }

.thumbnail-item {
    position: relative;
    min-width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail-img {
    transform: scale(1.05);
}

.thumb-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

    .video-modal.active {
        display: flex;
    }

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-modal-player {
    width: 100%;
    height: 100%;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

    .video-modal-close:hover {
        transform: scale(1.2);
    }

/* Mobile adjustments */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -35px;
        font-size: 35px;
    }
}

/* Video Modal Close Button - FIXED */
.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid white;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    font-weight: bold;
}

    .video-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
        border-color: #ff4444;
        color: #ff4444;
    }


/* Only hide overflow on elements that actually need it */
.slide-container,
.button-container,
.video-thumbnails {
    overflow-x: hidden;
}

/* Ensure specific containers don't cause horizontal scroll */
.rewards-container,
.trees-container,
.footer-container {
    max-width: 100%;
    box-sizing: border-box;
}
/* Mobile adjustments */
@media (max-width: 768px) {
    .video-modal-close {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

/* Success Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

    .modal-overlay.active {
        display: flex;
    }

.modal-content {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5f3f 100%);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    animation: checkBounce 0.6s ease;
}

.modal-title {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.modal-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-button {
    background: white;
    color: #1a4d2e;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

    .modal-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Error styling */
.error {
    border: 2px solid red !important;
    animation: shake 0.3s ease;
    gap: 0px;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.error-message {
    color: #ff6b6b;
    color:#FFF;
    font-size: 12px;
    margin-top: 50px;
    display: none;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

    .error-message.show {
        display: block;
    }

/* Add to your existing CSS */
.digit {
    transition: transform 0.1s ease;
    display: inline-block;
}

.digit-box {
    transition: all 0.3s ease;
}

.counter-info {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.live-indicator {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .live-indicator::before {
        content: '🟢';
        animation: pulse 2s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes handsRiseAndGrow {
    0% {
        transform: scale(0.5) translateY(100px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.hands {
    transform: scale(0.5) translateY(100px);
    transform: none;
    opacity: 1;
    transition: all 0.3s ease-out;
    width: 100% !important;
    display: block;
    margin: auto;
    z-index: 2 !important;
    margin-bottom: 0px !important;
}

/* Responsive Design */
.section-4 {
    height: 30vh !important;
}

/* Section 4 - Footer */
.section-4 {
    background-color: #f8f8f8;
    min-height: auto;
    height: auto;
    padding: 40px 20px;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /*
    margin-top: 75px;
    margin-bottom: 50px;
        */
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2d5f3f;
    border-radius: 50%;
    color: #2d5f3f;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .social-link:hover {
        background: #2d5f3f;
        color: white;
        transform: translateY(-3px);
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

/* Footer Links */
.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: #2d5f3f;
        text-decoration: underline;
    }

.footer-divider {
    color: #666;
    font-size: 14px;
}

/* Disclaimer & Copyright */
.footer-disclaimer {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.footer-copyright {
    font-size: 12px;
    color: #333;
    margin: 0;
}

/* Social Pill Logo */
.footer-logo {
    margin-top: 10px;
}

.social-pill-logo {
    max-width: 120px;
    height: auto;
}

/* Tablet and below */
@media (max-width: 1024px) {
    .section {
        background-size: cover;
    }

    .top-logo {
        max-width: 500px;
        top: 15px;
    }

    .ball-container {
        width: 240px;
        height: 240px;
    }

    .scan-container {
        width: 240px;
        height: 70px;
    }

    .slide-track {
        height: 55px;
    }

    .slide-button {
        width: 45px;
        height: 45px;
    }

    .ball-icon {
        width: 60px;
        height: 60px;
    }
}

/* Floating animation for rewards items */
.reward-img {
    animation: float 3s ease-in-out infinite;
}

    .reward-img:nth-child(1) {
        animation-delay: 0s;
    }

    .reward-img:nth-child(2) {
        animation-delay: 0.5s;
    }

    .reward-img:nth-child(3) {
        animation-delay: 1s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Gentle pulse for the green ball */
.green-ball {
    /* animation: ballPulse 2s ease-in-out infinite, rotate 20s linear infinite; */
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Glow effect on counter */
.counter-display {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), inset 0 2px 5px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 8px 30px rgba(198, 255, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.1);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .section {
        height: 100vh;
        background-size: cover;
    }

    .top-logo {
        max-width: 400px;
        top: 15px;
    }

    .ball-container {
        width: 200px;
        height: 200px;
    }

    .scan-container {
        width: 200px;
        height: 60px;
    }

    .action-btn {
        font-size: 12px;
        padding: 10px 20px;
    }

    .disclaimer-text {
        font-size: 11px;
    }

    .mobile-number {
        font-size: 12px;
        width: 100%;
        border-radius: 25px;
        box-shadow:none;
    }
    .mobile-number::placeholder {
        color:grey;
    }

    .slide-track {
        height: 55px;
    }

    .slide-button {
        width: 45px;
        height: 45px;
    }

    .ball-icon {
        width: 60px;
        height: 60px;
    }

    .slide-text {
        font-size: 14px;
    }

    .rewards-heading {
        font-size: 26px;
    }

    .rewards-items {
        gap: 0px;
    }

    .reward-img {
        max-width: 300px;
    }

    .rewards-description {
        font-size: 12px;
    }

    .digit {
        font-size: 36px;
    }

    .digit-box {
        padding: 12px 10px;
    }

    .trees-heading {
        font-size: 24px;
    }

    .video-player {
        height: 220px;
    }

    .section-2,
    .section-3 {
        background-attachment: scroll;
        background-position: center 100%;
        background-repeat: no-repeat;
        background-size: cover;
    }

    /* EXTRA SAFETY: keep layers off on mobile 
    .parallax-layer {
        display: none !important;
    }
    */
}

/* Small mobile devices */
@media (max-width: 480px) {
    .section {
        background-size: cover;
    }

    .top-logo {
        max-width: 300px;
        top: 25px;
    }

    .ball-container {
        width: 300px;
        height: 300px;
        margin-bottom: 0px;
    }

    .corner {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

    .scan-container {
        width: 180px;
        height: 50px;
        margin-bottom: 15px;
    }

    .button-container {
        gap: 10px;
    }

    .action-btn {
        font-size: 11px;
        padding: 8px 16px;
    }

    .disclaimer-text {
        font-size: 7px;
    }

    .slide-track {
        height: 50px;
    }

    .slide-button {
        width: 40px;
        height: 40px;
    }

    .ball-icon {
        width: 60px;
        height: 60px;
    }

    .slide-text {
        font-size: 13px;
    }

    .rewards-heading {
        font-size: 22px;
    }

    .reward-img {
        max-width: 300px;
    }

    .counter-display {
        gap: 6px;
        padding: 15px;
    }

    .digit {
        font-size: 28px;
    }

    .digit-box {
        padding: 10px 8px;
    }

    .trees-heading {
        font-size: 20px;
    }

    .trees-description {
        font-size: 12px;
    }

    .video-player {
        height: 180px;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .trees-container {
        margin-bottom: 200px;
        margin-bottom:0px;
    }

    .hands {
        width: 250px;
        animation: handsRiseAndGrow 2.5s ease-out both;
        animation: none;
    }

    .section-2 {
        margin-top: -200px;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .section {
        height: 100vh;
        background-size: cover;
    }

    .top-logo {
        max-width: 250px;
        top: 10px;
    }

    .ball-container {
        width: 150px;
        height: 150px;
        margin-bottom: 10px;
    }

    .corner {
        width: 25px;
        height: 25px;
    }

    .scan-container {
        width: 150px;
        height: 40px;
        margin-bottom: 10px;
    }

    .button-container {
        gap: 8px;
        margin-bottom: 10px;
    }

    .action-btn {
        font-size: 10px;
        padding: 6px 12px;
    }

    .disclaimer-text {
        font-size: 7px;
    }

    .slide-container {
        margin: 10px auto;
    }

    .slide-track {
        height: 45px;
    }

    .slide-button {
        width: 35px;
        height: 35px;
    }

    .ball-icon {
        width: 25px;
        height: 25px;
    }

    .slide-text {
        font-size: 12px;
    }
}

