/* --- VARIÁVEIS E SETUP --- */
:root {
    --bg-color: #09090a;
    --card-bg: #121214;
    --white: #e1e1e6;
    --gray: #a8a8b3;
    --accent: #8257e5; 
    --accent-glow: rgba(130, 87, 229, 0.4);
}

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

body { 
    background: var(--bg-color); 
    color: var(--white); 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden; 
}

.subtitle, .tech-stack span, .company, .logo, .email-text { 
    font-family: 'Fira Code', monospace; 
}

/* --- NAVBAR --- */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    padding: 30px 8%; 
    align-items: center; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 100; 
    transition: 0.3s ease;
}

.navbar.scrolled {
    background: rgba(18, 18, 20, 0.95);
    box-shadow: 0 4px 20px rgba(130, 87, 229, 0.15);
    padding: 20px 8%; 
    border-bottom: 1px solid #202024;
}

.navbar ul { display: flex; list-style: none; gap: 30px; }
.navbar a { 
    color: var(--gray); 
    text-decoration: none; 
    font-size: 14px; 
    transition: 0.3s; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
.navbar a:hover { 
    color: var(--accent); 
    text-shadow: 0 0 5px var(--accent-glow); 
}

.logo { font-weight: 700; letter-spacing: -1px; } 
.logo b { color: var(--accent); }

/* --- HERO SECTION --- */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    padding: 120px 8% 50px; 
    background: radial-gradient(circle at 90% 10%, rgba(130, 87, 229, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(130, 87, 229, 0.05) 0%, var(--bg-color) 100%);
}

.hero-wrapper {
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 60px; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%;
}

.subtitle { 
    color: var(--accent); 
    background: rgba(130, 87, 229, 0.1); 
    padding: 5px 10px; 
    border-radius: 4px; 
    display: inline-block; 
    font-size: 14px; 
    font-weight: 500; 
    margin-bottom: 25px; 
}

.typing-text::after { content: '_'; animation: blink 1s infinite; color: var(--accent); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1.1; font-weight: 900; margin-bottom: 25px; }
.outline { -webkit-text-stroke: 1px var(--white); color: transparent; text-shadow: 0 0 20px rgba(255,255,255, 0.1); }
.hero-desc { color: var(--gray); max-width: 550px; font-size: 1.1rem; margin-bottom: 40px; line-height: 1.6; }

.hero-image-container {
    width: 320px;       
    height: 320px;
    border-radius: 30px;
    border: 3px solid var(--accent);
    box-shadow: 0 0 30px rgba(130, 87, 229, 0.3), inset 0 0 20px rgba(130, 87, 229, 0.2);
    overflow: hidden;   
    margin: 0 auto;     
    position: relative;
    transition: 0.5s ease;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.6); 
    object-position: center 10%; 
    transition: 0.5s ease;
}

.hero-image-container:hover {
    box-shadow: 0 0 60px rgba(130, 87, 229, 0.6);
    transform: translateY(-5px);
}

/* --- BOTÕES --- */
.actions { display: flex; align-items: center; }

.btn-main { background: var(--accent); color: #fff; padding: 18px 40px; text-decoration: none; font-weight: 700; border-radius: 4px; transition: 0.3s; box-shadow: 0 0 15px var(--accent-glow); text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.btn-main:hover { background: #966bf2; box-shadow: 0 0 25px var(--accent); }

.btn-sub { background: #202024; color: var(--gray); padding: 18px 40px; text-decoration: none; margin-left: 20px; border: 1px solid #29292e; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; transition: 0.3s; }
.btn-sub:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 15px rgba(130, 87, 229, 0.15); }

/* --- SECTIONS GERAL --- */
.section { padding: 120px 8%; }
.line { width: 50px; height: 3px; background: var(--accent); display: block; margin-bottom: 20px; box-shadow: 0 0 10px var(--accent); }
h2 { font-size: 2.5rem; margin-bottom: 30px; }
.section p { font-size: 1.2rem; color: var(--gray); max-width: 800px; line-height: 1.6; }

/* --- EXPERIÊNCIA (JOB CARDS) --- */
.job-card { background: var(--card-bg); padding: 40px; border-left: 2px solid var(--accent); border-top: 1px solid #202024; border-right: 1px solid #202024; border-bottom: 1px solid #202024; margin-bottom: 30px; border-radius: 4px; transition: transform 0.3s, border-color 0.3s; position: relative; overflow: hidden; }
.job-card:hover { transform: translateY(-5px); border-color: #9d4edd; }
.job-card h3 { font-size: 1.5rem; margin-bottom: 5px; color: var(--white); }
.company { display: block; color: var(--accent); font-size: 0.9rem; margin-bottom: 15px; }

.tech-stack { margin-top: 25px; display: flex; gap: 10px; flex-wrap: wrap; }
.tech-stack span { background: #202024; color: var(--gray); padding: 6px 14px; border-radius: 4px; font-size: 0.8rem; border: 1px solid #29292e; transition: 0.3s; }
.tech-stack span:hover { color: var(--accent); border-color: var(--accent); }

.previous-job { opacity: 0.7; border-left: 2px solid #29292e; }

/* --- GRID DE PROJETOS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid #202024;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-img {
    width: 100%;
    height: 220px; 
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #202024;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ZOOM EXECUTADO AQUI */
.project-card:hover .project-img img {
    transform: scale(1.15); 
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--white);
}

.project-content p {
    font-size: 0.95rem !important;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 20px;
}

.project-stack {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.project-links a:hover {
    color: var(--accent);
}

/* --- FOOTER --- */
.footer { background: #09090a; padding: 80px 8% 20px; border-top: 1px solid #202024; margin-top: 50px; text-align: center; }
.footer-container { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.social-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 15px; }
.social-links a { width: 55px; height: 55px; background: #121214; border: 1px solid #202024; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); text-decoration: none; transition: 0.3s; font-size: 1.4rem; }
.social-links a:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); transform: translateY(-5px); }
.email-text { margin-top: 10px; font-size: 0.8rem; color: var(--gray); }
.footer-bottom { padding-top: 20px; border-top: 1px solid #202024; color: #444; font-size: 0.8rem; }

/* --- MEDIA QUERIES --- */
@media (max-width: 968px) {
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text { order: 2; } 
    .hero-image-container { order: 1; width: 250px; height: 250px; }
    .hero-desc { margin: 0 auto 40px; }
    .actions { justify-content: center; flex-direction: column; gap: 15px; }
    .btn-sub { margin-left: 0; }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-img {
        height: 200px;
    }
}