/* Reset e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cabeçalho */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

header h1 {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* Seção Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://via.placeholder.com/1920x1080') center/cover;
    color: white;
    text-align: center;
    padding: 8rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Seção do Projeto */
.project-showcase {
    padding: 5rem 0;
    background-color: white;
}

.project-showcase h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #2c3e50;
}

.project-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.project-image {
    flex: 1;
}

.project-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-details {
    flex: 1;
}

.project-details h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.project-details ul {
    list-style: none;
    margin-bottom: 2rem;
}

.project-details ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.project-details ul li strong {
    margin-right: 0.5rem;
}

.project-description p {
    margin-bottom: 1rem;
}

/* Seção Sobre */
.about-project {
    padding: 5rem 0;
    background-color: #f1f1f1;
}

.about-project h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #2c3e50;
}

.about-content {
    display: flex;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin: 1.5rem 0;
    color: #2c3e50;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.next-steps {
    list-style: none;
    margin-top: 1.5rem;
}

.next-steps li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.next-steps li i {
    margin-right: 0.5rem;
    color: #3498db;
}

/* Seção Contato */
.contact {
    padding: 5rem 0;
    text-align: center;
    background-color: white;
}

.contact h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Rodapé */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3498db;
}

.carousel {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 30px 0;
}

.carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.carousel-track img {
    max-width: 500px;
    max-height: 300px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.accessibility-tools {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 10px 0;
}
.accessibility-tools button {
    padding: 0.5em;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: #e0e0e0;
    color: #000;
}
body.dark-mode .accessibility-tools button {
    background: #333;
    color: #fff;
}

/* ===== Modo noturno ===== */
body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}
body.dark-mode header,
body.dark-mode footer,
body.dark-mode nav,
body.dark-mode .hero,
body.dark-mode .project-showcase,
body.dark-mode .about-project,
body.dark-mode .gallery,
body.dark-mode .contact {
    background-color: #1e1e1e;
    color: #f5f5f5;
}

body.dark-mode a {
    color: #90caf9;
}

body.dark-mode .btn {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

body.dark-mode input,
body.dark-mode textarea {
    background-color: #2a2a2a;
    color: #f5f5f5;
    border: 1px solid #555;
}

body.dark-mode .form-group::placeholder {
    color: #ccc;
}

body.dark-mode img {
    filter: brightness(0.9) contrast(1.1);
}

a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid #ffbf00; /* Cor bem visível */
    outline-offset: 2px;
}

/* === Modo de Alto Contraste === */
body.high-contrast {
    background-color: black;
    color: white;
}

body.high-contrast a {
    color: yellow; /* Links em amarelo */
}

body.high-contrast .btn {
    background-color: #555;
    color: white;
    border: 2px solid yellow; /* Botões com borda amarela */
}

body.high-contrast input,
body.high-contrast textarea {
    background-color: #333;
    color: white;
    border: 1px solid yellow;
}

body.high-contrast header,
body.high-contrast footer,
body.high-contrast .hero,
body.high-contrast .project-showcase,
body.high-contrast .about-project,
body.high-contrast .gallery,
body.high-contrast .contact {
    background-color: #222; /* Fundo mais escuro */
}

body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast p,
body.high-contrast li {
    color: white; /* Títulos e textos em branco */
}

body.high-contrast .accessibility-tools button {
    background-color: #333;
    color: white;
    border: 1px solid yellow; /* Botões de acessibilidade */
}

body.high-contrast img {
    filter: brightness(0.8); /* Torna as imagens mais escuras */
}

.reading-now {
    background-color: rgba(255, 255, 102, 0.3); /* Amarelo claro com opacidade */
    transition: background-color 0.3s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .project-content,
    .about-content {
        flex-direction: column;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
}