body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #ffffff;
}

/* Hero Section Styling */
#hero {
    position: relative; 
    overflow: hidden; 
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1, .hero-content p, .hero-content .btn {
    opacity: 0;
    transform: translateY(20px);
    /* Transition will be handled by JS for staggered effect, or CSS if preferred */
}

/* Particle styling for JS animation */
.hero-particle {
    position: absolute;
    /* background-color: <?php echo $primary_light_shade; ?>; */ /* #C7A4FF */
    background-color: rgba(199, 164, 255, 0.3); /* Lighter purple, semi-transparent */
    border-radius: 50%;
    z-index: 1; /* Same level as overlay, or 0 if overlay should be on top of particles */
    /* Animation will be handled by JS */
    /* opacity will be set by JS */
}

/* Floating Logo in Hero Section */
.hero-logo-floater {
    position: absolute;
    top: 15%; /* Adjust as needed, relative to hero section height */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    width: 30vw; /* Dynamically scale with viewport width */
    min-width: 225px; /* Minimum size */
    max-width: 525px; /* Maximum size */
    height: auto;
    z-index: 3; /* Above hero overlay (1) and hero content (2) if desired, or adjust to be between overlay and content */
    animation: floatBounce 8s ease-in-out infinite;
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-20px); /* Floating up */
    }
    25%, 75% {
        /* Subtle bounce/wobble - could add a slight rotation too */
        transform: translateX(-50%) translateY(-5px) rotate(0.5deg);
    }
    20%, 80% {
        transform: translateX(-50%) translateY(-5px) rotate(-0.5deg);
    }
}

/* New vertical float animation for in-flow elements */
.logo-float-animation {
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Fade-in Animation Class (can be applied by jQuery) */
.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Staggered fade-in for multiple elements if needed */
.hero-content h1.fade-in-visible {
    transition-delay: 0.2s; /* Headline appears slightly after page load readiness */
}

.hero-content p.fade-in-visible {
    transition-delay: 0.4s; /* Sub-headline after headline */
}

.hero-content .btn.fade-in-visible { /* Assuming buttons will also fade in */
    transition-delay: 0.6s;
}

/* Navbar Customizations */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.navbar-brand {
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
}

/* Color Palette Reference (from config.php) */
/* Primary Color: #9945FF (Solana Purple) */
/* Primary Darker Shade: #7A2AFF */
/* Primary Lighter Shade: #C7A4FF */
/* Secondary Color: #FFC107 (Rich Gold/Yellow) */
/* Accent Pink: #E83E8C */
/* Accent Teal: #20C997 */
/* Light Background: #F8F9FA */
/* Dark Text Color: #212529 */

/* Example of using the primary color for a button variant if not done inline */
.btn-primary-custom {
    background-color: #9945FF; /* New $primary_color */
    border-color: #9945FF; /* New $primary_color */
    color: white;
}
.btn-primary-custom:hover {
    background-color: #7A2AFF; /* New $primary_darker_shade */
    border-color: #7A2AFF;
    color: white;
}

/* Scroll Animation Styling */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Specific Styling */
#about .bi {
    /* Ensure icons in the about section are sized nicely if defaults aren't enough */
}

#how-to-play .card {
    border: none; /* Cleaner look for step cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#how-to-play .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

#how-to-play .badge {
    /* Ensure primary color from config is used for badges if not default */
    background-color: #9945FF !important; /* New $primary_color */
}

/* Scratcher Card Styling */
.scratcher-card {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.scratcher-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,.1);
}

.scratcher-card .card-img-top {
    border-bottom: 1px solid #eee;
}

/* Specific styling for the Gold Rush game image */
.scratcher-card .game-goldrush-img {
    width: 50%;
    display: block; /* To enable auto margins for centering */
    margin-left: auto;
    margin-right: auto;
    height: auto; /* Maintain aspect ratio */
}

.scratcher-card .btn {
    /* Example: Use secondary color for buttons if desired */
    /* background-color: #FFC107 !important; $secondary_color */
    /* border-color: #FFC107 !important; $secondary_color */
    /* color: #212529 !important; $dark_text_color for better contrast on yellow */
    transition: background-color 0.3s ease;
}

/* Optional: if you want a different hover for play buttons */
.scratcher-card .btn:hover {
    /* background-color: #e0a800 !important; /* Darker secondary */
}

/* Ensure sections have enough top/bottom padding if py-5 is not enough, or for specific design needs */
#about,
#how-to-play,
#scratchers {
    /* padding-top: 6rem; */
    /* padding-bottom: 6rem; */
}

