/* =========================================
   1. VARIÁVEIS DE TEMA E RENDERIZAÇÃO
   ========================================= */
:root {
    --bg-color: #f4f8fb; 
    --text-main: #2c3e50; 
    --text-muted: #5d6d7e; 
    --accent: #aed6f1; 
    --conversion: #5dade2; 
    --card-bg: #ffffff;
    --header-bg: rgba(244, 248, 251, 0.95);
    --border-color: rgba(0,0,0,0.05);
    --line-thickness: 4px;
    --nav-height: 110px;
}

[data-theme="dark"] {
    --bg-color: #0d1117; 
    --text-main: #e6edf3; 
    --text-muted: #8b949e; 
    --accent: #1f6feb; 
    --conversion: #38bdf8; 
    --card-bg: #161b22; 
    --header-bg: rgba(13, 17, 23, 0.95);
    --border-color: rgba(255,255,255,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased; 
}

/* =========================================
   2. A LANTERNA GLOBAL
   ========================================= */
#global-spotlight {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 999; 
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.05), transparent 40%);
    opacity: 0; transition: opacity 0.5s ease;
    will-change: background; 
}
body:hover #global-spotlight { opacity: 1; }

/* =========================================
   3. HEADER & NAVEGAÇÃO
   ========================================= */
.main-header {
    position: fixed; top: 0; width: 100%; height: var(--nav-height);
    background: var(--header-bg); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    z-index: 1000; display: flex; align-items: center;
    justify-content: center; border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease;
}

.controls-panel { position: absolute; left: 40px; display: flex; gap: 8px; z-index: 2000; }
.btn-micro { background: transparent; border: 1px solid var(--accent); color: var(--text-main); font-size: 0.75rem; font-weight: bold; padding: 6px 12px; border-radius: 20px; cursor: pointer; transition: 0.2s ease; }
.btn-micro:hover { background: var(--accent); color: white; transform: scale(1.05); }

.nav-container { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 900px; }
.base-line { position: absolute; bottom: 30px; left: 0; width: 100%; height: var(--line-thickness); background-color: var(--accent); z-index: 1; opacity: 0; transition: opacity 0.5s ease; }

.moving-arrow { 
    position: absolute; bottom: 30px; left: 0; width: 24px; height: 16px; z-index: 2; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); opacity: 0; 
    will-change: transform; 
}
.moving-arrow path { fill: var(--conversion); filter: drop-shadow(0 -3px 4px rgba(56, 189, 248, 0.6)); }

.nav-list { display: flex; align-items: center; list-style: none; gap: 40px; position: relative; z-index: 3; }
.nav-list a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 1rem; text-transform: uppercase; padding-bottom: 35px; transition: color 0.3s ease; }
.nav-list a:hover { color: var(--conversion); }

.logo-center { margin: 0 15px; }
.logo-img { width: 75px; height: 75px; border-radius: 50%; border: 3px solid var(--conversion); background-color: white; will-change: transform; }

.nav-item { opacity: 0; transform: translateY(-15px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.nav-item.show-item { opacity: 1; transform: translateY(0); }
.spin-entrance { animation: spin-in 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes spin-in {
    0% { transform: rotate(-720deg) scale(0.5); opacity: 0; }
    50% { transform: rotate(0) scale(1.1); opacity: 1; }
    100% { transform: rotate(0) scale(1); opacity: 1; }
}

/* =========================================
   4. MENU HAMBURGER (Escondido no Desktop)
   ========================================= */
.hamburger-btn {
    display: none; flex-direction: column; gap: 6px; background: none;
    border: none; cursor: pointer; z-index: 2000; position: absolute; right: 25px;
}
.hamburger-line {
    width: 30px; height: 3px; background-color: var(--text-main);
    transition: transform 0.4s ease, opacity 0.4s ease; border-radius: 2px;
}

/* =========================================
   5. HERO SECTION & ORBES
   ========================================= */
main { margin-top: var(--nav-height); }
section { padding: 100px 20px; max-width: 1100px; margin: 0 auto; text-align: center; position: relative; }

#hero { padding-top: 140px; padding-bottom: 120px; }
.hero-content { position: relative; z-index: 5; }

.orb {
    position: absolute; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); border: 1px solid var(--border-color); color: var(--accent); 
    display: flex; align-items: center; justify-content: center; font-weight: bold; font-family: monospace; 
    z-index: 0; pointer-events: none; will-change: border-radius, transform;
    animation: morph-orb 8s ease-in-out infinite, float-orb 6s ease-in-out infinite;
}
.orb-1 { width: 120px; height: 120px; top: 10%; left: 10%; font-size: 1.5rem; }
.orb-2 { width: 180px; height: 180px; top: 35%; right: 5%; font-size: 2rem; animation-delay: -2s; border-color: rgba(56, 189, 248, 0.2); }
.orb-3 { width: 80px; height: 80px; bottom: 10%; left: 25%; font-size: 1rem; animation-delay: -4s; }

@keyframes morph-orb {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}
@keyframes float-orb { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }

.magnetic-wrap { display: inline-block; padding: 40px; margin: -40px; cursor: pointer; position: relative; z-index: 10; }
.magnetic-btn { display: inline-flex; will-change: transform; transform: translateZ(0); }
.btn-text { display: inline-block; pointer-events: none; will-change: transform; transform: translateZ(0); }

h1 { font-size: 3.5rem; color: var(--text-main); margin-bottom: 20px; min-height: 140px; position: relative; z-index: 5; line-height: 1.1; letter-spacing: -1px; }
.cursor { display: inline-block; width: 4px; height: 0.9em; background-color: var(--conversion); margin-left: 5px; vertical-align: middle; animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* =========================================
   6. COMPONENTES E 3D TILT
   ========================================= */
h2 { font-size: 2.5rem; margin-bottom: 15px; color: var(--text-main); position: relative; z-index: 5; letter-spacing: -0.5px; }
section > p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 50px; max-width: 700px; margin-inline: auto; position: relative; z-index: 5; }

.btn-primary { display: inline-block; background-color: var(--conversion); color: white; padding: 16px 40px; border-radius: 30px; text-decoration: none; font-weight: bold; font-size: 1.1rem; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3); transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s; position: relative; z-index: 5; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5); }

