/* General Resets and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Enable smooth scrolling for programmatic scrolls */
}

:root {
    --primary-gold: #f0b90b; /* Binance gold/yellow */
    --secondary-orange: #e89b0a; /* Slightly darker orange */
    --dark-bg: #0d0d0d;
    --light-text: #fff;
    --grey-text: #aaa;
    --dark-grey: #1a1a1a;
}

body {
    font-family: 'Poppins', sans-serif; /* A modern, clean font */
    background-color: var(--dark-bg);
    color: var(--light-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Custom Font Import (optional, Poppins is common) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Header Styling */
header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: center; /* Centered the logo */
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(240, 185, 11, 0.5);
}

.logo img {
    height: 60px;
    margin-right: 0; /* Removed margin as text might be removed or centered */
}

/* Main Content Area */
main {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column; /* Stack tagline and button vertically */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    gap: 25px; /* Add some space between tagline and button, but social proof gets its own margin */
}

/* New Tagline Styling */
.main-tagline {
    font-size: 3.5em; /* Large and prominent */
    font-weight: 700;
    color: var(--light-text);
    text-align: center;
    max-width: 80%; /* Prevent it from being too wide on large screens */
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    z-index: 10; /* Ensure it's above background */
}

/* Background Animation Container (for rockets and moons) */
.background-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(13, 13, 13, 0.8) 0%, rgba(0,0,0,1) 100%);
}

/* Moon Styling */
.moon {
    position: absolute;
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: pulseMoon 5s infinite alternate ease-in-out;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.moon-1 { top: 10%; left: 15%; animation-duration: 7s; }
.moon-2 { top: 25%; right: 20%; width: 80px; height: 80px; opacity: 0.4; animation-duration: 6s; animation-delay: 1s;}
.moon-3 { bottom: 15%; left: 5%; width: 90px; height: 90px; opacity: 0.3; animation-duration: 8s; animation-delay: 2s;}

@keyframes pulseMoon {
    from { transform: scale(1); opacity: 0.6; }
    to { transform: scale(1.05); opacity: 0.7; }
}

/* Upward Animation Item (previously Rocket) Styling */
@keyframes riseUpward {
    0% {
        transform: translate(-50%, 0) translateY(0);
        opacity: 0;
        filter: blur(5px);
    }
    10% {
        opacity: 1;
        filter: blur(0);
    }
    90% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: translate(-50%, 0) translateY(-120vh);
        opacity: 0;
        filter: blur(5px);
    }
}

.upward-animation-item {
    position: absolute;
    bottom: -150px; /* Start slightly below viewport */
    width: 100px; /* Adjusted width for milk splash */
    height: 180px; /* Adjusted height for milk splash */
    background-image: url('milk_splash.png'); /* Changed image */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    animation-name: riseUpward; /* Changed animation name */
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth acceleration */
    animation-fill-mode: forwards;
    left: 50%; /* Initial center, JS randomizes */
    transform: translateX(-50%);
    pointer-events: none; /* Do not block clicks */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* Start Button Styling */
.start-button {
    padding: 22px 55px; /* Made button slightly bigger */
    font-size: 2em; /* Made button font bigger */
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-orange));
    color: var(--light-text);
    box-shadow: 0 10px 30px rgba(240, 185, 11, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
    position: relative; /* For confetti */
    outline: none;
    text-decoration: none; /* Remove underline from anchor tag */
    display: inline-block; /* Ensure padding and width work as expected for anchor */
}

.start-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(240, 185, 11, 0.6);
    background: linear-gradient(90deg, #ffd700, #ff8c00); /* Slightly brighter on hover */
}

.start-button:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 20px rgba(240, 185, 11, 0.3);
}

/* Footer-left (Visitor Count) */
.footer-left {
    background: rgba(0,0,0,0.6);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1em;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    pointer-events: auto; /* Re-enable clicks */
    width: fit-content; /* Make box fit content */
    z-index: 20; /* Ensure it's above other content */
}

/* New styling for visitor count in the center above copyright */
.visitor-count-centered {
    margin-top: auto; /* Push it towards the bottom, just above copyright */
    margin-bottom: 50px; /* Increased space from the copyright footer */
    align-self: center; /* Center horizontally within the flex column body */
    text-align: center; /* Ensure text inside is centered */
}

.visitor-count {
    color: var(--light-text);
    font-weight: 600;
}

.visitor-count #dynamicVisitorCount {
    color: var(--primary-gold);
}

/* Social Proof Container - New Position */
.social-proof-container {
    margin-top: 40px; /* Space from the "Start Now" button */
    max-width: 400px; /* Limit width */
    width: 90%; /* Responsive width */
    margin-left: auto;
    margin-right: auto; /* Center horizontally */
    
    background: rgba(0,0,0,0.6);
    padding: 15px 25px; /* Adjust padding for visual appeal */
    border-radius: 15px; /* Rounded corners */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    
    display: flex; /* Use flexbox to center its content */
    align-items: center; /* Vertically center the message */
    justify-content: center; /* Horizontally center the message */
    text-align: center; /* Center the text itself */
    max-height: fit-content; /* Adjust height to content for a single message */
    overflow: hidden; /* Prevent content overflow */
    z-index: 10; /* Ensure it's above background */
    pointer-events: auto;
}

