/* Reset básico */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Layout geral */
body {
    background-color: #f8f9fa;
    color: #000000;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Garante que o body ocupa toda a tela */
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

/* Cabeçalho fixo */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    padding: 15px 0;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Garante que o header fique sobre os outros elementos */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

h1 a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
}

h1 a:hover {
    color: #2575fc;
}

/* Hero Section */
.hero {
    margin-top: 80px; /* Para evitar que fique grudado no header fixo */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    background: linear-gradient(120deg, rgb(187, 123, 245), rgb(39, 210, 165));
    color: white;
}

.hero-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.hero-text {
    flex: 1;
    min-width: 280px;
    max-width: 600px;
}

.hero-text h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 15px;
}

.hero-text p {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.hero-text ul {
    margin-top: 10px;
    padding-left: 20px;
}

.hero-text li {
    margin-bottom: 10px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 280px;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    height: auto;
}

/* Galeria */
.gallery {
    padding: 40px 0;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    height: auto;
}

/* Sobre o Autor */
.author {
    padding: 60px 0; /* Espaçamento extra */
    background-color: white;
    text-align: left;
}

.author h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.author-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-image img {
    width: 200px;
    border-radius: 50%;
}

.author-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: left;
}

@media (min-width: 768px) {
    .author-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.author-content img {
    width: 180px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.author-text {
    flex: 1;
}

.author-text p, .author-text li {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.author-text ul {
    margin-top: 15px;
    padding-left: 20px;
}

.author-text li {
    margin-bottom: 10px;
}

/* Botão estilizado */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 12px 20px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    transform: scale(1.05);
}

/* Formulário */
.subscribe {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 50px 0;
}

.subscribe h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 15px;
}

.subscribe p {
    margin-bottom: 20px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.subscribe form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .subscribe form {
        flex-direction: row;
        justify-content: center;
    }
}

.subscribe input {
    padding: 10px;
    width: 100%;
    max-width: 300px;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
}

.subscribe .btn {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    margin-top: 0;
}

/* Rodapé fixado na parte inferior */
footer {
    background-color: #000;
    padding: 20px;
    text-align: center;
    color: white;
    margin-top: auto;
}

footer p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
    color: #6a11cb;
}

/* Ajuste para páginas curtas, mantendo o footer fixo */
.hero, .gallery, .author {
    flex: 1;
}

/* Media queries para diferentes tamanhos de tela */
@media (max-width: 991px) {
    .hero-flex {
        flex-direction: column-reverse;
    }

    .hero-text, .hero-image {
        max-width: 100%;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text ul {
        text-align: left;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero {
        margin-top: 120px;
        padding: 40px 0;
    }

    .author-content {
        flex-direction: column;
        text-align: center;
    }

    .author-text ul {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }

    .hero {
        margin-top: 130px;
        padding: 30px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .author {
        padding: 40px 0;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 10px;
    }

    nav ul li {
        margin: 0 8px;
    }
}

/* Privacy Policy & Terms Page */
.hero .container h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 20px;
    margin-top: 20px;
}

.hero .container p {
    margin-bottom: 20px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.hero .container ul {
    margin: 0 0 20px 20px;
}

.hero .container li {
    margin-bottom: 10px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.hero .container a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

/* Fix for inner pages */
section.hero {
    min-height: 60vh;
}