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

body {
  font-family: "Times New Roman", Times, serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Container geral */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header e Navegação */
.header {
  background-color: #ea2e2e;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo .logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s aese;
}

.nav.logo .logo-img:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  background-color: #34495e;
  color: #3498db;
  transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.7rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #34495e;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #ecf0f1;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-link:hover {
  background-color: #2c3e50;
  color: #3498db;
}

/* Menu Toggle (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #ecf0f1;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Conteúdo Principal */
.main-content {
  margin-top: 70px; /* Altura do header fixo */
}

.section {
  padding: 4rem 0;
  min-height: 100vh;
}

.section:nth-child(even) {
  background-color: #ffffff;
}

.section:nth-child(odd) {
  background-color: #f8f9fa;
}

.section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #000000;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #000000;
  text-align: center;
  border-bottom: 3px solid #3498db;
  padding-bottom: 0.5rem;
  display: inline-block;
  width: 100%;
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
}

.section p {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: justify;
  line-height: 1.8;
  text-indent: 40px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #3498db;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card h3 {
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
  color: #000000;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Receitas */
.recipe-container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.recipe h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.recipe h4 {
  color: #34495e;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.2rem;
}

.recipe ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.recipe li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: scale-down;
}

.gallery-item p {
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  font-family: "Times New Roman", Times, serif;
  color: #2c3e50;
  text-indent: 0px;
}

/* Projeto Section */
.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #e74c3c;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.project-details {
  margin-top: 1.5rem;
}

.project-details h4 {
  color: #34495e;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.project-details ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.project-details li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #555;
}

/* Footer */
.footer {
  background-color: #ea2e2e;
  color: #ecf0f1;
  text-align: center;
  padding: 2rem 0;
}

/* Parágrafo sem identação */
.paragrafo-nao-identado {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: justify;
  line-height: 1.8;
}

/* Responsividade */
@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #2c3e50;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .section h1 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .container {
    padding: 0 15px;
  }

  .section {
    padding: 2rem 0;
  }

  /* Responsividade para dropdown */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #34495e;
    margin-top: 0.5rem;
    border-radius: 5px;
    display: none;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown.active .dropdown-menu {
    display: block;
  }

  .project-container {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }

  .section h1 {
    font-size: 1.8rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .card,
  .recipe-container {
    padding: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Animações suaves */
html {
  scroll-behavior: smooth;
}

/* Efeito de scroll suave personalizado */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

/* Modal para ampliar imagens */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

/* Cursor para imagens clicáveis */
.gallery-item img {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.gallery-item img:hover {
  opacity: 0.8;
}

/* Responsividade do modal */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 70vh;
  }

  .caption {
    width: 95%;
    font-size: 1rem;
  }

  .close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
}
