:root {
    --bg-color: #0b0b0f;
    --card-bg: #16161d;
    --primary: #6366f1; /* Indigo */
    --secondary: #ec4899; /* Pink */
    --accent: #8b5cf6; /* Violet */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden; /* Bloqueia scroll na intro */
}

/* Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0; /* Anti-flash */
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--secondary); bottom: 10%; right: -50px; }
.shape-3 { width: 200px; height: 200px; background: var(--accent); top: 40%; left: 30%; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    opacity: 0; 
    visibility: hidden;
}

.logo { font-size: 1.5rem; font-weight: 800; color: var(--text-main); }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-muted); transition: 0.3s; font-size: 0.9rem; }
.nav-links a:hover { color: var(--primary); }

/* Generic Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Helpers de Layout */
.center-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.text-center {
    text-align: center;
    width: 100%;
}

h2.section-title {
    font-size: 3rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-center .section-title {
    background: linear-gradient(to bottom, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: auto; margin-right: auto;
}
.center { text-align: center; }

/* 1. Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
    display: flex;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 20px 0;
    opacity: 0; visibility: hidden;
}

.hero-img {
    width: 450px;
    height: 550px;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    /* Correção do corte da imagem */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    opacity: 0; visibility: hidden;
}

.hero-image-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.btn-primary {
    padding: 15px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s;
    opacity: 0; visibility: hidden;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4); }

/* Correção Flash Inicial (Char) */
.char { opacity: 0; visibility: hidden; }

/* 2. About Section */
.about-section { height: 100vh; }
.about-text { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.6; color: var(--text-muted); }
.stats-container { display: flex; gap: 40px; margin-top: 30px; justify-content: center; }
.stat-item span { font-size: 2.5rem; font-weight: 700; color: var(--primary); }

/* 3. Skills Section */
.skills-section { height: 100vh; }
.skills-grid {
    display: flex; gap: 30px; justify-content: center; margin-bottom: 50px; flex-wrap: wrap;
}
.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    width: 160px;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}
.skill-card i { font-size: 3.5rem; color: var(--text-muted); transition: 0.3s; }
.skill-card span { font-weight: 600; font-size: 1.1rem; }
.skill-card:hover { transform: translateY(-10px) scale(1.05); border-color: var(--primary); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2); }
.skill-card:hover i.fa-square-js { color: #f7df1e; }
.skill-card:hover i.fa-react { color: #61dafb; }
.skill-card:hover i.fa-node { color: #68a063; }
.skill-card:hover i.fa-bullhorn { color: #ff6b6b; }

.skills-bars { max-width: 600px; margin: 0 auto; width: 100%; }
.bar-container { margin-bottom: 20px; }
.progress-bg { height: 10px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; margin-top: 5px; }
.progress-fill { height: 100%; background: var(--secondary); width: 0; border-radius: 10px; }

/* 4. Projects Section (Card Stacking) */
.projects-section { 
    height: 100vh; 
    display: flex; flex-direction: column; justify-content: center;
}
.projects-wrapper {
    position: relative;
    width: 100%; max-width: 1000px; height: 60vh;
    margin: 0 auto;
}
.project-card {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 30px; overflow: hidden;
    background: #000; border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; justify-content: flex-end;
    opacity: 0; transform-origin: center top;
}
.card-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.card-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1); }
.overlay-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}
.card-content {
    position: relative; z-index: 2; padding: 40px; width: 100%;
    display: flex; flex-direction: column; gap: 20px;
    transform: translateY(20px); transition: 0.5s;
}
.project-category { text-transform: uppercase; font-size: 0.9rem; letter-spacing: 2px; color: var(--secondary); font-weight: 700; display: block; margin-bottom: 5px; }
.project-title { font-size: 3.5rem; font-weight: 800; color: white; line-height: 1; margin: 0; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 10px; }
.tech-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tech-tags span { padding: 8px 16px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border-radius: 20px; font-size: 0.85rem; color: var(--text-muted); transition: 0.3s; }
.tech-tags span:hover { background: var(--primary); color: white; border-color: var(--primary); }
.btn-project { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-weight: 600; font-size: 1.1rem; padding: 10px 20px; border-radius: 30px; background: rgba(255,255,255,0.05); transition: 0.3s; }
.btn-project:hover { background: white; color: black; }
.project-card:hover .card-bg img { transform: scale(1.1); }
.project-card:hover { border-color: var(--primary); }

/* 5. Services */
.services-section { height: 100vh; }
.services-container { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.service-card {
    background: rgba(255,255,255,0.03); backdrop-filter: blur(10px);
    padding: 40px; border-radius: 20px; border: 1px solid var(--border);
    width: 300px; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}
.icon-box { font-size: 3rem; margin-bottom: 20px; }

/* 6. Contact (Glass) */
.contact-section { position: relative; padding: 100px 0; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.contact-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%); top: 50%; right: 0; transform: translate(20%, -50%); pointer-events: none; z-index: 0; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.status-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(34, 197, 94, 0.1); color: #4ade80; padding: 8px 16px; border-radius: 30px; font-size: 0.9rem; font-weight: 500; margin-bottom: 20px; border: 1px solid rgba(34, 197, 94, 0.2); }
.pulse-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.contact-desc { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; max-width: 450px; }
.contact-details { display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; }
.detail-item { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; color: white; }
.detail-item i { color: var(--primary); }
.social-links-big { display: flex; gap: 20px; }
.social-btn { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center; color: white; font-size: 1.2rem; transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); text-decoration: none; }
.social-btn:hover { background: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3); }
.glass-form { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(20px); padding: 50px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 25px 50px rgba(0,0,0,0.2); display: flex; flex-direction: column; gap: 25px; }
.form-group { position: relative; }
.form-group input, .form-group textarea { width: 100%; padding: 15px 0; background: transparent; border: none; border-bottom: 2px solid rgba(255,255,255,0.2); color: white; font-size: 1.1rem; outline: none; transition: 0.3s; font-family: var(--font-main); }
.form-group label { position: absolute; top: 15px; left: 0; color: var(--text-muted); pointer-events: none; transition: 0.3s ease all; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--primary); }
.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label, .form-group textarea:focus ~ label, .form-group textarea:not(:placeholder-shown) ~ label { top: -10px; font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.btn-submit { margin-top: 10px; padding: 18px; background: linear-gradient(45deg, var(--primary), var(--accent)); border: none; border-radius: 15px; color: white; font-weight: 700; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; transition: 0.3s; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3); }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5); }

