/* CSS Reset & Variables */
:root {
    --primary: #d4af37;
    --primary-glow: rgba(212, 175, 55, 0.4);
    --secondary: #b8860b;
    --accent: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.3);
    --bg-start: #1a1508;
    --bg-mid: #2d2414;
    --bg-end: #0f0a05;
    --card-bg: rgba(45, 36, 20, 0.6);
    --card-border: rgba(212, 175, 55, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #e5d4a3;
    --radius: 14px;
    --shadow-offset: 8px;
    --transition: 0.4s ease-out;
}

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

body {
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 400;
    background: linear-gradient(
        180deg,
        var(--bg-start) 0%,
        var(--bg-mid) 50%,
        var(--bg-end) 100%
    );
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(28, 10, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 20px var(--primary-glow);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    transition: color var(--transition);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.age-badge {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 16px var(--primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 16px var(--primary-glow);
    }
    50% {
        box-shadow: 0 0 24px var(--primary-glow);
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('../images/ban.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 5, 6, 0.85) 0%,
        rgba(28, 10, 13, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px var(--primary-glow);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero h1 {
    font-size: clamp(48px, 8vw, 84px);
    margin-bottom: 24px;
    text-shadow:
        6px 6px 0 var(--primary),
        -2px -2px 20px var(--primary-glow);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.hero p {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 40px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--secondary);
}

.btn-primary:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow:
        12px 12px 0 var(--secondary),
        0 0 30px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--primary-glow);
}

.btn-secondary:hover {
    background: var(--card-bg);
    transform: scale(1.03);
    box-shadow: 12px 12px 0 var(--primary-glow);
}

.hero-disclaimer {
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 16px;
    text-shadow: 4px 4px 0 var(--primary);
    display: inline-block;
}

.section-header .age-badge {
    display: inline-block;
    margin-left: 16px;
    vertical-align: middle;
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Game Cards */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.game-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: 6px 6px 0 rgba(244, 63, 94, 0.3);
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: scale(1.03) translateY(-4px);
    border-color: var(--primary);
    box-shadow:
        12px 12px 0 var(--primary-glow),
        0 0 40px var(--primary-glow);
}

.game-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: linear-gradient(135deg, var(--bg-mid), var(--bg-end));
    overflow: hidden;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-image-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    padding: 20px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 8px;
}

.game-category {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.game-info .age-badge {
    font-size: 12px;
    padding: 4px 10px;
}

.game-title {
    padding: 0 20px 16px;
    font-size: 20px;
    color: white;
}

.play-demo-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 4px 4px 0 var(--secondary);
}

.play-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 0 var(--secondary),
        0 0 20px var(--primary-glow);
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.game-modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-start);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    width: 100%;
    max-width: 1400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 60px var(--primary-glow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--card-border);
}

.modal-header h2 {
    font-size: 24px;
    color: var(--primary);
}

.close-btn {
    background: var(--primary);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px var(--primary-glow);
}

#game-iframe {
    width: 100%;
    height: 700px;
    border: none;
    background: #000;
}

.demo-unavailable {
    display: none;
    align-items: center;
    justify-content: center;
    height: 500px;
    font-size: 24px;
    color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition);
    box-shadow: 6px 6px 0 rgba(244, 63, 94, 0.2);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: scale(1.03) translateY(-4px);
    border-color: var(--primary);
    box-shadow: 10px 10px 0 var(--primary-glow);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.step h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: white;
}

.step p {
    color: var(--text-secondary);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 20px;
    transition: all var(--transition);
    box-shadow: 4px 4px 0 rgba(244, 63, 94, 0.2);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 8px 8px 0 var(--primary-glow);
}

.faq-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Responsible Gaming */
.responsible-gaming {
    background: var(--card-bg);
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    margin: 80px auto;
    max-width: 900px;
    box-shadow: 0 0 40px var(--primary-glow);
}

.responsible-gaming-icon {
    font-size: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.responsible-gaming h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary);
}

.responsible-gaming p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.age-modal.active {
    display: flex;
}

.age-modal-content {
    background: var(--bg-start);
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 50px 40px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 80px var(--primary-glow);
}

.age-modal-icon {
    font-size: 100px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.age-modal h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary);
}

.age-modal p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.age-modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-modal-buttons .btn {
    min-width: 140px;
}

/* Footer */
footer {
    background: var(--bg-start);
    border-top: 2px solid var(--card-border);
    padding: 80px 0 30px;
    margin-top: 100px;
}

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

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.footer-badge-large {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 28px;
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 0 40px var(--primary-glow);
    animation: pulse 2s infinite;
}

.footer-disclaimer {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-disclaimer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
}

/* Games Page */
.page-header {
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(42px, 6vw, 64px);
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 var(--primary);
}

.age-check-banner {
    background: var(--primary);
    color: white;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.filter-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.filter-btn {
    padding: 12px 28px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.05);
}

/* Policy Pages */
.policy-page {
    padding: 100px 0;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    padding: 60px;
    box-shadow: 6px 6px 0 rgba(244, 63, 94, 0.2);
}

.policy-content h1 {
    font-size: 42px;
    margin-bottom: 30px;
    color: var(--primary);
    text-shadow: 3px 3px 0 var(--secondary);
}

.policy-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--primary);
}

.policy-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.policy-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 20px 0 20px 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 73px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 73px);
        background: rgba(28, 10, 13, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: right var(--transition);
        border-left: 2px solid var(--card-border);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        text-shadow:
            4px 4px 0 var(--primary),
            -1px -1px 10px var(--primary-glow);
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .policy-content {
        padding: 30px 20px;
    }

    #game-iframe {
        height: 500px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .btn {
        padding: 14px 30px;
        font-size: 16px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .responsible-gaming {
        padding: 40px 20px;
    }

    .footer-badge-large {
        font-size: 24px;
        padding: 12px 24px;
    }
}
