/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    line-height: 1.6;
    color: white;
    background: #0a0a0a;
    overflow: hidden;
    min-height: 100vh;
}

/* Matrix Background */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    z-index: 1;
}

.matrix-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 110, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, rgba(57, 255, 20, 0.1) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px, 120px 120px;
    animation: matrixRain 20s linear infinite;
}

@keyframes matrixRain {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Neon grid overlay */
.neon-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 2;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* Main container */
.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 2rem;
}

/* Content area */
.content {
    position: relative;
    z-index: 20;
    text-align: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 2px solid #00FFFF;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 90%;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glitch text effect */
.glitch-container {
    position: relative;
    margin-bottom: 2rem;
}

.glitch-text {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00FFFF, #FF006E, #39FF14, #FFFF00);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite, textGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(0,255,255,0.8));
    letter-spacing: 0.1em;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textGlow {
    0% { filter: drop-shadow(0 0 15px rgba(0,255,255,0.6)); }
    100% { filter: drop-shadow(0 0 25px rgba(0,255,255,1)); }
}

/* Holographic scanlines */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg, 
        transparent, 
        transparent 4px, 
        rgba(0,255,255,0.1) 4px, 
        rgba(0,255,255,0.1) 6px
    );
    animation: scanlines 3s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes scanlines {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(10px); }
}

/* Status indicator */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(255, 0, 110, 0.1) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background-color: #FF0000;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px #FF0000;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.status-text {
    font-weight: 700;
    color: #FF006E;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

/* Message box */
.message-box {
    margin-bottom: 2.5rem;
}

.lock-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: lockFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 0, 0.8));
}

@keyframes lockFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.access-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFF00;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.access-message {
    font-size: 1.1rem;
    color: #00FFFF;
    margin-bottom: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.contact-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.highlight {
    color: #39FF14;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

/* Animated divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.divider-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #00FFFF, transparent);
}

.divider-line.left {
    background: linear-gradient(90deg, transparent, #00FFFF);
}

.divider-line.right {
    background: linear-gradient(90deg, #FF006E, transparent);
}

.divider-dot {
    width: 8px;
    height: 8px;
    background: #00FFFF;
    border-radius: 50%;
    margin: 0 1rem;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px #00FFFF;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.footer p {
    font-size: 0.9rem;
    color: #00FFFF;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.copyright {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 400 !important;
}

/* Ambient particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00FFFF;
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 10px #00FFFF;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation: float 5s ease-in-out infinite 0s;
}

.particle:nth-child(2) {
    left: 80%;
    top: 30%;
    animation: float 6s ease-in-out infinite 1s;
}

.particle:nth-child(3) {
    left: 30%;
    top: 70%;
    animation: float 4s ease-in-out infinite 2s;
}

.particle:nth-child(4) {
    left: 70%;
    top: 80%;
    animation: float 7s ease-in-out infinite 0.5s;
}

.particle:nth-child(5) {
    left: 50%;
    top: 10%;
    animation: float 5.5s ease-in-out infinite 1.5s;
}

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

/* Common animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Responsive design */
@media (max-width: 768px) {
    .content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .glitch-text {
        font-size: 2rem;
    }
    
    .access-title {
        font-size: 1.5rem;
    }
    
    .access-message {
        font-size: 1rem;
    }
    
    .lock-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1.5rem 1rem;
    }
    
    .glitch-text {
        font-size: 1.8rem;
    }
    
    .access-title {
        font-size: 1.3rem;
    }
    
    .status-text {
        font-size: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .content {
        background: black;
        color: white;
        border: 2px solid white;
    }
    
    .glitch-text {
        color: white;
        -webkit-text-fill-color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .matrix-background::before,
    .neon-grid,
    .glitch-text,
    .scanlines,
    .status-dot,
    .lock-icon,
    .divider-dot,
    .particle {
        animation: none;
    }
}