/* Base Styles */
body {
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #111;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #111;
  white-space: nowrap;
  text-decoration: none; /* Prevent underline */
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a,
.contact-trigger {
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-links a:hover,
.contact-trigger:hover {
  color: #000;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.nav-links a::after,
.contact-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background-color: #111;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.contact-trigger:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Gallery Section */
.gallery {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: auto;
}

.gallery h1 {
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

.gallery-section {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.gallery-section h2 {
  font-size: 1.5rem;
  color: #111;
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  padding: 1.5rem;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
}

/* Contact Overlay */
.contact-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 12px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 999;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-overlay.active {
  right: 0;
}

.contact-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: inherit;
}

.contact-panel .btn {
  background: #111;
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-panel .btn:hover {
  background: #333;
}

.close-contact {
  background: none;
  border: none;
  font-size: 1.5rem;
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  cursor: pointer;
}

#formSuccess {
  opacity: 0;
  visibility: hidden;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #e6f2e6;
  color: #111;
  border: 1px solid #bcd9bc;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#formSuccess.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
    display: none;
  }

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

  .menu-toggle {
    display: block;
  }

  .gallery {
    padding: 2rem 1rem;
  }

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

  .gallery-grid img {
    aspect-ratio: auto;
    height: auto;
  }
}