/* other-projects-style.css */

/* Importa a fonte Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variáveis de Tema (consistentes com sua página principal) */
body.light-mode {
  --bg: #f9f9f9;
  --text: #111;
  --secondary: #e0e0e0; /* Usado para cards, navbar, etc. */
  --primary-button-bg: #6366f1;
  --primary-button-hover-bg: #4f46e5;
  --footer-bg: #0e0e0e; /* COR PRETA PARA O RODAPÉ NO TEMA CLARO */
  --footer-text: #f1f1f1;
  --footer-link: #6366f1;
}

body.dark-mode {
  --bg: #0e0e0e;
  --text: #f1f1f1;
  --secondary: #222;
  --primary-button-bg: #6366f1;
  --primary-button-hover-bg: #4f46e5;
  --footer-bg: #0e0e0e; /* COR PRETA PARA O RODAPÉ NO TEMA ESCURO */
  --footer-text: #f1f1f1;
  --footer-link: #6366f1;
}

/* Estilos globais para o body */
body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  transition: background 0.3s, color 0.3s, opacity 0.5s ease-in-out;
  opacity: 0;
  background-color: var(--bg);
  color: var(--text);
}

body.loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ==================================================
   Navbar e Elementos do Cabeçalho
   ================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--secondary);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
}

.theme-toggle {
  font-size: 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  margin-right: 1rem;
  color: var(--text);
  transition: transform 0.3s;
}

.theme-toggle:hover {
  transform: rotate(20deg);
}

.home-icon-link {
    font-size: 1.3rem;
    color: var(--text);
    text-decoration: none;
    padding: 0;
    transition: color 0.3s ease;
}

.home-icon-link:hover {
    color: var(--primary-button-bg);
}

.section {
  padding: 120px 20px 60px;
  max-width: 1200px;
  margin: auto;
}

/* ==================================================
   Projetos (Grid de Cards)
   ================================================== */
.projects-section {
    padding-top: 80px;
    padding-bottom: 60px;
    max-width: 1200px;
    margin: auto;
}

.projects-section h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 3rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.project-item {
    background: var(--secondary);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-display img.project-screenshot {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.project-details {
    padding: 1.5rem;
    text-align: center;
}

.project-details h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.project-details p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 1.5rem;
}

/* ==================================================
   Botões (Gerais: Estudo de Caso, Voltar ao Início)
   ================================================== */
.btn-primary {
  display: inline-block;
  background: var(--primary-button-bg);
  color: #fff;
  padding: 0.8rem 1.6rem;
  margin-top: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-button-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contêiner do botão "Voltar ao Início" */
.more-projects-button-container {
    text-align: center;
    padding: 40px 0;
}

/* REMOVA ESTE BLOCO:
footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--secondary);
  margin-top: 2rem;
}
*/

/* ==================================================
   Rodapé Principal (main-footer) - ESTE É O QUE VOCÊ QUER USAR
   ================================================== */
.main-footer {
  background-color: var(--footer-bg); /* Isso vai pegar #0e0e0e no light-mode */
  color: var(--footer-text);
  padding: 4rem 2rem 1.5rem;
  position: relative;
}

.footer-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-left {
  flex: 1;
  min-width: 280px;
  max-width: 50%;
  text-align: left;
}

.footer-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--footer-text);
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 400px;
  color: var(--footer-text);
  text-align: justify;
}

.footer-right {
  text-align: right;
  flex-shrink: 0;
  min-width: 200px;
}

.footer-social-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--footer-text);
}

.footer-social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-social-icons a {
  color: var(--footer-text);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-social-icons a:hover {
  color: var(--footer-link);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 1rem;
}

.copyright-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.highlight-name {
  color: var(--footer-link);
  font-weight: 600;
}


/* ==================================================
   Media Queries para Responsividade
   ================================================== */

/* Para tablets e telas menores (máx. 768px de largura) */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .theme-toggle,
    .home-icon-link {
        font-size: 1.1rem;
    }

    .section {
        padding: 90px 1rem 40px;
    }

    .projects-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .project-display img.project-screenshot {
        height: 180px;
    }

    .project-details h3 {
        font-size: 1.3rem;
    }

    .project-details p {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }

    .more-projects-button-container {
        padding: 30px 0;
    }

    /* Rodapé em mobile */
    .footer-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left, .footer-right {
        max-width: 100%;
        text-align: center;
    }

    .footer-description {
        text-align: center;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

/* Para celulares pequenos (máx. 480px de largura) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.8rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .theme-toggle,
    .home-icon-link {
        font-size: 1rem;
    }

    .section {
        padding: 80px 0.8rem 30px;
    }

    .projects-section h2 {
        font-size: 1.8rem;
    }

    .project-display img.project-screenshot {
        height: 150px;
    }
}

/* Aviso de Política de Privacidade */
.privacy-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(50, 50, 50, 0.9); /* Um cinza escuro semi-transparente */
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espaço entre o texto e o botão */
    font-size: 0.9em;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Garante que o aviso fique acima de outros elementos */
    flex-wrap: wrap; /* Permite que o conteúdo quebre linha em telas menores */
    text-align: center;
}

.privacy-notice p {
    margin: 0;
    flex-grow: 1; /* Permite que o parágrafo ocupe o máximo de espaço */
}

.privacy-notice a {
    color: #4CAF50; /* Uma cor verde para o link, similar ao do site exemplo */
    text-decoration: none;
    font-weight: bold;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

.privacy-notice-button {
    background-color: #f7b731; /* Cor amarela similar ao do site exemplo */
    color: #333; /* Cor do texto no botão */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.privacy-notice-button:hover {
    background-color: #e0a82b; /* Um tom ligeiramente mais escuro ao passar o mouse */
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .privacy-notice {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 10px 15px;
    }

    .privacy-notice-button {
        width: 100%; /* Botão ocupa a largura total em telas menores */
    }
}