/* Paleta: amarelo #FFD600, preto #111, cinza #F5F5F5, cinza escuro #444 */

:root {
    --yellow: #FFD600;
    --black: #111;
    --gray-light: #F5F5F5;
    --gray-dark: #444;
    --radius: 18px;
    --transition: 0.3s;
}

html {
    box-sizing: border-box;
    font-size: 16px;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--gray-light);
    color: var(--black);
    min-height: 100vh;
    letter-spacing: 0.02em;
}

/* HEADER */
header {
    background: var(--black);
    color: var(--yellow);
    padding: 24px 0 18px 0;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border-bottom: 4px solid var(--yellow);
    position: relative;
}

header h1 {
    margin: 0 0 12px 0;
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: var(--yellow);
    word-break: break-word;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

header nav a {
    color: var(--yellow);
    text-decoration: none;
    font-size: 1.08rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
    display: inline-block;
}

header nav a:hover,
header nav a.active {
    background: var(--yellow);
    color: var(--black);
    font-weight: 600;
    text-decoration: none;
}

/* MAIN */
main {
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* SECTIONS */
section {
    margin-bottom: 40px;
    background: none;
    color: #111;
    padding: 32px 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: 900px;
    width: 100%;
    transition: none;
    box-sizing: border-box;
}

section:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

h2 {
    color: var(--yellow);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.03em;
    word-break: break-word;
}

/* LISTAS */
section ul {
    padding-left: 20px;
    margin: 0;
}

section ul li {
    color: var(--yellow);
    margin-bottom: 6px;
    font-weight: 500;
}

/* SEÇÕES GERAIS */
section, .project-row {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    margin: 48px auto;
    padding: 40px 0;
    border-bottom: 3px solid #FFD600;
    max-width: 1100px;
    width: 95vw;
    transition: box-shadow 0.3s, border 0.3s;
}

/* Remove borda do último projeto */
#projects-showcase .project-row:last-child {
    border-bottom: none;
}

/* PROJETOS */
#projects-showcase {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
    /* Remova qualquer overflow ou height! */
    overflow: visible !important;
    height: auto !important;
    min-height: unset !important;
}

#projects-showcase .h2 {
    color: var(--yellow);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 700;
}

.project-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 100px 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 2px solid #FFD600; /* Linha sutil entre projetos */
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}

.project-row:last-child {
    border-bottom: none;
}

.project-row.reverse {
    flex-direction: row-reverse;
}

.project-img-col {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0;
}

.project-img-col img {
    width: 90%;
    max-width: 480px;
    min-width: 220px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #eee;
    display: block;
}

.project-info-col {
    flex: 1 1 50%;
    padding: 0 48px;
    min-width: 0;
    color: #111;
    text-align: left;
    background: none;
}

.project-info-col h3 {
    color: #FFD600;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 700;
}

.project-info-col p {
    color: #111;
    font-size: 1.15rem;
    margin-bottom: 18px;
}

.tools {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.tools li {
    background: #FFD600;
    color: #111;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: none;
}

/* Projetos em tela cheia, sem containers, sem bordas */
#projects-showcase {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin: 0;
    background: none;
}

.project-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
    padding: 64px 0;
    margin: 0;
    background: #fff;
    border-bottom: 3px solid #FFD600; /* Borda amarela separando as seções */
    transition: background 0.3s;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

.project-row:last-child {
    border-bottom: none;
}

.project-row.fadeon {
    opacity: 1;
    transform: translateY(0);
}

.project-row.reverse {
    flex-direction: row-reverse;
}

.project-img-col {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.project-img-col img {
    width: 90%;
    max-width: 480px;
    min-width: 220px;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    background: #eee;
    display: block;
}

.project-info-col {
    flex: 1 1 50%;
    padding: 0 48px;
    min-width: 0;
    color: #111;
    text-align: left;
}

.project-info-col h3 {
    color: #FFD600;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 700;
}

.project-info-col p {
    color: #111;
    font-size: 1.15rem;
    margin-bottom: 18px;
}

.tools {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.tools li {
    background: #FFD600;
    color: #111;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: none;
}

/* Responsividade */
@media (max-width: 1100px) {
    #projects-showcase {
        max-width: 98vw;
        width: 98vw;
    }
}

@media (max-width: 900px) {
    .project-row {
        flex-direction: column !important;
        padding: 32px 0;
        margin: 32px 0;
    }
    .project-img-col, .project-info-col {
        width: 100%;
        max-width: 100vw;
        padding: 0;
    }
    .project-info-col {
        padding: 24px 8vw;
        text-align: center;
    }
    .project-img-col img {
        width: 98vw;
        max-width: 98vw;
        margin-bottom: 18px;
    }
}

@media (max-width: 600px) {
    .project-row {
        padding: 10px 0;
        border-radius: 0;
    }
    .project-info-col {
        padding: 12px 4vw;
    }
    .project-img-col img {
        border-radius: 8px;
    }
}

/* Remove margens entre projetos para efeito contínuo */
#projects-showcase .project-row + .project-row {
    margin-top: 0;
}

