/* Variáveis de Cores e Fontes */
:root {
    --primary-color: #d4af37;
    /* Dourado */
    --secondary-color: #f9f4f2;
    /* Nude muito claro / Off-white */
    --text-dark: #333333;
    --text-light: #777777;
    --bg-dark: #1a1a1a;
    --white: #ffffff;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Corta qualquer elemento que tente sair da largura da tela */
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--secondary-color);
    overflow-x: hidden;
    /* Corta qualquer elemento que tente sair da largura da tela */
    width: 100%;
}

/* Utilitários */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--white);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-gold:hover {
    background-color: var(--white);
    color: var(--bg-dark);
    border-color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    border: 1px solid var(--text-dark);
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-nav:hover {
    background: var(--text-dark);
    color: var(--white) !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    /* Essencial para "segurar" o slideshow dentro da área */
    height: 100vh;
    /* Garante que ocupe 100% da altura da tela */
    display: flex;
    /* Ativa o Flexbox para centralizar o texto */
    align-items: center;
    /* Centraliza verticalmente */
    justify-content: center;
    /* Centraliza horizontalmente */
    text-align: center;
    /* Garante alinhamento do texto */
    background: var(--bg-dark);
    overflow: hidden;
    /* Impede barras de rolagem indesejadas */
    color: var(--white);
    /* Garante que o texto seja branco sobre as fotos */
}

/* A lista que contém as imagens */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Fica atrás do overlay (z-index: 1) e do conteúdo (z-index: 2) */
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Cada item da lista ocupa todo o espaço e começa invisível */
.hero-slideshow li {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    animation: imageAnimation 180s linear infinite;
    /* Ciclo total de 180s */
}

/* As imagens dentro da lista */
.hero-slideshow li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Garante que a imagem cubra a área sem distorcer */
}

/* Atrasos na animação para cada imagem (para que não apareçam juntas) */
/* Se adicionar mais imagens no HTML, adicione mais 'nth-child' aqui com delay de +6s */
.hero-slideshow li:nth-child(1) {
    animation-delay: 0s;
}

.hero-slideshow li:nth-child(2) {
    animation-delay: 10s;
    /* Começa após 6s */
}

.hero-slideshow li:nth-child(3) {
    animation-delay: 20s;
    /* Começa após 12s */
}

.hero-slideshow li:nth-child(4) {
    animation-delay: 30s;
    /* Começa após 18s */
}

.hero-slideshow li:nth-child(5) {
    animation-delay: 40s;
    /* Começa após 24s */
}

.hero-slideshow li:nth-child(6) {
    animation-delay: 50s;
    /* Começa após 30s */
}

.hero-slideshow li:nth-child(7) {
    animation-delay: 60s;
    /* Começa após 36s */
}

.hero-slideshow li:nth-child(8) {
    animation-delay: 70s;
    /* Começa após 42s */
}

.hero-slideshow li:nth-child(9) {
    animation-delay: 80s;
    /* Começa após 48s */
}

.hero-slideshow li:nth-child(10) {
    animation-delay: 90s;
    /* Começa após 54s */
}

.hero-slideshow li:nth-child(11) {
    animation-delay: 100s;
    /* Começa após 60s */
}

.hero-slideshow li:nth-child(12) {
    animation-delay: 110s;
    /* Começa após 66s */
}

.hero-slideshow li:nth-child(13) {
    animation-delay: 120s;
    /* Começa após 72s */
}

.hero-slideshow li:nth-child(14) {
    animation-delay: 130s;
    /* Começa após 78s */
}

.hero-slideshow li:nth-child(15) {
    animation-delay: 140s;
    /* Começa após 84s */
}

.hero-slideshow li:nth-child(16) {
    animation-delay: 150s;
    /* Começa após 90s */
}

.hero-slideshow li:nth-child(17) {
    animation-delay: 160s;
    /* Começa após 96s */
}

.hero-slideshow li:nth-child(18) {
    animation-delay: 170s;
    /* Começa após 102s */
}

/* A Animação de Keyframes */
@keyframes imageAnimation {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
    }

    8% {
        opacity: 1;
        transform: scale(1.05);
        /* Leve zoom inicial */
        animation-timing-function: ease-out;
    }

    25% {
        opacity: 1;
        transform: scale(1.1);
        /* Zoom contínuo enquanto visível */
    }

    33% {
        opacity: 0;
        /* Desaparece */
        transform: scale(1.15);
    }

    100% {
        opacity: 0
    }
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Sobre */
#sobre {
    background-color: var(--secondary-color);
    /* Fundo Nude Claro */
    position: relative;
    z-index: 10;
    /* Fica acima do slideshow */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    /* Sombra suave no topo */
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.text-content {
    display: flex;
    flex-direction: column;
    /* Empilha os itens */
    align-items: center;
    /* Centraliza horizontalmente a foto e os itens */
    text-align: center;
    /* Centraliza o texto dos parágrafos */
    padding: 20px;
}

