:root {
    --primary-color: #007bff;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --independence-green: #28a745; /* Nigerian green for Independence theme */
    --independence-white: #ffffff; /* White for contrast */
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #3d2f9b;
}

.play-now {
    background-color: #ffe600;
    color: #3d2f9b;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    animation: pulse 2s infinite;
}

.secondary {
    background-color: #fff;
    color: #5326A7;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    animation: 4s ease 0s infinite normal none running pulse;
}

.secondary:hover {
    background-color: #5a1593;
}

.play-now:hover {
    background-color: #ffd700;
    transform: translateY(-3px);
}

/* New: Independence Special Button */
.independence-btn {
    background-color: var(--independence-green);
    color: var(--independence-white);
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    animation: pulse 2s infinite;
    border: 2px solid var(--independence-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.independence-btn:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Terms and Conditions Section */
.terms-section {
    padding: 4rem 0;
}

.terms-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #3d2f9b;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    font-weight: 500;
    color: #3d2f9b;
    background-color: #fff;
}

.accordion-button:not(.collapsed) {
    color: #3d2f9b;
    background-color: var(--secondary-color);
}

.accordion-body {
    line-height: 1.6;
    color: #3d2f9b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    color: #f9fafb;
    align-items: center;
    padding: 20px 50px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: #5326A7;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.3s, text-shadow 0.3s;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #5326A7;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: #ffe600;
    transform: scale(1.1);
}

/* Navbar General Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    color: #472BA0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #00aaff;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #472BA0;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00aaff;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #472BA0;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}

/* Ensure navbar stays above content */
.bg-primary {
    margin-top: 0;
}

.navbar-brand img {
    height: 50px;
}

.navbar-toggler {
    border: none;
}

.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(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 360px) {
    .navbar-brand img {
        height: 35px;
    }
}

/* Hero Section */
.hero-wrapper {
    background: linear-gradient(135deg, #6f1ab6 0%, #3d2f9b 100%);
    min-height: calc(100vh - 56px);
    position: relative;
    overflow: hidden;
}

.hero-section {
    display: flex;
    position: relative;
}

.hero-text {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.hero-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 30px;
}

.hero-text .buttons {
    display: flex;
    gap: 20px;
}

.animation-area {
    width: 40%;
    position: relative;
    overflow: visible;
    min-height: calc(100vh - 56px);
}

.currency-note {
    position: absolute;
    width: 50px;
    height: 25px;
    background: url('/images/1000.png') no-repeat center;
    background-size: cover;
    animation: fall 5s linear infinite;
    pointer-events: none;
    left: calc(50% - 25px + (35% * var(--random-x)));
    top: -150px;
}

.man {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 450px;
    background: url('/images/Man.png') no-repeat center;
    background-size: contain;
    animation: bounce 1s ease-in-out infinite;
    z-index: 2;
}

@keyframes fall {
    0% {
        transform: translateY(-150vh) rotate(0deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 768px) {
    .hero-wrapper {
        min-height: 100vh;
    }
    .hero-section {
        flex-direction: column;
        height: 100%;
    }
    .hero-text {
        width: 100%;
        padding: 15px;
        order: 2;
        flex-grow: 1;
        text-align: center;
    }
    .hero-text h2 {
        font-size: 1.5rem;
    }
    .hero-text p {
        font-size: 0.8rem;
    }
    .hero-text .buttons {
        justify-content: center;
        gap: 10px;
    }
    .hero-text button, .hero-text a.btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .animation-area {
        margin-top: -400px;
        width: 100%;
        height: 300px;
        order: 1;
        overflow: visible;
    }
    .currency-note {
        width: 40px;
        height: 20px;
        left: calc(50% - 20px + (45% * var(--random-x)));
        top: -150px;
    }
    .man {
        bottom: 30px;
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 360px) {
    .hero-text h2 {
        font-size: 1.3rem;
    }
    .hero-text p {
        font-size: 0.7rem;
    }
    .hero-text button, .hero-text a.btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .animation-area {
        margin-top: -350px;
        height: 280px;
    }
    .currency-note {
        width: 35px;
        height: 17px;
        left: calc(50% - 17px + (45% * var(--random-x)));
    }
    .man {
        width: 220px;
        height: 220px;
        bottom: 20px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.modal-content .close:hover {
    color: #1E90FF;
}

/* New: Independence Special Modal Styles */
#independence-ticket-modal .modal-content {
    background: linear-gradient(135deg, var(--independence-green) 0%, var(--independence-white) 100%);
    border: 3px solid var(--independence-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* New: Decorative header for Independence theme */
#independence-ticket-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: repeating-linear-gradient(
        45deg,
        var(--independence-green),
        var(--independence-green) 12px,
        var(--independence-white) 12px,
        var(--independence-white) 24px
    );
}

/* New: Modal title */
#independence-ticket-modal h2 {
    font-size: 28px;
    color: #3d2f9b;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* New: Modal text */
#independence-ticket-modal p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

#independence-ticket-modal p strong {
    color: var(--independence-green);
    font-weight: 700;
}

/* New: Form styles for Independence modal */
#independence-ticket-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#independence-ticket-form label {
    font-size: 16px;
    font-weight: 600;
    color: #3d2f9b;
    text-align: left;
}

#independence-ticket-form input {
    padding: 12px;
    border: 2px solid var(--independence-green);
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#independence-ticket-form input:focus {
    border-color: #218838;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
    outline: none;
}

#independence-ticket-form small {
    color: #555;
    font-size: 12px;
    text-align: left;
    margin-top: 5px;
    display: block;
}

#independence-ticket-form p {
    font-size: 18px;
    font-weight: 600;
    color: var(--independence-green);
    margin: 0;
}

#independence-ticket-form .pay-now {
    width: 100%;
    background-color: var(--independence-green);
    color: var(--independence-white);
    font-size: 18px;
    font-weight: 600;
    padding: 14px;
    border-radius: 8px;
    border: none;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#independence-ticket-form .pay-now:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* New: Responsive Independence Modal */
@media (max-width: 768px) {
    #independence-ticket-modal .modal-content {
        padding: 25px;
        max-width: 95%;
    }
    #independence-ticket-modal h2 {
        font-size: 24px;
    }
    #independence-ticket-form {
        gap: 15px;
        padding: 15px;
    }
    #independence-ticket-form input {
        padding: 10px;
        font-size: 14px;
    }
    #independence-ticket-form .pay-now {
        font-size: 16px;
        padding: 12px;
    }
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn.play-now {
    background-color: #1E90FF;
    color: #fff;
}

