:root {
    --bg: #fdfdfd;          /* Quase branco */
    --text: #222222;        /* Cinza Chumbo */
    --text-light: #666666;  /* Cinza Médio */
    --line: #cccccc;        /* Linhas estruturais */
    --font-serif: 'EB Garamond', serif;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-serif);
    line-height: 1.5;
}

/* --- Navegação --- */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.logo a, .logo {
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    letter-spacing: 1px;
}

.menu { list-style: none; display: flex; gap: 2rem; }
.menu a {
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    transition: color 0.3s;
}
.menu a:hover, .menu a.active { color: var(--text); font-weight: 600; }

/* --- Homepage: Linha do Tempo --- */
.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
    min-height: 100vh; /* Garante altura para o scroll */
}

/* O SVG de fundo */
/* O container do SVG */
.roadmap-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Uma leve transparência geral para não brigar com o texto */
    opacity: 0.6; 
}

/* Estilos Base para ambos os caminhos */
.roadmap-svg path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round; /* Deixa a ponta do pulso arredondada */
	
}

.bg-path {
    stroke: #d0d0d0;
    stroke-dasharray: 8, 8;
}

.glitch-path {
    stroke: #d0d0d0; /* Um cinza mais escuro para destacar */
    stroke-dasharray: 80, 1500;
    stroke-dashoffset: 80;
    animation: travel 6s linear infinite;
}

@keyframes travel {
    to {
        stroke-dashoffset: 1500; 
    }
}

/* Ajuste para Mobile */
@media (max-width: 768px) {
    .roadmap-svg { 
        opacity: 0.3; /* Mais sutil ainda no mobile */
    } 
}

/* Estações (Pontos na linha) */
.time-station {
    display: flex;
    align-items: center;
    margin-bottom: 8rem; /* Espaço vertical entre seções */
    position: relative;
}

/* Alternância Esquerda/Direita para seguir a curva (ajuste visual) */
.station-left { justify-content: flex-start; padding-left: 5%; }
.station-right { justify-content: flex-end; padding-right: 5%; text-align: right; }

.station-content {
    background: var(--bg);
    padding: 2rem;
    max-width: 450px;
    border: 1px solid transparent; /* Pode adicionar borda sutil se quiser */
}

.station-marker {
    width: 16px;
    height: 16px;
    background: var(--text);
    border-radius: 50%;
    position: absolute;
    /* Posicionamento aproximado na curva - ajuste conforme necessário no layout final */
}
.station-left .station-marker { left: 50%; transform: translateX(-10%); }
.station-right .station-marker { left: 50%; } /* Ajuste fino baseado na curva SVG */

/* Tipografia da Home */
.meta-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

h2 { font-size: 2.5rem; font-weight: 400; margin-bottom: 1rem; }

p {font-size: 1.2rem;}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
}

/* --- Páginas Internas (Portfolio) --- */
.portfolio-header {
    text-align: center;
    padding: 1rem 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.portfolio-header h1 { font-size: 3rem; font-weight: 400; margin-bottom: 1rem; }
.intro-text { font-size: 1.25rem; color: var(--text-light); }

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem 5% 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item figure { margin: 0; }
.img-placeholder {
    width: 100%;
    height: 300px; /* Altura fixa ou auto */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    object-fit: cover;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s;
}
.gallery-item:hover img { filter: grayscale(0%); }

.gallery-item figcaption {
    font-family: var(--font-sans);
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

.gallery-item figcaption strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.gallery-item figcaption span {
    font-size: 0.8rem;
    color: #888;
}

/* Estilo Masonry Específico para esta página */
.photo-masonry {
	column-count: 3; /* 3 colunas em telas grandes */
	width: 70%;
	column-gap: 1.5rem;
	padding: 2rem 5% 5rem;
	max-width: 1400px;
	margin: 0 auto;
}

.photo-item {
	break-inside: avoid; /* Evita quebrar a foto no meio */
	margin-bottom: 1.5rem;
	position: relative;
}

.photo-item img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 3px;
}

.caption {
	font-family: 'Inter', sans-serif;
	font-size: 0rem;
	color: #666;
	margin-top: 0.5rem;
	text-align: right;
	border-top: 1px solid #eee;
	padding-top: 0.25rem;
	letter-spacing: 0.5px;
}

.center{
	text-align: center;
}

/* Responsividade */
@media (max-width: 1024px) { .photo-masonry { column-count: 2; } }
@media (max-width: 600px) { .photo-masonry { column-count: 1; } }


/* --- Formulário --- */
.contact-wrapper { max-width: 600px; margin: 0 auto; padding: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group label { display: block; font-family: var(--font-sans); font-size: 0.8rem; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-family: var(--font-serif);
    font-size: 1rem;
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--text);
    color: white;
    border: none;
    font-family: var(--font-sans);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .menu { flex-wrap: wrap; justify-content: center; }
    .station-left, .station-right { 
        justify-content: center; 
        padding: 0; 
        text-align: center; 
    }
    .roadmap-svg { opacity: 0.2; } /* Suaviza a linha no mobile */
	.photo-masonry {
	width: 100%;

}
}