/* =========================================
   RESPONSIVIDADE (MEDIA QUERIES) 
   ========================================= */

/* 1. Notebooks e Tablets Grandes (max-width: 1024px) */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .hero-title { font-size: 4rem; }
    .hero-img { width: 350px; height: 450px; }
    
    .projects-wrapper { width: 95%; }
    .project-title { font-size: 3rem; }

    .contact-wrapper { gap: 40px; }
    .glass-form { padding: 40px; }
}

/* 2. Tablets e Celulares Grandes (max-width: 768px) */
@media (max-width: 768px) {
    /* Navbar compacta */
    .navbar { padding: 15px 20px; background: rgba(11, 11, 15, 0.9); }
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.8rem; }
    
    /* Hero: Stack Vertical */
    .hero-section {
        flex-direction: column-reverse; /* Imagem em cima do texto */
        justify-content: center;
        gap: 40px;
        padding-top: 80px; /* Espaço para navbar */
        text-align: center;
    }

    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: 3.5rem; justify-content: center; }
    .hero-img { width: 100%; max-width: 350px; height: 400px; }
    .btn-primary { width: 100%; text-align: center; }

    /* About */
    .about-section { height: auto; padding: 100px 0; }
    .stats-container { gap: 20px; }
    .stat-item span { font-size: 2rem; }

    /* Skills */
    .skills-section { height: auto; padding: 100px 0; }
    .skills-grid { gap: 15px; }
    .skill-card { width: 45%; padding: 20px; } /* 2 por linha */

    /* Projetos */
    .projects-section { height: 100vh; } 
    .projects-wrapper { height: 65vh; } /* Cards mais altos para caber na tela vertical */
    .project-title { font-size: 2rem; }
    .project-category { font-size: 0.8rem; }
    .card-content { padding: 25px; }
    .card-footer { flex-direction: column; align-items: flex-start; gap: 15px; }
    .btn-project { width: 100%; justify-content: center; }
    
    /* Serviços */
    .services-section { height: auto; padding: 100px 0; }
    .service-card { width: 100%; max-width: 400px; }

    /* Contato */
    .contact-section { padding: 80px 0; height: auto; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 50px; } /* Stack */
    .contact-info { text-align: center; align-items: center; }
    .glass-form { padding: 30px; }
}

/* 3. Celulares Pequenos (max-width: 480px) */
@media (max-width: 480px) {
    /* Ajustes finos para telas estreitas */
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .nav-links { display: none; } /* Esconde menu (ideal seria um hamburger menu JS, mas para manter simples, escondemos ou reduzimos) */
    .navbar { justify-content: center; }
    
    .skills-grid { flex-direction: column; align-items: center; }
    .skill-card { width: 100%; max-width: 300px; }

    .project-title { font-size: 1.8rem; }
    .tech-tags span { font-size: 0.75rem; padding: 5px 10px; }
    
    .contact-glow { width: 100%; height: 100%; top: 0; right: 0; transform: none; }
}