* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0f1923;
  color: #fff;
}

header {
  width: 100%;
  padding: 20px 0; 
  box-sizing: border-box;
  background-color: #131f2b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.menu-toggle {
  width: 26px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: absolute;
  left: 60px;
  top: 37px;
}

.menu-toggle span {
  height: 4px;
  background-color: #fff;
  border-radius: 2px;
  width: 100%;
  transition: all 0.3s ease;
}


h1 {
  margin: 0 auto;
}

nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-color: rgba(26, 36, 45, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

nav ul {
  list-style: none;
  text-align: center;
}

nav ul li {
  margin: 20px 0;
}

nav ul li a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  font-weight: bold;
}

nav.active {
  display: flex;
}

main {
  padding: 40px 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

footer {
  padding: 15px 0;
  width: 100%;
  box-sizing: border-box;
  background-color: #131f2b;
  color: #fff;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-contact {
  text-align: center;
  margin-bottom: 15px;
}

.footer-title {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #8257e6;
  font-family: agency fb;
}

body.light .footer-title {
  color: #6a47c0;
}

footer .social-links a img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

footer .social-links a:hover img {
  transform: scale(1.2);
}

footer .social-links a {
  text-decoration: none;
}

body.light footer .social-links a img {
  filter: none;
}

.theme-toggle {
  position: absolute;
  right: 20px;
  top: 19px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.theme-toggle img {
  width: 32px;
  height: 54px;
  transition: transform 0.3s ease;
}

body.light {
  background-color: #f4f4f4;
  color: #222;
}

body.light header,
body.light footer {
  background-color: #e0e0e0;
  color: #222;
}

body.light nav {
  background-color: rgba(255, 255, 255, 0.95);
}

body.light nav ul li a {
  color: #222;
}

body.light .menu-toggle span {
  background-color: #222;
}

body.light .theme-toggle {
  color: #222;
}

.back-button {
  position: absolute;
  top: 30px;
  left: 30px;
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-size: 18px;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

body.light .back-button {
  border-color: #222;
  color: #222;
}

body.light .back-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.main-profile {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 40px 60px; 
  text-align: right;
  height: calc(100vh - 120px);
  margin: 0;
  width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

.profile-text {
  flex: 1;
  max-width: 90%; 
  padding: 0;
  margin: 0;
  color: #fff;
}


body.light .profile-text {
  color: #222;
}

.profile-text h2 {
  font-size: 3rem;
  margin-bottom: 2%;
}

.profile-text p {
  font-size: 1.25rem;
  line-height: 1.5;
}

.highlight-name {
  color: #8257e6; 
  font-family: agency fb;
}

.profile-photo {
  width: 35%;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: cover;
  animation: slideInFromLeft 1s ease forwards;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInFromRight 1s ease forwards;
}

@keyframes blinkCursor {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: #8257e6;
  }
}

.download-cv-btn {
  display: inline-block;
  margin-top: 10%;
  padding: 12px 25px;
  background-color: #8257e6;
  color: #fff;
  font-weight: bold;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  opacity: 0;
  transform: translateX(100%);
}

.download-cv-btn:hover {
  background-color: #6a47c0;
}

body.light .download-cv-btn {
  background-color: #6a47c0;
  color: #fff;
}

body.light .download-cv-btn:hover {
  background-color: #8257e6;
}

.download-cv-btn.slide-in-right {
  animation: slideInFromRight 1s ease forwards;
}


.typing-cursor {
  border-right: 2px solid #8257e6;
  animation: blinkCursor 0.7s steps(1) infinite;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 768px) {
  .main-profile {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: auto;
    text-align: center;
  }

  .profile-text {
    max-width: 100%;
    padding: 20px 0;
  }

  .profile-text h2 {
    font-size: 2rem;
  }

  .profile-text p {
    font-size: 1rem;
  }

  .profile-photo {
    width: 80%;
    max-height: 300px;
    margin-bottom: 20px;
  }

  .download-cv-btn {
    transform: translateX(100%);
    opacity: 0;
    animation: slideInFromRight 1s ease forwards;
    margin-top: 20px;
  }
}



.skills-section {
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  border-top: none;
}

.skills-section h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #8257e6;
  font-family: agency fb;
}

body.light .skills-section h2 {
  color: #8257e6; 
}

.skills-list {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
}

.skills-list li {
  background-color: #2a3746;
  padding: 12px 25px;
  border-radius: 12px;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 12px; 
}

.skill-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}


.skills-list li:hover {
  background-color: #3c4b66;
}

body.light .skills-section {
  color: #222;
  border-top-color: #8257e6;
}

body.light .skills-list li {
  background-color: #eaeaea;
  color: #222;
}

body.light .skills-list li:hover {
  background-color: #d4d4d4;
}

.bio-section {
  padding: 60px 20px;
  background-color: #131f2b;
  color: #fff;
  text-align: center;
}

.bio-container {
  max-width: 800px;
  margin: 0 auto;
}

.bio-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: agency fb;
  color: #8257e6;
}

.bio-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  font-weight: 300;
}

/* Modo claro */
body.light .bio-section {
  background-color: #e0e0e0;
  color: #222;
}

body.light .bio-section h2 {
  color: #6a47c0;
}

.projects-section {
  padding: 60px 20px;
  background-color: #0f1923;
  color: #fff;
  text-align: center;
}

.projects-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #8257e6;
  font-family: agency fb;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background-color: #1c2a38;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: left;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.project-card p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #ccc;
}

.project-card a {
  color: #8257e6;
  text-decoration: none;
  font-weight: bold;
}

.project-card:hover {
  transform: translateY(-5px);
  background-color: #263849;
}

body.light .projects-section {
  background-color: #f4f4f4;
  color: #222;
}

body.light .projects-section h2 {
  color: #6a47c0;
}

body.light .project-card {
  background-color: #fff;
  color: #222;
}

body.light .project-card h3 {
  color: #222;
}

body.light .project-card p {
  color: #555;
}

body.light .project-card a {
  color: #6a47c0;
}

body.light .project-card:hover {
  background-color: #f0f0f0;
}

.project-gif {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

html {
  scroll-behavior: smooth;
}

.copy-phone-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0 10px;
}

.copy-phone-button img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.copy-phone-button:hover img {
  transform: scale(1.2);
}

body.light .copy-phone-button img {
  filter: none;
}

.copy-email-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.copy-email-button img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.copy-email-button:hover img {
  transform: scale(1.2);
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

main,
section,
footer,
header {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}