/* FADE ANIMATION */
.fadeoff {
    opacity: 0;
    transform: translateY(60px);
    pointer-events: none;
    transition: opacity 0.8s, transform 0.8s;
}

.fadeon {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.8s, transform 0.8s;
}

/* BOTÃO VOLTAR AO TOPO */
#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    background: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--black);
    color: var(--yellow);
    border: 2px solid var(--yellow);
}

/* BUTTONS */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    background: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: 
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition),
        transform 0.1s;
    outline: none;
    letter-spacing: 0.03em;
    margin: 8px 0;
    display: inline-block;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    background: var(--black);
    color: var(--yellow);
    border: 2px solid var(--yellow);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transform: translateY(-2px) scale(1.03);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 28px 0;
    background: var(--black);
    color: var(--yellow);
    margin-top: 32px;
    border-top: 4px solid var(--yellow);
    font-size: 1.08rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

footer p {
    margin: 0;
}

/* SKILLS */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 6px;
    justify-content: flex-start;
}

.skill-badge {
    background: #FFD600;
    color: #111;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 22px;
    padding: 8px 22px;
    box-shadow: none;
    border: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: inline-block;
    letter-spacing: 0.03em;
    border: 2px solid transparent;
}

.skill-badge:hover,
.skill-badge:focus {
    background: #111;
    color: #FFD600;
    border: 2px solid #FFD600;
    transform: scale(1.07);
    cursor: pointer;
    outline: none;
}

/* Responsividade para badges */
@media (max-width: 700px) {
    .skills-list {
        gap: 10px;
        justify-content: center;
    }
    .skill-badge {
        font-size: 0.97rem;
        padding: 7px 16px;
    }
}

@media (max-width: 480px) {
    .skills-list {
        gap: 7px;
    }
    .skill-badge {
        font-size: 0.92rem;
        padding: 6px 10px;
    }
}

/* RESPONSIVIDADE */

/* Tablets e telas médias */
@media (max-width: 1024px) {
    section, .project {
        max-width: 96vw;
        padding: 24px 16px;
    }
    main {
        padding: 18px 0;
    }
}

/* Telas pequenas e celulares */
@media (max-width: 700px) {
    header {
        padding: 16px 0 12px 0;
    }
    header h1 {
        font-size: 1.3rem;
        padding: 0 8px;
    }
    header nav ul {
        flex-direction: column;
        gap: 0;
    }
    header nav a {
        display: block;
        margin: 0 auto 6px auto;
        width: fit-content;
    }
    section, .project {
        padding: 16px 8px;
        margin-left: 10px;
        margin-right: 10px;
        max-width: 98vw;
    }
    .project {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .project .project-img img {
        width: 100%;
        height: 160px;
    }
    main {
        padding: 10px 0;
    }
    footer {
        padding: 18px 0;
        font-size: 1rem;
    }
}

/* Celulares muito pequenos */
@media (max-width: 480px) {
    section, .project {
        padding: 10px 4px;
        margin-left: 4px;
        margin-right: 4px;
    }
    h2 {
        font-size: 1.05rem;
    }
    .project .project-img img {
        height: 120px;
    }
    header h1 {
        font-size: 1.05rem;
    }
}

/* Ajustes extras para telas grandes */
@media (min-width: 1200px) {
    section, .project {
        max-width: 900px;
    }
}

/* Responsividade */
@media (max-width: 900px) {
    .project-content {
        flex-direction: column;
        gap: 24px;
        padding: 32px 12px;
        width: 98vw;
    }
    .project-img img {
        width: 100%;
        max-width: 340px;
        height: 180px;
    }
}

@media (max-width: 600px) {
    .project-content {
        padding: 16px 2vw;
        border-radius: 12px;
    }
    .project-info h3 {
        font-size: 1.2rem;
    }
    .project-info p {
        font-size: 1rem;
    }
    .project-img img {
        max-width: 98vw;
        height: 120px;
    }
}

/* Projetos estilo hero, tela cheia */
#projects-showcase {
    width: 100vw;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

#projects-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #FFD600;
    text-decoration: underline;
    font-weight: 700;
    margin: 32px 0 16px 0;
    letter-spacing: 0.04em;
    position: relative;

    
}

.project-hero {
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    transition: background-image 0.6s;
}

.project-overlay {
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
    background: rgba(17,17,17,0.55); /* Sutil escurecimento para contraste */
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0; left: 0;
}

