:root {
  --bg-color: #1c1c1c;
  --accent: #d4a373;
  --text-light: #f1f1f1;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-light);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
}

.nav-links a {
  margin-left: 2rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 4px;
  border-radius: 2px;
}

.hero {
  height: 100vh;
  background: url('images/bg/mystic.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  text-align: center;
  max-width: 60%;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  text-align: right;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #e6b57e;
  box-shadow: 0 0 10px var(--accent);
}

.footer {
  background: #111;
  padding: 2rem;
  text-align: center;
}

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

.icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin: 0 10px;
  background-size: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--accent);
}

.twitter {
  background-image: url('images/icons/X.png');
}

.instagram {
  background-image: url('images/icons/Instagram.png');
}

.bluesky {
  background-image: url('images/icons/Bluesky.png');
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 14px;
  font-size: 1rem;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  display: none;
  cursor: pointer;
  z-index: 999;
  will-change: transform;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sobre o Artista */
.about-artist {
  max-width: 1200px;
  margin: 7rem auto 3rem;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-photo {
  flex: 1 1 300px;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1), 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.about-photo:hover img {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.about-text {
  flex: 1 1 60%;
  color: var(--text-light);
  line-height: 1.6;
  text-align: justify;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.about-text ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  list-style: none;
}

.about-text ul li::before {
  content: "\2022 ";
  color: var(--accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.contact-bar {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-bar:hover {
  background: rgba(255,255,255,0.1);
}

.contact-bar i {
  color: var(--accent);
}

/* Portfolio-specific */
.portfolio-container {
  padding: 7rem 2rem 4rem;
  max-width: 1400px;
  margin: auto;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filters select {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  background: #333;
  color: var(--text-light);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 5px;
}

.artwork {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.art-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
  will-change: transform;
  position: relative;
  content-visibility: auto;
}

.art-thumb .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.art-thumb:hover {
  transform: scale(1.05);
}

.art-thumb:hover .overlay {
  opacity: 1;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  background: #222;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  position: relative;
  content-visibility: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 1rem;
  will-change: opacity, transform;
}

.lightbox-info {
  color: #eee;
  text-align: center;
}

.lightbox .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--glass-bg);
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .filters {
    flex-direction: column;
    align-items: center;
  }

  .about-artist {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-photo,
  .about-text {
    width: 100%;
    max-width: 100%;
  }

  .lightbox-content {
    max-width: 95%;
  }
}

@media (min-width: 1200px) {
  .masonry-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
}
