body {
  background: #23252b;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #ececec;
  margin: 0;
  min-height: 100vh;
}

.dark-container {
  max-width: 900px;
  margin: 40px auto;
  background: #2d2f37;
  border-radius: 16px;
  box-shadow: 0 2px 16px #2226;
  padding: 32px 28px 16px 28px;
}

header {
  border-bottom: 1px solid #3a3b43;
  padding-bottom: 23px;
  margin-bottom: 35px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 21px;
}

.profile img {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
  background: #2d2f37;
  border: 2px solid #555b69;
}

.profile h1 {
  font-size: 2.1rem;
  color: #b8b8d4;
  margin-bottom: 4px;
  font-weight: 700;
}

.subtitle {
  color: #adacc8;
  font-size: 1.04rem;
  letter-spacing: 0.03em;
}

.bio {
  margin: 16px 0 10px;
  font-size: 1.07rem;
  color: #dedede;
  line-height: 1.52;
}

.contact-links {
  display: flex;
  gap: 17px;
  margin-top: 5px;
}

.contact-links a {
  background: #31354b;
  color: #b7a9d2;
  padding: 7px 17px;
  border-radius: 13px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.96rem;
  transition: background 0.14s;
}

.contact-links a:hover {
  background: #7a6ea8;
  color: #fff;
}

main section {
  background: #292b31;
  margin-bottom: 24px;
  padding: 20px 17px 13px 17px;
  border-radius: 12px;
  box-shadow: 0 1px 7px #2223;
}

main h2 {
  color: #b8b8d4;
  margin-bottom: 11px;
  font-size: 1.18rem;
  border-left: 3px solid #755bb4;
  padding-left: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.action-link, .cert-link {
  background: #755bb4;
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
  box-shadow: 0 1px 9px #3338;
  transition: background 0.18s;
}

.action-link:hover, .cert-link:hover {
  background: #63599a;
}

.certificados-list {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 5px;
}

.project-box, .testimonial-box {
  background: #292b31;
  padding: 11px 14px;
  border-radius: 10px;
}

.project-box h3 {
  color: #b8b8d4;
  margin-top: 0;
  margin-bottom: 7px;
}

.project-box ul {
  margin: 0;
  padding-left: 19px;
  color: #c9c9d9;
  font-size: 0.97rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.skills-list span {
  background: #333345;
  color: #b7a9d2;
  border-radius: 10px;
  padding: 7px 13px;
  font-size: 0.95rem;
  font-weight: 500;
}

.testimonial-box {
  border-left: 3px solid #755bb4;
  color: #b8b8d4;
  font-style: italic;
  margin-top: 7px;
}

footer {
  margin-top: 22px;
  text-align: center;
  font-size: 0.98rem;
  color: #b8b8d4;
  border-top: 1px solid #3a3b43;
  padding-top: 14px;
  background: none;
}

.contact-popup-btn {
  background: #755bb4;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 7px #3338;
  margin-top: 9px;
}

.contact-popup-btn:hover {
  background: #63599a;
}

.contact-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(40, 42, 54, 0.72);
}

.contact-modal-content {
  background: #fff;
  color: #23252b;
  margin: 10% auto;
  padding: 28px 26px 17px 26px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(6,32,71,0.13);
  max-width: 340px;
  min-width: 260px;
  position: relative;
  animation: popupFadeIn 0.22s ease;
}

@keyframes popupFadeIn {
  from {transform: scale(0.97); opacity: 0.4;}
  to   {transform: scale(1); opacity:1;}
}

.close-contact {
  color: #755bb4;
  position: absolute;
  top: 12px; right: 20px;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
}

.contact-modal-content h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #755bb4;
  font-size: 1.16rem;
  font-weight: 700;
}

.contact-modal-content div {
  margin-bottom: 10px;
}
.contact-modal-content a {
  color: #63599a;
  text-decoration: none;
  font-weight: 500;
}

.contact-modal-content a:hover {
  text-decoration: underline;
  color: #755bb4;
}

.body-fade {
  opacity: 0;
  animation: fadeinbody 0.9s ease 0.1s forwards;
}
@keyframes fadeinbody {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.contact-popup-btn, .action-link, .cert-link {
  transition: background 0.18s, transform 0.17s;
}
.contact-popup-btn:hover,
.action-link:hover,
.cert-link:hover {
  background: #63599a;
  transform: scale(1.07);
}

.profile img {
  transition: transform 0.22s cubic-bezier(.62,-0.12,.39,1.19), box-shadow 0.18s;
}
.profile img:hover {
  transform: scale(1.08) rotate(-1.5deg);
  box-shadow: 0 4px 14px #755bb4b0;
}

main section {
  opacity: 0;
  transform: translateY(30px);
  animation: sectionFadeIn 0.75s forwards;
}
main section:nth-of-type(1) { animation-delay: 0.15s; }
main section:nth-of-type(2) { animation-delay: 0.32s; }
main section:nth-of-type(3) { animation-delay: 0.48s; }
main section:nth-of-type(4) { animation-delay: 0.65s; }
main section:nth-of-type(5) { animation-delay: 0.81s; }
main section:nth-of-type(6) { animation-delay: 0.98s; }

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

.skills-list span {
  transition: background 0.2s, color 0.2s, transform 0.18s;
  cursor: pointer;
}
.skills-list span:hover {
  background: #755bb4;
  color: #fff;
  transform: translateY(-2px) scale(1.06);
}

.project-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-card {
  background-color: #292b37;
  border-radius: 14px;
  padding: 18px 22px;
  width: 280px;
  box-shadow: 0 3px 15px rgb(50 50 93 / 0.15);
  color: whitesmoke;
  transition: transform 0.25s ease, box-shadow 0.22s ease;
}

.project-card h3 {
  margin-top: 0;
  color: #a259ea;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-card a {
  color: #60aaff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.project-card a:hover {
  text-decoration: underline;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px 4px rgb(102 45 145 / 0.5);
}

