/*
Theme Name: Gamingsafe
Author: Your Name
Version: 1.0
*/

body { 
    font-family: 'Rajdhani', sans-serif; 
    background-color: #051405; 
}

.bonx-main-title { 
    font-family: 'Metal Mania', cursive; 
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 4px 4px 0px rgba(42, 143, 189, 0.4), 2px 2px 10px rgba(0, 0, 0, 0.8);
}

/* 1. The Outer Gold Frame (Diamond Cut Button) */
.bonx-btn {
    position: relative;
    background: linear-gradient(to bottom, #ffea00, #ffb703, #cc7a00);
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
    color: #ffffff;
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(42, 143, 189, 0.4));
}

/* 2. The Inner Blue Gem */
.bonx-btn::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    background: linear-gradient(135deg, #2a8fbd 0%, #227599 100%);
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
    z-index: -1;
}

/* 3. The 3D Glass Light Reflection */
.bonx-btn::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px; height: 45%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(255,255,255,0));
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
    z-index: -1;
}

.bonx-btn:hover {
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 0 15px rgba(42, 143, 189, 0.8));
}

/* 3D Glossy Arcade Play Button */
.arcade-play-btn {
    position: relative;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 35% 35%, #2a8fbd 0%, #227599 50%, #154c65 100%);
    border: 5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 4px 10px rgba(255, 255, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.arcade-play-btn::before {
    content: '';
    position: absolute;
    top: 10px; left: 15px;
    width: 22px; height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: rotate(-35deg);
}

.arcade-play-btn::after {
    content: '';
    position: absolute;
    bottom: 12px; right: 18px;
    width: 14px; height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.arcade-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(42, 143, 189, 0.5), inset 0 4px 10px rgba(255, 255, 102, 0.6);
}

/* Arcade Arrow Buttons - Perfect Spherical Orb */
.arcade-arrow-btn {
    position: relative;
    width: 65px;
    height: 65px;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #a2d2df 45%, #1d5b79 100%);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 3px 6px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

/* Top White Highlight Dot */
.arcade-arrow-btn::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 28px;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 5px #ffffff;
}

.arcade-arrow-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(42, 143, 189, 0.7), inset 0 3px 6px rgba(255, 255, 255, 1);
}

.arcade-arrow-btn:active {
    transform: scale(0.95);
}

/* Stagger delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* --- GLOBAL SMOOTH ANIMATIONS --- */

section:first-of-type {
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- AMBIENT GAMING PARTICLES --- */
.particle-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.gaming-particle {
    position: absolute;
    bottom: -20px;
    background: #2a8fbd;
    border-radius: 50%;
    box-shadow: 0 0 10px #2a8fbd, 0 0 20px #2a8fbd;
    opacity: 0.6;
    animation: riseUp linear infinite;
}

@keyframes riseUp {
    0% {
        transform: translateY(0) translateX(0) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-105vh) translateX(30px) scale(1.2);
        opacity: 0;
    }
}

/* --- HERO CRT SCANLINE & GLOW EFFECT --- */
.hero-scanline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    ), linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.03),
        rgba(42, 143, 189, 0.05),
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(42, 143, 189, 0.15);
    pointer-events: none;
    z-index: 2;
}

.hero-bg-blue {
    background-blend-mode: overlay;
    background-color: #2a8fbd;
}

@keyframes hyperBlueGlow {
    0% {
        border-color: #2a8fbd;
        box-shadow: 
            0 0 25px #2a8fbd,
            0 0 50px rgba(42, 143, 189, 0.8),
            0 0 90px rgba(42, 143, 189, 0.5),
            inset 0 0 30px rgba(42, 143, 189, 0.6);
    }
    50% {
        border-color: #66c2ff; /* Electric bright blue peak */
        box-shadow: 
            0 0 45px #2a8fbd,
            0 0 90px #2a8fbd,
            0 0 140px rgba(42, 143, 189, 0.9),
            inset 0 0 55px rgba(42, 143, 189, 0.9);
    }
    100% {
        border-color: #2a8fbd;
        box-shadow: 
            0 0 25px #2a8fbd,
            0 0 50px rgba(42, 143, 189, 0.8),
            0 0 90px rgba(42, 143, 189, 0.5),
            inset 0 0 30px rgba(42, 143, 189, 0.6);
    }
}

.cyber-game-card {
    border: 4.5px solid #2a8fbd;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    animation: hyperBlueGlow 1.4s infinite ease-in-out;
}

.cyber-game-card:hover {
    border-color: #66c2ff;
    box-shadow: 
        0 0 60px #2a8fbd,
        0 0 120px #2a8fbd,
        0 0 180px rgba(42, 143, 189, 1),
        inset 0 0 70px rgba(42, 143, 189, 1);
    animation: none;
    transform: translateY(-8px) scale(1.03);
}

/* --- MOBILE PERFORMANCE OPTIMIZATION --- */
@media (max-width: 768px) {
    .cyber-game-card {
        animation: none !important;
        box-shadow: 0 0 15px rgba(42, 143, 189, 0.4) !important;
    }
}