.text-content h2 {
    font-size: 3.5rem;
    /* Título um pouco maior */
    margin-bottom: 25px;
}

.text-content p {
    font-size: 1.1rem;
    /* Texto levemente maior para leitura fácil */
    max-width: 90%;
    /* Impede que o texto fique muito largo, cansativo de ler */
    margin-bottom: 20px;
    color: #555;
}

.image-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0px rgba(212, 175, 55, 0.2);
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    justify-content: center;
    /* Centraliza horizontalmente */
    margin-top: 5px;
    gap: 10px;
    /* Mais espaço entre os ícones */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* --- 2. Foto de Perfil Redonda (Seção Sobre) --- */

.profile-pic {
    width: 280px;
    /* Aumentado de 150px para 280px */
    height: 280px;
    /* Mantém a proporção quadrada */
    border-radius: 50%;
    object-fit: cover;

    /* Design */
    border: 4px solid var(--primary-color);
    /* Borda um pouco mais grossa */
    padding: 5px;
    /* Um respiro entre a foto e a borda dourada fica elegante */
    background-color: var(--white);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    /* Sombra dourada suave */

    margin-bottom: 35px;
    /* Mais espaço entre a foto e o título */

    /* Animação de entrada suave */
    opacity: 0;
    animation: fadeProfileIn 1s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes fadeProfileIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste para Mobile: centralizar a foto de perfil */
@media (max-width: 768px) {
    .text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centraliza horizontalmente */
        text-align: center;
        /* Centraliza o texto */
    }
}

/* Serviços */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 50px;
    color: var(--text-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--secondary-color);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contato */
.contact-list {
    list-style: none;
    margin: 30px 0;
}

/* Estilo para links na lista de contato */
.contact-list a {
    color: inherit;
    /* Mantém a cor branca/clara do texto */
    text-decoration: none;
    /* Remove o sublinhado */
    display: flex;
    align-items: center;
    gap: 15px;
    /* Mantém o espaçamento entre ícone e texto */
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: var(--primary-color);
    /* Muda para dourado ao passar o mouse */
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.map-area {
    width: 100%;
    overflow: hidden;
    /* Garante que nada saia da caixa */
    border-radius: 10px;
}

.map-placeholder {
    width: 100%;
    height: auto;
    /* Deixa a altura se ajustar ou define fixa abaixo */
    min-height: 350px;
    /* Garante altura mínima no mobile */
    position: relative;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.map-placeholder iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 350px;
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    background: #111;
    color: #666;
    font-size: 0.9rem;
}

/* Estilo para os créditos do desenvolvedor no rodapé */
.dev-credits {
    color: inherit;
    /* Herda a cor cinza do rodapé */
    text-decoration: none;
    /* Remove o sublinhado padrão de link */
    transition: color 0.3s ease;
    /* Suaviza a troca de cor */
    font-weight: 500;
    /* Um pouco mais de peso para destaque sutil */
    display: inline-block;
    margin-top: 10px;
}

.dev-credits:hover {
    color: var(--primary-color);
    /* Fica dourado ao passar o mouse */
}

/* Animações */
[data-animate] {
    opacity: 0;
    transition: all 0.8s ease-out;
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="slide-left"] {
    transform: translateX(-30px);
}

[data-animate="slide-right"] {
    transform: translateX(30px);
}

.animated {
    opacity: 1;
    transform: translate(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        /* Reduz um pouco para não quebrar feio */
        line-height: 1.2;
    }

    .hero p {
        padding: 0 15px;
        /* Margem de segurança para o texto não colar na borda */
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu seria implementado via JS */
    .hamburger {
        display: block;
        font-size: 1.8rem;
        color: var(--text-dark);
        z-index: 1001;
        /* Garante que fique acima de tudo */
    }

    .navbar .nav-links {
        position: fixed;
        /* Mudado de absolute para fixed para travar na tela */
        top: 0;
        right: -100%;
        /* Começa escondido totalmente à direita */
        width: 70%;
        /* Ocupa 70% da tela, estilo gaveta lateral */
        height: 100vh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Centraliza itens verticalmente */
        align-items: center;
        transition: right 0.4s ease-in-out;
        /* Animação suave deslizando */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 30px;
        /* Espaço entre os links */
    }

    /* Menu mobile simples para demonstração */
    .navbar.active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 colunas no mobile fica melhor */
    }
}