/* ===== CYBERPUNK VARIABLES ===== */
:root {
    /* Neon Colors */
    --neon-pink: #FF1493;
    --neon-cyan: #00FFFF;
    --neon-white: #FFFFFF;
    --neon-green: #00FF41;
    
    /* Background Colors */
    --deep-space: #0B1426;
    --dark-space: #1A2332;
    --void-black: #000000;
    --panel-dark: #0F1419;
    --panel-darker: #0A0E13;
    
    /* Text Colors */
    --text-primary: #E0E6ED;
    --text-secondary: #B8C5D1;
    --text-accent: #00FFFF;
    --text-highlight: #FF1493;
    
    /* Fonts */
    --font-cyber: 'Orbitron', monospace;
    --font-body: 'Exo 2', sans-serif;
    
    /* Shadows & Glows */
    --glow-pink: 0 0 20px rgba(255, 20, 147, 0.5);
    --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.5);
    --glow-strong-pink: 0 0 30px rgba(255, 20, 147, 0.8);
    --glow-strong-cyan: 0 0 30px rgba(0, 255, 255, 0.8);
    
    /* Animations */
    --pulse-duration: 2s;
    --hover-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--deep-space);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ===== CIRCUIT BOARD BACKGROUND ===== */
.circuit-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 255, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(255, 20, 147, 0.1) 100%);
    background-size: 50px 50px;
    animation: circuitPulse 4s ease-in-out infinite;
}

.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 65, 0.05) 0%, transparent 50%);
    animation: dataFlow 6s linear infinite;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes dataFlow {
    0% { transform: translateX(-10px) translateY(-10px); }
    25% { transform: translateX(10px) translateY(-5px); }
    50% { transform: translateX(-5px) translateY(10px); }
    75% { transform: translateX(5px) translateY(-10px); }
    100% { transform: translateX(-10px) translateY(-10px); }
}

/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 20, 38, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    padding: 15px 0;
}

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

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

.header .logo img {
    height: 50px;
    filter: drop-shadow(var(--glow-cyan));
    transition: var(--hover-transition);
}

.header .logo img:hover {
    filter: drop-shadow(var(--glow-strong-cyan));
    transform: scale(1.05);
}

.header .list ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.header .list ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-cyber);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: var(--hover-transition);
    position: relative;
}

.header .list ul li a:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.header .dropdown {
    position: relative;
}

.header .dropdown span::after {
    content: "▼";
    margin-left: 8px;
    font-size: 12px;
    color: var(--neon-pink);
}

.header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-pink);
    border-radius: 8px;
    box-shadow: var(--glow-pink);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1001;
}

.header .dropdown-menu li {
    margin: 0;
}

.header .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    font-size: 14px;
}

.header .dropdown-menu li a:hover {
    background: rgba(255, 20, 147, 0.1);
    color: var(--neon-pink);
    border-color: transparent;
    box-shadow: none;
    text-shadow: 0 0 10px var(--neon-pink);
}

/* ===== CYBER BUTTONS ===== */
.cosmobet-casino-btn1,
.cosmobet-casino-btn2 {
    display: inline-block;
    padding: 0;
    border: 2px solid;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-cyber);
    font-weight: 600;
    transition: var(--hover-transition);
    position: relative;
    overflow: hidden;
}

.cosmobet-casino-btn1 {
    border-color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: var(--glow-cyan);
}

.cosmobet-casino-btn2 {
    border-color: var(--neon-pink);
    background: rgba(255, 20, 147, 0.1);
    box-shadow: var(--glow-pink);
    margin-right: 15px;
}

.btn1, .btn2 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--hover-transition);
}

.btn1 {
    color: var(--neon-cyan);
}

.btn2 {
    color: var(--neon-pink);
}

.cosmobet-casino-btn1:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong-cyan);
    background: rgba(0, 255, 255, 0.2);
}

.cosmobet-casino-btn2:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong-pink);
    background: rgba(255, 20, 147, 0.2);
}

.cosmobet-casino-btn1:hover .btn1 {
    text-shadow: 0 0 15px var(--neon-cyan);
}

.cosmobet-casino-btn2:hover .btn2 {
    text-shadow: 0 0 15px var(--neon-pink);
}

/* ===== BURGER MENU ===== */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.burger span,
.burger::before,
.burger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: var(--neon-cyan);
    margin: 3px 0;
    transition: var(--hover-transition);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.burger:hover span,
.burger:hover::before,
.burger:hover::after {
    box-shadow: var(--glow-strong-cyan);
}

/* ===== MAIN CONTENT ===== */
.cosmobet-casino-body {
    margin-top: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.cyber-title {
    font-family: var(--font-cyber);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    margin-bottom: 40px;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { text-shadow: 0 0 20px var(--neon-cyan); }
    50% { text-shadow: 0 0 30px var(--neon-cyan), 0 0 40px var(--neon-cyan); }
}

.banner-container {
    margin: 40px 0;
    position: relative;
}

.cyber-frame {
    position: relative;
    display: inline-block;
    border: 3px solid var(--neon-pink);
    border-radius: 15px;
    padding: 10px;
    background: rgba(255, 20, 147, 0.05);
    box-shadow: var(--glow-pink);
    transition: var(--hover-transition);
    overflow: hidden;
}

.cyber-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-pink));
    border-radius: 15px;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cyber-frame:hover {
    transform: scale(1.02);
    box-shadow: var(--glow-strong-pink);
}

