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

:root {
    --bg: #0f0003;
    --cyan: #ff0022;
    --pink: #00ff44;
    --green: #ff1a1a;
    --gold: #00cc33;
    --glass: rgba(255, 0, 34, 0.05);
    --glass-border: rgba(255, 0, 34, 0.2);
    --font-heading: 'Orbitron', sans-serif;
    --font-accent: 'Audiowide', cursive;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom magnetic cursor */
}

body {
    background-color: var(--bg);
    color: #fff;
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* CUSTOM CURSOR */
.cursor-dot, .cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-glow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--pink);
    box-shadow: 0 0 20px rgba(0, 255, 68, 0.4);
    transition: transform 0.1s ease-out, width 0.2s, height 0.2s;
}
body:hover .cursor-dot { background: var(--pink); }

/* ANIMATIONS */
@keyframes ufo-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}
@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--cyan), inset 0 0 10px var(--cyan); }
    50% { box-shadow: 0 0 40px var(--pink), inset 0 0 20px var(--pink); }
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes slot-reveal {
    0% { transform: translateY(-50px) scale(0.8); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* TYPOGRAPHY & GRADIENTS */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--pink), var(--green), var(--gold));
    background-size: 300% 300%;
    animation: gradient-shift 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-accent { font-family: var(--font-accent); color: var(--gold); }

/* LAYOUT SYSTEM */
.app-container {
    display: flex;
    min-height: 100vh;
}
.main-content {
    flex-grow: 1;
    margin-left: 90px; /* Sidebar width */
    width: calc(100% - 90px);
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SIDEBAR - COSMIC CONTROL PANEL */
.cosmic-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 90px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    border-top-right-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy expand */
    overflow: hidden;
}
.cosmic-sidebar:hover {
    width: 280px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: 20px 0 50px rgba(255, 0, 34, 0.1);
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 3rem;
    width: 100%;
}
.brand-logo i {
    font-size: 2rem;
    color: var(--cyan);
    animation: ufo-float 4s infinite ease-in-out;
}
.brand-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s;
}
.cosmic-sidebar:hover .brand-text { opacity: 1; }

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    padding: 10px;
    border-radius: 15px;
    transition: all 0.3s;
    position: relative;
    width: 100%;
}
.nav-item i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    transition: transform 0.4s, color 0.4s;
}
.nav-text {
    opacity: 0;
    white-space: nowrap;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cosmic-sidebar:hover .nav-text {
    opacity: 1;
    transform: translateX(0);
}
.cosmic-sidebar:hover .nav-item { animation: slot-reveal 0.5s forwards; }
.cosmic-sidebar:hover .nav-item:nth-child(1) { animation-delay: 0.1s; }
.cosmic-sidebar:hover .nav-item:nth-child(2) { animation-delay: 0.2s; }
.cosmic-sidebar:hover .nav-item:nth-child(3) { animation-delay: 0.3s; }
.cosmic-sidebar:hover .nav-item:nth-child(4) { animation-delay: 0.4s; }

.nav-item:hover, .nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 0, 34, 0.2);
}
.nav-item:hover i, .nav-item.active i {
    color: var(--cyan);
    transform: scale(1.2);
}
/* Active Orbit Ring */
.nav-item.active::after {
    content: '';
    position: absolute;
    left: 4px;
    width: 42px;
    height: 42px;
    border: 1px dashed var(--pink);
    border-radius: 50%;
    animation: orbit-spin 6s linear infinite;
    pointer-events: none;
}

/* MOBILE BOTTOM NAV */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: var(--glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    z-index: 1000;
    padding: 10px 20px;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav-item {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 50%;
    transition: 0.3s;
    position: relative;
}
.mobile-nav-item.active {
    color: var(--cyan);
    background: rgba(255, 0, 34, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 34, 0.3);
}

/* UI COMPONENTS */
/* Orbit Button */
.btn-orbit {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--cyan), var(--pink));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    outline: none;
    text-transform: uppercase;
    z-index: 1;
    overflow: hidden;
    transition: 0.3s;
}
.btn-orbit::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 2px dashed var(--gold);
    border-radius: 35px;
    animation: orbit-spin 4s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: 0.3s;
}
.btn-orbit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--pink);
}
.btn-orbit:hover::before { opacity: 1; }

/* Ripple Effect Element */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* Glass Cards */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 0, 34, 0.1), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    box-shadow: inset 0 2px 15px rgba(255, 0, 34, 0.15);
}
.glass-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 35px rgba(0, 255, 68, 0.2), inset 0 2px 20px rgba(0, 255, 68, 0.15);
    border-color: var(--pink);
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/photo-1462331940025-496dfbfc7564.png') center/cover;
    opacity: 0.4;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg) 100%);
    z-index: -1;
}
.hero-content {
    max-width: 900px;
    z-index: 1;
    animation: ufo-float 6s ease-in-out infinite;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 0, 34, 0.5);
}
.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}
.legal-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.3);
    border-radius: 50px;
    color: #ff4d4d;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SECTIONS */
.section-pad { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* GRID LAYOUTS */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

/* FEATURED GAME */
.game-showcase {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 0, 34, 0.1), transparent);
    border: 1px solid var(--cyan);
    box-shadow: 0 0 40px rgba(255, 0, 34, 0.1);
}
.game-showcase img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    animation: ufo-float 5s infinite;
}

/* HOW IT WORKS / STEPS */
.step-card {
    text-align: center;
    position: relative;
}
.step-icon {
    width: 80px;
    height: 80px;
    background: var(--glass);
    border: 2px solid var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: var(--green);
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.2);
    transition: 0.3s;
}
.step-card:hover .step-icon {
    transform: rotate(360deg);
    background: var(--green);
    color: #000;
}

/* TESTIMONIALS */
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    margin-bottom: 1rem;
}
.stars { color: var(--gold); margin-bottom: 1rem; }

/* GAME FRAME PAGE */
.game-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: var(--glass);
    border: 2px solid var(--cyan);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 0, 34, 0.2);
    animation: slot-reveal 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.game-iframe {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; border: none;
}

/* FORMS */
.glass-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.input-group { position: relative; }
.glass-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.glass-input:focus { border-color: var(--cyan); box-shadow: 0 0 15px rgba(255, 0, 34, 0.3); }

/* FOOTER */
.cosmic-footer {
    background: #020000;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
    margin-left: 90px;
    text-align: center;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: left;
}
.footer-col h4 { color: var(--cyan); margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--pink); padding-left: 5px; }

.legal-notice-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    max-width: 1000px;
    margin: 0 auto 2rem;
    text-align: center;
}
.legal-notice-box h5 { color: #ff4d4d; margin-bottom: 1rem; font-size: 1.1rem; }
.legal-notice-box p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 1rem; }

.compliance-badges {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 2rem;
}
.badge {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: rgba(255,255,255,0.4);
}

.copyright { font-size: 0.8rem; color: rgba(255,255,255,0.3); border-top: 1px solid var(--glass-border); padding-top: 2rem; }

/* PARTICLES */
.particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    animation: explode 0.8s cubic-bezier(0, 0.9, 0.1, 1) forwards;
}
@keyframes explode {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .main-content, .cosmic-footer { margin-left: 0; width: 100%; }
    .cosmic-sidebar { display: none; }
    .mobile-bottom-nav { display: flex; }
    .hero { padding-bottom: 80px; }
}

/* SCROLL REVEAL UTILITY */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }