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

:root {
    /* Casino Royale Color Palette */
    --primary-bg: #0f051d;
    --secondary-bg: #1a0a2e;
    --accent-primary: #ffd700; /* Gold */
    --accent-secondary: #ff4500; /* Orange Red */
    --accent-glow: rgba(255, 215, 0, 0.5);
    --text-main: #e0d6ff;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 215, 0, 0.15);
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
    --transition-smooth: all 0.3s ease;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

* {
    max-width: 100vw !important;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 80px;
    width: 100%;
}

/* Ensure container and sections don't overflow */
.container, section {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Responsive Container */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .ad-banner-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Header & Navigation */
.header {
    background: rgba(10, 15, 31, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
}

body {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 75px;
    }
}

@media (max-width: 480px) {
    .header { padding: 12px 0; }
    .logo img { height: 32px; }
    .btn-signup { padding: 10px 18px; font-size: 0.8rem; }
    
    body {
        padding-top: 70px;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 44px;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-list a:hover {
    color: var(--accent-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-signup {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #1a0a2e;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

/* Ad Banners */
.ad-banner-container {
    margin: 40px auto;
    border-radius: 20px;
    box-sizing: border-box;
    max-width: 1200px;
    width: 100%;
}

.ad-banner-container img {
    border-radius: 16px;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    margin: 60px 0 30px;
    text-align: left;
    font-weight: 800;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin-top: 12px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .section-title { font-size: 1.6rem; margin: 40px 0 20px; text-align: center; }
    .section-title::after { margin: 12px auto 0; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.4rem; }
    .container { padding: 0 16px; }
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 80px 0 40px;
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 700;
}

.footer-col p, .footer-col ul li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .footer { padding: 50px 0 30px; text-align: center; }
    .footer-grid { gap: 30px; }
    .footer-col h4 { margin-bottom: 18px; }
}

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

.footer-links {
    text-align: center;
    margin-top: 30px;
}

.footer-links a {
    color: var(--accent-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Mobile Menu Logic */
.mobile-menu-toggle {
    background: none;
    border: none;
    width: 32px;
    height: 26px;
    position: relative;
    cursor: pointer;
    display: none;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-toggle span:nth-child(3) { bottom: 0; }

.mobile-menu-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        bottom: 0;
        width: 85%;
        max-width: 340px;
        background: var(--secondary-bg);
        padding: 110px 40px 40px;
        border-left: 1px solid var(--glass-border);
        box-shadow: -20px 0 60px rgba(0,0,0,0.8);
        z-index: 1001;
        transition: right 0.4s ease;
        visibility: hidden;
        }
    
    .nav-list.active {
        right: 0;
        visibility: visible;
    }

    .nav-list li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
        margin-bottom: 24px;
    }

    .nav-list.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-list a {
        font-size: 1rem;
    }
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Bottom Bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(20, 27, 49, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    z-index: 1001;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
}

.mobile-cta-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.mobile-cta-login { color: #fff; }
.mobile-cta-register { 
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); 
    color: #1a0a2e;
    font-weight: 800;
}

/* Animations */
.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.animate-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mobile-cta-bar { display: grid; }
    body { padding-bottom: 68px; }
}
