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

/* Fuente base */
body {
  font-family: Arial, sans-serif;
  color: #fff;
  background-color: #121212;
}

/* 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 */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  background: url("/css/images/Cliffside_-_Waves.webp") no-repeat center
    center/cover;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

/* Overlay oscuro */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* oscuridad ajustable */
  z-index: 1;
}

/* Aseguramos que el contenido quede encima del overlay */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.social-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icons a {
  font-size: 2rem;
  color: #fff;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00adb5;
}

/* Necesario para posicionar el tooltip */
.discord {
  position: relative;
}

/* Tooltip */
.discord .tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #00adb5; /* Discord */
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, bottom 0.3s ease;
}

/* Flechita */
.discord .tooltip::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #00adb5 transparent;
}

/* Mostrar tooltip */
.discord:hover .tooltip {
  opacity: 1;
  bottom: -40px;
}

/* Hover específico Discord */
.discord:hover {
  color: #00adb5;
}

/* About Me */

.about {
  background-color: #202023;
  padding: 4rem 2rem;
  color: #fff;
}

.about-container {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-logo {
  width: 150px;
  height: auto;
  border-radius: 50%;
}

.about-right {
  flex: 2;
}

.about-right h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-section h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cv-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background-color: #00adb5;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cv-button:hover {
  background-color: #007b80;
}

/* Resume */

.resume {
  background: #fff;
  color: #eee;
  padding: 5rem 2rem;
}

.resume-wrapper {
  max-width: 1100px;
  margin: auto;
}

.resume .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1abc9c;
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  padding: 40px 20px;
}

.resume-card {
  background: #1a1a1a;
  border-left: 4px solid #1abc9c;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.resume-card.full-width {
  grid-column: 1 / -1;
}

.resume-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #fff;
}

.resume-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resume-card li {
  margin-bottom: 1.2rem;
}

.resume-card strong {
  display: block;
  font-size: 1.1rem;
  color: #1abc9c;
}

.fecha {
  display: block;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.3rem;
}

.resume-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #ccc;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.skills-grid div span {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.skill-bar {
  background: #2a2a2a;
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar div {
  height: 100%;
  background: #1abc9c;
  transition: width 0.5s ease;
}

/* Portfolio */

.portfolio {
  background-color: #1a1a1a;
  padding: 5rem 2rem;
  color: #f5f5f5;
}

.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #00adb5;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background-color: #262626;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid #00adb5;
}

.project-info {
  padding: 1.5rem;
  text-align: center;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.project-info p {
  font-size: 1rem;
  color: #dddddd;
  margin-bottom: 1.5rem;
}

.view-more {
  text-align: center;
  margin-top: 2rem;
}

.btn {
  padding: 10px 20px;
  background-color: #00adb5;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #008f98;
}

/* 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 */

@media screen and (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-content h1 {
    font-size: 1.8rem;
  }

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

  .hero::before {
    background-color: rgba(0, 0, 0, 0.6); /* un poco más oscuro en mobile */
  }

  .social-icons a {
    font-size: 1.8rem;
  }

  /* About Me */

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-logo {
    width: 120px;
    margin-bottom: 1rem;
  }

  .about-right h2 {
    font-size: 1.6rem;
  }

  .about-description {
    font-size: 1rem;
  }

  .cv-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  /* Resume */

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 15px;
  }

  .resume-card {
    padding: 20px;
    text-align: center;
  }

  .resume-card h3 {
    font-size: 1.1rem;
  }

  .resume-card p {
    font-size: 0.95rem;
  }

  /* Portfolio */

  .section-title {
    font-size: 2rem;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }

  .project-info p {
    font-size: 0.9rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-image {
    height: 180px;
  }

  /* 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;
  }
}