/* Tokenomics Section Styling */
#tokenomics ul {
    padding-left: 1.2rem; /* Standard padding for lists */
}
/* Remove old styling that might conflict */
/* #tokenomics .list-unstyled li strong {
    color: #9945FF;
} */

/* New Tokenomics Section Styling */
#tokenomics .tokenomics-card .card-header {
    /* Keeping it bg-transparent as set in HTML, customize if needed */
    padding-top: 0.75rem; /* Adjust padding */
}

#tokenomics .tokenomics-card .card-header h4 {
    font-size: 1.25rem; /* Slightly larger heading for cards */
    font-weight: 600;
}

#tokenomics .tokenomics-card .card-header h4 .bi {
    font-size: 1.2rem; /* Icon size in card header */
    vertical-align: middle;
}

#tokenomics .token-details-list dt {
    font-weight: 600; /* Make definition terms bold */
    color: #495057; /* Softer color for terms */
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

#tokenomics .token-details-list dt .bi {
    font-size: 0.9rem; /* Icon size in dt */
    margin-right: 0.35rem;
}

#tokenomics .token-details-list dd {
    font-size: 0.9rem;
    margin-bottom: 0.5rem; /* Spacing between items */
}

#tokenomics .token-details-list dd small.d-block {
    font-size: 0.8em;
    line-height: 1.2;
}


#tokenomics .token-utility-list .list-group-item {
    border: none; /* Remove default borders */
    padding-left: 0; /* Align with card body padding */
    padding-right: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

#tokenomics .token-utility-list .list-group-item .bi {
    margin-right: 0.5rem;
    font-size: 1.1rem; /* Icon size for utility items */
}

#tokenomics .token-distribution-list .list-group-item {
    border: none;
    padding-left: 0;
    padding-right: 0;
    font-size: 0.9rem;
    /* background-color: transparent; Remove if list-group-flush is not enough */
}
#tokenomics .token-distribution-list .list-group-item span:first-child {
    display: flex;
    align-items: center;
}

#tokenomics .token-distribution-list .list-group-item .bi {
    margin-right: 0.5rem;
    font-size: 1.1rem; /* Icon size for distribution items */
}


#tokenomics .token-distribution-list .progress {
    height: 12px; /* Slightly thicker progress bar */
    border-radius: 0.25rem; /* Rounded corners for progress bar */
    margin-bottom: 0.5rem; /* Space below each progress bar, except last */
}

#tokenomics .token-distribution-list small.text-muted {
    font-size: 0.8rem;
    margin-top: -0.25rem; /* Pull up slightly after its progress bar */
    margin-bottom: 0.75rem; /* Space before next list item */
}


#tokenomics .card-body p {
    font-size: 0.9rem;
}

/* Ensure consistent link styling within tokenomics cards */
#tokenomics .card-body a {
    color: #9945FF; /* Was <?php echo $primary_color; ?> */
    font-weight: 500;
}

#tokenomics .card-body a:hover {
    color: #7A2AFF; /* Was <?php echo $primary_darker_shade; ?> */
    text-decoration: underline;
}

/* Roadmap Timeline Styling */
.roadmap-timeline {
    position: relative;
    padding: 2rem 0;
    margin: 0 auto;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px; /* Adjusted for icon badge size */
    height: 100%;
    width: 4px;
    /* background: <?php echo $light_background; ?>; */ /* #F8F9FA */
    background: #F8F9FA;
    border-radius: 2px;
}

