/* Reset and Base Styles */
/* Importando Josefin Sans do Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;700&display=swap");

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

body {
  /* Alterando fonte para Josefin Sans */
  font-family: "Josefin Sans", sans-serif;
  color: #000;
  background-color: #f0ebe6;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700; /* Títulos em negrito */
  letter-spacing: 0.5px;
  font-style: normal; /* Removendo itálico dos títulos */
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

/* Language Toggle Button */
.language-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #000;
  padding: 0.5rem 1rem;
  /* Alterando fonte do botão para Josefin Sans */
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.9rem;
  font-style: normal; /* Removendo itálico */
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.language-toggle:hover {
  background-color: #000;
  color: #fff;
}

/* Logo */
.logo {
  height: 80px;
  width: auto;
  display: block;
}

/* Navigation */
.navigation {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.nav-link {
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
  /* Alterando font-weight do nav para 330 */
  font-weight: 330;
  letter-spacing: 1px;
  position: relative;
  transition: transform 0.3s ease;
  display: inline-block;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -5px;
  left: 0;
  background-color: #000;
  transition: width 0.3s ease;
}

.nav-link:hover {
  transform: translateX(10px);
}

.nav-link:hover::after {
  width: 100%;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000; /* Updated: Removed gradient, set to solid black */
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  z-index: 100;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-link:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.footer-link svg {
  width: 24px;
  height: 24px;
}

/* Retornando texto Brasil/Holanda para posição inferior direita */
/* Alinhando horizontalmente Brasil/Holanda com a posição do nav */
.location-text {
  position: absolute;
  bottom: 5rem;
  left: 3rem; /* Alterado de right para left para alinhar com o nav */
  color: #000;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 1px;
  z-index: 10;
}

/* ===== INDEX PAGE ===== */
.index-page {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://hebbkx1anhila5yf.public.blob.vercel-storage.com/imagem%20de%20fundo-Lj48zyarOFIAL8P5znfcpJQc3Qgwpc.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(240, 235, 230, 0.98), rgba(240, 235, 230, 0.85), transparent);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  padding: 6rem 3rem 3rem;
  height: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-container {
  flex-shrink: 0;
}

/* ===== PROJECTS PAGE ===== */
.projects-page {
  min-height: 100vh;
  padding-bottom: 80px;
  background-color: #f0ebe6;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  background-color: #f0ebe6;
  /* Adicionando margem direita para afastar o botão de idioma da navegação */
  padding-right: 10rem;
}

.page-header .navigation {
  flex-direction: row;
  gap: 2.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-description {
  color: #fff;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* ===== ABOUT PAGE ===== */
.about-page {
  min-height: 100vh;
  padding-bottom: 80px;
  background-color: #f0ebe6;
}

.about-content {
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.image-top-left {
  grid-column: 1;
  grid-row: 1 / 3;
  position: sticky;
  top: 2rem;
}

.image-top-left img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  grid-column: 2;
  grid-row: 1 / 4;
  padding: 2rem 0;
}

.image-bottom-right {
  grid-column: 3;
  grid-row: 2 / 4;
  align-self: end;
  margin-top: 4rem;
}

.image-bottom-right img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  min-height: 100vh;
  padding-bottom: 80px;
  background-color: #f0ebe6;
}

.contact-content {
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  color: #666;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.contact-item {
  text-align: left;
}

.contact-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #000;
}

.contact-item a {
  color: #666;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #000;
}

.contact-item p {
  color: #666;
  font-size: 1.1rem;
}

/* ===== PROJECT DETAIL PAGE ===== */
.project-detail-page {
  min-height: 100vh;
  padding-bottom: 80px;
  background-color: #f0ebe6;
}

.project-detail-content {
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-detail-content h1 {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}

.project-images {
  margin-bottom: 4rem;
}

.project-images > img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2rem;
}

.project-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-images-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.project-info {
  margin-top: 4rem;
}

.project-info h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.project-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: #333;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #ccc;
}

.spec-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #000;
}

.spec-item p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .image-top-left,
  .about-text,
  .image-bottom-right {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .image-bottom-right {
    margin-top: 2rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .language-toggle {
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  /* Ajustando padding do header em tablets */
  .page-header {
    padding-right: 8rem;
  }

  .project-detail-content h1 {
    font-size: 2.5rem;
  }

  .project-images-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-specs {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Adjusting location text for tablet */
  .location-text {
    bottom: 4rem; /* Adjusted for tablet */
    left: 1.5rem;
    font-size: 0.85rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .logo {
    height: 60px;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
  }

  /* Index Page Mobile */
  .content {
    padding: 4rem 1.5rem 2rem;
  }

  .header-content {
    flex-direction: column;
    gap: 2rem;
  }

  .navigation {
    gap: 1rem;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  /* Projects Page Mobile */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    /* Removendo padding extra em mobile pois o layout é em coluna */
    padding-right: 1.5rem;
  }

  .page-header .navigation {
    flex-direction: column;
    gap: 1rem;
  }

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

  /* About Page Mobile */
  .about-content {
    padding: 1.5rem;
  }

  .image-top-left,
  .image-bottom-right {
    max-width: 100%;
  }

  /* Contact Page Mobile */
  .contact-content {
    padding: 1.5rem;
  }

  .contact-intro {
    font-size: 1.1rem;
  }

  /* Footer Mobile */
  .footer {
    padding: 1rem;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .footer-link {
    font-size: 0.9rem;
  }

  .language-toggle {
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .footer-link svg {
    width: 20px;
    height: 20px;
  }

  .project-detail-content {
    padding: 1.5rem;
  }

  .project-detail-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .project-info h2 {
    font-size: 1.5rem;
  }

  .project-info p {
    font-size: 1rem;
  }

  .project-images {
    margin-bottom: 2rem;
  }

  .project-images > img {
    margin-bottom: 1.5rem;
  }

  /* Adjusting location text for mobile */
  .location-text {
    bottom: 3rem; /* Adjusted for mobile */
    left: 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 50px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .nav-link {
    font-size: 1rem;
  }

  .footer {
    gap: 1.5rem;
  }

  .language-toggle {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
  }

  /* Adjusting location text for smaller mobile */
  .location-text {
    bottom: 2rem; /* Adjusted for smaller mobile */
    left: 0.75rem;
    font-size: 0.75rem;
  }
}
