/* =========================================
   1. RESET & BASE
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background-color: #0b1121; 
    color: #e2e8f0;
    line-height: 1.6; 
    /* TRAVA ANDROID: Impede balanço lateral */
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.highlight {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

strong { color: #10b981; }

/* =========================================
   2. INTRODUÇÃO ANIMADA (LOADER) - AJUSTADA 10S
   ========================================= */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0b1121;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content { text-align: center; }

.code-text {
    color: #10b981;
    font-family: 'Courier New', monospace;
    font-size: clamp(1rem, 5vw, 1.5rem);
    border-right: 3px solid #10b981;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    margin-bottom: 20px;
    display: block;
    animation: typing 2s steps(15) 0.5s forwards, blink 0.7s infinite;
}

.progress-bar-loader {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill-loader {
    width: 0;
    height: 100%;
    background: #10b981;
    /* MODIFICAÇÃO: Ajustado para 10 segundos conforme pedido */
    animation: progress-load 10s linear forwards;
}

.status-loader {
    color: #64748b;
    font-size: 0.7rem;
    display: block;
    margin-top: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink { 50% { border-color: transparent } }
@keyframes progress-load { to { width: 100% } }

/* =========================================
   3. ANIMAÇÕES (REVEAL)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
header {
    background: rgba(11, 17, 33, 0.85);
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    color: #fff; 
    font-size: 1.5rem; 
    font-weight: 900; 
    letter-spacing: -1.5px; 
}

.logo span { color: #10b981; }

.nav-menu ul { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
}

.nav-menu a { 
    color: #94a3b8; 
    text-decoration: none; 
    font-weight: 500; 
    transition: 0.3s; 
}

.nav-menu a:hover { color: #10b981; }

/* =========================================
   5. HERO & BOTÕES (CORREÇÃO ANDROID LADO A LADO)
   ========================================= */
.hero { 
    padding: clamp(80px, 15vh, 130px) 0; 
    text-align: center; 
    background: radial-gradient(circle at center, #112a28 0%, #0b1121 100%); 
}

/* MODIFICAÇÃO: Hero-Buttons travados para Mobile */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: nowrap; /* Impede quebra de linha no Android */
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero h2 { 
    font-size: clamp(2.2rem, 6vw, 4rem); 
    margin-bottom: 25px; 
    color: #fff; 
    line-height: 1.1;
}

.hero p { 
    max-width: 700px; 
    margin: 0 auto 50px; 
    font-size: clamp(1rem, 4vw, 1.25rem); 
    color: #94a3b8; 
}

.btn-primario, .btn-secundario {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 14px 25px; 
    border-radius: 8px; 
    text-decoration: none;
    font-weight: 600; 
    transition: 0.3s;
    cursor: pointer;
    gap: 10px;
    flex: 1; /* Faz os botões dividirem o espaço 50/50 */
    max-width: 180px;
    white-space: nowrap; /* Impede texto em duas linhas */
    -webkit-tap-highlight-color: transparent;
}

.btn-primario { 
    background: linear-gradient(135deg, #10b981, #059669); 
    color: white; 
    border: none; 
}

.btn-primario:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(16, 185, 129, 0.5);
}

.btn-secundario { 
    background: #1e293b; 
    color: #f1f5f9; 
    border: 1px solid #334155; 
}

.btn-secundario:hover { 
    border-color: #10b981; 
    color: #10b981; 
}

/* =========================================
   6. SEÇÕES: SOBRE & SERVIÇOS
   ========================================= */
section { padding: 80px 0; }

.sobre-container { 
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: clamp(30px, 5vw, 60px); 
    align-items: center; 
}

.sobre-foto { 
    width: 100%; 
    max-width: 350px; 
    border-radius: 24px; 
    border: 2px solid rgba(16, 185, 129, 0.2); 
    padding: 10px; 
    display: block;
}

.grid-servicos { 
    display: grid; 
    gap: 30px; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

.card-servico { 
    background: #111a2e; 
    padding: 40px; 
    border-radius: 20px; 
    border: 1px solid rgba(148, 163, 184, 0.08); 
    text-align: center; 
    transition: 0.3s;
}

.card-servico i { 
    font-size: 3rem; 
    color: #10b981; 
    margin-bottom: 20px; 
    display: block; 
}

/* =========================================
   7. GRID DE PROJETOS
   ========================================= */
.grid-projetos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card-projeto {
    background: #111a2e; 
    border-radius: 20px; 
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.08); 
    transition: 0.4s;
    display: flex; 
    flex-direction: column;
}

.card-projeto:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.3);
}

.card-projeto img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}

.conteudo-projeto { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.tecnologias { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-bottom: 20px; 
}

.tecnologias span { 
    background: #1e293b; 
    color: #10b981; 
    padding: 4px 10px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 700; 
}

.botoes-projeto { 
    display: flex; 
    gap: 10px; 
    margin-top: auto; 
}

.btn-card-p, .btn-card-s {
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    flex: 1;
    text-align: center;
}

.btn-card-p { background: #10b981; color: #fff; }
.btn-card-s { background: transparent; border: 1px solid #334155; color: #94a3b8; }
.btn-card-s:hover { border-color: #10b981; color: #10b981; }

/* =========================================
   8. COMPETÊNCIAS
   ========================================= */
.grid-competencias {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-competencia {
    background: #111a2e;
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: 0.3s ease;
}

.card-competencia:hover {
    transform: translateY(-8px);
    border-color: #10b981;
}

.card-competencia i.fas, .card-competencia i.fab {
    font-size: 2.2rem;
    color: #10b981;
    margin-bottom: 20px;
    display: block;
}

.card-competencia ul { list-style: none; }
.card-competencia ul li { margin-bottom: 10px; color: #94a3b8; display: flex; align-items: center; }
.card-competencia ul li i { color: #10b981; margin-right: 10px; font-size: 1rem; }

/* =========================================
   9. CONTATO & FORM
   ========================================= */
.contato-form { 
    background: #111a2e; 
    padding: clamp(20px, 5vw, 40px); 
    border-radius: 20px; 
    max-width: 600px; 
    margin: 0 auto; 
}

input, textarea { 
    width: 100%; 
    padding: 15px; 
    margin-bottom: 20px; 
    background: #0b1121; 
    border: 1px solid #1e293b; 
    color: #fff; 
    border-radius: 8px; 
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

input:focus, textarea:focus { border-color: #10b981; }

/* =========================================
   10. FOOTER & WHATSAPP
   ========================================= */
footer {
    background: #0b1121;
    padding: 40px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.05);
}

.footer-ultra-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-ultra-minimal p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 1.3rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #10b981;
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed; 
    width: 60px; 
    height: 60px; 
    bottom: 25px; 
    right: 25px; 
    background: #10b981; 
    color: white; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 30px; 
    z-index: 2000; 
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    animation: pulse-green 2s infinite; 
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* =========================================
   11. RESPONSIVIDADE & MENU MOBILE
   ========================================= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #0b1121;
        padding: 100px 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        visibility: hidden; 
    }

    .nav-menu.active { 
        right: 0; 
        visibility: visible;
    }

    .nav-menu ul { flex-direction: column; gap: 30px; }

    .sobre-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 40px;
    }

    .sobre-foto { margin: 0 auto; }
    
    .hero { padding: 60px 0; }
    .hero h2 { font-size: 2.2rem; }

    /* Força os botões da Hero a ficarem lado a lado mesmo em telas menores */
    .hero-buttons {
        flex-direction: row !important;
        gap: 8px;
    }
    .btn-primario, .btn-secundario {
        font-size: 0.85rem;
        padding: 12px 10px;
    }
    
    .footer-ultra-minimal {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

/* Garante que imagens não quebrem o layout */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}
