* {margin:0;padding:0;box-sizing:border-box;}

body, html {
    background: #0d1c1b !important;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #222;
    color: #fff;
    box-shadow: 0 2px 8px #0001;
    position: sticky; top:0; z-index:999;
}

.navbar {
    max-width: 1100px; margin:0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 1rem;
    position: relative;
}

.logo {
    font-weight: bold; font-size: 1.5rem; color:#67b26f; letter-spacing:2px;
}

.nav-links { list-style:none; display: flex; gap:1.5rem; }
.nav-links li a {color:#fff; text-decoration:none; font-size:1.08rem; font-weight:500; transition:color .2s;}
.nav-links li a:hover, .nav-links li a.active {color: #67b26f;}
.nav-toggle {display:none;}

@media (max-width: 700px) {
    .nav-links { 
        flex-direction: column;
        position: fixed; top:0; right: -300px;
        width: 70vw; max-width: 260px; height: 100vh;
        background: #1a382b; box-shadow: -6px 0 24px #0005;
        padding: 2.2rem 1.5rem; z-index: 2001;
        gap: 1.2rem; transition: right .28s cubic-bezier(.22,1,.36,1);
        font-size: 1.2rem;
    }
    .nav-links.open { right: 0; }
    .nav-toggle { display:block; font-size:2.1rem; background:none; border:none; color:#67b26f; cursor:pointer;}
    .menu-bg {
        display: none; position:fixed; left:0;top:0; width:100vw;height:100vh; background:#0007; z-index:1999;
    }
    .menu-bg.open {display:block;}
}

main { flex:1; max-width:1000px; margin:2rem auto; padding:1rem; }

.about { 
    display:flex; 
    gap:2rem; 
    align-items:flex-start; 
    flex-wrap:wrap; 
    margin-top:1rem; 
}
.about h2, .about p {
    color: #fff !important;
}
.about h2 {
    font-size: 2rem;
    margin-bottom: 0.7rem;
    font-weight: bold;
}
.profile-img { width:160px;height:160px;object-fit:cover;border-radius:50%;border:4px solid #67b26f;background:#fff;box-shadow:0 2px 12px #0003;}
.skills {margin-top:1.2rem;display:flex;gap:1.2rem;flex-wrap:wrap;list-style:none;}
.skills li {background:linear-gradient(90deg,#67b26f 60%,#4ca2cd 100%);color:#fff;padding:.4rem 1.15rem;border-radius:1.2rem;font-size:.98rem;font-weight:500;box-shadow:0 1px 5px #67b26f19;}

footer {
    background:#222; color:#fff; text-align:center; padding:1.1rem 0 .8rem 0; font-size:1rem; margin-top:3rem;
}

footer a { color:#67b26f; text-decoration:none; transition:color .2s; }
footer a:hover { color:#4ca2cd; }

/* --- HERO --- */
.hero-bg {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(90deg, #13361e 67%, #39e08022 100%);
    border-radius: 2.5rem;
    margin-top: 2.3rem;
    min-height: 390px;
    padding: 0 0 0 3.2rem; /* Remove o padding-right */
    overflow: hidden;
    box-shadow: 0 12px 40px #203a2d30;
    position: relative;
}

.hero-text {
    flex: 1 1 520px;
    z-index: 2;
    color: #fff;
    max-width: 650px;
}
.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.1rem;
    color: #39e080;
    text-shadow: 0 2px 16px #101;
}
.hero-text p {
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 1px 6px #0c21107a;
}
.hero-img {
    flex: 0 1 530px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-width: 220px;
    margin-right: -40px; /* Faz a imagem colar mais à direita, ajuste o valor se quiser mais ou menos */
    margin-left: auto;
    height: 100%;
}

.hero-img img {
    width: 400px;
    max-width: 100vw;
    height: auto;
    border-radius: 0 0 2.4rem 2.4rem;
    box-shadow: 0 14px 36px #1d39281c;
    object-fit: contain;
    margin-bottom: 0;
    background: transparent;
    display: block;
}

@media (max-width: 1200px) {
    .hero-img img { width: 270px; }
}
@media (max-width: 950px) {
    .hero-text h1 { font-size: 2.1rem;}
    .hero-img img { width: 180px;}
}
@media (max-width: 850px) {
    .hero-bg {
        flex-direction: column-reverse;
        align-items: center;
        padding: 1.4rem 0.6rem 0.5rem 0.6rem;
        min-height: 260px;
    }
    .hero-img { justify-content: center; margin-left: 0;}
    .hero-img img { width: 140px;}
    .hero-text { text-align: center;}
}
@media (max-width: 600px) {
    .hero-bg { min-height: 170px; border-radius: 1.2rem;}
    .hero-img img { width: 95px; border-radius: 0 0 1.1rem 1.1rem;}
    .hero-text h1 { font-size: 1.1rem; margin-bottom: 0.6rem;}
    .hero-text p { font-size: 1rem;}
}

/* --- Linha do tempo --- */
.timeline { position:relative; padding-left:44px; margin-top:2.2rem;}
.timeline-vertical {
    position:absolute; left:20px; top:0;
    width:6px; background:linear-gradient(to bottom,#67b26f 90%,#fff0); border-radius:6px;
    z-index:0; height:50px; transition:height .4s cubic-bezier(.36,1,.63,1);
}
.timeline-title,
.projects-title,
.contact-title,
.contact-title-main {
    font-size: 2.2rem !important;
    color: #fff !important;
    text-align: center;
    margin-bottom: .2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: bold;
}
.timeline-desc,
.projects-desc,
.contact-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #d8f9ee !important;
    margin-bottom: 2.3rem;
    font-weight: 400;
}
.timeline-event {
    position:relative; margin-bottom:2.7rem; background:#193323e0 !important; border-radius:12px; box-shadow:0 2px 12px #4ca2cd13;
    opacity:0; transform:translateY(60px) scale(.96); transition:all .53s cubic-bezier(.45,.02,.41,1.03); cursor:pointer; z-index:1;
    padding:1rem 1.2rem 1rem 1.6rem;
    color: #fff !important;
}
.timeline-event.visible {opacity:1;transform:translateY(0) scale(1);}
.timeline-event .timeline-icon {
    position:absolute; left:-36px; top:14px; width:36px; height:36px;
    background:#174826 !important; border:3px solid #67b26f; border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:1.65rem; color:#39e080 !important; box-shadow:0 1px 8px #0002; z-index:2; transition:background .2s,color .2s;
}
.timeline-event:hover { background:#226e3bb0 !important;}
.timeline-event:hover .timeline-icon {background:#67b26f !important;color:#fff !important;}
.timeline-date {font-weight:bold;color:#9effbc !important;font-size: 1.12rem;margin-bottom:.22rem;letter-spacing: 0.01em;}
.timeline-content {margin-top:0.2rem;}
.timeline-event h3 {
    color: #39e080 !important;
    font-size: 1.08rem;
}
.timeline-event p {
    color: #f3fff6 !important;
}
@media (max-width:500px){
    .timeline{padding-left:32px;}
    .timeline-vertical{left:10px;}
    .timeline-event .timeline-icon{left:-24px;}
}
@media (max-width: 700px) {
    .timeline-title, .projects-title, .contact-title, .contact-title-main { font-size: 1.32rem;}
}

/* --- Projetos --- */
.projects-title { margin-top: 2.2rem; color: #fff !important; }
.projects-desc { margin-bottom: 2.2rem; color: #d8f9ee !important;}
.projects-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.project-card {
    background: #143622 !important;
    color: #fff !important;
    border-radius: 1.4rem;
    box-shadow: 0 4px 22px #4ca2cd1a;
    padding: 2.1rem 1.2rem 1.35rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2.5px solid #39e08066;
    position: relative;
    transition: transform .19s, box-shadow .22s, border .22s;
}
.project-card .proj-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(100deg, #67b26f 60%, #4ca2cd 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 2px 16px #67b26f24;
    margin-bottom: 1rem;
    border: 2px solid #fff;
    transition: background .18s, color .18s;
}
.project-card h2 {
    color: #39e080 !important;
    font-size: 1.27rem;
    font-weight: bold;
    margin-bottom: .55rem;
    letter-spacing: .5px;
}
.project-card p {
    color: #f3fff6 !important;
    font-size: 1.08rem;
}
.project-card.highlight {
    border: 2.5px solid #4ca2cd88;
    background: linear-gradient(105deg, #1a5231 80%, #265d42 100%) !important;
    transform: scale(1.035);
}
.project-card:hover, .project-card:focus {
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 14px 40px #67b26f33, 0 2px 12px #4ca2cd22;
    border: 2.5px solid #67b26f88;
}
@media (max-width: 700px) {
    .projects-title { font-size: 1.36rem;}
    .project-card { padding: 1.3rem .6rem; }
    .projects-grid { gap: 1.2rem; }
}

/* --- Formulário --- */
.contact-hero {
    text-align: center;
    margin-top: 2.2rem;
    margin-bottom: 1.2rem;
}
.contact-title-main {
    font-size: 2.2rem;
    color: #fff !important;
    font-weight: bold;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.contact-subtitle {
    font-size: 1.12rem;
    color: #b4f0d5 !important;
    margin-bottom: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.contact-area {
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: center;
    background: #153525;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px #67b26f0b;
    padding: 2.2rem 2.1rem;
}
.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    flex: 1 1 210px;
    min-width: 220px;
    max-width: 260px;
}
.contact-card2 {
    display: flex;
    align-items: center;
    background: #153c29;
    border-radius: 1.1rem;
    padding: 1.1rem 1.15rem;
    gap: 1.2rem;
    box-shadow: 0 2px 10px #4ca2cd15;
    border-left: 5px solid #67b26f33;
    transition: box-shadow .18s, transform .15s;
    color: #fff;
}
.contact-card2:hover {
    box-shadow: 0 8px 36px #4ca2cd25;
    transform: translateY(-4px) scale(1.03);
    border-left: 5px solid #67b26f;
    color: #fff;
}
.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.7rem;
    color: #4ca2cd;
    background: #17482633;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-label {
    font-size: 1.04rem;
    color: #b4f0d5;
    font-weight: bold;
}
.info-value {
    font-size: 1.07rem;
    color: #fff;
    margin-top: 2px;
    word-break: break-word;
}

.contact-form-bloco {
    flex: 1 1 370px;
    min-width: 250px;
    max-width: 420px;
}
.contact-form {
    background: #14281a;
    padding: 2rem 1.2rem;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px #4ca2cd22;
    display: flex;
    flex-direction: column;
    gap: 1.13rem;
    animation: fadeInForm .8s;
}
@keyframes fadeInForm {
    from { opacity:0; transform:translateY(32px);}
    to   { opacity:1; transform:translateY(0);}
}
.contact-form button {
    background: linear-gradient(90deg,#67b26f 40%,#4ca2cd 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1.08rem 0;
    font-size: 1.11rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: .7rem;
    box-shadow: 0 2px 14px #67b26f26;
    transition: background .23s, transform .16s;
    display: flex;
    align-items: center;
    gap: .7rem;
    justify-content: center;
    letter-spacing: 0.2px;
}
.contact-form button:hover {
    background: linear-gradient(90deg,#4ca2cd 40%,#67b26f 100%);
    transform: scale(1.04);
}
.input-wrap input, .input-wrap textarea {
    padding-left: 2.2rem;
}
.input-wrap input,
.input-wrap textarea {
    background: #11291c;
    color: #fff;
    border:1.4px solid #67b26f77;
}
.input-wrap input:focus, .input-wrap textarea:focus {
    border:1.8px solid #67b26f;
    background:#163e28;
}
.form-icon {
    position:absolute; left:10px; top:50%; transform:translateY(-50%);
    font-size:1.14rem; color:#4ca2cd; pointer-events:none;
}
.form-msg {margin-top:.5rem;font-weight:500;text-align:center;color:#39e080;}
@media (max-width: 900px) {
    .contact-area { flex-direction: column; gap: 2.2rem; padding: 2.2rem 1.1rem;}
    .contact-infos, .contact-form-bloco { max-width:100%; min-width:0; }
}
@media (max-width: 600px) {
    .contact-title-main { font-size: 1.3rem;}
    .contact-area { padding: 1.1rem .3rem;}
    .contact-form { padding: 1.3rem .7rem; }
    .contact-infos { gap: .7rem; }
    .contact-card2 { padding: .95rem .8rem; }
    .info-icon { width:38px; height:38px; font-size:1.2rem;}
}

/* --- Habilidades --- */
.skills-block {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 1.2rem 0;
    background: none;
}
.skills-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.3rem;
    font-weight: bold;
    display: flex; align-items: center; gap: 0.7rem;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem 1.5rem;
}
.skill-card {
    background: #122726;
    color: #fff;
    border-radius: 1.3rem;
    font-size: 1.13rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 2px 16px #10241333;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: background 0.16s, box-shadow 0.22s, transform 0.14s;
    border: 2px solid #1c3a32;
}
.skill-card:hover {
    background: #204e34;
    box-shadow: 0 8px 30px #35ff7e21;
    transform: translateY(-3px) scale(1.04);
}
.skill-ico {
    font-size: 1.25em;
    color: #39e080;
    background: #16482c;
    padding: .5em;
    border-radius: 10px;
    margin-right: .15em;
    display: flex; align-items: center; justify-content: center;
}
@media (max-width: 800px) {
    .skills-title { font-size: 1.2rem;}
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .skill-card { font-size: 1rem; padding: 0.8rem 0.7rem;}
}
.contact-area {
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: center;
    background: rgba(18,45,33, 0.97);
    border-radius: 2rem;
    box-shadow: 0 8px 48px #39e08015;
    padding: 2.8rem 2.5rem;
}

.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    flex: 1 1 210px;
    min-width: 220px;
    max-width: 260px;
}

.contact-card2 {
    display: flex;
    align-items: center;
    background: rgba(15,30,22,0.97);
    border-radius: 1.2rem;
    padding: 1.2rem 1.3rem;
    gap: 1.1rem;
    box-shadow: 0 4px 22px #39e08022;
    border-left: 6px solid #39e08077;
    transition: box-shadow .18s, transform .15s;
    color: #fff;
    min-width: 190px;
}

.contact-card2:hover {
    box-shadow: 0 8px 36px #4ca2cd33;
    transform: translateY(-4px) scale(1.025);
    border-left: 6px solid #4ca2cd;
}

.info-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.35rem;
    color: #39e080;
    background: #16482c30;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-label {
    font-size: 1.13rem;
    color: #fff;
    font-weight: bold;
}

.info-value {
    font-size: 1.01rem;
    color: #e5fbee;
    margin-top: 2px;
    word-break: break-word;
}

.contact-form-bloco {
    flex: 1 1 380px;
    min-width: 270px;
    max-width: 440px;
}

.contact-form {
    background: rgba(13, 35, 25, 0.99);
    padding: 2rem 1.5rem;
    border-radius: 1.4rem;
    box-shadow: 0 2px 16px #4ca2cd18;
    display: flex;
    flex-direction: column;
    gap: 1.13rem;
    animation: fadeInForm .8s;
}

.input-wrap {
    position: relative;
    margin-bottom: .3rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: .85rem 1.1rem .85rem 2.5rem;
    border:1.5px solid #3caa72;
    border-radius:10px;
    font-size:1.13rem;
    background: #143822ee;
    color: #fff;
    outline: none;
    transition: border .21s, background .14s;
    margin-bottom: 0.4rem;
    box-shadow: 0 1px 6px #39e08011;
}

.contact-form input:focus, .contact-form textarea:focus {
    border:1.8px solid #67b26f;
    background:#163e28;
}

.form-icon {
    position:absolute; left:14px; top:50%; transform:translateY(-50%);
    font-size:1.17rem; color:#39e080; pointer-events:none;
}

.contact-form button {
    background: linear-gradient(90deg,#67b26f 30%,#4ca2cd 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 1.05rem 0;
    font-size: 1.18rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: .6rem;
    box-shadow: 0 2px 14px #67b26f26;
    transition: background .23s, transform .16s;
    display: flex;
    align-items: center;
    gap: .7rem;
    justify-content: center;
    letter-spacing: 0.2px;
    width: 100%;
}
.contact-form button:hover {
    background: linear-gradient(90deg,#4ca2cd 20%,#67b26f 100%);
    transform: scale(1.04);
}

.form-msg {margin-top:.5rem;font-weight:600;text-align:center;color:#39e080;font-size:1rem;}

@media (max-width: 900px) {
    .contact-area { flex-direction: column; gap: 2.2rem; padding: 2.2rem 1.1rem;}
    .contact-infos, .contact-form-bloco { max-width:100%; min-width:0; }
}
@media (max-width: 650px) {
    .contact-area { padding: 1.2rem 0.2rem; }
    .contact-infos { gap: .7rem; }
    .contact-card2 { padding: .95rem .7rem; }
    .info-icon { width:32px; height:32px; font-size:1.1rem;}
}
/* No mobile, some com a imagem de perfil e reduz o espaçamento */
@media (max-width: 700px) {
    .hero-img { display: none; }
    .hero-bg {
        padding: 1rem 0.7rem;
        min-height: 80px;
        border-radius: 1.1rem;
    }
}
