/* Renzlab Index Page - Landing Page Styles */

body {
    overflow: hidden;
}

/* Animated Grid */
.grid-overlay {
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 255, 0, 0.5);
    border-radius: 50%;
    animation: float 15s infinite;
    will-change: transform, opacity;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; animation-duration: 15s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; animation-duration: 19s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; animation-duration: 14s; }

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Light Beams */
.light-beam {
    position: fixed;
    top: -50%;
    width: 100px;
    height: 200%;
    background: linear-gradient(to bottom, 
        rgba(0, 255, 0, 0) 0%,
        rgba(0, 255, 0, 0.05) 50%,
        rgba(0, 255, 0, 0) 100%);
    z-index: 2;
    animation: beamMove 10s ease-in-out infinite;
    will-change: opacity;
}

.light-beam:nth-child(1) { left: 20%; animation-delay: 0s; }
.light-beam:nth-child(2) { left: 50%; animation-delay: 3s; }
.light-beam:nth-child(3) { left: 80%; animation-delay: 6s; }

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

/* Main Content Container */
.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

/* Renzlab Logo/Title */
.lab-title {
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 10px rgba(0, 255, 0, 0.5),
        0 0 20px rgba(0, 255, 0, 0.3),
        0 0 30px rgba(0, 255, 0, 0.2);
    animation: titleGlow 3s ease-in-out infinite;
    will-change: text-shadow;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(0, 255, 0, 0.5),
            0 0 20px rgba(0, 255, 0, 0.3),
            0 0 30px rgba(0, 255, 0, 0.2);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(0, 255, 0, 0.8),
            0 0 30px rgba(0, 255, 0, 0.5),
            0 0 40px rgba(0, 255, 0, 0.3);
    }
}

.lab-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 4rem;
    letter-spacing: 0.2rem;
}

/* Power Button */
.power-button-container {
    position: relative;
}

.power-button {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1f2e, #0f1419);
    border: 3px solid #00ff00;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        0 0 40px rgba(0, 255, 0, 0.2),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    animation: pulse 2s ease-in-out infinite;
    will-change: transform, box-shadow;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 255, 0, 0.3),
            0 0 40px rgba(0, 255, 0, 0.2),
            inset 0 0 20px rgba(0, 255, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 255, 0, 0.5),
            0 0 60px rgba(0, 255, 0, 0.3),
            inset 0 0 30px rgba(0, 255, 0, 0.2);
    }
}

.power-button:hover {
    transform: scale(1.1);
    border-color: #00ff00;
    box-shadow: 
        0 0 40px rgba(0, 255, 0, 0.6),
        0 0 80px rgba(0, 255, 0, 0.4),
        inset 0 0 30px rgba(0, 255, 0, 0.2);
}

.power-button:active {
    transform: scale(1.05);
}

.power-button:focus {
    outline: 3px solid var(--accent-green);
    outline-offset: 8px;
}

/* Power Icon */
.power-icon {
    width: 60px;
    height: 60px;
    position: relative;
}

.power-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 35px;
    background: #00ff00;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.power-icon::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border: 4px solid #00ff00;
    border-top-color: transparent;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.button-text {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #00ff00;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0e1a;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lab-title {
        font-size: 3rem;
        letter-spacing: 0.2rem;
    }

    .lab-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .power-button {
        width: 120px;
        height: 120px;
    }

    .power-icon {
        width: 50px;
        height: 50px;
    }

    .power-icon::before {
        height: 28px;
    }

    .power-icon::after {
        width: 40px;
        height: 40px;
    }
}
