:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --primary: #00f3ff;
    --secondary: #bc13fe;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --color-green: #10B981;
    --color-blue: #3B82F6;
    --color-purple: #8B5CF6;
    --color-orange: #F97316;
    --color-yellow: #EAB308;
    --color-gold: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

/* Fix Mobile: Evita barra lateral branca */
html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
}

#tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

/* --- NAV --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.highlight { color: var(--primary); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--primary); }

.btn-cta {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 8px 25px;
    border-radius: 50px;
    color: var(--primary) !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 1px;
}

.btn-cta:hover {
    background: var(--primary);
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* --- HERO --- */
#hero {
    /* Fix Mobile: Altura real dinâmica */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typewriter-effect {
    overflow: hidden;
    border-right: .15em solid var(--primary);
    white-space: nowrap;
    margin: 0 auto 20px;
    letter-spacing: 2px;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    max-width: fit-content;
}

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--primary); } }

.hero-content p {
    font-size: 1.2rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
}

.stat { display: flex; flex-direction: column; }
.stat span:first-child { font-size: 2rem; font-weight: bold; color: var(--primary); }
.stat span:last-child { font-size: 0.9rem; color: #666; text-transform: uppercase; }

.btn-hero {
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 5px;
    transition: 0.3s;
}
.btn-hero:hover { color: var(--primary); letter-spacing: 1px; }

/* --- SECTIONS --- */
section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title { font-size: 2.5rem; margin-bottom: 10px; text-align: center; }
.section-subtitle { text-align: center; color: #888; margin-bottom: 60px; }

.grid-container {
    display: grid;
    /* Fix Mobile: Ajuste para 280px para não quebrar em telas estreitas */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* --- CARDS NÍVEIS --- */
.card-level {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 15px;
    position: relative;
    transition: 0.3s;
}
.card-level:hover { border-color: var(--primary); transform: translateY(-5px); }
.destaque-level { border-color: var(--primary); background: rgba(0, 243, 255, 0.05); }

.level-badge {
    position: absolute; top: -12px; right: 20px;
    background: var(--primary); color: #000;
    font-size: 0.8rem; font-weight: bold;
    padding: 2px 10px; border-radius: 20px;
}
.level-header { font-size: 0.9rem; text-transform: uppercase; color: #888; margin-bottom: 10px; letter-spacing: 1px; }
.card-level h3 { font-size: 1.8rem; margin-bottom: 15px; }
.level-features { list-style: none; margin-top: 20px; }
.level-features li { margin-bottom: 10px; color: #ccc; font-size: 0.9rem; }
.level-features i { color: var(--primary); margin-right: 10px; }

/* --- CARDS PORTFOLIO --- */
.card-holo {
    /* Fix Mobile: Altura flexível */
    min-height: 400px;
    height: auto;
    perspective: 1000px;
    cursor: pointer;
}

.card-glass {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.1s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-holo:hover .card-glass { transform: translateY(-5px); }

/* Cores dos Nichos */
.border-green:hover { border-color: var(--color-green); box-shadow: 0 0 30px rgba(16, 185, 129, 0.2); }
.border-blue:hover { border-color: var(--color-blue); box-shadow: 0 0 30px rgba(59, 130, 246, 0.2); }
.border-purple:hover { border-color: var(--color-purple); box-shadow: 0 0 30px rgba(139, 92, 246, 0.2); }
.border-orange:hover { border-color: var(--color-orange); box-shadow: 0 0 30px rgba(249, 115, 22, 0.2); }
.border-yellow:hover { border-color: var(--color-yellow); box-shadow: 0 0 30px rgba(234, 179, 8, 0.2); }
.border-gold:hover { border-color: var(--color-gold); box-shadow: 0 0 30px rgba(255, 215, 0, 0.2); }

.text-green { color: var(--color-green) !important; }
.text-blue { color: var(--color-blue) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-orange { color: var(--color-orange) !important; }
.text-yellow { color: var(--color-yellow) !important; }
.text-gold { color: var(--color-gold) !important; }

.icon-box { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.card-glass h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card-glass p { font-size: 0.95rem; color: #aaa; margin-bottom: 20px; flex-grow: 1; }

.link-card {
    text-decoration: none; color: #fff; font-weight: bold;
    display: flex; align-items: center; gap: 10px; transition: 0.3s;
    border: 1px solid var(--border); padding: 10px 15px;
    border-radius: 8px; width: fit-content; font-size: 0.9rem;
}
.link-card:hover { border-color: currentColor; background: rgba(255, 255, 255, 0.05); }

/* --- PROCESSO --- */
.process-steps { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.step {
    flex: 1; min-width: 250px; background: var(--glass);
    padding: 30px; border-radius: 15px; border: 1px solid var(--border); text-align: left;
}
.step-number { font-size: 3rem; font-weight: 900; color: rgba(255, 255, 255, 0.1); margin-bottom: 10px; }
.step h3 { margin-bottom: 10px; color: var(--primary); }
.step p { color: #aaa; font-size: 0.9rem; }

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; }
details {
    background: var(--glass); margin-bottom: 15px; padding: 20px;
    border-radius: 10px; border: 1px solid var(--border); cursor: pointer; transition: 0.3s;
}
details:hover { border-color: #555; }
summary { font-weight: bold; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); }
details[open] summary::after { content: '-'; }
details p { margin-top: 15px; color: #ccc; line-height: 1.6; }

/* --- FOOTER --- */
footer {
    padding: 80px 20px 40px; text-align: center;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 50px;
}
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 10px;
    background-color: transparent; border: 2px solid #25D366;
    color: #25D366; padding: 15px 40px; border-radius: 50px;
    font-size: 1.2rem; font-weight: bold; text-decoration: none;
    transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
}
.btn-whatsapp:hover {
    background-color: #25D366; color: #000;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.4); transform: translateY(-5px);
}
.copy { margin-top: 60px; font-size: 0.9rem; color: #444; }

/* --- ANIMATIONS --- */
.hidden { opacity: 0; filter: blur(5px); transform: translateY(30px); transition: all 0.8s ease; padding: 20px; }
.show { opacity: 1; filter: blur(0); transform: translateY(0); }

/* --- RESPONSIVE --- */
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: #fff; transition: 0.3s; }
.menu-toggle:hover { color: var(--primary); }

@media (max-width: 1024px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(0, 0, 0, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 40px; transition: 0.5s ease-in-out; z-index: 999;
    }
    .nav-links.active { right: 0; }
    .menu-toggle { display: block; z-index: 1001; }
    .nav-links a { font-size: 1.8rem; }
    .glass-nav { padding: 15px 20px; }
    
    /* Fix Mobile: Ajuste de quebra de texto */
    .hero-content h1 {
        font-size: 2.2rem;
        white-space: normal;
        border: none;
        animation: none;
    }
    .typewriter-effect { border: none; animation: none; white-space: normal; }
    
    #portfolio { padding: 10px 15px; }
    .section-subtitle { margin-bottom: 30px; }
}