:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --accent-color: #4A90E2;
  --accent-color1: #8AB8E6; /* Darker shade for better contrast */
  --highlight-color: #FFD700; /* New highlight for hover/focus */
  --text-color: #222222;
  --background-light: #F5F5F5;
  --card-background: #FFFFFF;
  --quote-color: #28A745;
  --quote-color-dark: #218838;
  --instagram-color: #E1306C;
  --instagram-color-dark: #C13584;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-light);
}

.container {
  max-width: 1200px;
  margin: 20px auto 0 auto;
  padding: 0 15px;
}

header {
  background-color: var(--accent-color1);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 20px;
  z-index: 1000;
  box-shadow: var(--shadow);
}

header::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 130px;
  background-color: var(--accent-color1);
  z-index: -1;
}

header .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.custom-logo {
  position: absolute;
  top: -30px;
  left: 15px;
  max-height: 160px;
  width: auto;
  z-index: 1001;
  transition: var(--transition);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-fast);
}

nav ul li a:hover,
nav ul li a:focus-visible {
  color: var(--highlight-color);
  outline: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--highlight-color);
  outline-offset: 2px;
}

.hero {
  position: relative;
  color: white;
  text-align: center;
  padding: 12rem 0 5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: url('https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  z-index: -1;
}

#hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slogan {
  font-size: 2.2rem;
  font-style: italic;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-text {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.btn-hero {
  background: var(--primary-color);
  padding: 1.2rem 2.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
  will-change: transform, background;
}

.btn-hero:hover,
.btn-hero:focus-visible {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

#portfolio {
  background-color: var(--card-background);
  padding: 5rem 0;
}

.portfolio-intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--background-light);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  will-change: transform, box-shadow;
}

.portfolio-item:hover,
.portfolio-item:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--accent-color);
}

.portfolio-item::after {
  content: 'Mais Fotos';
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: var(--transition);
  transform: translateY(-10px);
}

.portfolio-item:hover::after,
.portfolio-item:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: var(--transition);
  will-change: transform;
}

.portfolio-item:hover .portfolio-slider {
  transform: scale(1.05);
}

.portfolio-slide {
  max-width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: none;
  transition: opacity 0.5s ease;
}

.portfolio-slide.active {
  display: block;
  opacity: 1;
}

.portfolio-item h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.portfolio-item p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.5;
}

.portfolio-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.portfolio-cta p {
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  will-change: transform, background;
}

.btn-quote {
  background: linear-gradient(135deg, var(--quote-color), var(--quote-color-dark));
}