.project-info-hero {
    color: #fff;
    text-align: center;
    max-width: 700px;
    margin: 0 24px;
    padding: 40px 24px;
    background: rgba(0,0,0,0.28);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

.project-hero.visible .project-info-hero {
    opacity: 1;
    transform: translateY(0);
}

.project-info-hero h3 {
    color: #FFD600;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 700;
}

.project-info-hero p {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 18px;
}

.tools {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.tools li {
    background: #FFD600;
    color: #111;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: none;
}

/* Responsividade */
@media (max-width: 900px) {
    .project-info-hero {
        max-width: 98vw;
        padding: 24px 8vw;
    }
    .project-info-hero h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .project-info-hero {
        padding: 16px 4vw;
        border-radius: 10px;
    }
    .project-info-hero h3 {
        font-size: 1.05rem;
    }
    .project-info-hero p {
        font-size: 0.98rem;
    }
}

/* Scroll snap para efeito de página cheia */
#projects-showcase {
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: auto;
}
.project-hero {
    scroll-snap-align: start;
}

/* Esconde o scroll vertical para um visual mais limpo */
#projects-showcase {
    scrollbar-width: none;
}
#projects-showcase::-webkit-scrollbar {
    display: none;
}

/* Projetos - nova seção */
#projects .project-tittle {
    width: 100%;
    padding: 64px 0 32px 0;
    margin: 0;
    background: transparent;
    text-align: center;
    position: relative;
}

#projects h2 {
    display: inline-block;
    font-size: 2.2rem;
    color: #FFD600;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.04em;
    position: relative;
    background: transparent;
}

#projects h2::after {
    content: '';
    display: block;
    margin: 16px auto 0 auto;
    width: 60px;
    height: 4px;
    background: #FFD600;
    border-radius: 2px;
    opacity: 0.85;
}

/* Responsivo */
@media (max-width: 600px) {
    #projects {
        padding: 32px 0 18px 0;
    }
    #projects h2 {
        font-size: 1.3rem;
    }
    #projects h2::after {
        width: 36px;
        height: 3px;
        margin-top: 10px;
    }
}

/* CONTACT LIST */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

#contact h2 {
    font-size: 2.2rem;
    color: #FFD600;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    text-align: center;
}

.contact-list li a {
    color: #111;
    font-size: 1.15rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
}

.contact-list li a i {
    font-size: 1.4em;
    color: #FFD600;
    transition: color 0.2s;
}

.contact-list li a:hover,
.contact-list li a:focus {
    background: #FFD600;
    color: #111;
    outline: none;
}

.contact-list li a:hover i,
.contact-list li a:focus i {
    color: #111;
}

/* Responsivo */
@media (max-width: 600px) {
    .contact-list li a {
        font-size: 1rem;
        padding: 8px 12px;
    }
    .contact-list {
        gap: 12px;
    }
}

/* ABOUT SECTION */
#about {
    width: 100%;
    padding: 64px 0 32px 0;
    margin: 0;
    background: transparent;
    text-align: center;
    position: relative;
}

#about h2 {
    font-size: 2.2rem;
    color: #FFD600;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.about-icon i {
    font-size: 4rem;
    color: #FFD600;
    margin-bottom: 8px;
}

.about-text p {
    font-size: 1.18rem;
    color: #111;
    line-height: 1.7;
    margin: 0;
    background: #fff;
    padding: 24px 32px;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

@media (max-width: 600px) {
    #about {
        padding: 32px 0 18px 0;
    }
    #about h2 {
        font-size: 1.3rem;
    }
    .about-text p {
        font-size: 1rem;
        padding: 14px 10px;
    }
}

/* SERVIÇOS */
#services {
    width: 100%;
    padding: 64px 0 32px 0;
    margin: 0;
    background: transparent;
    text-align: center;
    position: relative;
}

#services h2 {
    font-size: 2.2rem;
    color: #FFD600;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 0.04em;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
    max-width: 1100px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 32px 24px;
    flex: 1 1 220px;
    max-width: 260px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card i {
    font-size: 2.5rem;
    color: #FFD600;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: #444;
    font-size: 1rem;
    margin: 0;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

#habilities {
    text-align: center;
    margin-top: 48px;
}

#habilities .skills-list {
    justify-content: center;
}

/* --- ESTILOS DO SELETOR DE IDIOMAS --- */
.language-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.language-selector button {
    background: none;
    border: 1px solid var(--gray-dark);
    padding: 4px 8px; /* Reduzi um pouco o padding para as bandeiras */
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition); /* Transição para todas as propriedades */
    display: flex; /* Para centralizar a bandeira, se necessário */
    align-items: center;
    justify-content: center;
    line-height: 1; /* Garante que o botão tenha a altura da imagem */
}

.language-selector button img {
    display: block; /* Remove o espaço extra abaixo da imagem */
    width: 24px;   /* Largura padrão da bandeira */
    height: 18px;  /* Altura padrão da bandeira (mantendo proporção 4x3) */
    pointer-events: none; /* Impede que o clique na imagem interfira com o botão */
}