/* For larger screens, alternate sides */
@media (min-width: 768px) {
    .roadmap-timeline::before {
        left: 50%;
        margin-left: -2px;
    }
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::after {
    content: "";
    display: table;
    clear: both;
}

.timeline-badge {
    color: #fff;
    width: 40px; /* Increased size */
    height: 40px;
    line-height: 40px;
    font-size: 1.5rem; /* Increased icon size */
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    /* background-color: <?php echo $primary_color; ?>; */ /* New $primary_color - #9945FF */
    background-color: #9945FF;
    border-radius: 50%;
    z-index: 100;
    box-shadow: 0 0 0 3px white, inset 0 2px 0 rgba(0,0,0,.08), 0 3px 0 4px rgba(0,0,0,.05);
}

.timeline-badge.warning {
    /* background-color: <?php echo $secondary_color; ?>; */ /* #FFC107 */
    background-color: #FFC107;
}

.timeline-badge.success {
    /* background-color: <?php echo $primary_color; ?>; */ /* New $primary_color - #9945FF */
    background-color: #9945FF; 
}

.timeline-badge.info {
    /* background-color: <?php echo $accent_color_blue; ?>; */ /* Old accent blue to new accent teal #20C997 */
    background-color: #20C997;
}

/* For larger screens, alternate sides */
@media (min-width: 768px) {
    .timeline-badge {
        left: 50%;
        margin-left: -20px; /* Half of width */
    }
}

.timeline-panel {
    position: relative;
    width: 100%;
    padding: 0 0 20px 60px; /* Space for badge on left */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.timeline-panel::before {
    content: '';
    display: inline-block;
    position: absolute;
    top: 15px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #ddd; /* Arrow border */
}

.timeline-panel::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 16px;
    left: -9px;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 9px solid #fff; /* Arrow color */
}

/* For larger screens, alternate sides */
@media (min-width: 768px) {
    .timeline-panel {
        width: 45%;
        float: left;
        padding: 20px;
    }

    .timeline-item.timeline-item-inverted .timeline-panel {
        float: right;
    }

    .timeline-item.timeline-item-inverted .timeline-panel::before {
        border-left-width: 0;
        border-right-width: 10px;
        left: -10px;
        right: auto;
    }

    .timeline-item.timeline-item-inverted .timeline-panel::after {
        border-left-width: 0;
        border-right-width: 9px;
        left: -9px;
        right: auto;
    }
}

.timeline-heading {
    margin-bottom: 10px;
}

.timeline-title {
    margin-top: 0;
    color: inherit;
    font-weight: 600;
}

.timeline-body > p,
.timeline-body > ul {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.timeline-body > ul {
    padding-left: 20px;
}

/* Clearfix for timeline items */
.timeline-item:after, .timeline-item:before {
    content: " ";
    display: table;
}
.timeline-item:after {
    clear: both;
}

/* FAQ Section Styling */
#faq .accordion-item {
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6; /* Standard Bootstrap border color */
    border-radius: 0.375rem; /* Bootstrap's default border-radius */
}

#faq .accordion-button {
    font-weight: 500;
    color: #ffffff;
    background-color: #343a40;
}

#faq .accordion-button:not(.collapsed) {
    background-color: #343a40;
    color: #ffc107;
}

#faq .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

#faq .accordion-body {
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
}

#faq .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%); /* Makes the arrow white */
}

/* Community Section Styling */
#community .social-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    border-width: 2px; /* Make outline buttons a bit bolder */
}

#community .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.3rem 0.8rem rgba(0,0,0,.1);
}

/* Final Polish: Consistent link styling within sections if not already covered */
section a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item) {
    color: #9945FF;
    text-decoration: none;
    font-weight: 500;
}

section a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):hover {
    color: #7A2AFF;
    text-decoration: underline;
}

/* Recent Winners & Stats Section Styling */
#recent-winners .card {
    /* border-left: 3px solid <?php echo $primary_color; ?>; */ /* Example accent border */
    /* For a general card style, shadow is already applied in HTML (shadow-sm) */
}

#recent-winners .card-title {
    font-size: 1.1rem; /* Slightly smaller than h2/h3 for card titles */
    margin-bottom: 0.75rem;
    color: #495057; /* Bootstrap's gray-700 for a softer title color */
}

#recent-winners .card-title .bi {
    font-size: 1.2rem; /* Adjust icon size in card titles */
    vertical-align: text-bottom;
}

#recent-winners .display-5 {
    font-size: 2.5rem; /* Adjust display size for stats if needed */
}

#recent-winners .table thead th {
    /* Vertical alignment for table headers if needed, Bootstrap default usually good */
    /* vertical-align: middle; */
}

#recent-winners .table td,
#recent-winners .table th {
    vertical-align: middle;
}

#recent-winners .table .btn-sm {
    padding: 0.25rem 0.6rem; /* Slightly more padding for better click target */
    font-size: 0.8rem;
}

/* Styles for Dark Themed Sections */
.text-light h1, .text-light h2, .text-light h3, .text-light h4, .text-light h5, .text-light h6 {
    color: inherit; /* Ensure headings inherit text-light */
}

/* How to Play Section on Dark Background */
#how-to-play.text-light .card {
    /* background-color: <?php echo $card_bg_on_dark; ?>; */ /* #3b006a */
    background-color: #3b006a;
    /* border: 1px solid <?php echo $subtle_dark_border; ?>; */ /* #4a0080 */
    border: 1px solid #4a0080;
}

#how-to-play.text-light .card-title {
    /* color: <?php echo $light_text_on_dark; ?>; */ /* #F8F9FA */
    color: #F8F9FA;
}

#how-to-play.text-light .card-text {
    /* color: <?php echo $primary_light_shade; ?>; */ /* #C7A4FF - for a slightly softer text than pure white */
    color: #C7A4FF;
}

