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

:root {
    --bg-color: #050507;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --primary-gradient: linear-gradient(135deg, #ff7a18, #ff3cac, #784ba0, #2b32b2);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    
    --flame-orange: #ff7a18;
    --rune-magenta: #ff3cac;
    --mystic-violet: #784ba0;
    --electric-indigo: #2b32b2;
    
    --sidebar-collapsed: 80px;
    --sidebar-expanded: 240px;
    --mobile-nav-height: 70px;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

ul {
    list-style: none;
}

/* UI Elements */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.rune-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-gradient);
    background-size: 200% auto;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
    box-shadow: 0 0 15px rgba(255, 122, 24, 0.4);
}

.rune-btn:hover {
    background-position: right center;
    box-shadow: 0 0 30px rgba(255, 60, 172, 0.6);
    transform: translateY(-2px);
}

.rune-btn-outline {
    background: transparent;
    border: 2px solid var(--flame-orange);
    box-shadow: 0 0 10px rgba(255, 122, 24, 0.2);
}

.rune-btn-outline:hover {
    background: var(--flame-orange);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 122, 24, 0.6);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-collapsed);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.3s ease;
}

/* Top Mandatory Notice */
.hero-notice {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--rune-magenta);
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--flame-orange);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 100;
    position: relative;
    box-shadow: 0 2px 15px rgba(255, 60, 172, 0.2);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-collapsed);
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    overflow-x: hidden;
}

.sidebar:hover {
    width: var(--sidebar-expanded);
    box-shadow: 10px 0 30px rgba(120, 75, 160, 0.15);
}

.sidebar-logo {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.sidebar-logo svg {
    width: 40px;
    height: 40px;
    min-width: 40px;
    fill: url(#grad1);
    transition: transform 0.3s;
}

.sidebar:hover .sidebar-logo svg {
    transform: rotate(180deg);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    margin-left: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.sidebar-nav {
    flex: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 25px;
    color: var(--text-muted);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-item:hover::before, .nav-item.active::before {
    transform: scaleY(1);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    fill: currentColor;
    transition: 0.3s;
}

.nav-item:hover svg, .nav-item.active svg {
    fill: var(--rune-magenta);
    filter: drop-shadow(0 0 5px var(--rune-magenta));
}

.nav-text {
    margin-left: 20px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar:hover .nav-text {
    opacity: 1;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar:hover .sidebar-footer {
    opacity: 1;
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 60, 172, 0.4);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.feature-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(120,75,160,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border-color: rgba(255, 122, 24, 0.3);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    fill: var(--flame-orange);
    filter: drop-shadow(0 0 10px var(--flame-orange));
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Game Card */
.game-showcase {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.game-image-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.game-image-wrapper::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.game-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.game-image-wrapper:hover .game-img {
    transform: scale(1.05);
}

.game-info {
    flex: 1;
    min-width: 300px;
}

.game-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.tag-list {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 60, 172, 0.1);
    color: var(--rune-magenta);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 60, 172, 0.3);
}

/* Game Frame Area */
.game-frame-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.ratio-16-9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(120, 75, 160, 0.3);
    border: 2px solid var(--glass-border);
}

.ratio-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Steps / How it works */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}

.step-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--mystic-violet);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Content Pages (About, Legal, etc) */
.page-header {
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(circle at top center, rgba(120, 75, 160, 0.2) 0%, transparent 60%);
}

.content-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
}

.content-box h2 {
    margin: 2rem 0 1rem;
    color: var(--flame-orange);
}

.content-box h3 {
    margin: 1.5rem 0 1rem;
    color: var(--rune-magenta);
    font-size: 1.1rem;
}

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

.content-box ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: square;
    color: var(--text-muted);
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--rune-magenta);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--flame-orange);
    box-shadow: 0 0 15px rgba(255, 122, 24, 0.2);
}

/* FAQ */
.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
    border-top: 1px solid var(--glass-border);
}

/* Footer */
footer {
    background: #020203;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 10;
}

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

.footer-col h4 {
    color: var(--flame-orange);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--rune-magenta);
    padding-left: 5px;
}

.footer-disclaimer {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.company-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Particles */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding-bottom: var(--mobile-nav-height);
    }
    
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--mobile-nav-height);
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-muted);
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }
    
    .mobile-nav-item.active {
        color: var(--flame-orange);
    }
    
    .mobile-nav-item.active svg {
        fill: var(--flame-orange);
        filter: drop-shadow(0 0 5px var(--flame-orange));
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}