/*
  styles.css - Estilos modernos, responsive, modo oscuro y animaciones suaves para portafolio profesional
  Autor: Dylan Elizondo
*/

/* Reset y fuentes */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Arvo', sans-serif;
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  color: #f5f5f5;
  min-height: 100vh;
  transition: background 0.5s, color 0.5s;
}

/* --- Modo oscuro --- */
body.darkmode {
  background: linear-gradient(120deg, #18191a 0%, #232526 100%);
  color: #e0e0e0;
}

/* Navbar sticky */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(34, 40, 49, 0.98);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.navbar__logo {
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #00bfae;
}
.navbar__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.navbar__links li a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar__links li a:hover {
  color: #00bfae;
}
.navbar__actions {
  display: flex;
  gap: 0.7rem;
}
#lang-toggle, #darkmode-toggle {
  background: #232526;
  color: #00bfae;
  border: none;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
#lang-toggle:hover, #darkmode-toggle:hover {
  background: #00bfae;
  color: #232526;
}

/* --- Navbar hamburguesa --- */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 120;
}
.navbar__burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #00bfae;
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 800px) {
  .navbar__links {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #232526;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 4.5rem 2rem 2rem 2rem;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(.77,0,.18,1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 110;
  }
  .navbar__links.open {
    transform: translateY(0);
  }
  .navbar__burger {
    display: flex;
  }
}

/* --- Secciones generales --- */
.section {
  padding: 60px 0 40px 0;
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
}
.section.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Home --- */
.home-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  justify-content: center;
}
.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00bfae;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.home-text {
  max-width: 500px;
}
.typed-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #00bfae;
  margin-bottom: 0.5rem;
}
.subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.social-links {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.social-links img {
  width: 36px;
  height: 36px;
  filter: grayscale(0.2);
  transition: transform 0.3s, filter 0.3s;
}
.social-links img:hover {
  transform: scale(1.15);
  filter: grayscale(0);
}
.button.main-cta {
  background: #00bfae;
  color: #232526;
  border: none;
  border-radius: 30px;
  padding: 0.7rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.3s, color 0.3s;
}
.button.main-cta:hover {
  background: #232526;
  color: #00bfae;
  border: 1px solid #00bfae;
}

/* --- Tabs Sobre mí --- */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.tab-btn {
  background: #232526;
  color: #00bfae;
  border: none;
  border-radius: 20px 20px 0 0;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.tab-btn.active, .tab-btn:hover {
  background: #00bfae;
  color: #232526;
}
.tab-content {
  background: #232526;
  border-radius: 0 0 12px 12px;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* --- Experiencia --- */
.experience-list {
  list-style: none;
  padding-left: 0;
}
.experience-list li {
  margin-bottom: 0.8rem;
  font-size: 1.08rem;
  padding-left: 1.2rem;
  position: relative;
}
.experience-list li:before {
  content: '•';
  color: #00bfae;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* --- Proyectos --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.project-card {
  background: #232526;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: unset;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,191,174,0.12);
  margin-top: 10%;
}
.project-card h3 {
  color: #00bfae;
  margin-bottom: 0.7rem;
  text-align: center;
}
.project-card p {
  font-size: 1.02rem;
  margin-bottom: 1.1rem;
  text-align: justify;
}
.project-card .main-cta {
  margin-top: auto;
}
.project-cover {
  width: 100%;
  max-width: 320px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
@media (max-width: 900px) {
  .project-card {
    min-height: unset;
    height: 100%;
  }
  .project-cover {
    height: 110px;
  }
}
@media (max-width: 600px) {
  .project-card {
    min-height: unset;
    height: 100%;
    padding: 1rem 0.5rem 1rem 0.5rem;
  }
  .project-cover {
    height: 80px;
  }
}

/* --- Herramientas --- */
.tools-list {
  list-style: none;
  padding-left: 0;
}
.tools-list li {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

/* --- Herramientas con iconos --- */
.tools-icons-grid {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-bottom: 1.5rem;
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #232526;
  border-radius: 10px;
  padding: 1rem 0.5rem 0.7rem 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tool-card img {
  width: 38px;
  height: 38px;
  margin-bottom: 0.5rem;
}
.tool-card span {
  color: #00bfae;
  font-weight: 500;
  font-size: 1rem;
}
.tool-card:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 24px rgba(0,191,174,0.12);
}
.tools-group h3 {
  color: #00bfae;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.badges-row img {
  height: 32px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #232526;
  padding: 2px 0;
  transition: transform 0.2s;
}
.badges-row img:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}
@media (max-width: 600px) {
  .badges-row {
    gap: 0.4rem;
  }
  .badges-row img {
    height: 26px;
  }
}

/* --- Otros Proyectos --- */
.more-projects-section p {
  font-size: 1.05rem;
  color: #b2dfdb;
}

/* --- Contacto --- */
.contact-list {
  list-style: none;
  padding-left: 0;
}
.contact-list li {
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
}
.contact-list a {
  color: #00bfae;
  text-decoration: underline;
  font-weight: bold;
}

/* --- Contacto badges --- */
.contact-badges {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.contact-badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #232526;
  color: #fff;
  border-radius: 30px;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.contact-badge img {
  width: 28px;
  height: 28px;
}
.contact-badge.linkedin {
  background: #0077B5;
  color: #fff;
}
.contact-badge.email {
  background: #D14836;
  color: #fff;
}
.contact-badge:hover {
  transform: scale(1.07);
  filter: brightness(1.1);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 1.2rem 0 0.7rem 0;
  background: transparent;
  color: #b2dfdb;
  font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .section {
    padding: 40px 2vw 30px 2vw;
  }
  .home-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  .navbar__links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .profile-img {
    width: 110px;
    height: 110px;
  }
  .typed-title {
    font-size: 1.3rem;
  }
  .section {
    padding: 30px 1vw 20px 1vw;
  }
}
