/* --- INÍCIO DO ARQUIVO CSS --- */

/* --- VARIÁVEIS E ESTILOS GLOBAIS --- */
:root {
    --fundo-escuro: #040D1F;
    --azul-neon: #00e5ff;
    --azul-painel: rgba(10, 25, 47, 0.7);
    --branco: #FFFFFF;
    --cinza-azulado: #A0AEC0;
    --font-titulo: 'Orbitron', sans-serif;
    --font-texto: 'Poppins', sans-serif;
    --header-height: 80px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--fundo-escuro);
    color: var(--cinza-azulado);
    font-family: var(--font-texto);
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

/* --- PRELOADER E ANIMAÇÃO DE ABERTURA --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--fundo-escuro); display: flex; justify-content: center; align-items: center; z-index: 10001; transition: opacity 1s ease, visibility 1s ease; }
#loading-container { text-align: center; transition: opacity 0.5s ease; }
#loading-text { font-family: var(--font-titulo); color: var(--cinza-azulado); font-size: 1rem; letter-spacing: 5px; margin-bottom: 20px; }
#loading-bar-frame { width: 250px; height: 8px; border: 1px solid var(--azul-neon); border-radius: 5px; overflow: hidden; }
#loading-bar-fill { width: 0%; height: 100%; background: var(--azul-neon); border-radius: 5px; animation: fill-loading-bar 2.5s ease-out forwards; }
@keyframes fill-loading-bar { to { width: 100%; } }
#animated-photo-container { position: absolute; width: 350px; max-width: 80vw; opacity: 0; transition: opacity 0.8s ease; }
#animated-photo { width: 100%; height: auto; animation: photo-emerge 3s ease-out forwards; animation-play-state: paused; }
#animated-photo-container::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 8px; box-shadow: 0 0 15px var(--azul-neon), 0 0 30px var(--azul-neon); animation: neon-flicker-and-pulse 3s ease-in-out forwards; animation-play-state: paused; opacity: 0; }
@keyframes photo-emerge { 0% { opacity: 0; filter: blur(20px); transform: scale(0.9); } 100% { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes neon-flicker-and-pulse { 0%, 20% { opacity: 0; } 30% { opacity: 0.8; } 40% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 1; box-shadow: 0 0 20px var(--azul-neon), 0 0 40px var(--azul-neon); } }
#curtain-transition { position: fixed; bottom: -100%; left: 0; width: 100%; height: 100%; background-color: var(--fundo-escuro); z-index: 10000; transition: bottom 0.8s cubic-bezier(0.86, 0, 0.07, 1); }
#curtain-transition.active { bottom: 0; }

/* --- FUNDO MATRIX --- */
#matrix-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

/* --- CONTEÚDO PRINCIPAL --- */
#main-site-content { opacity: 0; transition: opacity 1.5s ease; padding-top: var(--header-height); }

/* --- CABEÇALHO E NAVEGAÇÃO --- */
.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }
.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 20, 0.5); /* Fundo vidro fosco sutil */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    width: 100%;
}
.logo {
    font-family: var(--font-titulo);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--azul-neon);
    text-shadow: 0 0 8px var(--azul-neon), 0 0 12px var(--azul-neon);
    text-decoration: none;
}
.main-header ul { list-style: none; display: flex; gap: 30px; }
.main-header ul li a {
    position: relative;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--branco);
    padding: 5px 0;
    transition: color 0.3s ease;
    font-family: var(--font-titulo);
}
.main-header ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--azul-neon);
    box-shadow: 0 0 5px var(--azul-neon), 0 0 10px var(--azul-neon);
    transition: width 0.3s ease;
}
.main-header ul li a:hover::after { width: 100%; }
.main-header ul li a:hover { color: var(--azul-neon); }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.menu-toggle span { background: var(--azul-neon); height: 3px; width: 25px; margin: 4px 0; border-radius: 2px; transition: 0.3s ease; }

