/* ===== Globais ===== */
:root {
    --laranja: #ff6b00;
    --laranja-hover: #e65c00;
    --fundo: #0a0a0a;
    --card: #151515;
    --card-2: #1f1f1f;
    --texto-suave: #a3a3a3;
    --borda: #2a2a2a;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { background: var(--fundo); color: #fff; overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--laranja); outline-offset: 4px; }

/* ===== Header ===== */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(10, 10, 10, .65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all .4s ease;
}
header.rolou { background: rgba(10, 10, 10, .95); padding: 15px 5%; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }

.logo { 
    font-size: 20px; font-weight: 900; letter-spacing: 1.5px; 
    color: #fff; text-decoration: none; display: flex; gap: 8px; align-items: center;
}
.logo span { color: var(--laranja); }

nav { display: flex; align-items: center; gap: 30px; }
nav a { color: #e0e0e0; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: .3s; cursor: pointer; position: relative; }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -6px; left: 0; background: var(--laranja); transition: .3s; }
nav a:hover { color: #fff; }
nav a:hover::after { width: 100%; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 1001; }
.menu-toggle span { display: block; width: 28px; height: 3px; background: #fff; margin: 6px 0; border-radius: 4px; transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 140px 5% 60px;
    background: linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 100%),
        url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?q=80&w=1920&auto=format&fit=crop') center/cover;
    position: relative;
}
.hero-content { max-width: 700px; animation: entrada .9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 25px; font-weight: 800; letter-spacing: -1px; }
.laranja { color: var(--laranja); text-shadow: 0 0 40px rgba(255, 107, 0, 0.3); }
.hero p { font-size: 1.15rem; color: var(--texto-suave); margin-bottom: 40px; max-width: 550px; }

.btn-principal {
    display: inline-flex; justify-content: center; align-items: center;
    background: linear-gradient(135deg, var(--laranja), #ff8c33); color: #fff; padding: 16px 40px;
    text-decoration: none; border-radius: 8px; font-weight: 700; font-size: 1.05rem;
    transition: all .3s ease; box-shadow: 0 8px 25px rgba(255,107,0,.3); border: 0; cursor: pointer;
    letter-spacing: 0.5px;
}
.btn-principal:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(255,107,0,.5); }

/* Animação Typewriter */
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 60px; }
.typewriter-container { font-size: 2.2rem; font-weight: 800; min-height: 3rem; letter-spacing: -0.5px; }
.cursor { animation: blink 0.8s infinite; color: var(--laranja); font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes entrada { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ===== Seções ===== */
section { padding: 100px 5%; text-align: center; }
section h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; font-weight: 800; letter-spacing: -0.5px; }
.sub { color: var(--texto-suave); margin-bottom: 50px; font-size: 1.1rem; }

/* ===== Dashboard de serviços ===== */
.dashboard {
    display: grid; grid-template-columns: 320px 1fr; gap: 30px;
    max-width: 1150px; margin: 0 auto; text-align: left;
}
.dash-lista { display: flex; flex-direction: column; gap: 12px; }
.dash-item {
    display: flex; align-items: center; gap: 16px; width: 100%;
    background: var(--card); color: #e0e0e0; border: 1px solid var(--borda); border-left: 4px solid transparent;
    padding: 18px 20px; border-radius: 12px; font-size: 1rem; font-weight: 600;
    cursor: pointer; text-align: left; transition: all .3s ease;
}
.dash-item:hover { background: var(--card-2); transform: translateX(4px); }
.dash-item.ativo { 
    background: var(--card-2); border-left-color: var(--laranja); 
    color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.2); 
}

.dash-painel { 
    background: var(--card); border-radius: 16px; padding: 40px; 
    border: 1px solid var(--borda); box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.dash-painel.troca { animation: entrada .5s cubic-bezier(0.16, 1, 0.3, 1); }
.painel-topo { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 35px; }
.painel-topo h3 { font-size: 1.8rem; margin-bottom: 8px; font-weight: 700; }
.painel-topo p { color: var(--texto-suave); font-size: 1.05rem; line-height: 1.6; }

.painel-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.painel-grade h4 { font-size: 1.1rem; margin-bottom: 16px; color: var(--laranja); font-weight: 600; }
.painel-grade ul { list-style: none; }
.painel-grade li { padding: 10px 0 10px 24px; position: relative; color: #d4d4d4; font-size: .95rem; border-bottom: 1px solid var(--borda); }
.painel-grade li:last-child { border-bottom: none; }
.painel-grade li::before { content: ''; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--laranja); box-shadow: 0 0 8px var(--laranja); }

.painel-rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding-top: 30px; border-top: 1px solid var(--borda); }

/* ===== Tecnologia ===== */
.tecnologia { background: #0d0d0d; border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }
.tec-grade { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; max-width: 1000px; margin: 0 auto 50px; }
.tec-card { 
    flex: 1; min-width: 280px; text-align: left; background: var(--card); 
    padding: 40px; border-radius: 16px; border: 1px solid var(--borda);
    transition: transform .3s, border-color .3s;
}
.tec-card:hover { transform: translateY(-5px); border-color: var(--laranja); }
.tec-card h3 { margin-bottom: 12px; color: #fff; font-size: 1.4rem; font-weight: 700; }
.tec-card p { color: var(--texto-suave); font-size: 1rem; }

.cta-central { text-align: center; margin-top: 20px; }

/* ===== Galeria de Fotos ===== */
.galeria-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; max-width: 1200px; margin: 0 auto; }
.galeria-grade img {
    width: 100%; height: 280px; object-fit: cover; border-radius: 16px; 
    transition: transform .4s ease, box-shadow .4s ease; border: 1px solid var(--borda);
}
.galeria-grade img:hover,
.galeria-video:hover { transform: scale(1.03) translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); z-index: 2; position: relative; }
.galeria-video {
    display: block; width: 100%; max-width: 800px; aspect-ratio: 16 / 9;
    height: auto; object-fit: contain; background: #000; border: 1px solid var(--borda);
    border-radius: 16px; margin: 30px auto 0;
    transition: transform .4s ease, box-shadow .4s ease;
}

/* ===== Modais (Pop-ups) ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: grid; place-items: center; z-index: 2000;
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--card); padding: 50px; border-radius: 20px;
    max-width: 850px; width: 90%; position: relative;
    border: 1px solid var(--borda); box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: translateY(30px) scale(0.95); transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.show .modal-content { transform: translateY(0) scale(1); }
.modal-content h2 { text-align: left; margin-bottom: 30px; font-size: 2rem; }
.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: var(--card-2); border: 1px solid var(--borda); border-radius: 50%;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; cursor: pointer; transition: .3s; line-height: 1;
}
.modal-close:hover { background: var(--laranja); border-color: var(--laranja); color: #fff; transform: rotate(90deg); }

.passos-grade { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.passo { flex: 1; min-width: 220px; text-align: left; background: var(--card-2); padding: 30px; border-radius: 12px; border: 1px solid var(--borda); }
.passo b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--laranja); margin-bottom: 20px; font-size: 1.2rem; }
.passo h3 { font-size: 1.2rem; margin-bottom: 8px; }
.passo p { color: var(--texto-suave); font-size: .95rem; }

/* ===== Rodapé ===== */
footer { text-align: center; padding: 40px 5%; background: #050505; color: #666; border-top: 1px solid var(--borda); font-size: 0.9rem; }

/* ===== Aparecer ao rolar ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease-out, transform .8s ease-out; }
.reveal.visivel { opacity: 1; transform: none; }

/* ===== Celular ===== */
@media (max-width: 950px) {
    .dashboard { grid-template-columns: 1fr; }
    .dash-lista { flex-direction: row; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
    .dash-lista::-webkit-scrollbar { display: none; }
    .dash-item { width: auto; white-space: nowrap; border-left: 1px solid var(--borda); border-bottom: 4px solid transparent; }
    .dash-item:hover { transform: translateY(-2px); }
    .dash-item.ativo { border-left-color: var(--borda); border-bottom-color: var(--laranja); }
    .painel-grade { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: rgba(10, 10, 10, .98); backdrop-filter: blur(20px);
        padding: 20px 5% 40px; gap: 0;
        transform: translateY(-20px); opacity: 0; pointer-events: none; transition: .4s ease;
        border-bottom: 1px solid var(--borda);
    }
    nav.aberto { transform: none; opacity: 1; pointer-events: auto; }
    nav a { margin: 0; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1.1rem; }
    nav a::after { display: none; }
    .dash-painel { padding: 25px; }
    .modal-content { padding: 30px 20px; }
    .hero { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
