/*
Copyright © 2025 Skinsurf (SURFNET)
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
https://creativecommons.org/licenses/by-nc-sa/4.0/
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Courier New', monospace;
}

body {
    background-color: #000;
    color: #0ffab3;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(15, 250, 179, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(15, 250, 179, 0.1) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.8) 70%);
    z-index: 2;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #0ffab3;
    box-shadow: 
        0 0 30px rgba(15, 250, 179, 0.3),
        inset 0 0 20px rgba(15, 250, 179, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
    transform: translateZ(20px);
}

.logo-image {
    max-width: 450px;
    height: auto;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 0 0 15px #0ffab3;
    animation: pulse 2s infinite;
    font-weight: 700;
}

.status-container {
    margin: 1.8rem 0;
    text-align: left;
}

.status-item {
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    display: flex;
    align-items: center;
}

.status-icon {
    width: 12px;
    height: 12px;
    background: #0ffab3;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 8px #0ffab3;
}

.status-bar {
    height: 8px;
    background: rgba(15, 250, 179, 0.15);
    width: 100%;
    margin-top: 6px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.status-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(15, 250, 179, 0.2), transparent);
    animation: shine 2s infinite;
}

.status-progress {
    height: 100%;
    background: linear-gradient(90deg, #0ffab3, #0af7b0);
    width: 0%;
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(15, 250, 179, 0.5);
}

.initiate-button {
    background: rgba(15, 250, 179, 0.1);
    color: #0ffab3;
    border: 1px solid #0ffab3;
    padding: 14px 36px;
    font-size: 1.2rem;
    margin-top: 2rem;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(15, 250, 179, 0.3);
}

.initiate-button:hover {
    background: rgba(15, 250, 179, 0.2);
    box-shadow: 0 0 20px rgba(15, 250, 179, 0.7);
    transform: translateY(-2px);
}

.initiate-button:active {
    transform: translateY(1px);
}

.initiate-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.initiate-button:hover::after {
    left: 100%;
}

.terminal {
    text-align: left;
    margin: 1.8rem 0;
    height: 140px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #0ffab3;
    padding: 12px;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(15, 250, 179, 0.1);
    position: relative;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 90%, rgba(15, 250, 179, 0.05) 90%),
                linear-gradient(90deg, transparent 98%, rgba(15, 250, 179, 0.05) 98%);
    background-size: 100% 20px, 20px 100%;
    pointer-events: none;
    z-index: 2;
}

.terminal-line {
    margin: 6px 0;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 0.5s steps(40, end);
    position: relative;
    padding-left: 20px;
}

.terminal-line::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #0ffab3;
}

.pulse {
    animation: pulse 2s infinite;
}

.redirect-message {
    margin-top: 1.8rem;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 1s ease;
    text-shadow: 0 0 5px #0ffab3;
}

.glitch-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 250, 179, 0.03);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    animation: glitch 10s infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes pulse {
    0% { opacity: 0.7; text-shadow: 0 0 10px #0ffab3; }
    50% { opacity: 1; text-shadow: 0 0 20px #0ffab3, 0 0 30px #0ffab3; }
    100% { opacity: 0.7; text-shadow: 0 0 10px #0ffab3; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes glitch {
    0%, 100% { opacity: 0; transform: translateX(0); }
    5% { opacity: 0.1; transform: translateX(-5px); }
    10% { opacity: 0.1; transform: translateX(5px); }
    15% { opacity: 0; transform: translateX(0); }
    48% { opacity: 0; }
    50% { opacity: 0.2; transform: translateY(-3px); }
    52% { opacity: 0; transform: translateY(3px); }
    54% { opacity: 0; transform: translateY(0); }
    96% { opacity: 0; }
    98% { opacity: 0.1; transform: translateX(3px) skewX(-10deg); }
    99% { opacity: 0; transform: translateX(0) skewX(0); }
}

@media (max-width: 768px) {
    .content {
        padding: 1.2rem;
        margin: 1rem;
        max-width: 90%;
        transform: scale(0.9);
        transform-origin: center top;
    }
    
    h1 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    .logo-image {
        max-width: 250px;
        margin-bottom: 0.5rem;
    }
    
    .terminal {
        height: 100px;
        margin: 1rem 0;
        font-size: 0.9rem;
    }
    
    .status-container {
        margin: 1rem 0;
        font-size: 0.9rem;
    }
    
    .status-item {
        margin: 0.6rem 0;
    }
    
    .status-bar {
        height: 6px;
    }
    
    .initiate-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 1.2rem;
    }
    
    .redirect-message {
        font-size: 0.9rem;
        margin-top: 1.2rem;
    }
    
    .terminal-line {
        margin: 4px 0;
        padding-left: 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .content {
        transform: scale(0.85);
        max-width: 95%;
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .logo-image {
        max-width: 200px;
    }
    
    .terminal {
        height: 80px;
        font-size: 0.8rem;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .status-container {
        font-size: 0.8rem;
    }
}