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

:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #1a1a2e;
    --accent-purple: #6c5ce7;
    --accent-blue: #74b9ff;
    --neon-purple: #a29bfe;
    --neon-blue: #00d2d3;
    --text-primary: #ffffff;
    --text-secondary: #b2b2b2;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-neon: linear-gradient(45deg, #00d2d3, #a29bfe);
    --shadow-glow: 0 0 20px rgba(162, 155, 254, 0.3);
    --shadow-neon: 0 0 30px rgba(0, 210, 211, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(162, 155, 254, 0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-neon);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-purple);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at center, rgba(162, 155, 254, 0.1) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23a29bfe" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-glow);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.feature-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cta-button {
    background: var(--gradient-neon);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-bg);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-neon);
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 210, 211, 0.7);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.dice-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.dice {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 15px;
    box-shadow: var(--shadow-glow);
    animation: float 6s ease-in-out infinite;
}

.dice-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.dice-2 {
    top: 150px;
    right: 50px;
    animation-delay: 3s;
}

.dice::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        -25px -25px 0 white,
        25px 25px 0 white,
        -25px 25px 0 white,
        25px -25px 0 white,
        0 -25px 0 white,
        0 25px 0 white;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section Styles */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--secondary-bg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.content-text h3 {
    color: var(--neon-purple);
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.feature-list, .step-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.feature-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
}

.feature-list li::before {
    content: '→';
    color: var(--neon-blue);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.step-list li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    counter-increment: step;
}

.step-list {
    counter-reset: step;
}

.step-list li::before {
    content: counter(step);
    background: var(--gradient-neon);
    color: var(--primary-bg);
    font-weight: bold;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Info Cards */
.info-card, .highlight-box, .warning-box {
    background: rgba(162, 155, 254, 0.1);
    border: 1px solid rgba(162, 155, 254, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-card h4 {
    color: var(--neon-purple);
    margin-bottom: 1rem;
}

.highlight-box {
    border-color: rgba(0, 210, 211, 0.3);
    background: rgba(0, 210, 211, 0.1);
}

.warning-box {
    border-color: rgba(245, 87, 108, 0.3);
    background: rgba(245, 87, 108, 0.1);
}

/* Mobile Features */
.mobile-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.mobile-feature {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(162, 155, 254, 0.2);
}

.mobile-feature h4 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.game-category {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(162, 155, 254, 0.2);
    transition: all 0.3s ease;
}

.game-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.game-category h3 {
    color: var(--neon-purple);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.game-category ul {
    list-style: none;
}

.game-category li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.game-category li::before {
    content: '•';
    color: var(--neon-blue);
    position: absolute;
    left: 0;
}

/* Slots Table */
.slots-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 15px;
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(162, 155, 254, 0.2);
}

.slots-table {
    width: 100%;
    border-collapse: collapse;
}

.slots-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

.slots-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(162, 155, 254, 0.1);
    color: var(--text-secondary);
}

.slots-table tr:hover {
    background: rgba(162, 155, 254, 0.05);
}

.slots-table tr:last-child td {
    border-bottom: none;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 3rem 0 1rem 0;
    border-top: 1px solid rgba(162, 155, 254, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: var(--neon-purple);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(162, 155, 254, 0.1);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--secondary-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .dice-container {
        width: 200px;
        height: 200px;
    }

    .dice {
        width: 60px;
        height: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .mobile-features {
        grid-template-columns: 1fr;
    }

    .slots-table-container {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .feature-number {
        font-size: 2rem;
    }

    .nav {
        padding: 1rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #ffffff;
        --shadow-glow: 0 0 5px rgba(255, 255, 255, 0.8);
    }
}
