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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: #ffffff;
  color: #111;
  animation: pageFade 0.8s ease forwards;
}

/* NAV */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  transform: translateY(-15px);
  animation: navFade 0.8s ease 0.3s forwards;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* HERO */
.hero {
  padding: 4rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-image {
  height: 60vh;
  transform: scale(1.03);
  animation: imageFade 1.2s ease 0.4s forwards;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.hero-content {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 1s ease 0.6s forwards;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-content p {
  margin: 1rem 0 2rem 0;
  color: #666;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  background: #444;
}

.divisor {
  margin-top: 3rem;
  margin-bottom: 3rem;
  width: 400px;
}

/* SECTIONS */
.portfolio-section,
.contact-section {
  padding: 5rem 4rem;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin: 4rem 0 0.5rem 0;
}

.photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.photos-box {
  padding: 1rem;
}

.photos-box--img {
  height: 300px;
  width: auto;
  border-radius: 5px;
  transition: 0.3s;
}

.photos-box--img:hover {
  scale: 1.03;
}

.mt {
  margin-top: 2rem;
}

/* CONTACT */
.contact-box p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
}

.contact-box a {
  color: #111;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 3rem;
  color: #777;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 999;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
}

.close {
  position: absolute;
  top: 40px;
  right: 50px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* An imacion revel */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* DESKTOP */
@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-image {
    order: 2;
  }
}

/* Keyframes */

@keyframes pageFade {
  to {
    opacity: 1;
  }
}

@keyframes navFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  body {
    padding: 0 1.5rem;
  }

  /* NAV */
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* HERO */
  .hero {
    padding: 2rem 0;
  }

  .hero-content h2 {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-content p {
    text-align: center;
  }

  .btn {
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  .hero-image {
    height: 40vh;
  }

  /* SECTION TITLES */
  .section-title {
    font-size: 1.6rem;
  }

  /* PHOTOS */
  .photos-box {
    padding: 0.5rem;
  }

  .photos-box--img {
    height: auto;
    width: 90vw;
    max-width: 500px;
  }

  /* DIVISOR */
  .divisor {
    width: 200px;
  }

  /* CONTACT */
  .contact-box p {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  /* LIGHTBOX CLOSE */
  .close {
    top: 20px;
    right: 20px;
  }
}