.btn-quote:hover,
.btn-quote:focus-visible {
  background: linear-gradient(135deg, var(--quote-color-dark), var(--quote-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.btn-instagram {
  background: linear-gradient(135deg, var(--instagram-color), var(--instagram-color-dark));
}

.btn-instagram:hover,
.btn-instagram:focus-visible {
  background: linear-gradient(135deg, var(--instagram-color-dark), var(--instagram-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

footer {
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-logo .logo-img {
  max-height: 60px;
  transition: var(--transition);
}

.footer-logo .logo-img:hover {
  transform: scale(1.05);
}

.footer-links h4,
.footer-social h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin: 0.5rem 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--highlight-color);
  outline: none;
}

.footer-social .social-links a {
  font-size: 1.8rem;
  margin: 0 0.75rem;
  color: white;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-social .social-links a:hover,
.footer-social .social-links a:focus-visible {
  color: var(--highlight-color);
  outline: none;
}

.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Modal para Imagens */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content-container {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
  will-change: transform, opacity;
}

.modal-title {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.modal-gallery {
  margin-bottom: 1.5rem;
}

.modal-main-image {
  max-width: 100%;
  max-height: 60vh; /* Increased for better visibility */
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: opacity 0.3s ease;
  object-fit: contain; /* Better for mixed image ratios */
}

.modal-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  justify-content: center;
  padding: 0.5rem;
}

.modal-thumbnail-container {
  position: relative;
}

.modal-thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  will-change: transform, border;
}

.modal-thumbnail.active {
  border: 2px solid var(--accent-color);
  transform: scale(1.1);
}

.modal-thumbnail:hover,
.modal-thumbnail:focus-visible {
  transform: scale(1.1);
  border: 2px solid var(--highlight-color);
  outline: none;
}

.thumbnail-label {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1;
}

.modal-description {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-cta p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.modal-cta .btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-modal:hover,
.close-modal:focus-visible {
  color: var(--highlight-color);
  outline: none;
}

/* Media Queries para Responsividade */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
    padding: 0 12px;
  }

  .custom-logo {
    max-height: 120px;
    top: -20px;
    left: 12px;
  }

  header::before {
    height: 100px;
  }

  .hero {
    padding: 10rem 0 4rem;
    min-height: 70vh;
  }

  #hero h1 {
    font-size: 3.2rem;
  }

  .slogan {
    font-size: 1.8rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-text {
    font-size: 1.2rem;
    max-width: 600px;
  }

  #portfolio {
    padding: 4rem 0;
  }

  .portfolio-grid {
    gap: 1.2rem;
  }

  .portfolio-slide {
    max-height: 200px;
  }

  .portfolio-item::after {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }

  .portfolio-cta p {
    font-size: 1rem;
  }

  .modal-content-container {
    max-width: 85%;
    max-height: 85vh;
    padding: 1.5rem;
  }

  .modal-main-image {
    max-height: 50vh;
  }

  .modal-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }

  .modal-thumbnail {
    width: 70px;
    height: 50px;
  }

  .thumbnail-label {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-description {
    font-size: 0.95rem;
  }

  .modal-cta p {
    font-size: 1rem;
  }

  .modal-cta .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .modal-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
  }

  .modal-thumbnail {
    width: 65px;
    height: 48px;
  }

  .thumbnail-label {
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.8rem 0;
  }

  nav {
    display: none;
  }

  nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--accent-color);
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  nav ul li a {
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
    margin-right: 10px;
  }

  .custom-logo {
    max-height: 100px;
    top: -15px;
    left: 10px;
  }

  header::before {
    height: 80px;
  }

  .hero {
    padding: 8rem 0 3rem;
    min-height: 65vh;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  .slogan {
    font-size: 1.6rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-text {
    font-size: 1rem;
    max-width: 90%;
  }

  #portfolio {
    padding: 3rem 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-item {
    padding: 1rem;
  }

  .portfolio-slide {
    max-height: 180px;
  }

  .portfolio-cta p {
    font-size: 0.95rem;
  }

  .modal-content-container {
    max-width: 90%;
    max-height: 80vh;
    padding: 1.2rem;
  }

  .modal-main-image {
    max-height: 45vh;
  }

  .modal-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }

  .modal-thumbnail {
    width: 60px;
    height: 45px;
  }

  .thumbnail-label {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-description {
    font-size: 0.9rem;
  }

  .modal-cta p {
    font-size: 0.95rem;
  }

  .modal-cta .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .modal-cta {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .custom-logo {
    max-height: 90px;
    top: -15px;
    left: 10px;
  }

  header::before {
    height: 80px;
  }

  nav.active {
    top: 80px;
  }

  .menu-toggle {
    font-size: 1.4rem;
    margin-right: 10px;
  }

  .hero {
    padding: 7rem 0 1.5rem;
    min-height: 60vh;
  }

  #hero h1 {
    font-size: 2rem;
  }

  .slogan {
    font-size: 1.4rem;
    padding: 0.3rem 0.5rem;
  }

  .hero-text {
    font-size: 0.9rem;
    max-width: 95%;
  }

  #portfolio {
    padding: 2rem 0;
  }

  .portfolio-intro {
    font-size: 1rem;
  }

  .portfolio-item h3 {
    font-size: 1.2rem;
  }

  .portfolio-item p {
    font-size: 0.9rem;
  }

  .portfolio-slide {
    max-height: 160px;
  }

  .portfolio-item::after {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }

  .portfolio-cta p {
    font-size: 0.9rem;
  }

  .modal-content-container {
    max-width: 95%;
    max-height: 75vh;
    padding: 1rem;
  }

  .modal-main-image {
    max-height: 40vh;
  }

  .modal-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }

  .modal-thumbnail {
    width: 50px;
    height: 38px;
  }

  .thumbnail-label {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-description {
    font-size: 0.85rem;
  }

  .modal-cta p {
    font-size: 0.9rem;
  }

  .modal-cta .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }

  .custom-logo {
    max-height: 80px;
    top: -10px;
    left: 8px;
  }

  header::before {
    height: 60px;
  }

  nav.active {
    top: 60px;
  }

  .menu-toggle {
    font-size: 1.3rem;
    margin-right: 8px;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 6rem 0 1.5rem;
    min-height: 55vh;
  }

  #hero h1 {
    font-size: 1.8rem;
  }

  .slogan {
    font-size: 1.2rem;
    padding: 0.2rem 0.4rem;
  }

  .hero-text {
    font-size: 0.85rem;
    max-width: 100%;
  }

  #portfolio {
    padding: 1.5rem 0;
  }

  .portfolio-intro {
    font-size: 0.9rem;
  }

  .portfolio-item h3 {
    font-size: 1.1rem;
  }

  .portfolio-item p {
    font-size: 0.85rem;
  }

  .portfolio-slide {
    max-height: 140px;
  }

  .portfolio-item::after {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  .portfolio-cta p {
    font-size: 0.85rem;
  }

  .modal-content-container {
    max-width: 95%;
    max-height: 70vh;
    padding: 0.8rem;
  }

  .modal-main-image {
    max-height: 35vh;
  }

  .modal-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
  }

  .modal-thumbnail {
    width: 45px;
    height: 34px;
  }

  .thumbnail-label {
    font-size: 0.55rem;
    padding: 0.1rem 0.2rem;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .modal-description {
    font-size: 0.8rem;
  }

  .modal-cta p {
    font-size: 0.8rem;
  }

  .modal-cta .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 6px;
  }

  .custom-logo {
    max-height: 70px;
    top: -10px;
    left: 6px;
  }

  header::before {
    height: 60px;
  }

  nav.active {
    top: 60px;
  }

  .menu-toggle {
    font-size: 1.2rem;
    margin-right: 6px;
  }

  .hero {
    padding: 5.5rem 0 1rem;
    min-height: 50vh;
  }

  #hero h1 {
    font-size: 1.6rem;
  }

  .slogan {
    font-size: 1.1rem;
    padding: 0.2rem 0.4rem;
  }

  .hero-text {
    font-size: 0.8rem;
    max-width: 100%;
  }

  #portfolio {
    padding: 1.2rem 0;
  }

  .portfolio-intro {
    font-size: 0.85rem;
  }

  .portfolio-item h3 {
    font-size: 1rem;
  }

  .portfolio-item p {
    font-size: 0.8rem;
  }

  .portfolio-slide {
    max-height: 120px;
  }

  .portfolio-item::after {
    font-size: 0.7rem;
    padding: 0.2rem 0.3rem;
  }

  .portfolio-cta p {
    font-size: 0.8rem;
  }

  .modal-content-container {
    max-width: 95%;
    max-height: 65vh;
    padding: 0.7rem;
  }

  .modal-main-image {
    max-height: 30vh;
  }

  .modal-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  }

  .modal-thumbnail {
    width: 40px;
    height: 30px;
  }

  .thumbnail-label {
    font-size: 0.5rem;
    padding: 0.1rem 0.2rem;
  }

  .modal-title {
    font-size: 1rem;
  }

  .modal-description {
    font-size: 0.75rem;
  }

  .modal-cta p {
    font-size: 0.75rem;
  }

  .modal-cta .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
  }
}