/* ===========================================
   EVENTS.CSS - Cinematic Events & Infinity Stones
   =========================================== */

/* Cinematic Events Section */
.cinematic-events {
    height: 100vh;
    overflow: hidden;
    position: relative;
    padding: 0;
}

#events-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Events Title Overlay - Creative Design */
.events-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    background: transparent;
    padding: 2rem;
}

.events-overlay .section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--neon-green);
    text-shadow:
        0 3px 9px #000,
        0 1px 2px #000;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.events-overlay .section-subtitle {
    font-family: var(--font-cyber);
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.events-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.events-scroll-indicator .scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--neon-green);
    border-bottom: 2px solid var(--neon-green);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px #000) drop-shadow(0 0 10px #000);
}

/* Infinity Stones Overlay */
.stones-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    display: block;
}

.stone-btn {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    z-index: 20;
}

.stone-btn img {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    transition: 0.3s ease-in-out;
    animation: floatStone 8s infinite ease-in-out;
}

@keyframes floatStone {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stone-btn:hover img {
    transform: scale(1.3);
    filter: drop-shadow(0 0 25px currentColor);
}

.stone-label {
    margin-top: 10px;
    font-family: var(--font-cyber);
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    border: 1px solid var(--neon-green);
}

.stone-btn:hover .stone-label {
    opacity: 1;
    transform: translateY(0);
}



.stones-instruction {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-cyber);
    color: rgba(57, 255, 20, 0.8);
    font-size: 0.9rem;
    letter-spacing: 2px;
    z-index: 20;
    pointer-events: none;
    animation: flashInstruction 2s infinite;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
    white-space: nowrap;
}

@keyframes flashInstruction {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Specific Stone Positioning & Colors */
/* Left Branch */
#stone-space {
    top: 16%;
    left: 28%;
    color: #00e5ff;
}

#stone-mind {
    top: 35%;
    left: 15%;
    color: #ffd700;
}

#stone-reality {
    top: 65%;
    left: 17%;
    color: #ff0000;
}

/* Right Branch */
#stone-soul {
    top: 18%;
    right: 28%;
    color: #ff8c00;
}

#stone-time {
    top: 36%;
    right: 15%;
    color: #00ff41;
}

#stone-power {
    top: 68%;
    right: 13%;
    color: #a020f0;
}