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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #000000;
  color: #ffffff;
  padding-left: 60px;
  position: relative;
}

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 200vh;
  z-index: 1;
  pointer-events: none;
}

h2, h3 {
  font-family: "Space Grotesk", sans-serif;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.sidebar {
  position: fixed;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 16px 12px;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  perspective: 800px;
}
.sidebar__link {
  width: 22px;
  height: 22px;
  color: #b8c1cc;
  transition: color 0.3s ease, transform 0.3s ease;
}
.sidebar__link svg {
  width: 100%;
  height: 100%;
}
.sidebar__link:hover {
  color: #00f7ff;
  transform: scale(1.2);
}
.sidebar__link--activo {
  color: #00f7ff;
}

.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
  background: radial-gradient(circle at top, rgba(0, 247, 255, 0.08), transparent 40%);
}
.home__content {
  max-width: 1100px;
  text-align: center;
  padding: 0 40px;
  transform-style: preserve-3d;
  will-change: transform;
}
.home__parrafo {
  font-size: 1rem;
  color: #b8c1cc;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.home__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 24px;
  color: #ffffff;
  letter-spacing: -2px;
}
.home__subtitle {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #00f7ff;
  letter-spacing: 2px;
}
.home__description {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 40px auto;
  color: #b8c1cc;
  line-height: 1.6;
}
.home__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 13rem;
}
.home__socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.home__social-link {
  width: 40px;
  height: 40px;
  color: #b8c1cc;
  transition: all 0.3s ease;
}
.home__social-link svg {
  width: 100%;
  height: 100%;
}
.home__social-link:hover {
  color: #00f7ff;
  transform: translateY(-4px);
}

.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.button--primary {
  background: linear-gradient(135deg, #00f7ff, #8b5cf6);
  box-shadow: 0 0 12px rgba(0, 247, 255, 0.4);
}
.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.6);
}
.button--secondary {
  background: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
}
.button--secondary:hover {
  background: #00f7ff;
  color: #000;
  box-shadow: 0 0 12px rgba(0, 247, 255, 0.4);
}

.tech {
  padding: 100px 0;
}
.tech__container {
  max-width: 1100px;
  margin: 0 auto;
}
.tech__title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #ffffff;
}
.tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 2rem;
  justify-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.tech-card {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  padding: 10px 10px;
  display: flex;
  text-align: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 12px rgba(0, 247, 255, 0.4);
}
.tech-card__img {
  width: 48px;
}
.tech-card__img--white {
  filter: invert(1);
}

.about {
  padding: 6rem 2rem;
}
.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}
@media (max-width: 768px) {
  .about__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.about__text {
  margin-bottom: 1rem;
  line-height: 1.6;
  opacity: 0.85;
}
.about__image {
  position: relative;
  z-index: 2;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent 70%);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.15);
}
.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .about__img {
    width: 180px;
  }
}

.education {
  padding: 100px 8%;
  perspective: 800px;
  position: relative;
  z-index: 2;
}
.education__container {
  max-width: 800px;
  margin: 0 auto;
}
.education__title {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.timeline__item {
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}
.timeline__item:last-child {
  margin-bottom: 0;
}
.timeline__dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00f7ff;
  box-shadow: 0 0 12px rgba(0, 247, 255, 0.5);
}
.timeline__content {
  background: rgba(12, 12, 12, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}
.timeline__degree {
  font-size: 1.2rem;
  color: #00f7ff;
  margin-bottom: 4px;
}
.timeline__place {
  display: block;
  font-size: 0.95rem;
  color: #b8c1cc;
  margin-bottom: 2px;
}
.timeline__year {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 12px;
}
.timeline__description {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.6;
}

.projects {
  padding: 100px 8%;
  position: relative;
  z-index: 2;
}
.projects__title {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}
.projects__list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
  perspective: 800px;
}

.project-card {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
  }
}
.project-card__image {
  order: 2;
}
@media (max-width: 768px) {
  .project-card__image {
    order: -1;
  }
}
.project-card__image {
  flex-shrink: 0;
  width: 280px;
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .project-card__image {
    width: 100%;
  }
}
.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card__content {
  background: rgba(12, 12, 12, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  flex: 1;
}
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.project-card__tag {
  font-size: 0.75rem;
  color: #00f7ff;
  border: 1px solid #00f7ff;
  border-radius: 999px;
  padding: 4px 12px;
  transition: all 0.3s ease;
  cursor: default;
}
.project-card__tag:hover {
  background: #00f7ff;
  color: #000;
  box-shadow: 0 0 12px rgba(0, 247, 255, 0.4);
}
.project-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.project-card__title {
  font-size: 1.2rem;
  color: #00f7ff;
}
.project-card__badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 180, 50, 0.15);
  color: #ffb432;
  border: 1px solid rgba(255, 180, 50, 0.4);
}
.project-card__description {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.6;
}
.project-card__btn {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #00f7ff;
  color: #00f7ff;
  transition: all 0.3s ease;
}
.project-card__btn:hover {
  background: #00f7ff;
  color: #000;
  box-shadow: 0 0 12px rgba(0, 247, 255, 0.4);
}

.footer {
  padding: 60px 8% 40px;
  color: #fff;
  perspective: 800px;
  position: relative;
  z-index: 2;
}
.footer__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 300px;
  margin: 0 auto;
  padding: 32px 24px;
  background: rgba(12, 12, 12, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}
.footer__icons {
  display: flex;
  gap: 24px;
}
.footer__icon-link {
  width: 28px;
  height: 28px;
  color: #b8c1cc;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer__icon-link svg {
  width: 100%;
  height: 100%;
}
.footer__icon-link:hover {
  color: #00f7ff;
  transform: scale(1.2);
}
.footer__copy {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
}