/* --- Basic Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333; /* Dark grey for text */
    background-color: #f8fbfd; /* Light background for the body */
    transition: background-color 0.4s ease, color 0.4s ease;
    scroll-behavior: smooth; /* Smooth scroll for anchor links */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

a {
    text-decoration: none;
    color: #007bff; /* Primary link color */
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

/* --- Global Section Titles & Descriptions --- */
.section-title {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.section-description {
    font-size: 1.1em;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex; /* For icon alignment */
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between text and icon */
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.15);
}

/* For Header Buttons */
.btn-outline {
    background-color: transparent;
    border-color: #007bff;
    color: #007bff;
    padding: 8px 18px;
    border-radius: 5px;
}
.btn-outline:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-solid {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
    padding: 8px 18px;
    border-radius: 5px;
}
.btn-solid:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-login {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
}

.btn-login:hover {
    background: linear-gradient(135deg, #4e00a3 0%, #1a5fd8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* --- Dark Mode Styles --- */
body.dark-mode {
    background-color: #1a1a2e; /* Darker background */
    color: #e0e0e0; /* Lighter text color */
}

body.dark-mode .main-header {
    background-color: #2c2c4d; /* Dark header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.dark-mode .main-header .logo,
body.dark-mode .main-nav a,
body.dark-mode .header-controls button {
    color: #e0e0e0;
}

body.dark-mode .main-nav a:hover,
body.dark-mode .header-controls button:hover {
    color: #fff;
}

body.dark-mode .btn-outline {
    border-color: #007bff;
    color: #007bff;
}
body.dark-mode .btn-outline:hover {
    background-color: #007bff;
    color: #fff;
}

body.dark-mode .btn-solid {
    background-color: #28a745;
    color: #fff;
}
body.dark-mode .btn-solid:hover {
    background-color: #218838;
}

body.dark-mode .dropdown-content {
    background-color: #2c2c4d;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .dropdown-content a {
    color: #c0c0c0;
}

body.dark-mode .dropdown-content a:hover {
    background-color: #3a3a5e;
}

body.dark-mode .section-title,
body.dark-mode .hero-title {
    color: #e0e0e0;
}

body.dark-mode .section-description,
body.dark-mode .hero-subtitle {
    color: #c0c0c0;
}

body.dark-mode .features-section,
body.dark-mode .payment-methods-section {
    background-color: #1a1a2e;
}

body.dark-mode .feature-item,
body.dark-mode .payment-item,
body.dark-mode .choose-us-item {
    background-color: #2c2c4d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .feature-item h3,
body.dark-mode .payment-item p,
body.dark-mode .choose-us-item h3 {
    color: #e0e0e0;
}

body.dark-mode .feature-item p,
body.dark-mode .choose-us-item p {
    color: #c0c0c0;
}

body.dark-mode .main-footer {
    background-color: #2c2c4d;
    color: #c0c0c0;
    border-top-color: #3a3a5e;
}

body.dark-mode .main-footer a {
    color: #c0c0c0;
}

body.dark-mode .main-footer a:hover {
    color: #fff;
}

/* --- Header --- */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #007bff; /* Logo color */
    letter-spacing: -0.5px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: #555;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #007bff;
}

/* Header Controls (Dark mode toggle, menu toggle) */
.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.dark-mode-toggle, .menu-toggle {
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    color: #555;
    padding: 5px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.dark-mode-toggle:hover, .menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    top: calc(100% + 15px); /* Position below the button */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    top: calc(100% + 5px);
}


/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%); /* Vibrant blue gradient */
    color: #fff;
    padding: 120px 0; /* More vertical space */
    text-align: center;
    position: relative;
    overflow: hidden; /* For potential background patterns/shapes */
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin-bottom: 80px;
}

/* Optional: Add a subtle pattern to the hero background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23ffffff" fill-opacity="0.1"%3E%3Ccircle cx="25" cy="25" r="3"%3E%3C/circle%3E%3Ccircle cx="75" cy="75" r="3"%3E%3C/circle%3E%3C/g%3E%3C/svg%3E');
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1; /* Ensure content is above the pattern */
}

.hero-title {
    font-size: 3.8em;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons .btn {
    margin: 0 15px;
    font-size: 1.1em;
}

/* --- Features Section --- */
.features-section {
    padding: 80px 0;
    background-color: #f8fbfd;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.feature-item {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #e0f2ff; /* Light blue */
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    margin: 0 auto 25px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .icon-circle {
    background-color: #3a3a5e;
    color: #00c6ff;
}

.feature-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    line-height: 1.7;
}

/* --- Why Choose Us Section --- */
.why-choose-us-section {
    padding: 80px 0;
    background-color: #eef7ff; /* Light blue tint */
}

body.dark-mode .why-choose-us-section {
    background-color: #242440; /* Darker tint */
}

.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.choose-us-item {
    background-color: #fff;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #007bff; /* Accent border */
}

body.dark-mode .choose-us-item {
    border-bottom-color: #00c6ff;
}

.choose-us-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.choose-us-item i {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 20px;
}

body.dark-mode .choose-us-item i {
    color: #00c6ff;
}

.choose-us-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.choose-us-item p {
    color: #666;
}

/* --- Payment Methods Section --- */
.payment-methods-section {
    padding: 80px 0;
    background-color: #f8fbfd;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
}

.payment-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.payment-item img {
    max-width: 90px;
    height: auto;
    margin-bottom: 15px;
}

.payment-item p {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

/* --- Call to Action Section --- */
.cta-section {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%); /* Green gradient */
    color: #fff;
    padding: 100px 0;
    text-align: center;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.cta-section .section-title,
.cta-section .section-description {
    color: #fff;
}

.cta-section .section-title {
    font-size: 3.2em;
}

/* --- Footer --- */
.main-footer {
    background-color: #2c2c4d; /* Dark background */
    color: #e0e0e0;
    padding: 60px 0;
    font-size: 0.9em;
    border-top: 1px solid #3a3a5e;
}

.main-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.3em;
    margin-bottom: 25px;
    color: #00c6ff; /* Accent color for headings */
    font-weight: 600;
}

.footer-column p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #c0c0c0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #00c6ff;
}

.social-icons a {
    font-size: 1.6em;
    margin-right: 18px;
    color: #e0e0e0;
}

.social-icons a:hover {
    color: #00c6ff;
}

/* --- Statistics Section --- */
.stats-section {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Payment Methods Bar */
.payment-bar {
    background-color: #2c2c4d;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #3a3a5e;
}

.payment-bar-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.payment-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    color: white;
}

.faucetpay {
    background: #000;
}
.faucetpay span:first-child {
    color: white;
}
.faucetpay span:last-child {
    color: #1e90ff;
}

.cwallet {
    background: #000;
    color: #32cd32;
}

.payeer {
    background: #00a2e8;
    color: white;
}

.perfectmoney {
    background: #d00;
    color: white;
}

/* Minimum withdrawal notice */
.min-withdrawal {
    background: #ffc107;
    color: #856404;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    margin: 20px 0;
    border-radius: 8px;
}

body.dark-mode .min-withdrawal {
    background: #ffc107;
    color: #000;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3em;
    }
    .section-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show menu toggle on mobile */
    }
    
    .main-nav ul {
        display: none; /* Hide nav by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 15px;
    }
    
    body.dark-mode .main-nav ul {
        background-color: #2c2c4d;
    }
    
    .main-nav.active ul {
        display: flex; /* Show when active */
    }
    
    .hero-title {
        font-size: 2.4em;
    }
    .hero-subtitle {
        font-size: 1.1em;
    }
    .section-title {
        font-size: 2em;
    }
    .hero-buttons .btn {
        display: block;
        margin: 15px auto;
        width: 80%;
        max-width: 300px;
    }
    .feature-grid, .choose-us-grid, .payment-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }
    .hero-section {
        padding: 80px 0;
    }
    .section-title {
        font-size: 1.8em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .payment-method {
        width: 100%;
        max-width: 200px;
    }
}