.social-proof-message {
    background: none; /* Remove background from the inner message div */
    padding: 0; /* Remove padding from the inner message div */
    box-shadow: none; /* Remove shadow from the inner message div */
    color: var(--light-text);
    font-size: 1.1em; /* Larger font for better readability */
    line-height: 1.5; /* Good line height */
    min-height: auto; /* Allow height to adjust to content */
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* What People Are Saying Section */
#commentsSection {
    width: 100%;
    max-width: 900px; /* Max width for the section */
    margin: 40px auto 20px auto; /* Top margin from visitors, auto for horizontal centering, bottom margin from copyright */
    padding: 25px;
    background: rgba(0,0,0,0.7);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    text-align: center;
    z-index: 10;
}

#commentsSection h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(240, 185, 11, 0.5);
}

#commentsGrid {
    display: grid; /* Use grid for layout */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive columns */
    gap: 25px; /* Space between cards */
    max-height: 400px; /* Limit height and make scrollable */
    overflow-y: auto;
    padding-right: 10px; /* For scrollbar, to prevent content hiding behind it */
    justify-content: center; /* Center grid items if not full width */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Custom Scrollbar for commentsGrid */
#commentsGrid::-webkit-scrollbar {
    width: 8px;
}

#commentsGrid::-webkit-scrollbar-track {
    background: var(--dark-grey); /* Dark grey track */
    border-radius: 10px;
}

#commentsGrid::-webkit-scrollbar-thumb {
    background: var(--primary-gold); /* Gold thumb */
    border-radius: 10px;
    border: 2px solid var(--dark-grey); /* Border around thumb */
}

#commentsGrid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-orange); /* Lighter on hover */
}

.comment-card {
    background: var(--dark-grey);
    padding: 20px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.comment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.comment-author {
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
    font-size: 1.1em;
}

.comment-text {
    font-size: 0.95em;
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-source {
    font-size: 0.8em;
    color: var(--grey-text);
    font-style: italic;
}

/* Copyright Footer */
.copyright {
    text-align: center;
    padding: 15px;
    font-size: 0.85em;
    color: var(--grey-text);
    background: rgba(0,0,0,0.7);
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 1.8em;
    }

    .logo img {
        height: 45px;
        margin-right: 0; /* Keep margin for spacing even if text is removed */
    }

    .main-tagline {
        font-size: 2.5em;
        max-width: 90%;
        margin-top: 30px; /* Added to lower title and button from logo on mobile */
    }

    .start-button {
        padding: 18px 35px; /* Adjusted for mobile */
        font-size: 1.6em; /* Adjusted for mobile */
    }

    main {
        gap: 20px;
    }

    .footer-left { /* Keep visitor count box in position, adjust font */
        text-align: center;
        padding: 10px 15px;
        font-size: 0.85em;
    }
    
    .social-proof-container {
        /* No fixed positioning, it now flows with the main content */
        margin-top: 30px; /* Slightly less margin on mobile */
        padding: 20px; /* Adjust padding */
        border-radius: 12px;
        width: 95%; /* Wider on small screens */
        max-width: 350px; /* Keep a reasonable max-width */
    }

    .social-proof-message {
        font-size: 1em; /* Slightly smaller font for very small screens */
    }

    .moon {
        width: 80px;
        height: 80px;
    }
    .moon-1 { top: 5%; left: 5%; }
    .moon-2 { top: 15%; right: 5%; }
    .moon-3 { bottom: 5%; left: 2%; }

    .upward-animation-item {
        width: 70px; /* Adjusted for mobile */
        height: 120px; /* Adjusted for mobile */
    }

    /* Responsive adjustments for comments section */
    #commentsSection {
        max-width: 95%;
        margin-top: 30px;
        padding: 20px;
    }

    #commentsSection h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    #commentsGrid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        gap: 20px;
        max-height: 300px; /* Adjust max height for mobile */
    }

    .comment-card {
        padding: 15px;
    }

    .copyright {
        padding: 10px;
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }

    .logo img {
        height: 40px;
    }

    .main-tagline {
        font-size: 1.8em;
        max-width: 95%;
        margin-top: 20px; /* Added to lower title and button from logo on mobile */
    }
    main {
        gap: 20px;
    }

    .start-button {
        padding: 15px 30px; /* Adjusted for mobile */
        font-size: 1.4em; /* Adjusted for mobile */
        border-radius: 40px;
    }

    .footer-left {
        font-size: 0.75em;
    }

    .social-proof-container {
        padding: 15px;
        max-width: 90%;
    }
    .social-proof-message {
        font-size: 0.9em;
    }

    #commentsSection {
        padding: 15px;
        border-radius: 15px;
        margin-top: 25px;
    }

    #commentsSection h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .comment-author {
        font-size: 1em;
    }

    .comment-text {
        font-size: 0.9em;
    }

    .comment-source {
        font-size: 0.75em;
    }

    .copyright {
        font-size: 0.7em;
    }
}