/* --- SEÇÃO HERO --- */
.hero-section { height: 100vh; margin-top: calc(-1 * var(--header-height)); display: flex; justify-content: center; align-items: center; text-align: center; padding: 0 20px; }
.hero-content h1 { font-family: var(--font-titulo); font-size: 3.5rem; color: var(--branco); font-weight: 700; }
.hero-content h1.hide-cursor::after { display: none; }
.hero-content h1::after { content: '_'; opacity: 1; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-content p { font-size: 1.5rem; color: var(--cinza-azulado); margin-top: 1rem; margin-bottom: 2rem; }
.cta-button { display: inline-block; padding: 15px 35px; border: 2px solid var(--azul-neon); border-radius: 50px; color: var(--branco); text-decoration: none; font-weight: bold; transition: all 0.3s ease; }
.cta-button:hover { background-color: var(--azul-neon); color: var(--fundo-escuro); box-shadow: 0 0 20px var(--azul-neon); transform: translateY(-3px); }

/* --- ESTILOS GERAIS DE SEÇÃO --- */
.content-section { padding: 120px 20px; max-width: 1100px; margin: 0 auto; text-align: center; }
.content-section h2 { font-family: var(--font-titulo); font-size: 2.8rem; color: var(--branco); margin-bottom: 20px; text-shadow: 0 0 15px rgba(0, 191, 255, 0.5); }
.section-intro { font-size: 1.2rem; max-width: 700px; margin: 0 auto 60px auto; line-height: 1.7; }
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- SEÇÃO SOBRE MIM --- */
.about-me-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; text-align: left; }
.about-photo img { width: 100%; height: auto; object-fit: cover; border-radius: 10px; border: 2px solid var(--azul-neon); box-shadow: 0 0 25px rgba(0, 191, 255, 0.3); }
.about-text { background-color: var(--azul-painel); border-radius: 10px; padding: 30px; backdrop-filter: blur(5px); height: auto; }
.about-text p { margin-bottom: 15px; line-height: 1.8; }
.about-text strong { color: var(--azul-neon); font-weight: 600; }

/* --- SEÇÃO PORTFÓLIO (CARROSSEL 3D) --- */
.scene { perspective: 1200px; width: 100%; height: 400px; display: flex; justify-content: center; align-items: center; position: relative; }
.carousel { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); }
.card { position: absolute; width: 180px; height: 240px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); transition: transform 0.5s ease, opacity 0.5s ease; color: #fff; text-align: center; cursor: pointer; transform-origin: center center; }
.card img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.card h3 { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 500; font-family: var(--font-titulo); color: var(--branco); text-shadow: 0 0 8px #000; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: var(--azul-painel); border: 1px solid var(--azul-neon); color: var(--azul-neon); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; z-index: 100; backdrop-filter: blur(5px); transition: all 0.3s ease; }
.carousel-nav:hover { background-color: var(--azul-neon); color: var(--fundo-escuro); box-shadow: 0 0 15px var(--azul-neon); }
.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }
.popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); background-color: var(--fundo-escuro); padding: 2rem; width: 90%; max-width: 600px; border-radius: 15px; border: 1px solid var(--azul-neon); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); display: none; opacity: 0; transition: all 0.3s ease; z-index: 10002; }
.popup.show { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.popup h2 { font-family: var(--font-titulo); }
.popup p { margin: 15px 0; line-height: 1.7; }
.popup p strong { color: var(--azul-neon); }
.popup-buttons { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; border-top: 1px solid rgba(0, 229, 255, 0.2); padding-top: 20px; }
.popup-link-btn { display: inline-block; padding: 12px 25px; background: var(--azul-neon); color: var(--fundo-escuro); text-decoration: none; font-weight: bold; font-family: var(--font-titulo); border-radius: 5px; transition: all 0.3s ease; }
.popup-link-btn:hover { background: var(--branco); box-shadow: 0 0 15px var(--branco); }
.popup-close { background-color: transparent; border: 1px solid var(--cinza-azulado); font-size: 15px; font-weight: bold; padding: 10px 20px; color: var(--cinza-azulado); border-radius: 8px; cursor: pointer; }

/* --- SEÇÃO SOLUÇÕES --- */
.solutions-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; text-align: left; }
.solutions-photo-column img { width: 100%; border-radius: 15px; }
.services-container { background-color: rgba(4, 13, 31, 0.5); padding: 30px 40px; border-radius: 15px; border: 1px solid rgba(0, 229, 255, 0.3); backdrop-filter: blur(10px); }
.services-title { color: var(--branco); text-align: center; font-family: var(--font-titulo); font-size: 2.5rem; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 5px var(--azul-neon), 0 0 10px var(--azul-neon); }
.services-list { list-style: none; padding: 0; margin: 0; }
.service-item { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(0, 170, 255, 0.2); transition: background-color 0.3s ease; }
.service-item:last-child { border-bottom: none; }
.service-item:hover { background-color: rgba(0, 170, 255, 0.05); }
.service-icon { font-size: 1.8rem; margin-right: 20px; color: var(--azul-neon); width: 40px; text-align: center; transition: transform 0.4s ease; }
.service-item:hover .service-icon { transform: scale(1.2) rotateY(360deg); }
.service-text { text-align: left; }
.service-name { color: var(--branco); font-size: 1.2rem; font-weight: 500; margin: 0; transition: color 0.3s ease; }
.service-item:hover .service-name { color: var(--azul-neon); }
.service-description { color: var(--cinza-azulado); font-size: 0.9rem; font-weight: 300; margin: 5px 0 0 0; }

