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

:root {
    --bg-deep: #041016;
    --aqua: #00f5d4;
    --ocean: #00bbf9;
    --coral: #ff4d6d;
    --violet: #7209b7;
    --pearl: #e0fbfc;
    --gradient: linear-gradient(135deg, var(--aqua), var(--ocean), var(--violet), #90dbf4);
    
    --glass-bg: rgba(224, 251, 252, 0.03);
    --glass-border: rgba(0, 245, 212, 0.15);
    
    --sidebar-collapsed: 80px;
    --sidebar-expanded: 240px;
}

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

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(0, 187, 249, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -2;
}

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

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 3rem); }

a {
    text-decoration: none;
    color: var(--pearl);
    transition: all 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--aqua); border-radius: 4px; }

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

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

.brand-logo {
    display: flex;
    align-items: center;
    padding: 20px 0;
    min-width: var(--sidebar-expanded);
}

.brand-logo .icon {
    min-width: var(--sidebar-collapsed);
    display: flex;
    justify-content: center;
    color: var(--aqua);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--aqua);
}

.brand-logo .text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--aqua);
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

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

.nav-links {
    list-style: none;
    margin-top: 2rem;
    flex-grow: 1;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 15px 0;
    min-width: var(--sidebar-expanded);
    position: relative;
}

.nav-links .icon {
    min-width: var(--sidebar-collapsed);
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--ocean);
    transition: all 0.3s;
}

.nav-links .text {
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-links a:hover .icon,
.nav-links a.active .icon {
    color: var(--aqua);
    text-shadow: 0 0 15px var(--aqua);
}

.nav-links a:hover .text,
.nav-links a.active .text {
    color: var(--aqua);
}

.nav-links a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--aqua);
    box-shadow: 0 0 10px var(--aqua);
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--glass-bg);
    border: 1px solid var(--aqua);
    color: var(--aqua);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-collapsed);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.4s;
    position: relative;
    z-index: 1;
}

/* Disclaimers */
.top-disclaimer {
    background: rgba(255, 77, 109, 0.1);
    border-bottom: 1px solid rgba(255, 77, 109, 0.3);
    padding: 15px 20px;
    text-align: center;
    color: var(--coral);
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    z-index: 10;
    position: relative;
}

.footer-disclaimer {
    background: rgba(4, 16, 22, 0.9);
    border-top: 1px solid rgba(114, 9, 183, 0.3);
    padding: 30px 20px;
    text-align: center;
    color: rgba(224, 251, 252, 0.6);
    font-size: 0.85rem;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
    filter: saturate(1.5) contrast(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(4, 16, 22, 0.3), var(--bg-deep));
    z-index: -1;
}

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

.hero-title {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 245, 212, 0.3);
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--pearl);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: transparent;
    color: var(--aqua);
    border: 2px solid var(--aqua);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
}

.btn-primary:hover {
    background: var(--aqua);
    color: var(--bg-deep);
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.6);
}

.btn-glow {
    background: var(--gradient);
    color: var(--bg-deep);
    border: none;
    box-shadow: 0 0 20px rgba(114, 9, 183, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(0, 245, 212, 0.8);
    transform: translateY(-3px);
}

/* Sections & Cards */
.section-pad {
    padding: 5rem 2rem;
    position: relative;
}

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

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

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.4);
}

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

/* Features */
.feature-icon {
    font-size: 3rem;
    color: var(--ocean);
    margin-bottom: 1rem;
    display: inline-block;
    text-shadow: 0 0 15px var(--ocean);
}

/* Game Card */
.game-card-wrapper {
    max-width: 500px;
    margin: 3rem auto;
}
.game-card {
    padding: 0;
}
.game-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.game-card-content {
    padding: 2rem;
    text-align: center;
}

/* Game Frame Container */
.game-frame-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--aqua);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 0 40px rgba(0, 245, 212, 0.15);
    margin: 2rem auto;
    max-width: 1000px;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #000;
}

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

/* Form Styles */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--pearl);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--aqua);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
}

/* Content Pages (Legal, FAQ) */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.content-wrapper h2 {
    color: var(--aqua);
    margin-top: 2rem;
}
.content-wrapper p, .content-wrapper ul {
    margin-bottom: 1.5rem;
    color: rgba(224, 251, 252, 0.8);
}
.content-wrapper ul {
    padding-left: 20px;
}

/* Accordion (FAQ) */
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    color: var(--pearl);
}
.faq-question:hover {
    color: var(--aqua);
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
}
.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 500px;
}

/* Footer */
footer {
    background: rgba(4, 16, 22, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 0;
    margin-top: auto;
}

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

.footer-col h4 {
    color: var(--aqua);
    font-size: 1.1rem;
}

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

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

.footer-col a {
    color: rgba(224, 251, 252, 0.7);
}

.footer-col a:hover {
    color: var(--aqua);
}

.company-info p {
    color: rgba(224, 251, 252, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Background Bubbles Animation */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(0, 245, 212, 0.2));
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0;
}

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

/* Scroll Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
        width: 250px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}