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

html {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

body {
  width: 100vw;
  background-color: #121212;
}

body.body-menu-open {
  overflow: hidden;
}

#mainIndex {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #121212;
}

#headerIndex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 0 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  height: 80px;
  flex-shrink: 0;
  z-index: 100; 
}

#h1Index {
  color: #fff;
  cursor: pointer;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 3px;
  transition: all 0.3s ease;
}

#h1Index:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.desktop-nav {
  display: flex;
  gap: 30px;
}

.botoesIndex {
  cursor: pointer;
  border: none;
  color: #fff;
  background: none;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.botoesIndex::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
  transition: left 0.3s ease;
  z-index: -1;
}

.botoesIndex:hover {
  color: white;
  transform: translateY(-2px);
}

.botoesIndex:hover::before {
  left: 0;
}

.nav-item.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background-color: #252525; border-radius: 8px; box-shadow: 0 8px 16px rgba(0,0,0,0.3); padding: 10px 0; margin-top: 10px; width: 220px; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease, margin-top 0.3s ease; }
.nav-item.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; margin-top: 5px; }
.dropdown-item { display: block; padding: 12px 20px; color: #ccc; text-decoration: none; font-size: 16px; transition: background-color 0.2s ease, color 0.2s ease; }
.dropdown-item:hover { background-color: #333; color: #fff; }


.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; 
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.mobile-menu {
  position: fixed; 
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh; 
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(45, 45, 45, 0.98) 100%);
  -webkit-backdrop-filter: blur(5px); 
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
  z-index: 1000; 
}

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

.mobile-menu .botoesIndex {
  font-size: 28px; 
  padding: 20px;
  margin: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 80%;
  text-align: center;
  color: #eee;
  font-weight: 300;
}

section#sectionPrincipal {
  flex: 1;
  display: flex;
}

.retratos-container {
  width: 100%;
  padding: 50px 60px;
  background-color: #121212;
  color: #fff;
}

.retratos-title {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 3.5rem;
  font-weight: 200;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 12px;
  text-transform: uppercase;
  color: #e0e0e0;
}

.retratos-grid {
  column-count: 3;
  column-gap: 20px;
  width: 100%;
}

.retrato-item {
  margin-bottom: 20px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.retrato-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.retrato-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.retrato-item:hover .retrato-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

footer {
  background: #0a0a0a;
  color: white;
  padding: 30px 40px 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  z-index: 10;
}

.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 5px; }
.footer-logo { font-size: 1.8rem; font-weight: bold; letter-spacing: 2px; background: linear-gradient(45deg, #ff6b6b, #ffa500); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-tagline { font-size: 0.85rem; color: #888; font-style: italic; }
.footer-links { display: flex; gap: 30px; align-items: center; }
.footer-link { color: #ccc; text-decoration: none; font-size: 0.9rem; transition: all 0.3s ease; position: relative; }
.footer-link::after { content: ""; position: absolute; width: 0%; height: 2px; bottom: -5px; left: 0; background: linear-gradient(45deg, #ff6b6b, #ffa500); transition: width 0.3s ease; }
.footer-link:hover { color: #fff; }
.footer-link:hover::after { width: 100%; }
.social-links { display: flex; gap: 12px; }
.social-link { color: #ccc; font-size: 1.1rem; text-decoration: none; transition: all 0.3s ease; padding: 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.social-link:hover { color: #fff; background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.3); transform: translateY(-2px); }
.footer-bottom { text-align: center; padding-top: 20px; margin-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-copyright { font-size: 0.75rem; color: #666; }


@media (max-width: 992px) {
  .retratos-grid { column-count: 2; }
  .retratos-title { font-size: 3rem; letter-spacing: 10px; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .hamburger.active {
    position: fixed;
    top: 15px; 
    right: 20px;
  }

  #headerIndex { padding: 0 20px; height: 60px; }
  #h1Index { font-size: 2rem; }

  .retratos-container { padding: 30px 20px; }
  .retratos-grid { column-count: 1; }
  .retratos-title { font-size: 2.2rem; letter-spacing: 8px; margin-bottom: 40px; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; gap: 15px; }
}