﻿@media (min-width: 769px) {
    /* .section-1 {
        background-image: url('assets/images/SECTION\ 1.png');
        min-height: 100vh;
    } */

    html {
        scroll-behavior: smooth;
        font-family: Montserrat;
        text-transform: uppercase;
    }

    body {
        margin: 0;
        padding: 0;
        background-image: url('assets/images/fullbg.png');
        background-size: cover; /* Makes it responsive and fills the viewport */
        background-position: top top; /* Positions from top center */
        background-repeat: no-repeat;
        background-attachment: scroll; /* Keeps it fixed while content scrolls */
        background-position: center 0;
        background-size: 100% auto; /* Fits width, may show more/less height */
        overflow-x: hidden; /* Prevents horizontal scroll */
        overflow-y: auto; /* Allows vertical scroll if needed */
    }

    .section {
        height: auto;
        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;
    }

    /* Remove section backgrounds on desktop - body background shows through */
    .section-1,
    .section-2,
    .section-3 {
        background-image: none !important;
        background-color: transparent !important;
    }

    .top-logo {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 450px;
        height: auto;
        z-index: 10;
    }

    /* Ball Container with Corner Brackets */
    .ball-container {
        position: relative;
        width: 350px;
        height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0px;
        margin-top: 25%;
    }

    /* Green Cricket Ball */
    .green-ball {
        width: 100%;
        height: 100%;
        object-fit: contain;
        z-index: 5;
        /* animation: ballPulse 2s ease-in-out infinite; */
    }
    .button-container {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
        flex-wrap: nowrap;
        justify-content: center;
        padding: 0 20px;
        flex-direction: column;
        margin: 0 auto;
        margin-top:5%;
    }

    /* 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;
    }

    .mobile-number {
        font-size: 12px;
        width: 100%;
        border-radius: 25px;
        box-shadow: none;
    }

        .mobile-number::placeholder {
            color: grey;
        }

    /* 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-2 {
            margin-top:25%;
        }

    .rewards-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0px;
        max-width: 900px;
        margin: 0 auto;
        margin-top: 0px;
        position: relative;
        z-index: 5; /* keeps content above parallax layers */
    }

    .rewards-heading {
        font-size: 48px;
        font-weight: bold;
        color: #FF8C42;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
        margin-bottom: 0px;
        letter-spacing: 2px;
    }

    .rewards-items {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        gap: 10px;
        margin-bottom: 130px;
        flex-wrap: nowrap;
    }

    .reward-item {
        display: block;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .reward-img {
        max-width: 900px;
        height: auto;
        object-fit: fill;
        margin-top: 25%;
        /* filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); */
    }

    .rewards-description {
        color: white;
        font-size: 18px;
        text-align: center;
        line-height: 1.6;
        max-width: 900px;
        background: transparent;
        padding: 15px 20px;
        border-radius: 10px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        margin-top: 0px;
        font-weight: bold;
    }

    .trees-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .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;
    }


    /* 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;
        width:600px;
    }

    .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;
        width:100%;
        text-align:center;
    }

    .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: 48px;
        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: 18px;
        text-align: center;
        line-height: 1.5;
        margin-bottom: 30px;
        max-width: 800px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }

    .section-3 {
        background: linear-gradient(to bottom, transparent 0%, transparent 1%, #0b150f 80% );
    }

    /* Video Player */
    .video-container {
        width: 100%;
        max-width: 900px;
    }

    .video-player {
        position: relative;
        width: 100%;
        height: auto;
        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: 56px;
        overflow-x: auto !important;
        padding: 10px 0;
        scrollbar-width: thin;
        align-items:center;
        justify-content:center;
    }

        .video-thumbnails::-webkit-scrollbar {
            height: 6px;
        }

        .video-thumbnails::-webkit-scrollbar-thumb {
            background: #666;
            border-radius: 3px;
        }

    .thumbnail-item {
        position: relative;
        min-width: 120px;
        height: 130px;
        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);
        }

    .section-4 {
        background-color: #f8f8f8;
        min-height: auto;
        height: auto;
        padding: 40px 20px;
    }



    /* 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-container {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 5%;
        /*
    margin-top: 75px;
    margin-bottom: 50px;
        */
    }


    /* 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;
    }


    /* 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;
        }
    }

}

/* MacBook and larger desktop screens */
@media (min-width: 1200px) {
    .footer-container {
        margin-top: 10% !important; /* Adjust percentage as needed */
    }
}

/* Or for even larger MacBooks (14"/16" Pro) */
@media (min-width: 1440px) {
    .footer-container {
        margin-top: 10% !important;
    }
}

/* Or for even larger MacBooks (14"/16" Pro) */
@media (min-width: 1600px) {
    .footer-container {
        background:#FFF;
        margin-top: 20% !important;
    }
}