body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Navbar base */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #202023;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  transition: transform 0.3s ease;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.nav-links a.active {
  border-bottom: 2px solid #00adb5;
}

.nav-links li a:hover {
  color: #00adb5;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Animation */
.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay con efecto fade */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar nav que se desliza desde la derecha */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  background-image: url("/css/images/portfolio-hero.webp");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.37); /* Fondo oscuro con opacidad */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Portfolio */

#portfolio-page {
  padding: 60px 20px;
  text-align: center;
}

#portfolio-page h1 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.portfolio-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.project-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  width: 300px;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 10px 20px;
  background-color: #1abc9c;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.project-card a:hover {
  background-color: #16a085;
}

/* FOOTER */
.main-footer {
  background-color: #202023;
  color: #eaeaea;
  padding: 4rem 2rem 2rem;
  font-family: "Inter", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Top Info */
.footer-top-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-top-info .info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #ccc;
}

.footer-top-info .info-item i {
  color: #00adb5;
}

.footer-top-info .info-item a {
  color: #ccc;
  text-decoration: none;
}

.footer-top-info .info-item a:hover {
  color: #fff;
}

.main-footer h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 3rem;
  color: #fff;
}

/* Footer columns */
.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 3rem;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #00adb5;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #00adb5;
}

.footer-column a.active {
  border-bottom: 2px solid #00adb5;
}

.footer-column p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Bottom line */
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.footer-bottom a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #00adb5;
}

/* Media query (para responsive) */

@media (max-width: 768px) {
  /* Navbar */

  .hamburger {
    display: flex;
    z-index: 1002;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    background-color: #202023;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  .nav-links.nav-active {
    transform: translateX(0);
  }

  .nav-links li {
    margin-bottom: 1.5rem;
  }

  /* Hero */

  .hero {
    height: auto;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Portfolio Section */

  #portfolio-page {
    padding: 40px 10px;
  }

  #portfolio-page h1 {
    font-size: 2rem;
  }

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

  .project-card {
    width: 90%;
  }

  /* Footer */

  .footer-top-info {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .main-footer h2 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 2rem;
  }

  .footer-column h3 {
    font-size: 1rem;
  }

  .footer-bottom {
    text-align: center;
    padding: 1rem 0;
  }

  .footer-bottom p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .footer-bottom a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #00adb5;
    text-decoration: none;
  }

  .footer-bottom a:hover {
    color: #ffffff;
  }
}
