/* Premium Apex Hero Styles */
:root {
    --apex-primary: #00c853;
    --apex-secondary: #69ff47;
    --apex-dark: #050505;
}

.hero-apex {
    position: relative;
    min-height: auto;
    background-color: var(--apex-dark);
    background-image: var(--hero-dynamic-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0 20px 0;
}

.hero-apex::after {
    display: none;
}

.apex-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.apex-img-container {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: 120%;
    z-index: 2;
}

.apex-main-img {
    width: 100%;
    height: 100%;
    background: var(--hero-dynamic-bg, url('../images/hero_bg.png')) no-repeat center center/cover;
    mask-image: linear-gradient(to bottom, black 0%, black 95%, transparent 100%),
                linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 95%, transparent 100%),
                        linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    opacity: 0.95;
}

.apex-hero-badge {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.apex-hero-badge .apex-glow-ring,
.apex-glow-ring {
    position: absolute;
    inset: -14px;
    width: auto;
    height: auto;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        from 0deg,
        #00e676 0deg 35deg,
        transparent 35deg 45deg,
        #00f0ff 45deg 80deg,
        transparent 80deg 90deg,
        #00e676 90deg 125deg,
        transparent 125deg 135deg,
        #00f0ff 135deg 170deg,
        transparent 170deg 180deg,
        #00e676 180deg 215deg,
        transparent 215deg 225deg,
        #00f0ff 225deg 260deg,
        transparent 260deg 270deg,
        #00e676 270deg 305deg,
        transparent 305deg 315deg,
        #00f0ff 315deg 350deg,
        transparent 350deg 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 2.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 2.5px));
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.6)) drop-shadow(0 0 15px rgba(0, 240, 255, 0.35));
    animation: rotateCyberReactor 16s linear infinite;
}

/* Inner Counter-Rotating Orbit Accents */
.apex-glow-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dotted rgba(0, 240, 255, 0.55);
    box-shadow: inset 0 0 12px rgba(0, 230, 118, 0.25);
    animation: rotateCyberCounter 10s linear infinite;
}

/* Outer Pulsing Aura */
.apex-glow-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(0, 230, 118, 0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    animation: pulseCyberAura 3s ease-in-out infinite;
}

/* Futuristic Cyber HUD Targeting Brackets */
.apex-cyber-brackets {
    position: absolute;
    inset: -22px;
    pointer-events: none;
    z-index: 2;
}

.ac-bracket {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #00e676;
    border-style: solid;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 230, 118, 0.7));
}

.ac-tl { top: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.ac-tr { top: 0; right: 0; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.ac-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; }
.ac-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

.apex-hero-badge:hover .ac-bracket {
    width: 18px;
    height: 18px;
    border-color: #00f0ff;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.9));
}

.apex-hero-badge .apex-ring-icon,
.apex-ring-icon {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    animation: none;
    width: 124px;
    height: 124px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.16) 0%, rgba(6, 14, 10, 0.92) 75%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(0, 230, 118, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 200, 83, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 3;
}

.apex-hero-badge:hover .apex-ring-icon,
.apex-ring-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 230, 118, 0.45);
}

.ring-logo-img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 12px rgba(0, 230, 118, 0.45));
    transition: transform 0.3s ease;
}

.apex-hero-badge:hover .ring-logo-img,
.apex-ring-icon:hover .ring-logo-img {
    transform: scale(1.08);
}

/* Hero bottom blur removed from hero - moved towards popular games page */
.hero-bottom-blur {
    display: none;
}

@keyframes rotateCyberReactor {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCyberCounter {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes pulseCyberAura {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0 0 12px rgba(0, 230, 118, 0.6)); }
}

.apex-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--apex-dark) 0%, rgba(5, 5, 5, 0.92) 45%, rgba(5, 5, 5, 0.6) 65%, transparent 88%);
    z-index: 3;
}

/* Container Centered (Red X area in hero) */
.hero-apex .apex-container,
.apex-container {
    position: relative;
    z-index: 10;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(35px, 4.5vw, 85px) !important;
    max-width: 1440px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: clamp(20px, 3vw, 40px) !important;
    padding-right: clamp(20px, 3vw, 40px) !important;
}

.apex-left {
    max-width: 540px;
    padding-left: 0;
    position: relative;
    z-index: 20;
    margin-left: 0;
    flex-shrink: 0;
}

.apex-tag {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.apex-line {
    width: 40px;
    height: 2px;
    background: var(--apex-primary);
}

.apex-tag-text {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--apex-secondary);
}

