:root {
    --bs-primary: #ecc53e;
    --bs-primary-rgb: 236, 197, 62;
    --primary-dark: #d4ae2c;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --bg-color: #fff;
    --bg-alt: #f8f9fa;
    --section-bg-1: #ffffff;
    --section-bg-2: #f8f9fa;
    --card-bg: #fff;
    --card-text: #333;
    --header-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--bs-primary) 0%, #f7d267 100%);
    --gradient-light: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    --gradient-alt: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --navbar-text: #333;
    --footer-text: #333;
    --section-title: #333;
    --section-text: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
}

/* Theme Toggle */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #f8f9fa;
    --bs-card-bg: #2d2d2d;
    --text-dark: #f8f9fa;
    --text-light: #333;
    --bg-color: #1a1a1a;
    --bg-alt: #2d2d2d;
    --section-bg-1: #1a1a1a;
    --section-bg-2: #2d2d2d;
    --header-bg: rgba(26, 26, 26, 0.95);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --gradient-light: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    --gradient-alt: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    --navbar-text: #f8f9fa;
    --footer-text: #f8f9fa;
    --section-title: #f8f9fa;
    --section-text: #f8f9fa;
    color-scheme: dark;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Theme Colors */
.bg-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #f7d267 100%);
}

.text-primary {
    color: var(--bs-primary) !important;
}

/* Hover Effects */
.hover-translate {
    transition: transform 0.3s ease;
}

.hover-translate:hover {
    transform: translateY(-5px);
}

/* Store Buttons */
.store-button {
    transition: transform 0.3s ease;
}

.store-button:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #f7d267 70%, rgba(255,255,255,0.8) 100%);
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.3), transparent 60%);
    z-index: 1;
}

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

.hero-content {
    padding-top: 2rem;
    padding-right: 2rem;
}

.hero-content h1,
.hero-content .display-4 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: -5px -2px 0px rgba(0, 0, 1, 0.8);
}

.hero-content p,
.hero-content .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.store-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.store-buttons img {
    height: 48px;
}

.social-proof {
    display: flex;
    gap: 32px;
}

.stat {
    text-align: center;
    background: var(--card-bg) !important;
    border-radius: 1rem;
}

.stat .h3 {
    color: var(--card-text) !important;
    font-weight: 700;
}

.stat .small {
    color: var(--card-text) !important;
    opacity: 0.7;
}

/* Dark mode styles for hero */
[data-bs-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 70%, #333333 100%);
}

[data-bs-theme="dark"] .hero::before {
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%);
}

[data-bs-theme="dark"] .hero-content h1,
[data-bs-theme="dark"] .hero-content .display-4 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .hero-content p,
[data-bs-theme="dark"] .hero-content .lead {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Stats styling in hero */
#hero {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #f7d267 70%, rgba(255, 255, 255, 0.8) 100%);
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}
/* Dark mode styles for lotteries section */
[data-bs-theme="dark"] #hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 70%, #333333 100%);
}
.hero .stat {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero .stat .h3 {
    color: #fff !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero .stat .small {
    color: #fff !important;
    opacity: 0.9;
    font-weight: 500;
}

[data-bs-theme="dark"] .hero .stat {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Rotator */
.hero-rotator {
    position: relative;
    padding: 2rem 0;
    overflow: visible; /* Allow overflow visibility */
}

.hero .rotator-container {
    position: relative;
    height: 700px;
    perspective: 1000px;
    overflow: visible; /* Show the side slides */
}

.hero .rotator-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%) scale(0.8);
}

.hero .rotator-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    z-index: 3;
}

.hero .rotator-item.prev {
    transform: translateX(-25%) scale(0.8);
    opacity: 0.7;
    visibility: visible;
    z-index: 2;
}

.hero .rotator-item.next {
    transform: translateX(25%) scale(0.8);
    opacity: 0.7;
    visibility: visible;
    z-index: 2;
}