.cards-container { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; perspective: 1200px; position: relative; z-index: 5; }
.card { background: var(--card-bg); padding: 35px 30px; border-radius: 20px; flex: 1; min-width: 280px; border: 1px solid var(--border-color); color: var(--text-main); box-shadow: 0 8px 20px rgba(0,0,0,0.04); transform-style: preserve-3d; transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.1s; will-change: transform, box-shadow; }
.card h3 { color: var(--conversion); margin-bottom: 15px; transform: translateZ(40px); font-size: 1.4rem; }
.card p { color: var(--text-muted); transform: translateZ(20px); font-size: 1.05rem; }
.step-number { display: inline-block; width: 45px; height: 45px; line-height: 45px; background-color: var(--accent); color: #fff; border-radius: 50%; font-size: 1.3rem; font-weight: bold; margin-bottom: 20px; transform: translateZ(50px); }

/* AQUI ESTÃO AS SUAS VARIAÇÕES DA FOTO */
.about-container { display: flex; align-items: center; gap: 50px; background: var(--card-bg); padding: 40px; border-radius: 20px; text-align: left; border: 1px solid var(--border-color); box-shadow: 0 8px 20px rgba(0,0,0,0.03); transition: 0.4s; position: relative; z-index: 5; }
.profile-pic { width: 300px; height: 300px; border-radius: 20%; border: 4px solid var(--accent); object-fit: cover; }
.about-text h3 { color: var(--text-main); margin-bottom: 10px; font-size: 2rem; letter-spacing: -0.5px;}
.about-text p { color: var(--text-muted); margin-bottom: 15px; font-size: 1.1rem; }

.contact-form { background: var(--card-bg); padding: 40px; border-radius: 24px; text-align: left; max-width: 650px; margin: 0 auto; border: 1px solid var(--border-color); box-shadow: 0 8px 20px rgba(0,0,0,0.03); transition: 0.4s; position: relative; z-index: 5; }
.input-group { margin-bottom: 25px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--text-main); font-size: 1.05rem; }
.input-group input, .input-group textarea { width: 100%; padding: 16px; border: 2px solid var(--border-color); border-radius: 12px; background-color: var(--bg-color); color: var(--text-main); font-family: inherit; font-size: 1rem; transition: border-color 0.3s ease; }
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--conversion); }
.contact-form .btn-primary { width: 100%; margin-top: 10px; font-size: 1.2rem; }

.reveal-hidden { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); will-change: opacity, transform; }
.reveal-visible { opacity: 1; transform: translateY(0); }

.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1000; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); transition: transform 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.1) rotate(5deg); }
footer { text-align: center; padding: 40px; background-color: var(--card-bg); color: var(--text-muted); border-top: 1px solid var(--border-color); transition: 0.4s; position: relative; z-index: 5; }

/* =========================================
   7. RESPONSIVIDADE E MOBILE (A Gaveta)
   ========================================= */
@media (max-width: 768px) {
    .main-header { padding: 0 20px; height: 80px; justify-content: flex-start; }
    .controls-panel { position: relative; left: 0; z-index: 2000; }
    
    .hamburger-btn { display: flex; }

    .nav-container { 
        position: fixed; top: 0; right: -100%; width: 75vw; height: 100vh;
        background: var(--header-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 1500;
    }
    
    .nav-container.menu-open { right: 0; }

    .nav-list { flex-direction: column; gap: 30px; width: 100%; text-align: center; }
    .nav-list a { font-size: 1.2rem; padding-bottom: 0; display: block; width: 100%; }
    
    .logo-center { order: -1; margin-bottom: 30px; }
    .logo-img { width: 80px; height: 80px; }
    .moving-arrow, .base-line { display: none; }
    
    .hamburger-btn.active .hamburger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
    .hamburger-btn.active .hamburger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    h1 { font-size: 2.2rem; min-height: 90px; }
    #hero { padding-top: 150px; }
    .about-container { flex-direction: column; text-align: center; padding: 30px 20px; }
    .contact-form { padding: 30px 20px; }
}