/* RESET E CONFIGURAÇÕES GLOBAIS */
:root {
    --electric-blue: #00FFFF;
    --white: #FFFFFF;
    --black: #000000;
    --glow-color: rgba(0, 255, 255, 0.75);
    --neon-white-glow: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden; /* Evita barras de rolagem indesejadas */
    height: 100vh;
    width: 100vw;
}

.hidden {
    display: none !important;
}

/* 1. ESTILO DO SCREENSAVER */
#screensaver {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    cursor: pointer;
    z-index: 1000;
}

#bouncing-text {
    position: absolute;
    font-size: 5vw;
    font-weight: bold;
    color: var(--white);
    text-shadow:
        0 0 7px var(--neon-white-glow),
        0 0 10px var(--neon-white-glow),
        0 0 21px var(--neon-white-glow),
        0 0 42px var(--electric-blue),
        0 0 82px var(--electric-blue),
        0 0 92px var(--electric-blue),
        0 0 102px var(--electric-blue),
        0 0 151px var(--electric-blue);
    will-change: top, left; /* Otimização de performance para animação */
}


/* 2. ESTILO DA TELA DE LOGIN */
#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 500;
    animation: fadeIn 0.5s ease-in;
}

#login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px;
    border: 1px solid var(--electric-blue);
    border-radius: 5px;
    background-color: rgba(0,0,0,0.5);
    box-shadow: 0 0 15px var(--glow-color);
}

.logo-placeholder {
    font-size: 48px;
    font-weight: bold;
    color: var(--electric-blue);
    margin-bottom: 20px;
}

#login-form input, #login-form button {
    font-family: 'Courier New', Courier, monospace;
    width: 250px;
    padding: 10px;
    background-color: var(--black);
    border: 1px solid var(--white);
    color: var(--white);
    text-align: center;
    font-size: 16px;
}

#login-form input[type="text"] {
    cursor: not-allowed;
    color: #999;
}

#login-form button {
    border: 1px solid var(--electric-blue);
    color: var(--electric-blue);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#login-form button:hover {
    background-color: var(--electric-blue);
    color: var(--black);
}

#error-message {
    color: red;
    font-size: 14px;
}

/* 3. CONTEÚDO PRINCIPAL */
#main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 20px;
    animation: fadeIn 1s ease-in;
}

/* CARROSSEL */
#info-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    text-align: center;
    margin-bottom: 50px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    visibility: hidden;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.carousel-slide h2 {
    color: var(--electric-blue);
    font-size: 24px;
    margin-bottom: 10px;
}

/* PORTFÓLIO */
#portfolio {
    text-align: center;
}

#portfolio h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--white);
}

.portfolio-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-links a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--white);
    transition: all 0.3s;
}

.portfolio-links a:hover {
    color: var(--black);
    background-color: var(--electric-blue);
    border-color: var(--electric-blue);
}


/* LINK WHATSAPP */
#whatsapp-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    animation: fadeIn 1s ease-in;
}
#whatsapp-link img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s;
}
#whatsapp-link:hover img {
    transform: scale(1.1);
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}