.hero .screenshot-slide {
    height: 600px;
    width: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.hero .rotator-item.active .screenshot-slide {
    transform: scale(1.2);
}

.hero .rotator-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.hero .control-prev,
.hero .control-next {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero .control-prev:hover,
.hero .control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.hero .rotator-indicators {
    display: flex;
    gap: 0.5rem;
}

.hero .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero .indicator.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 100px 0 60px;
    }
    
    .hero .btn-group {
        justify-content: center;
    }
    
    .hero .rotator-container {
        height: 500px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero .rotator-item {
        align-items: center;
        width: 100%;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .hero .rotator-item.prev,
    .hero .rotator-item.next {
        transform: translateX(0) scale(0.7);
        opacity: 0;
        visibility: hidden;
    }
    
    .hero .rotator-item.active {
        transform: translateX(0) scale(1);
        left: 0;
        right: 0;
        margin: 0 auto;
        text-align: center;
    }
    
    .hero .screenshot-slide {
        height: 400px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero .rotator-item.active .screenshot-slide {
        transform: scale(1.15);
        margin: 0 auto;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .d-flex {
        justify-content: center;
    }
}

.app-previews {
    padding: 2rem 0;
}

.preview-container {
    position: relative;
    height: 700px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-screenshot {
    height: 600px;
    width: auto;
    position: absolute;
    top: 50%;
    transition: all 0.6s ease-in-out;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-radius: 24px;
    transform-origin: center center;
}

.app-screenshot-1 {
    left: 30%;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) rotate(0deg) translate(-50%, -50%);
    z-index: 1;
}

.app-screenshot-2 {
    left: 70%;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) rotate(0deg) translate(-50%, -50%);
    z-index: 1;
    
}

.app-screenshot-1:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) rotate(0deg) translate(-50%, -50%) scale(1.05);
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.app-screenshot-2:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) rotate(0deg) translate(-50%, -50%) scale(1.05);
    z-index: 1;
    opacity: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--bs-primary);
}

.cta-button {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #f7d267 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: #fff !important;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.theme-toggle button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-dark);
    z-index: 1000;
}

/* Container styles */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Features Section - Updated without cards */
#features {
    background: var(--gradient-alt);
    padding: 4rem 0;
}

#features h2 {
    color: var(--section-title) !important;
    text-align: center;
    margin-bottom: 3rem;
}

.feature-item .hover-translate {
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item .hover-translate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
}

.feature-icon .light-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-icon .dark-icon {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

[data-bs-theme="dark"] .feature-icon .light-icon {
    display: none;
}

[data-bs-theme="dark"] .feature-icon .dark-icon {
    display: block;
}

.feature-item h3 {
    color: var(--bs-primary) !important;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Explicit text colors for feature descriptions */
.feature-item p {
    color: #333 !important;
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
}

[data-bs-theme="dark"] .feature-item p {
    color: #f8f9fa !important;
    opacity: 0.9;
}

/* Lotteries Section - Updated without cards */
#lotteries {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #f7d267 70%, rgba(255,255,255,0.8) 100%);
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

#lotteries::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at bottom left, rgba(255,255,255,0.3), transparent 60%);
    z-index: 1;
}

#lotteries .container {
    position: relative;
    z-index: 2;
}

/* Text colors for light mode lotteries section */
#lotteries h2 {
    color: #fff !important;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dark mode styles for lotteries section */
[data-bs-theme="dark"] #lotteries {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 70%, #333333 100%);
}

[data-bs-theme="dark"] #lotteries::before {
    background: radial-gradient(circle at bottom left, rgba(255,255,255,0.05), transparent 60%);
}

[data-bs-theme="dark"] #lotteries h2 {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.lottery-item .hover-translate {
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lottery-item .hover-translate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.lottery-logo {
    height: 64px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Explicit colors for lottery names */
.lottery-item h3 {
    color: #333 !important;
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 500;
}

[data-bs-theme="dark"] .lottery-item h3 {
    color: #f8f9fa !important;
}

/* Explicit dark mode overrides for lottery items */
[data-bs-theme="dark"] .lottery-item .hover-translate,
[data-bs-theme="dark"] .lottery-item-inner {
    background-color: #2d2d2d !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .lottery-item .hover-translate:hover,
[data-bs-theme="dark"] .lottery-item-inner:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7) !important;
}

/* Force dark background on all lottery elements in dark mode */
html[data-bs-theme="dark"] .lottery-item-inner {
    background-color: #2d2d2d !important;
}

/* Override Bootstrap background classes that might be inherited */
[data-bs-theme="dark"] .lottery-item [class*="bg-"] {
    background-color: transparent !important;
}

/* Testimonials Section */
#testimonials {
    background: var(--gradient-light);
    padding: 4rem 0;
}

#testimonials h2 {
    color: var(--section-title) !important;
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-item {
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Explicit colors for testimonial text */
.testimonial-text {
    color: #333 !important;
    opacity: 0.9;
    font-style: italic;
}

[data-bs-theme="dark"] .testimonial-item {
    background-color: #2d2d2d;
}

[data-bs-theme="dark"] .testimonial-text {
    color: #f8f9fa !important;
    opacity: 0.9;
}

#testimonials .text-warning {
    color: #ffc107 !important; /* Ensure stars are always gold */
}

/* Force dark background in dark mode */
html[data-bs-theme="dark"] .testimonial-item {
    background-color: #2d2d2d;
}

/* Override any inherited background colors */
[data-bs-theme="dark"] #testimonials [class*="bg-"] {
    background-color: transparent !important;
}