.btn.play-now:hover {
    background-color: #1677cc;
}

.btn.secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn.secondary:hover {
    background-color: #e0e0e0;
}

/* Success Modal Styles */
#success-modal .modal-content {
    padding-top: 60px;
}

#success-modal .modal-content p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

#success-modal .modal-content p strong {
    color: #1E90FF;
}

#success-modal .modal-content a {
    color: #1E90FF;
    text-decoration: underline;
}

#success-modal .modal-content a:hover {
    color: #1677cc;
}

.modal-icon {
    width: 80px;
    margin: 0 auto 20px;
    display: block;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
    }
    #success-modal .modal-content {
        padding-top: 50px;
    }
    .modal-icon {
        width: 60px;
        top: -30px;
    }
}

/* Form Styles (for ticket modal) */
#ticket-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#ticket-form label {
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

#ticket-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

#ticket-form small {
    color: #666;
    font-size: 12px;
    text-align: left;
    margin-top: 5px;
    display: block;
}

#ticket-form p {
    font-size: 18px;
    font-weight: 600;
    color: #6f1ab6;
}

.pay-now {
    width: 100%;
    background-color: #6f1ab6;
    color: #fff;
}

.pay-now:hover {
    background-color: #5a1593;
}

/* Sections */
.section {
    padding: 80px 50px;
    text-align: center;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #3d2f9b;
}

.section p, .section ul {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 16px;
}

.section ul {
    list-style: none;
    text-align: left;
}

.section ul li {
    margin-bottom: 10px;
}

/* Draws */
.draws-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.draw-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: left;
}

.draw-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #3d2f9b;
}

.draw-card p {
    font-size: 14px;
    color: #666;
}

/* Terms */
.terms-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.terms-section {
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.terms-section summary {
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #6f1ab6;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.terms-section summary:hover {
    background-color: #f1f5f9;
}

.terms-section p, .terms-section ul {
    padding: 15px;
    font-size: 14px;
    color: #333;
}

.terms-section ul {
    list-style: disc;
    margin-left: 20px;
}

.terms-section ul li {
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.footer-links a:hover {
    color: #6f1ab6;
}

/* Responsive Design */
@media (max-width: 991px) {
    .section {
        padding: 40px 20px;
    }
    .section h2 {
        font-size: 28px;
    }
    .section p, .section ul {
        font-size: 14px;
    }
}

/* Debug: Confirm CSS is loaded */
body::after {
    content: 'CSS Loaded from styles.css';
    display: none;
}