/* --- Global Styles & Variables --- */
:root {
    --dark-bg: #0d0d1a;
    --purple: #A020F0;
    --blue: #007bff;
    --gold: #FFD700;
    --orange: #FFA500;
    --text-light: #f0f0f0;
    --text-dark: #333;
    --border-glow-purple: rgba(160, 32, 240, 0.7);
    --vegas-dark: #111827;
    --vegas-accent: rgba(29, 29, 50, 0.6);
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Use JS for smooth scrolling */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

section {
    padding: 60px 5%;
    min-height: 50vh;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold);
}

p {
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* --- Background Particle Canvas --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}


/* ================================== */
/* --- NAVIGATION BAR (FINAL) --- */
/* ================================== */

.sticky-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(13, 13, 26, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000; /* Layer 3: Main nav bar */
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-glow-purple);
    box-shadow: 0 0 15px var(--border-glow-purple);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 900;
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 35px;
    margin-right: 10px;
}

.logo-text {
    text-shadow: 0 0 5px var(--purple);
}

/* --- Mobile Navigation Styles --- */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    z-index: 3001; /* Layer 5: On top of everything */
    background: transparent;
    border: 0;
    padding: 0.5em;
    cursor: pointer;
    position: relative;
}

.mobile-nav-toggle .icon-close {
    display: none;
}

/* Desktop Navigation (default for >767px) */
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 2rem;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    transition: color 0.3s, text-shadow 0.3s;
    padding: 0.5rem;
}
.main-nav a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold);
}


/* --- MOBILE STYLES (< 768px) --- */
@media (max-width: 767px) {
    .mobile-nav-toggle {
        display: block;
    }

    /* The slide-out menu panel */
    .main-nav {
        position: fixed;
        z-index: 2000; /* Layer 4: Above nav bar & button */
        inset: 0 0 0 25%; /* Slides in from right */
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: min(20vh, 8rem) 2em;

        background: hsl(252 21% 9% / 0.95);
        backdrop-filter: blur(1.5rem);

        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    .main-nav[data-visible="true"] {
        transform: translateX(0%);
    }

    /* Change hamburger to close icon when menu is open */
    .mobile-nav-toggle[aria-expanded="true"] .icon-close {
        display: block;
    }
    .mobile-nav-toggle[aria-expanded="true"] .icon-hamburger {
        display: none;
    }

    /* Style links inside mobile menu */
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .main-nav a {
        font-size: 1.25rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        padding: 1rem;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .main-nav a:hover {
        background-color: rgba(160, 32, 240, 0.2);
    }

    /* Mobile-specific adjustments */
    .sticky-nav {
        padding: 0.8rem 3%;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 35px;
        height: 30px;
    }

    section {
        padding: 40px 3%;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

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

    .subtitle {
        font-size: 0.9rem;
        margin-top: 15px;
    }

    .contact-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .contact-button {
        min-width: 280px;
        font-size: 1rem;
    }

    .about-stats {
        gap: 20px;
        justify-content: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}


/* --- Floating Messenger Button --- */
.floating-messenger-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px var(--blue);
    animation: glow 2s infinite ease-in-out;
    z-index: 1500;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Mobile adjustments for floating button */
@media (max-width: 767px) {
    .floating-messenger-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        z-index: 2500; /* Higher than mobile nav */
    }
}

/* --- Hero Section --- */
.full-screen-hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    padding: 0 1rem;
}

.headline-1 {
    display: block;
    text-shadow: 2px 2px 5px #000, 0 0 15px var(--purple), 0 0 25px var(--purple);
}

.headline-2 {
    display: block;
    text-shadow: 2px 2px 5px #000, 0 0 15px var(--gold), 0 0 25px var(--gold);
}

.subtitle {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 20px;
    text-transform: uppercase;
    color: var(--text-light);
    text-shadow: 
        0 0 5px var(--purple), 
        0 0 10px var(--purple), 
        0 0 20px var(--purple), 
        0 0 40px var(--purple);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 1; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.7; }
}

#hero::before, #hero::after {
    content: '♦';
    position: absolute;
    font-size: 4rem;
    color: var(--purple);
    opacity: 0.5;
    animation: float 15s ease-in-out infinite;
}
#hero::before { top: 10%; left: 10%; animation-delay: 0s; }
#hero::after { bottom: 10%; right: 10%; animation-delay: 5s; }


/* --- Games Section --- */
.games-grid-container {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
    padding: 0 10px;
}

.game-card {
    background-color: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    border: 2px solid var(--purple);
    box-shadow: 0 0 10px var(--border-glow-purple);
    animation: pulse-border 3s infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--border-glow-purple), 0 0 30px var(--border-glow-purple);
    animation-play-state: paused;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 10px var(--border-glow-purple); }
    50% { box-shadow: 0 0 20px var(--border-glow-purple); }
    100% { box-shadow: 0 0 10px var(--border-glow-purple); }
}

.game-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.game-card-content {
    padding: 10px;
}

.game-card h3 {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.85rem;
}
.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.btn-play {
    background-image: linear-gradient(to right, var(--purple), var(--blue));
}

.btn-download {
    background-image: linear-gradient(to right, var(--gold), var(--orange));
}


/* --- 'About Us' Section Styles --- */
#about {
    background-color: var(--vegas-dark);
    padding: 80px 5%;
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 64px;
}

.about-header h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 16px;
    text-transform: none;
    text-shadow: none;
}
.about-header h2 .text-gold {
    color: var(--gold);
}

