/* ======================= General ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}

/* ======================= Header & Navigation ======================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid #FFD700;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

header.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

/* ======================= Navigation ======================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px 40px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-right: 70px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav ul li a:hover {
  color: #FFD700;
  border-bottom: 2px solid #FFD700;
}
.dropdown {
  position: relative;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.portfolio-link .arrow {
  transition: transform 0.3s ease;
}

.dropdown.active .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  border-radius: 10px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  margin-top: 0;
  padding-top: 0;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
  z-index: 999;
}

.dropdown.active .dropdown-menu {
  display: flex;
  animation: fadeSlide 0.2s ease-out;
}

.dropdown-menu li a {
  color: #fff;
  padding: 12px 20px;
  display: block;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.dropdown-menu li a:hover {
  color: #FFD700;
  border-bottom: 2px solid #FFD700;
  background: none;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ======================= Peru Gallery ======================= */
#gallery {
  padding: 120px 40px 80px;
  background: #0a0a0a;
  text-align: center;
}

#gallery h2 {
  color: #FFD700;
  font-size: 2.4rem;
  margin-bottom: 40px;
}

/* 👇 this is where the grid-template-columns and height go */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 200px tiles, responsive */
  gap: 25px;
  justify-items: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #FFD700;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 180px; /* 👈 smaller image height */
  object-fit: cover;
  display: block;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: #FFD700;
  padding: 10px 0;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* ======================= Back to Top Button ======================= */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  background: #FFD700;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  background: #000;
  color: #FFD700;
  border: 1px solid #FFD700;
}

/* ======================= Home Section ======================= */
#home {
  height: 100vh;
  background: url("Machu Pichu_s Lost Civilization.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 0; /* bump this up until it looks right */
}

.intro {
  background: rgba(0, 0, 0, 0.6);
  padding: 50px 70px;
  border-radius: 25px;
  border: 2px solid #FFD700;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1);
}

.intro h1 {
  font-size: 3rem;
  color: #FFD700;
  margin-bottom: 15px;
}

.intro p {
  font-size: 1.2rem;
  color: #ddd;
}

/* ======================= About Section ======================= */
#about {
  background: #0f0f0f;
  padding: 120px 20px;
  text-align: center;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  background: #111;
  border-radius: 20px;
  padding: 70px;
  border: 1px solid #FFD700;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.08);
}

#about h2 {
  color: #FFD700;
  font-size: 2.5rem;
  margin-bottom: 25px;
}

#about p {
  color: #e6e6e6;
  line-height: 1.9;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
/* ======================= Contact Section ======================= */
#contact {
  background: #0f0f0f;
  color: #f5f5f5;
  padding: 80px 20px; /* reduced from 120px */
  text-align: center;
  border-top: 2px solid #FFD700;
}

.contact-container {
  max-width: 700px; /* slightly smaller */
  margin: 0 auto;
  background: #111;
  border-radius: 20px;
  padding: 50px; /* reduced from 70px */
  border: 1px solid #FFD700;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1);
}

#contact h2 {
  font-size: 2rem; /* slightly smaller */
  color: #FFD700;
  margin-bottom: 20px; /* reduced */
}

#contact p {
  font-size: 1rem; /* slightly smaller */
  line-height: 1.7;
  color: #e8e8e8;
  margin-bottom: 12px; /* reduced */
}

#contact a {
  color: #FFD700;
  font-weight: 600;
  transition: color 0.3s;
}

#contact a:hover {
  color: #fff;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .contact-container {
    padding: 30px 20px; /* smaller padding for mobile */
  }

  #contact h2 {
    font-size: 1.8rem;
  }

  #contact p {
    font-size: 0.95rem;
  }
}

/* ======================= Footer ======================= */
footer {
  background: #000;
  color: #aaa;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #333;
}

footer a {
  color: #FFD700;
  font-weight: 500;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

footer p {
  margin: 8px 0;
  font-size: 0.95rem;
}

/* ======================= Responsive Design ======================= */
@media (max-width: 900px) {
  nav {
    flex-direction: column;
    gap: 15px;
  }

  .intro {
    padding: 40px;
  }

  .intro h1 {
    font-size: 2.2rem;
  }

  .about-container, .contact-container {
    padding: 40px 30px;
  }

  #about h2, #contact h2 {
    font-size: 2rem;
  }
}