/* Download Section */
#download {
    background: var(--gradient-primary);
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

#download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
    z-index: -1;
}

/* Dark mode specific styling for the download section */
[data-bs-theme="dark"] #download {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 70%, #333333 100%);
}

[data-bs-theme="dark"] #download::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 100%);
}

/* Improved text visibility for download section */
#download h2,
#download p,
#download .lead {
    color: #000; /* Black text for maximum contrast in light mode */
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

/* Add dark mode specific text color for the download section */
[data-bs-theme="dark"] #download h2,
[data-bs-theme="dark"] #download p,
[data-bs-theme="dark"] #download .lead {
    color: #ffffff !important; /* Pure white for dark mode */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    padding: 4rem 0 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-heading {
    color: #ffffff;
    font-weight: 600;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--bs-primary);
    opacity: 1;
}

footer strong {
    color: #ffffff;
    font-weight: 600;
}

footer .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Legal Content Styles */
.legal-content {
    max-width: 800px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--bs-primary);
}

.legal-content .last-updated {
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 2rem;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--bs-primary);
}

@media (max-width: 768px) {
    .legal-content {
        margin-top: 6rem;
        padding: 0 1rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }
}


/* Card and Stat Backgrounds */
.card,
.stat {
    background-color: var(--card-bg) !important;
    color: var(--text-dark);
}

/* Navbar Fix for Dark Mode */
.navbar {
    background-color: var(--header-bg) !important;
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Theme Toggle Button - Ensure visibility in dark mode */
#themeToggle {
    color: var(--navbar-text);
    transition: var(--transition);
    padding: 0.4rem;
    font-size: 1.6rem;
    background-color: transparent;
    border-radius: 50%;
}

[data-bs-theme="dark"] #themeToggle {
    color: #f8f9fa;
    background-color: rgba(255, 255, 255, 0.1);
}

#themeToggle:hover {
    transform: scale(1.1);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Navbar Text Fix */
.navbar-nav .nav-link {
    color: var(--navbar-text) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* Stats and Numbers */
.stat {
    background: var(--card-bg) !important;
}

.stat .number,
.stat .label {
    color: var(--text-dark) !important;
}

.stat .label {
    opacity: 0.8;
}

footer h5 {
    color: var(--text-dark);
}

footer .text-muted {
    color: var(--text-dark) !important;
    opacity: 0.7;
}

footer a.text-muted {
    color: var(--text-dark) !important;
    opacity: 0.7;
    transition: var(--transition);
}

footer a.text-muted:hover {
    color: var(--bs-primary) !important;
    opacity: 1;
}

/* Dark Mode Specific Styles */
[data-bs-theme="dark"] {
    color-scheme: dark;
}

[data-bs-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-dark);
}

[data-bs-theme="dark"] .navbar {
    background-color: var(--header-bg) !important;
}

[data-bs-theme="dark"] .nav-link {
    color: var(--text-dark) !important;
}

[data-bs-theme="dark"] .card {
    background-color: var(--card-bg) !important;
}

[data-bs-theme="dark"] .card .text-muted,
[data-bs-theme="dark"] .card p {
    color: var(--text-dark) !important;
}

/* Additional specific override for lotteries in dark mode */
[data-bs-theme="dark"] #lotteries .hover-translate {
    background-color: var(--card-bg);
}

/* Additional specific override for testimonials in dark mode */
[data-bs-theme="dark"] .testimonial-item {
    background-color: var(--card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .testimonial-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Section Headers */
section h2 {
    color: var(--text-dark) !important;
}

/* Feature Icons */
.feature-icon .light-icon {
    display: block;
}

.feature-icon .dark-icon {
    display: none;
}

[data-bs-theme="dark"] .feature-icon .light-icon {
    display: none;
}

[data-bs-theme="dark"] .feature-icon .dark-icon {
    display: block;
}

/* Section Background Colors */
section:nth-child(odd) {
    background: var(--gradient-light);
}

section:nth-child(even) {
    background: var(--gradient-alt);
}

/* Section Content Visibility */
section {
    position: relative;
    z-index: 1;
}

section h2,
section p {
    position: relative;
    z-index: 2;
}

section .card {
    position: relative;
    z-index: 2;
}

/* Features Section */
#features {
    background: var(--gradient-alt);
}

/* Testimonials Section */
#testimonials {
    background: var(--gradient-light);
}

/* Card and Stat Backgrounds */
.card,
.stat {
    background-color: var(--card-bg) !important;
    color: var(--text-dark);
}

/* Navbar Fix for Dark Mode */
.navbar {
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Theme Toggle Button */
#themeToggle {
    color: var(--navbar-text);
    transition: var(--transition);
}

/* Navbar Text Fix */
.navbar-nav .nav-link {
    color: var(--navbar-text) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
} 