.about-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.text-gold { color: var(--gold); }
.text-purple { color: var(--purple); }
.text-blue { color: var(--blue); }

.about-main-grid {
    display: grid;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
    grid-template-columns: 1fr;
}

.about-text-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 24px;
}

.about-text-content p {
    color: var(--gray-300);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    text-align: left;
}

.about-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.about-image-wrapper {
    position: relative;
}

.about-image-card {
    background: linear-gradient(to bottom right, rgba(160, 32, 240, 0.2), rgba(0, 123, 255, 0.2));
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(160, 32, 240, 0.3);
}

.about-image {
    width: 100%;
    height: 256px;
    object-fit: cover;
    border-radius: 12px;
}

.features-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
}

.feature-card {
    background-color: var(--vegas-accent);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(160, 32, 240, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
    border-color: rgba(160, 32, 240, 0.4);
}

.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--vegas-accent);
    border-radius: 50%;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.trust-indicators {
    margin-top: 64px;
    text-align: center;
}

.trust-box {
    background-color: rgba(29, 29, 50, 0.3);
    border-radius: 12px;
    padding: 32px;
    max-width: 896px;
    margin: 0 auto;
}

.trust-box h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.trust-box p {
    color: var(--gray-300);
    margin-bottom: 24px;
    text-align: center;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    font-size: 0.9rem;
    color: var(--gray-400);
}


/* --- 'Rules' Section Styles --- */
#rules {
    background-color: var(--vegas-dark);
    padding: 80px 5%;
}

.rules-container {
    max-width: 1280px;
    margin: 0 auto;
}

.rules-header {
    text-align: center;
    margin-bottom: 64px;
}

.rules-header h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 16px;
    text-transform: none;
    text-shadow: none;
}

.rules-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.rules-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 64px;
    grid-template-columns: 1fr;
}

.rule-card {
    background-color: var(--vegas-accent);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(160, 32, 240, 0.2);
}

.rule-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.rule-card-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
}

.bg-purple { background-color: var(--purple); }
.bg-gold { background-color: var(--gold); }
.bg-blue { background-color: var(--blue); }
.text-white { color: white; }

.rule-card-header h3 {
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
}

.rule-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
}

.rule-checkmark-icon {
    color: var(--gold);
    margin-right: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.rule-item span {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.6;
}

.notice-box {
    background: linear-gradient(to right, rgba(160, 32, 240, 0.15), rgba(0, 123, 255, 0.15));
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(160, 32, 240, 0.3);
}

.notice-content {
    display: flex;
    align-items: flex-start;
}

.notice-icon {
    color: var(--gold);
    margin-right: 16px;
    margin-top: 5px;
    flex-shrink: 0;
}

.notice-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.notice-content p {
    color: var(--gray-300);
    line-height: 1.7;
    text-align: left;
    margin-bottom: 16px;
}

.contact-prompt-box {
    margin-top: 48px;
    text-align: center;
}

.contact-prompt-content {
    background-color: var(--vegas-accent);
    border-radius: 12px;
    padding: 24px;
    max-width: 768px;
    margin: 0 auto;
}

.contact-prompt-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.contact-prompt-content p {
    color: var(--gray-300);
    margin-bottom: 16px;
}

.contact-support-button {
    background-color: var(--purple);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* Add this */
    display: inline-block; /* Add this */
}

.contact-support-button:hover {
    background-color: var(--blue);
}


/* --- Contact Section Styles --- */
.contact-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px;
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-button svg {
    margin-right: 12px;
}

.contact-button.whatsapp { background-color: #25D366; }
.contact-button.telegram { background-color: #0088cc; }
.contact-button.messenger { background-color: #00B2FF; }


/* --- Footer Styles --- */
.site-footer {
    background-color: var(--vegas-dark);
    padding: 60px 5% 20px 5%;
    border-top: 1px solid var(--border-glow-purple);
    color: var(--gray-300);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    margin-bottom: 40px;
    text-align: center;
}

.footer-column h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-logo {
    margin-bottom: 20px;
    justify-content: center;
}

.footer-about-text {
    text-align: center;
    max-width: none;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    text-decoration: none;
    color: var(--gray-300);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-social-links a {
    color: var(--gray-300);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--purple);
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.9rem;
}


/* --- Floating Messenger Button --- */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px var(--blue); }
    50% { box-shadow: 0 0 25px var(--blue); }
}

/* --- Responsive Media Queries --- */
/* Small tablets (480px and wider) */
@media (min-width: 480px) {
    .games-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .contact-button {
        min-width: 300px;
    }
}

/* Tablet and Up (768px and wider) */
@media (min-width: 768px) {
    .games-grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        padding: 0;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    .footer-logo {
        justify-content: flex-start;
    }
    .footer-about-text {
        text-align: left;
    }
    .footer-social-links {
        justify-content: flex-start;
    }
    .hero-content h1 {
        font-size: 4rem;
        padding: 0;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    
    .game-card img {
        height: 120px;
    }
    
    .game-card-content {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    .btn:hover {
        transform: scale(1.1);
    }
}

/* Desktop and Up (1024px and wider) */
@media (min-width: 1024px) {
    .games-grid-container {
        grid-template-columns: repeat(5, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .rules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .about-header h2, .rules-header h2 {
        font-size: 3rem;
    }
    .hero-content h1 {
        font-size: 5rem;
    }
}