@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #121212;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #b3b3b3;
    --accent-color: #ffffff;
    --card-bg-color: #1e1e1e;
    --border-color: #2e2e2e;
}

/* --- ESTILOS GERAIS E RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-weight: 600; color: var(--accent-color); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 2.5rem; font-weight: 700; }

/* --- CABEÇALHO E NAVEGAÇÃO --- */
.main-header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--accent-color); text-decoration: none; }
.nav-links { list-style: none; display: flex; flex-direction: column; position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background-color: var(--card-bg-color); padding-top: 5rem; align-items: center; transition: right 0.4s ease-in-out; }
.nav-links.active { right: 0; }
.nav-links li { margin: 1.5rem 0; }
.nav-links a { color: var(--primary-text-color); text-decoration: none; font-size: 1.2rem; font-weight: 400; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }
.hamburger { display: block; background: none; border: none; color: var(--accent-color); font-size: 1.5rem; cursor: pointer; z-index: 1001; }

/* --- SEÇÃO HERO --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: url('https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?q=80&w=1887&auto=format&fit=crop') no-repeat center center/cover;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.2rem; font-weight: 300; color: var(--secondary-text-color); margin-bottom: 2rem; max-width: 600px; }
.cta-button { background-color: var(--accent-color); color: var(--bg-color); padding: 1rem 2rem; border-radius: 5px; text-decoration: none; font-weight: 600; transition: background-color 0.3s, transform 0.3s; }
.cta-button:hover { background-color: var(--primary-text-color); transform: translateY(-3px); }

/* --- SEÇÕES PRINCIPAIS --- */
#gallery, #about, #contact { padding: 5rem 5%; }

/* --- GALERIA --- */
.gallery-container { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    background-color: var(--card-bg-color);
    aspect-ratio: 1 / 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease, filter 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); filter: brightness(0.6); }
.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover .item-overlay { opacity: 1; }

/* --- SOBRE E CONTATO --- */
#about { background-color: var(--card-bg-color); }
.about-container { max-width: 800px; margin: 0 auto; text-align: center; }
#contact { text-align: center; }
.contact-email { display: inline-block; margin: 1rem 0 2rem; font-size: 1.2rem; color: var(--accent-color); text-decoration: none; border-bottom: 2px solid transparent; transition: border-bottom-color 0.3s; }
.contact-email:hover { border-bottom-color: var(--accent-color); }
.social-media a { color: var(--secondary-text-color); font-size: 1.8rem; margin: 0 1rem; display: inline-block; transition: color 0.3s, transform 0.3s; }
.social-media a:hover { color: var(--accent-color); transform: translateY(-5px); }

/* --- RODAPÉ --- */
footer { text-align: center; padding: 2rem 5%; font-size: 0.9rem; color: var(--secondary-text-color); border-top: 1px solid var(--border-color); }

/* --- LIGHTBOX --- */
.lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); animation: fadeIn 0.5s; }
.lightbox-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 90%; max-height: 85%; }
.lightbox-close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.lightbox-close:hover { color: var(--secondary-text-color); }
.lightbox-prev, .lightbox-next { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: auto; padding: 16px; color: white; font-weight: bold; font-size: 30px; transition: 0.3s; user-select: none; border-radius: 0 3px 3px 0; }
.lightbox-next { right: 10px; }
.lightbox-prev { left: 10px; border-radius: 3px 0 0 3px; }
.lightbox-prev:hover, .lightbox-next:hover { background-color: rgba(255, 255, 255, 0.1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- MEDIA QUERIES (TABLET E DESKTOP) --- */
@media (min-width: 768px) {
    .hamburger { display: none; }
    .nav-links { position: static; flex-direction: row; height: auto; width: auto; background: none; padding-top: 0; }
    .nav-links li { margin: 0 0 0 2rem; }
    .nav-links a { font-size: 1rem; }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.4rem; }
    .section-title { font-size: 2.5rem; }
    .gallery-container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .gallery-container { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 4rem; }
}