.apex-title {
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    font-weight: 900;
    line-height: 0.90;
    margin-bottom: 25px;
    margin-top: 0;
    letter-spacing: -0.5px;
}

.apex-h-1 {
    display: block;
    white-space: nowrap;
    color: #fff;
    text-shadow: none;
}

.apex-h-2 {
    display: block;
    white-space: nowrap;
    color: var(--apex-primary);
    background: linear-gradient(to right, var(--apex-primary), var(--apex-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 200, 83, 0.15));
}

.apex-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 45px;
    border-left: 4px solid var(--apex-primary);
    padding-left: 25px;
}

/* Actions */
.apex-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-apex-main {
    padding: 18px 40px;
    background: #fff;
    color: #000;
    border-radius: 4px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.btn-apex-main:hover {
    background: var(--apex-primary);
    transform: translateX(10px);
}

.btn-apex-sub {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.btn-apex-sub:hover {
    border-color: var(--apex-primary);
    color: var(--apex-primary);
    background: rgba(0, 200, 83, 0.05);
}

/* Right Side Cards */
.apex-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 20;
}

.apex-stat-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    gap: 40px;
}

.as-row {
    display: flex;
    flex-direction: column;
}

.as-n {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.as-l {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.apex-floating-card {
    background: linear-gradient(135deg, var(--apex-primary), #e06500);
    padding: 20px 30px;
    border-radius: 20px;
    color: #000;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0, 200, 83, 0.2);
    animation: floatCard 4s infinite ease-in-out;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Revolver Animation Styles */
.apex-revolver-container {
    margin-top: 100px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
}

.revolver-body {
    width: 140px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0; /* Silver/Steel look */
    font-size: 4.5rem;
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 8px rgba(0, 200, 83, 0.15));
    transform-origin: center left;
    animation: gunFloat 3s infinite ease-in-out;
}

@keyframes gunFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(10px) rotate(2deg); }
}

.revolver-body.recoil {
    animation: gunRecoil 0.2s ease-out;
}

@keyframes gunRecoil {
    0% { transform: scale(1) rotate(0); }
    50% { transform: scale(0.9) rotate(-30deg) translateX(-20px); }
    100% { transform: scale(1) rotate(0); }
}

.muzzle-flash {
    position: absolute;
    right: -20px;
    top: 30%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #fff 0%, #00c853 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.muzzle-flash.fire {
    animation: flashAnim 0.1s ease-out;
}

@keyframes flashAnim {
    0% { transform: translateY(-50%) scale(0); opacity: 0; }
    50% { transform: translateY(-50%) scale(1.5); opacity: 1; }
    100% { transform: translateY(-50%) scale(2); opacity: 0; }
}

.apex-bullet {
    position: absolute;
    left: 100px;
    top: 30%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.apex-bullet.shoot {
    animation: bulletTravel 1.5s cubic-bezier(0.1, 0, 0.9, 1) forwards;
}

@keyframes bulletTravel {
    0% { transform: translate(0, -50%) scale(1); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(1400px, -50%) scale(1.2); opacity: 0; }
}

.bullet-head {
    width: 30px;
    height: 10px;
    background: linear-gradient(90deg, #fff, #69ff47, #00c853);
    border-radius: 0 100px 100px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.bullet-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    text-shadow: none;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-style: italic;
    animation: textGlow 1s infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: none; }
    to { text-shadow: none; }
}

.apex-side-label {
    position: absolute;
    left: -100px;
    bottom: 150px;
    transform: rotate(-90deg);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

/* Animations */
.fade-in-left { animation: fadeInLeft 1s ease backwards; }
.fade-in-left-delay-1 { animation: fadeInLeft 1s ease 0.2s backwards; }
.fade-in-left-delay-2 { animation: fadeInLeft 1s ease 0.4s backwards; }
.fade-in-left-delay-3 { animation: fadeInLeft 1s ease 0.6s backwards; }
.fade-in-right { animation: fadeInRight 1s ease 0.4s backwards; }

@keyframes fadeInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 992px) {
    .hero-apex { padding: 100px 0 30px 0; }
    .apex-container { flex-direction: column; text-align: center; gap: 60px; }
    .apex-img-container { display: none; }
    .apex-overlay { background: var(--apex-dark); opacity: 0.9; }
    .apex-description { border-left: none; padding-left: 0; }
    .apex-actions { justify-content: center; }
}


