/* 666 Lottery Games - Main Stylesheet */
/* Theme Colors: Emerald Green #047857, Gold #FACC15, Deep Black #000000, Silver Gray #D4D4D4, White #FFFFFF */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald-green: #047857;
    --gold: #FACC15;
    --deep-black: #000000;
    --silver-gray: #D4D4D4;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #6B7280;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--deep-black);
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f3 50%, #f8fffe 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: backgroundShift 15s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, var(--emerald-green) 0%, #065F46 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gold);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: var(--gold);
    background-color: rgba(255,255,255,0.1);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: var(--light-gray);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--silver-gray);
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list a {
    color: var(--emerald-green);
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--dark-gray);
    margin: 0 0.5rem;
}

/* Main Content */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--emerald-green) 0%, #065F46 50%, var(--emerald-green) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(4, 120, 87, 0.3);
    animation: heroGlow 3s ease-in-out infinite alternate;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { box-shadow: 0 20px 40px rgba(4, 120, 87, 0.3); }
    100% { box-shadow: 0 25px 50px rgba(4, 120, 87, 0.5), 0 0 30px rgba(250, 204, 21, 0.2); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: titlePulse 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    line-height: 1.8;
}

@keyframes titlePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

.floating-icon:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0.5rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #EAB308 100%);
    color: var(--deep-black);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #EAB308 0%, var(--gold) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(250, 204, 21, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--emerald-green);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

/* Content Sections */
.content-section {
    margin-bottom: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--white) 0%, #f8fffe 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(4, 120, 87, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald-green), var(--gold), var(--emerald-green));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.content-section h2 {
    color: var(--emerald-green);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald-green), var(--gold));
    border-radius: 2px;
}

.content-section h3 {
    color: var(--emerald-green);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

.content-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.feature-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8fffe 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(4, 120, 87, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(4, 120, 87, 0.05), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(4, 120, 87, 0.15);
    border-color: var(--emerald-green);
}

.feature-icon {
    font-size: 4rem;
    color: var(--emerald-green);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* FAQ Section */
.faq-item {
    margin-bottom: 2rem;
    border: 2px solid rgba(4, 120, 87, 0.1);
    border-radius: 15px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(4, 120, 87, 0.1);
    border-color: var(--emerald-green);
}

.faq-question {
    background: linear-gradient(135deg, var(--light-gray) 0%, #f0f9f7 100%);
    padding: 2rem;
    cursor: pointer;
    font-weight: bold;
    color: var(--emerald-green);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--emerald-green);
    transition: transform 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e8f5f3 0%, #d4f1e8 100%);
}

.faq-question[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 2rem;
    background: linear-gradient(135deg, var(--white) 0%, #f8fffe 100%);
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-answer.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
    background-color: var(--deep-black);
    color: var(--white);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--silver-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    color: var(--silver-gray);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Hidden by default */
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: var(--gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: block; /* Show on mobile */
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--emerald-green);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-menu.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--silver-gray);
    border-radius: 50%;
    border-top-color: var(--emerald-green);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--emerald-green) 0%, #065F46 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(4, 120, 87, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #065F46 0%, var(--emerald-green) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(4, 120, 87, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.back-to-top::before {
    content: '↑';
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
