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

:root {
    --midnight-sand: #0b0908;
    --royal-gold: #ffbe0b;
    --desert-flame: #fb5607;
    --magic-pink: #ff006e;
    --mystic-purple: #8338ec;
    --mystic-gradient: linear-gradient(135deg, var(--royal-gold), var(--desert-flame), var(--magic-pink), var(--mystic-purple));
    --glass-bg: rgba(255, 215, 150, 0.06);
    --glass-border: rgba(255, 200, 120, 0.2);
    --text-main: #fdfbf7;
    --text-muted: #d1c8b8;
    --sidebar-collapsed: 70px;
    --sidebar-expanded: 240px;
    --z-background: -2;
    --z-particles: -1;
    --z-content: 10;
    --z-sidebar: 100;
    --z-cursor: 9999;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--midnight-sand);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: none; /* Custom cursor */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

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

button {
    cursor: none;
    font-family: 'Orbitron', sans-serif;
}

/* === TYPOGRAPHY & FLUIDITY === */
.fluid-h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; }
.fluid-h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.2; margin-bottom: clamp(1rem, 2vw, 2rem); }
.fluid-p { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; margin-bottom: 1.5rem; color: var(--text-muted); }
.text-gradient {
    background: var(--mystic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* === LAYOUT SYSTEM === */
.app-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* === SIDEBAR (GLASSMORPHISM) === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-collapsed);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid var(--glass-border);
    z-index: var(--z-sidebar);
    transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar:hover {
    width: var(--sidebar-expanded);
    box-shadow: 10px 0 30px rgba(255, 190, 11, 0.1);
}

.sidebar-logo {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    width: var(--sidebar-expanded);
}

.sidebar-logo img {
    width: 40px;
    height: 40px;
    margin-left: 15px;
    transition: transform 0.5s;
}

.sidebar:hover .sidebar-logo img {
    transform: rotate(360deg);
}

.sidebar-logo span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--royal-gold);
    margin-left: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar:hover .sidebar-logo span {
    opacity: 1;
    transition-delay: 0.2s;
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    width: var(--sidebar-expanded);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    transition: all 0.3s ease;
}

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

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

.nav-icon {
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--royal-gold);
    transition: transform 0.4s ease, color 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: rotateY(180deg) scale(1.2);
    color: var(--desert-flame);
    text-shadow: 0 0 10px var(--royal-gold);
}

.nav-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sidebar:hover .nav-text {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.nav-item:hover .nav-text {
    color: var(--royal-gold);
}

/* Sidebar Footer / Orb */
.sidebar-footer {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--sidebar-expanded);
}

.magic-orb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--royal-gold), var(--desert-flame), transparent);
    box-shadow: 0 0 20px var(--desert-flame);
    animation: pulse-glow 3s infinite alternate;
    margin-left: -170px; /* Aligned with collapsed state */
    transition: margin 0.5s ease;
}

.sidebar:hover .magic-orb {
    margin-left: 0;
}

/* === MAIN CONTENT === */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-collapsed);
    position: relative;
    z-index: var(--z-content);
    transition: margin-left 0.5s ease;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 0;
        padding-bottom: 70px; /* Prevent footer from hiding behind mobile nav */
    }
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        border-top: 1px solid var(--glass-border);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: var(--z-sidebar);
    }
    .mobile-nav .nav-item { padding: 0; }
    .mobile-nav .nav-text { display: none; }
    .mobile-nav .nav-icon { width: auto; font-size: 1.5rem; }
}
@media (min-width: 993px) {
    .mobile-nav { display: none; }
}

/* === GLOBAL DISCLAIMERS & BADGES === */
.global-disclaimer {
    background: rgba(251, 86, 7, 0.1);
    border-bottom: 1px solid var(--desert-flame);
    padding: 0.8rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 50;
    position: relative;
}
.global-disclaimer strong {
    color: var(--royal-gold);
}

.compliance-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}
.badge {
    border: 1px solid var(--royal-gold);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--royal-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 190, 11, 0.2);
}

/* === UI COMPONENTS === */
.text-center {
    text-align: center;
}

/* Magic Button */
.btn-magic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    border: 1px solid var(--royal-gold);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 0 15px rgba(255, 190, 11, 0.2);
}

.btn-magic::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--mystic-gradient);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-magic:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(251, 86, 7, 0.5);
}

.btn-magic:hover::before {
    opacity: 1;
}

/* Hover ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-burst 0.6s linear;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.1), transparent, transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(255, 190, 11, 0.2);
}
.glass-card:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

/* === SECTIONS === */
section {
    padding: clamp(3rem, 8vw, 6rem) 5%;
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Offset for top disclaimer */
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%;
    background: url('images/arabian-nights-desert-bg.png') center/cover;
    z-index: var(--z-background);
    animation: parallax-scroll 20s linear infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11, 9, 8, 0.3), var(--midnight-sand));
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: var(--z-content);
    padding: 3rem;
    background: radial-gradient(circle, rgba(11,9,8,0.7) 0%, transparent 70%);
}

.disclaimer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    display: inline-block;
    text-align: center;
}

/* Featured Game & Games Grid */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.game-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: none;
}
.game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.game-card-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, var(--midnight-sand) 20%, transparent);
    transform: translateY(30px);
    transition: transform 0.4s ease;
}
.game-card:hover img {
    transform: scale(1.1);
}
.game-card:hover .game-card-content {
    transform: translateY(0);
}

/* Game Frame (Game Page) */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.magic-frame {
    position: relative;
    padding: 10px;
    background: linear-gradient(45deg, var(--royal-gold), var(--mystic-purple), var(--desert-flame));
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(251, 86, 7, 0.4);
    animation: frame-glow 4s infinite alternate;
}
.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;
}

/* How It Works Steps */
.step-number {
    font-size: 4rem;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--royal-gold);
    position: absolute;
    top: -20px; right: 20px;
    opacity: 0.3;
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--royal-gold);
    box-shadow: 0 0 10px rgba(255, 190, 11, 0.3);
}

/* Footer */
.site-footer {
    background: #050403;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
    position: relative;
    z-index: var(--z-content);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: var(--royal-gold);
    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 {
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.footer-col ul li a:hover {
    color: var(--desert-flame);
}
.company-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}
.footer-disclaimer {
    font-size: 0.8rem;
    color: #888;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.5;
    text-align: center;
}

/* === ANIMATIONS & EFFECTS === */
/* Custom Cursor Glow */
.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 190, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: var(--z-cursor);
    transition: width 0.2s, height 0.2s;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--royal-gold);
    box-shadow: 0 0 10px var(--royal-gold), 0 0 20px var(--desert-flame);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: var(--z-cursor);
}

/* 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);
}

/* Keyframes */
@keyframes parallax-scroll {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-5%) scale(1.05); }
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px var(--desert-flame); }
    100% { box-shadow: 0 0 30px var(--royal-gold); }
}
@keyframes frame-glow {
    0% { box-shadow: 0 0 20px rgba(251, 86, 7, 0.4); }
    100% { box-shadow: 0 0 50px rgba(131, 56, 236, 0.6); }
}
@keyframes ripple-burst {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Magic Particles (Generated via JS) */
.particle {
    position: fixed;
    bottom: 0;
    background: var(--royal-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-particles);
    filter: blur(2px);
    animation: floatUp linear infinite;
}