#how-to-play.text-light a:not(.btn) {
    /* color: <?php echo $secondary_color; ?>; */ /* #FFC107 - Gold for links */
    color: #FFC107;
}
#how-to-play.text-light a:not(.btn):hover {
    /* color: <?php echo $primary_light_shade; ?>; */ /* #C7A4FF */
    color: #C7A4FF;
}

/* Roadmap Section on Dark Background */
#roadmap.text-light .roadmap-timeline::before {
    /* background: <?php echo $primary_light_shade; ?>; */ /* #C7A4FF for timeline */
    background: #C7A4FF;
}

#roadmap.text-light .timeline-panel {
    /* background-color: <?php echo $card_bg_on_dark; ?>; */ /* #3b006a */
    background-color: #3b006a;
    /* border: 1px solid <?php echo $subtle_dark_border; ?>; */ /* #4a0080 */
    border: 1px solid #4a0080;
}

#roadmap.text-light .timeline-panel::before { /* Arrow border */
    /* border-right-color: <?php echo $subtle_dark_border; ?>; */ /* #4a0080 */
    border-right-color: #4a0080;
}

#roadmap.text-light .timeline-item.timeline-item-inverted .timeline-panel::before { /* Arrow border for inverted items */
    /* border-left-color: <?php echo $subtle_dark_border; ?>; */ /* #4a0080 */
    border-left-color: #4a0080;
    border-right-width: 0;
}

#roadmap.text-light .timeline-panel::after { /* Arrow fill */
    /* border-right-color: <?php echo $card_bg_on_dark; ?>; */ /* #3b006a */
    border-right-color: #3b006a;
}

#roadmap.text-light .timeline-item.timeline-item-inverted .timeline-panel::after { /* Arrow fill for inverted items */
    /* border-left-color: <?php echo $card_bg_on_dark; ?>; */ /* #3b006a */
    border-left-color: #3b006a;
    border-right-width: 0;
}

#roadmap.text-light .timeline-title {
    /* color: <?php echo $light_text_on_dark; ?>; */ /* #F8F9FA */
    color: #F8F9FA;
}

#roadmap.text-light .timeline-body,
#roadmap.text-light .timeline-body ul,
#roadmap.text-light .timeline-body li {
    /* color: <?php echo $primary_light_shade; ?>; */ /* #C7A4FF */
    color: #C7A4FF;
}

#roadmap.text-light .timeline-body a {
    /* color: <?php echo $secondary_color; ?>; */ /* #FFC107 - Gold for links */
    color: #FFC107;
}
#roadmap.text-light .timeline-body a:hover {
    /* color: #fff; */ /* Brighter gold or white on hover */
    color: #fff;
}

/* Community Section on Dark Background */
#community.text-light .lead {
    /* color: <?php echo $primary_light_shade; ?> !important; */ /* #C7A4FF */
    color: #C7A4FF !important; /* Using !important to override Bootstrap .lead if it has specific color */
}

/* General link styling in dark sections if not overridden by more specific rules */
section.text-light a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item) {
    /* color: <?php echo $primary_light_shade; ?>; */ /* #C7A4FF */
    color: #C7A4FF;
}
section.text-light a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):hover {
    /* color: #fff; */ /* White for hover on dark */
    color: #fff;
}

/* Adjusting the general section link style to not conflict if a section is not dark */
section:not(.text-light) a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item) {
    color: #9945FF; /* Original primary purple for links in light sections */
}

section:not(.text-light) a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):hover {
    color: #7A2AFF; /* Original darker primary purple for hover in light sections */
}

/* Remove the old general link styling that was too broad */
/* 
section a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item) {
    color: #9945FF;
    text-decoration: none;
    font-weight: 500;
}

section a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):hover {
    color: #7A2AFF; 
    text-decoration: underline;
}
*/

/* Ensure existing :root or variable definitions (if any) are not conflicting */
/* Hero particle color was rgba(199, 164, 255, 0.3) which is $primary_light_shade based, still okay */

/* ... rest of css/style.css ... */ 

/* Section Specific Styling */
#how-it-works .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

#how-it-works .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(255, 193, 7, 0.1); /* Glow effect with accent color */
}

#faq .accordion-item {
    background-color: #343a40;
    border-color: rgba(255, 255, 255, 0.125);
}

#faq .accordion-button {
    color: #ffffff;
    background-color: #343a40;
}

#faq .accordion-button:not(.collapsed) {
    color: #ffc107;
    background-color: #343a40;
}

#faq .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

#faq .accordion-body {
    background-color: #212529;
}

#faq .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%); /* Makes the arrow white */
} 