.cyber-frame img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    filter: brightness(1.1) contrast(1.1);
}

.desktop-image {
    display: block;
}

.mobile-image {
    display: none;
}

.cyber-cta {
    display: inline-block;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan));
    color: var(--void-black);
    font-family: var(--font-cyber);
    font-weight: 700;
    font-size: 20px;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.5);
    transition: var(--hover-transition);
    position: relative;
    overflow: hidden;
}

.cyber-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cyber-cta:hover::before {
    left: 100%;
}

.cyber-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.8);
}

/* ===== CONTENT CARDS ===== */
.content-card {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: var(--hover-transition);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.content-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-5px);
}

.cyber-heading {
    font-family: var(--font-cyber);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
    margin-bottom: 20px;
    font-weight: 700;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.cyber-list {
    list-style: none;
    padding-left: 0;
}

.cyber-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.cyber-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.cyber-list li strong {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

/* ===== CYBER TABLE ===== */
.cyber-table {
    background: rgba(10, 14, 19, 0.9);
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--glow-cyan);
    position: relative;
}

.cyber-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan), var(--neon-pink));
    animation: tableGlow 2s ease-in-out infinite;
}

@keyframes tableGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.cyber-table table {
    width: 100%;
    border-collapse: collapse;
}

.cyber-table th {
    background: rgba(0, 255, 255, 0.1);
    color: var(--neon-cyan);
    font-family: var(--font-cyber);
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.cyber-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--text-primary);
    transition: var(--hover-transition);
}

.cyber-table tr:hover td {
    background: rgba(255, 20, 147, 0.05);
    color: var(--neon-white);
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== FOOTER ===== */
.cyber-footer {
    background: rgba(11, 20, 38, 0.95);
    border-top: 2px solid var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
    margin-top: 60px;
    padding: 40px 0;
    text-align: center;
}

.cyber-footer img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(var(--glow-pink));
}

.footer-disclaimer {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.kopy {
    color: var(--text-secondary);
    font-family: var(--font-cyber);
    font-size: 14px;
    margin-top: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Fix main content margin to prevent H1 cutoff */
    .cosmobet-casino-body {
        margin-top: 140px; /* Increased from 100px to prevent title cutoff */
    }
    
    /* Fix header button alignment */
    .header .flex {
        align-items: center;
    }
    
    .header .flex .item:last-child {
        margin-left: auto; /* Push buttons container to the right */
    }
    
    .header .btns {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end; /* Right-align the buttons */
    }
    
    .cosmobet-casino-btn1,
    .cosmobet-casino-btn2 {
        min-width: 100px; /* Ensure consistent button width */
    }
    
    .cosmobet-casino-btn2 {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    /* Improve H1 title spacing and wrapping */
    .cyber-title {
        margin-top: 20px;
        margin-bottom: 30px;
        line-height: 1.2;
        padding: 0 10px; /* Add horizontal padding */
        word-wrap: break-word; /* Allow text wrapping */
        hyphens: auto; /* Enable hyphenation if needed */
    }
    
    .header .list {
        display: none;
    }
    
    .header .list.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(11, 20, 38, 0.98);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        z-index: 999;
    }
    
    .header .list.active ul {
        flex-direction: column;
        gap: 30px;
    }
    
    .header .list.active ul li a {
        font-size: 24px;
        padding: 15px 30px;
    }
    
    .burger {
        display: flex;
        z-index: 1001;
    }
    
    .burger.active span {
        opacity: 0;
    }
    
    .burger.active::before {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .burger.active::after {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .desktop-image {
        display: none;
    }
    
    .mobile-image {
        display: block;
    }
    
    .content-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .cyber-heading {
        font-size: 1.5rem;
    }
    
    .cyber-cta {
        font-size: 16px;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .cosmobet-casino-body {
        padding: 0 15px;
        margin-top: 150px; /* Extra margin for very small screens */
    }
    
    .content-card {
        padding: 15px;
    }
    
    .cyber-title {
        font-size: 1.8rem;
        padding: 0 5px; /* Tighter padding for small screens */
    }
    
    .cyber-table th,
    .cyber-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    /* Ensure buttons stay properly aligned on very small screens */
    .header .btns {
        gap: 6px;
    }
    
    .cosmobet-casino-btn1,
    .cosmobet-casino-btn2 {
        min-width: 90px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.cyber-frame,
.content-card,
.cosmobet-casino-btn1,
.cosmobet-casino-btn2 {
    will-change: transform;
}

.circuit-pattern,
.data-streams {
    will-change: transform, opacity;
}