/* --- RESET & VARIÁVEIS --- */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #666; 
    --light-gray: #f9f9f9;
    --font-heading: 'Montserrat', sans-serif;
    --font-highlight: 'Poiret One', cursive;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; /* Padding um pouco menor para acomodar a logo alta */
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* --- LOGO LUXUOSA EMPILHADA --- */
.logo {
    display: flex;
    flex-direction: column; /* Empilha os itens */
    align-items: flex-start; /* Alinha à esquerda */
    line-height: 1.2;
}

.logo .names {
    display: flex;
    flex-direction: column;
}

.logo .names span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem; /* Tamanho controlado para não ficar gigante */
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
}

.logo .suffix {
    font-family: var(--font-highlight);
    font-size: 0.65rem;
    letter-spacing: 4px; /* Espaçamento bem aberto = luxo */
    margin-top: 4px;
    color: #555;
    font-weight: 300;
    text-transform: uppercase;
    border-top: 1px solid #ddd; /* Linha fina opcional para separar */
    width: 100%;
    padding-top: 2px;
}

/* Links da navegação */
.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-links a { font-family: var(--font-heading); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; cursor: pointer; }
.nav-links a:hover { color: #888; }
.burger { display: none; cursor: pointer; }

/* MAIN CONTENT */
#main-content { display: block; width: 100%; }

/* --- HERO (SLIDER BANNER) --- */
.hero {
    height: 100vh; 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%; 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0; 
    animation: fadeLoop 15s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes fadeLoop {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33% { opacity: 1; transform: scale(1.05); }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; color: white; }
.hero-content h1 { font-family: var(--font-highlight); font-size: 4.5rem; font-weight: 400; text-transform: uppercase; letter-spacing: 5px; margin-bottom: 0.5rem; }
.hero-content p { font-family: var(--font-heading); font-weight: 300; letter-spacing: 3px; font-size: 0.9rem; text-transform: uppercase; }

.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; cursor: pointer; }
.scroll-down span { display: block; width: 20px; height: 20px; border-bottom: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); margin: -10px; animation: scrollAnimate 2s infinite; }
.scroll-down span:nth-child(2) { animation-delay: -0.2s; }
.scroll-down span:nth-child(3) { animation-delay: -0.4s; }
@keyframes scrollAnimate {
    0% { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

/* PROJETOS (HOME) */
.projects { padding: 8rem 5% 6rem 5%; }
.section-header { margin-bottom: 5rem; text-align: center; }
.section-header h2 { font-family: var(--font-highlight); font-weight: 600; text-transform: uppercase; letter-spacing: 3px; font-size: 2.5rem; }
.view-all-link { display: block; margin-top: 1rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-color); text-decoration: underline; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 4rem; }
.project-item { cursor: pointer; }
.img-container { width: 100%; height: 450px; overflow: hidden; }
.img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); filter: grayscale(10%); }
.project-item:hover .img-container img { transform: scale(1.05); filter: grayscale(0%); }
.project-info { padding: 1.5rem 0; text-align: left; }
.project-info h3 { font-family: var(--font-heading); font-weight: 500; text-transform: uppercase; letter-spacing: 2px; font-size: 1.1rem; }
.project-info p { color: #888; font-size: 0.8rem; margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- STUDIO (CARROSSEL INFINITO) --- */
.about { background-color: var(--light-gray); padding: 8rem 0; text-align: center; overflow: hidden; }
.about-content { padding: 0 10%; margin-bottom: 4rem; }
.about h2 { font-family: var(--font-highlight); font-size: 2.5rem; text-transform: uppercase; margin-bottom: 2rem; }
.about p { font-size: 1.1rem; color: #444; font-weight: 300; max-width: 700px; margin: 0 auto; }

.team-carousel-container {
    width: 100%;
    overflow: hidden; 
    position: relative;
    padding: 2rem 0;
}

.team-track {
    display: flex;
    width: max-content; 
    gap: 3rem;
    animation: scrollLoop 60s linear infinite; /* Tempo ajustado para a quantidade de gente */
    padding-left: 3rem;
}

.team-track:hover {
    animation-play-state: paused;
}

.team-card {
    width: 250px; 
    flex-shrink: 0; 
    text-align: left;
    cursor: default;
}

.team-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s ease;
    margin-bottom: 1rem;
}

.team-card:hover img {
    filter: grayscale(0%);
}

.team-card h4 { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.team-card span { font-size: 0.75rem; color: #777; text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: 5px; }

@keyframes scrollLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* CONTATO */
.contact-section { padding: 6rem 5%; min-height: 80vh; display: flex; justify-content: center; align-items: center; background: #fff; }
.contact-desktop { display: flex; width: 90%; max-width: 1200px; justify-content: space-between; }
.contact-info { width: 40%; }
.contact-info h2 { font-family: var(--font-highlight); font-size: 2.5rem; text-transform: uppercase; margin-bottom: 2rem; }
.info-block, .address-block { margin-bottom: 3rem; }
.address-block h4 { font-family: var(--font-heading); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; color: #999; }
.address-block p { color: #333; font-size: 1rem; font-weight: 300; }
.map-link { display: inline-block; margin-top: 1rem; font-size: 0.8rem; border-bottom: 1px solid #000; padding-bottom: 3px; text-transform: uppercase; letter-spacing: 1px; }

.contact-form { width: 45%; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem 0; margin-bottom: 2rem; border: none; border-bottom: 1px solid #ddd; font-family: var(--font-heading); font-weight: 300; font-size: 0.9rem; outline: none; background: transparent; transition: 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-bottom: 1px solid #000; }
.contact-form button { background: transparent; border: 1px solid #000; padding: 1.2rem 4rem; cursor: pointer; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; transition: 0.3s; }
.contact-form button:hover { background: #000; color: #fff; }
.contact-mobile { display: none; }

/* --- PÁGINA: PORTFÓLIO COMPLETO --- */
#portfolio-view { padding-top: 120px; background-color: #fff; min-height: 100vh; animation: fadeIn 0.5s ease-out; }
.all-projects-header { text-align: center; margin-bottom: 5rem; }
.all-projects-header h1 { font-family: var(--font-highlight); font-size: 3rem; text-transform: uppercase; letter-spacing: 5px; }
.all-projects-header p { font-family: var(--font-heading); font-weight: 300; text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; color: #888; margin-top: 10px; }

.all-projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem 2rem; padding: 0 5% 6rem 5%; max-width: 1600px; margin: 0 auto; }
.project-card { cursor: pointer; text-align: center; }
.card-img { width: 100%; height: 350px; overflow: hidden; margin-bottom: 1.5rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); filter: grayscale(10%); }
.project-card:hover .card-img img { transform: scale(1.05); filter: grayscale(0%); }
.project-card h3 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; color: #333; }
.all-projects-footer { text-align: center; padding-bottom: 6rem; }
.back-home-btn { background: none; border: 1px solid #ddd; padding: 1rem 3rem; cursor: pointer; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; }
.back-home-btn:hover { border-color: #000; background: #000; color: #fff; }

/* --- PÁGINA: DETALHE PROJETO --- */
#project-page { display: none; background: #fff; min-height: 100vh; width: 100%; position: relative; z-index: 1050; padding-top: 80px; }
.project-split-wrapper { display: flex; width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 5%; gap: 5%; }
.project-info-sticky { width: 35%; height: fit-content; position: sticky; top: 120px; padding-bottom: 4rem; }
.project-gallery-scroll { width: 60%; display: flex; flex-direction: column; gap: 2rem; padding-bottom: 6rem; }
.project-gallery-scroll img { width: 100%; height: auto; display: block; object-fit: cover; animation: fadeInImg 0.8s ease-out; }
@keyframes fadeInImg { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.back-btn-minimal { background: none; border: none; cursor: pointer; font-family: var(--font-heading); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #999; margin-bottom: 3rem; transition: 0.3s; display: flex; align-items: center; gap: 10px; }
.back-btn-minimal:hover { color: #000; gap: 5px; }
.project-info-sticky h1 { font-family: var(--font-highlight); font-size: 3.5rem; font-weight: 400; text-transform: uppercase; line-height: 1.1; margin-bottom: 2rem; color: #000; }
.project-meta-grid { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; border-top: 1px solid #eee; padding-top: 2rem; }
.meta-item { display: grid; grid-template-columns: 80px 1fr; align-items: baseline; }
.meta-item .label { font-family: var(--font-heading); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #999; }
.meta-item .value { font-family: var(--font-body); font-size: 0.95rem; color: #333; }
.project-description { font-family: var(--font-body); font-size: 1rem; line-height: 1.8; color: #555; font-weight: 300; text-align: justify; }

/* RESPONSIVIDADE */
@media screen and (max-width: 1024px) {
    .all-projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    .navbar { padding: 1.5rem 5%; }
    /* Ajuste da logo no mobile para não ficar enorme */
    .logo .names span { font-size: 0.7rem; }
    .logo .suffix { font-size: 0.55rem; }

    .nav-links { position: absolute; right: 0; height: 92vh; top: 8vh; background-color: #fff; display: flex; flex-direction: column; align-items: center; width: 100%; transform: translateX(100%); transition: 0.5s; padding-top: 4rem; }
    .nav-links.nav-active { transform: translateX(0%); }
    .burger { display: block; }
    .burger div { width: 25px; height: 2px; background: #000; margin: 5px; }
    .hero-content h1 { font-size: 2.5rem; letter-spacing: 2px; }
    .contact-desktop { display: none; }
    .contact-mobile { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; text-align: center; margin: 0 auto; }
    .contact-section { background-color: #f4f4f4; padding-top: 6rem; align-items: flex-start; }
    .profile-pic img { width: 100px; height: 100px; border-radius: 50%; border: 2px solid #e0e0e0; margin-bottom: 1rem; }
    .bio-links { width: 100%; display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
    .bio-btn { display: block; width: 100%; padding: 1rem; background: #fff; color: #000; border: 1px solid #ddd; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
    .all-projects-grid { grid-template-columns: 1fr; gap: 3rem; }
    .project-split-wrapper { flex-direction: column; }
    .project-info-sticky { width: 100%; position: relative; top: 0; margin-bottom: 3rem; }
    .project-gallery-scroll { width: 100%; }
    .project-info-sticky h1 { font-size: 2.5rem; }
    
    /* Ajuste do carrossel no mobile */
    .team-card { width: 200px; }
    .team-card img { height: 260px; }
}