.language-selector button:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    transform: none;
}

.language-selector button.active {
    background: none; /* Pode definir como none para que o fundo não mude */
    border: 1px solid transparent; /* Bordas transparentes para não aparecer, mas manter o espaçamento */
    cursor: default;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.5); /* Mantém um brilho amarelo */
}

/* Ajuste para o menu de navegação principal não ficar muito colado */
header nav ul {
    margin-top: 8px;
}

/* Correção para alinhar o seletor de idioma e o menu */
header nav {
    display: flex;
    flex-direction: column; /* Organiza os itens em uma coluna (um em cima do outro) */
    align-items: center;   /* Centraliza os itens horizontalmente na coluna */
}

/* Responsividade para o seletor de idiomas */
@media (max-width: 700px) {
    .language-selector {
        margin-bottom: 8px;
    }
    header nav ul {
        margin-top: 0;
    }
}

/* Responsivo */
@media (max-width: 900px) {
    .services-list {
        gap: 18px;
    }
    .service-card {
        padding: 24px 12px;
        max-width: 48vw;
    }
}

@media (max-width: 600px) {
    #services {
        padding: 32px 0 18px 0;
    }
    #services h2 {
        font-size: 1.3rem;
    }
    .services-list {
        flex-direction: column;
        gap: 14px;
        max-width: 98vw;
    }
    .service-card {
        max-width: 98vw;
        min-width: 0;
        padding: 16px 8px;
    }
}

/* Estilos para o Iframe dos projetos */
.project-img-col iframe {
    width: 90%;
    max-width: 480px;
    min-width: 220px;
    height: 300px; /* Defina uma altura fixa inicial */
    border: 1px solid #ddd; /* Uma borda sutil para delimitar */
    border-radius: 12px; /* A mesma borda arredondada das imagens */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #eee; /* Cor de fundo enquanto o site carrega */
}

/* Para telas menores, podemos ajustar a altura */
@media (max-width: 600px) {
    .project-img-col iframe {
        height: 350px; /* Um pouco mais alto no mobile para facilitar a rolagem */
    }
}

/* --- ESTILOS PARA AMOSTRA INTERATIVA DE PROJETO --- */

.project-preview-container {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    line-height: 0; /* Remove espaços extras da imagem */
}

.project-preview-container img {
    display: block;
    width: 100%;
}

.preview-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.6);
    color: var(--yellow);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-preview-container:hover .preview-button {
    opacity: 1;
}

.preview-button i {
    font-size: 2.5rem;
}

/* Estilo para o iframe que será criado */
.project-img-col iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 12px;
}

/* ==========================================================================
   NOVOS ESTILOS ADICIONADOS (COLE A PARTIR DAQUI)
   ========================================================================== */

/* --- AJUSTES NO LAYOUT BASE DO PROJETO --- */
/* Garante que a linha do projeto seja um container flexível */
.project-row {
    display: flex;
    align-items: center;
    gap: 40px;
}


/* --- ESTILOS PARA FERRAMENTAS E DESCRIÇÃO --- */
.project-info-col h4 {
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--gray-dark);
    font-size: 1.1rem;
}

.tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tools-list li {
    background-color: var(--yellow);
    color: var(--black);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- ESTILO PARA LAYOUT ALTERNADO --- */
.project-row.reverse {
    flex-direction: row-reverse;
}


/* --- BOTÃO EXPANDIR --- */
.expand-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(17, 17, 17, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 5;
}

.expand-button:hover {
    background-color: var(--yellow);
    color: var(--black);
    transform: scale(1.1);
}


/* --- ESTILOS DO MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fundo um pouco mais escuro */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.close-modal-button:hover {
    color: var(--black);
}

.modal-body h3 {
    font-size: 1.8rem;
    color: var(--black);
    margin-top: 0;
    margin-bottom: 16px;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-body .tools-list li {
    /* Estilo um pouco diferente no modal para destaque */
    background-color: #eee;
}


/* --- AJUSTES DE RESPONSIVIDADE PARA AS NOVAS FUNCIONALIDADES --- */
@media (max-width: 900px) {
    /* Garante que a inversão seja desfeita em telas menores */
    .project-row.reverse {
        flex-direction: column;
    }
}

/* --- ESTILO PARA O BOTÃO DE FECHAR AMOSTRA --- */

.close-preview-button {
    position: absolute;
    top: 15px;
    left: 15px; /* Posicionado no canto superior esquerdo */
    background-color: rgba(17, 17, 17, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Tamanho do ícone 'X' */
    transition: transform 0.2s, background-color 0.2s;
    z-index: 10;
}

.close-preview-button:hover {
    background-color: var(--yellow);
    color: var(--black);
    transform: scale(1.1);
}