:root {
    --bg-main: #050505;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-muted: #888;
    --accent: #FF4400; /* Laranja vibrante */
    --border: rgba(255,255,255,0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET & BASIC --- */
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-main); color: var(--text-primary);
    font-family: var(--font-body); overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.dot, .highlight { color: var(--accent); }
.stroke-text { -webkit-text-stroke: 1px #fff; color: transparent; }
.noise-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0.05;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
}

/* --- PRELOADER (FIXED) --- */
.preloader {
    position: fixed; inset: 0; background: #000; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.8s ease-in-out;
}
.loader-content { text-align: center; }
.loader-text { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.loading-bar { width: 150px; height: 2px; background: #222; overflow: hidden; margin: 0 auto; }
.bar-fill {
    width: 0%; height: 100%; background: var(--accent);
    animation: loadBar 2s ease-in-out forwards;
}
@keyframes loadBar { 0% { width: 0%; } 100% { width: 100%; } }
/* Classe adicionada via JS para esconder */
body.loaded .preloader { transform: translateY(-100%); pointer-events: none; }


/* --- CURSOR --- */
@media (min-width: 968px) {
    .cursor-dot {
        position: fixed; width: 6px; height: 6px; background: var(--accent);
        border-radius: 50%; z-index: 9990; pointer-events: none; transform: translate(-50%, -50%);
    }
    .cursor-outline {
        position: fixed; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.3);
        border-radius: 50%; z-index: 9989; pointer-events: none; transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background 0.2s;
    }
    body.hover-active .cursor-outline {
        width: 70px; height: 70px; background: rgba(255, 68, 0, 0.1); border-color: var(--accent);
    }
}

/* --- COMPONENTS --- */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(5,5,5,0.8); backdrop-filter: blur(10px); z-index: 100;
    border-bottom: 1px solid var(--border);
}
.logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); transition: 0.3s; }
.nav-links a:hover { color: #fff; }
.btn-outline { border: 1px solid var(--border); padding: 0.5rem 1.2rem; border-radius: 4px; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* --- HERO --- */
.hero { min-height: 100vh; padding-top: 8rem; display: flex; align-items: center; position: relative; }
.hero-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 5%;}
.hero h1 {
    font-family: var(--font-heading); font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.9; font-weight: 800; margin: 1.5rem 0;
}
.hero-sub { color: var(--text-muted); max-width: 450px; border-left: 2px solid var(--accent); padding-left: 1.5rem; font-size: 1.1rem; }
.hero-image-container { height: 60vh; border-radius: 8px; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.hero-img:hover { filter: grayscale(0%); }

.scroll-indicator {
    position: absolute; bottom: 3rem; left: 5%; display: flex; gap: 1rem; align-items: center;
    color: var(--text-muted); transform: rotate(-90deg); transform-origin: left; font-size: 0.8rem;
}
.scroll-indicator .line { width: 40px; height: 1px; background: var(--border); }

/* ============ MARQUEE ============ */
.marquee {
    background: var(--text-primary); color: var(--bg-color);
    padding: 1.5rem 0; overflow: hidden;
}
.track { white-space: nowrap; overflow: hidden; }
.content {
    display: inline-block;
    font-family: var(--font-display); font-weight: 800;
    font-size: 1.5rem; text-transform: uppercase;
    animation: marquee 30s linear infinite;
    color: #000;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- PROJETOS --- */

.projects-section { padding: 8rem 0; position: relative; }
.section-label { font-family: var(--font-heading); color: var(--accent); letter-spacing: 2px; font-size: 0.8rem; display: block; margin-bottom: 1rem; }
.section-title { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 4rem; }

.project-item {
    display: flex; justify-content: space-between; align-items: center; padding: 3rem 1rem;
    border-bottom: 1px solid var(--border); transition: 0.3s;
}
.project-item:first-child { border-top: 1px solid var(--border); }
.project-item:hover { background: var(--bg-secondary); padding-left: 2rem; }
.project-details h3 { font-family: var(--font-heading); font-size: 2rem; margin-top: 0.5rem; }
.project-num { color: var(--text-muted); font-family: var(--font-heading); display: block; }
.project-category { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; }
.arrow-btn { font-size: 1.5rem; transform: rotate(-45deg); transition: 0.3s; }
.project-item:hover .arrow-btn { color: var(--accent); transform: rotate(0deg); }

.project-preview-wrapper { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.project-preview-img {
    position: absolute; width: 350px; height: 220px; background-size: cover; background-position: center;
    opacity: 0; transform: scale(0.8) translate(-50%, -50%); transition: opacity 0.3s, transform 0.3s;
}

/* --- SOBRE --- */
.about-section { padding: 8rem 10%; background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.about-text h2 {
    font-family: var(--font-heading); font-size: 3rem; line-height: 1.1; margin-bottom: 2rem;
}
.highlight { color: var(--accent); }
.about-text p { color: var(--text-primary); max-width: 400px; margin-bottom: 3rem; }

.skill-card {
    background: rgba(255,255,255,0.03); padding: 2rem; margin-bottom: 1rem;
    border-left: 2px solid var(--border); transition: 0.3s;
}
.skill-card:hover { border-left-color: var(--accent); background: rgba(255,255,255,0.05); }
.skill-card h4 { margin-bottom: 0.5rem; font-family: var(--font-heading); }
.skill-card p { color: var(--text-primary); font-size: 0.9rem; }

/* --- FORMULÁRIO PRO (REDESENHADO) --- */
.footer-section { padding: 6rem 0 2rem; border-top: 1px solid var(--border); background: #080808; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-bottom: 6rem; }
.cta-col h2 { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1; margin-bottom: 2rem; }
.contact-info { margin-top: 3rem; color: var(--text-muted); line-height: 1.8; }

/* Inputs Estilizados */
.pro-form { display: flex; flex-direction: column; gap: 2.5rem; }
.input-group { position: relative; }
.input-group input, .input-group textarea {
    width: 100%; background: transparent; border: none; padding: 1rem 0;
    color: #fff; font-family: var(--font-body); font-size: 1.2rem;
    outline: none; z-index: 2; position: relative;
}
.input-group label {
    position: absolute; top: 1rem; left: 0; color: var(--text-muted);
    transition: 0.3s; z-index: 1; pointer-events: none;
}
.input-group .line-bg {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
    background: var(--border); transition: 0.3s;
}
/* Efeitos de Foco */
.input-group input:focus ~ .line-bg,
.input-group textarea:focus ~ .line-bg { height: 2px; background: var(--accent); }
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
    top: -1.2rem; font-size: 0.8rem; color: var(--accent);
}

/* Botão Moderno */
.submit-btn {
    background: var(--text-primary); color: var(--bg-main); border: none;
    padding: 1.5rem 2rem; display: flex; justify-content: space-between;
    align-items: center; font-family: var(--font-heading); font-weight: 700;
    font-size: 1.1rem; cursor: pointer; transition: 0.4s; margin-top: 1rem;
}
.submit-btn:hover { background: var(--accent); color: #fff; padding-right: 3rem; }
.btn-icon { font-size: 1.5rem; transition: 0.4s; }

/* --- RESPONSIVO --- */
@media (max-width: 968px) {
    .hero-container, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero { padding-top: 7rem; text-align: left; }
    .hero h1 { font-size: 3.5rem; }
    .project-preview-wrapper, .cursor-dot, .cursor-outline { display: none; }
    * { cursor: auto; }
    .about-grid, .contact-container { grid-template-columns: 1fr; }
}

.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s; }
.reveal.active { opacity: 1; transform: translateY(0); }