/* --- DIVISOR NEON --- */
.stylish-divider { border: 0; height: 2px; background-image: linear-gradient(to right, transparent, var(--azul-neon), transparent); margin: 80px auto; width: 50%; opacity: 0.5; }

/* --- SEÇÃO CONTATO --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; text-align: left; }
.contact-form-wrapper form { display: flex; flex-direction: column; gap: 20px; }
.contact-form-wrapper input, .contact-form-wrapper textarea { width: 100%; background: rgba(10, 25, 47, 0.8); border: 1px solid rgba(0, 191, 255, 0.3); border-radius: 5px; padding: 15px; font-size: 1rem; color: var(--branco); }
.contact-form-wrapper input:focus, .contact-form-wrapper textarea:focus { outline: none; border-color: var(--azul-neon); box-shadow: 0 0 10px rgba(0, 191, 255, 0.5); }
.form-buttons { display: flex; gap: 15px; }
.form-buttons button { flex: 1; padding: 15px; border-radius: 5px; border: none; cursor: pointer; font-weight: bold; font-family: var(--font-titulo); }
.form-buttons button[type="submit"] { background-color: var(--azul-neon); color: var(--fundo-escuro); }
.form-buttons button[type="reset"] { background-color: transparent; border: 1px solid var(--cinza-azulado); color: var(--cinza-azulado); }

/* --- SEÇÃO WHATSAPP E REDES SOCIAIS FINAL --- */
#connect { padding: 60px 20px; }
.whatsapp-cta-container { margin-bottom: 60px; }
.whatsapp-button { display: inline-flex; align-items: center; gap: 15px; padding: 15px 35px; background: var(--azul-neon); color: var(--fundo-escuro); border-radius: 50px; text-decoration: none; font-family: var(--font-titulo); font-size: 1.2rem; font-weight: 700; box-shadow: 0 0 20px var(--azul-neon); transition: all 0.3s ease; }
.whatsapp-button:hover { transform: scale(1.05); }
.whatsapp-button i { font-size: 1.8rem; }
.socials p { margin-bottom: 20px; font-size: 1.1rem; }
.social-links-final a { font-size: 2.5rem; color: var(--cinza-azulado); margin: 0 15px; transition: all 0.3s ease; }
.social-links-final a:hover { color: var(--branco); text-shadow: 0 0 10px var(--azul-neon); transform: scale(1.2); }

/* --- RODAPÉ --- */
.main-footer { padding: 30px 20px; text-align: center; background-color: rgba(4, 13, 31, 0.7); backdrop-filter: blur(10px); border-top: 1px solid rgba(0, 191, 255, 0.2); }
.main-footer p { font-size: 0.9rem; margin: 5px 0; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .header-nav .nav-list { display: none; }
    .nav-toggle { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.1rem; }
    .about-me-layout, .contact-layout, .solutions-layout { grid-template-columns: 1fr; }
    .about-photo, .solutions-photo-column { margin: 0 auto 30px auto; order: -1; }
    .scene { height: 340px; }
    .carousel-nav { display: none; }
}