@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Montserrat:wght@500;700;900&display=swap');

:root {
    --bg-dark: #07120a;
    --surface: #0f1f14;
    --surface-light: rgba(22, 48, 31, 0.7);
    --emerald: #00c853;
    --neon: #39ff14;
    --mint: #00ffa6;
    --lime: #a3ff12;
    --gold: #d4af37;
    --text-main: #e8f5ec;
    --text-muted: #8cae98;
    
    --sidebar-collapsed: 80px;
    --sidebar-expanded: 230px;
    --sidebar-mobile: 70px;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--neon), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Particles System Container */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.6; transform: translateY(80vh) scale(1); }
    80% { opacity: 0.3; transform: translateY(20vh) scale(1.5); }
    100% { transform: translateY(-10vh) scale(0); opacity: 0; }
}

/* Layout */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-collapsed);
    background: var(--surface);
    border-right: 1px solid rgba(0, 200, 83, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
}

.sidebar:hover {
    width: var(--sidebar-expanded);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    min-width: var(--sidebar-expanded);
    color: var(--neon);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    white-space: nowrap;
}

.sidebar-logo i {
    min-width: var(--sidebar-collapsed);
    text-align: center;
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--neon);
}

.sidebar-logo span {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-logo span {
    opacity: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-grow: 1;
}

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    min-width: var(--sidebar-expanded);
    color: var(--text-muted);
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}

.nav-links li a i {
    min-width: var(--sidebar-collapsed);
    text-align: center;
    font-size: 1.2rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links li a span {
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.sidebar:hover .nav-links li a span {
    opacity: 1;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--neon);
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.1), transparent);
}

.nav-links li a:hover i, .nav-links li a.active i {
    color: var(--neon);
    text-shadow: 0 0 10px var(--neon);
}

.main-content {
    margin-left: var(--sidebar-collapsed);
    width: calc(100% - var(--sidebar-collapsed));
    min-height: 100vh;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* Shared Components */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--emerald), var(--neon));
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.7);
}

.glass-card {
    background: rgba(15, 31, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 4rem);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.1), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.glass-card:hover::before {
    left: 150%;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 200, 83, 0.15);
    border-color: rgba(57, 255, 20, 0.4);
}

/* Sections */
section {
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem);
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: clamp(6rem, 10vw, 10rem);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(7, 18, 10, 0.8), rgba(7, 18, 10, 0.95));
    z-index: 1;
}

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

.hero-disclaimer {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: rgba(15, 31, 20, 0.9);
    backdrop-filter: blur(5px);
    text-align: center;
    padding: 0.8rem;
    font-size: 0.85rem;
    color: var(--mint);
    z-index: 10;
    border-bottom: 1px solid rgba(0, 200, 83, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2.5rem;
    color: var(--text-main);
    max-width: 600px;
}

/* Auto-fit Grid System */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
}

/* Featured Game / Single Centered Card */
.game-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-card {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 0;
}

.game-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 200, 83, 0.2);
}

.game-card-content {
    padding: 2.5rem;
}

.game-card-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.game-card-content p {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(0, 200, 83, 0.2);
    padding: clamp(3rem, 5vw, 5rem);
    position: relative;
    z-index: 10;
    margin-top: auto;
}

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

.footer-col h4 {
    color: var(--neon);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a:hover {
    color: var(--mint);
    padding-left: 5px;
}

.global-disclaimer {
    background: rgba(15, 31, 20, 0.5);
    border: 1px solid rgba(0, 200, 83, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.global-disclaimer p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.global-disclaimer .badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-weight: bold;
    color: var(--emerald);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Game Iframe Page */
.game-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(15, 31, 20, 0.8);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 200, 83, 0.1);
    padding: 1rem;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.game-meta {
    margin-top: 2rem;
    padding: 2rem;
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(7, 18, 10, 0.8);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

/* FAQ */
.faq-item {
    background: rgba(15, 31, 20, 0.4);
    border: 1px solid rgba(0, 200, 83, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.faq-item:hover {
    transform: translateX(10px);
    border-color: rgba(57, 255, 20, 0.3);
}

.faq-item h4 {
    color: var(--mint);
    margin-bottom: 0.5rem;
}

/* Legal text styling */
.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--emerald);
}
.legal-content p {
    margin-bottom: 1rem;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { width: var(--sidebar-collapsed); }
}

@media (max-width: 768px) {
    body { flex-direction: column; }
    
    .sidebar {
        width: 100% !important;
        height: var(--sidebar-mobile);
        top: auto;
        bottom: 0;
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-top: 1px solid rgba(0, 200, 83, 0.2);
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar-logo { display: none; }
    
    .nav-links {
        flex-direction: row;
        margin-top: 0;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        padding: 0;
    }
    
    .nav-links li a {
        min-width: auto;
        padding: 0.5rem;
        flex-direction: column;
        justify-content: center;
    }
    
    .nav-links li a i { min-width: auto; font-size: 1.3rem; margin-bottom: 4px; }
    .nav-links li a span { display: none; }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        margin-bottom: var(--sidebar-mobile);
    }
    
    .hero { padding-top: 8rem; }
    .hero-disclaimer { font-size: 0.75rem; padding: 0.5rem; }
}