body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: white;
    color: black;
    padding-top: 80px;
}

.navbar {
    background-color: #222;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
    gap: 2rem;
}

.navbar a {
    color: white;
    text-decoration: none;
}
.home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background-color: #ffffff;
}

.home-content {
  max-width: 900px;
  text-align: center;
}

.profile-photo {
  width: 160px;
  border-radius: 50%;
  border: 3px solid #007acc;
  margin-bottom: 1.5rem;
}

.home-name {
  font-size: 3rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.5rem;
}

.home-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #007acc;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.home-intro {
  font-size: 1.05rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.home-highlights {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.home-highlights li {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: #333;
}

.home-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.primary {
  background-color: #007acc;
  color: white;
}

.btn.primary:hover {
  background-color: #005fa3;
}

.btn.secondary {
  border: 2px solid #007acc;
  color: #007acc;
}

.btn.secondary:hover {
  background-color: #007acc;
  color: white;
}

.research-section {
  padding: 5rem 2rem;
}

.research-container {
  max-width: 900px;
  margin: 0 auto;
}

.research-section h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.research-section h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.research-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.research-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.research-block h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.projects-section {
  padding: 5rem 2rem;
}

.projects-container {
  max-width: 1000px;
  margin: 0 auto;
}

.projects-intro {
  margin-bottom: 3rem;
  max-width: 700px;
}

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

.project-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ===== Auto Carousel inside Project Card ===== */
.project-carousel {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #f2f2f2; 
}

.project-carousel .carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.project-carousel .carousel-image.active {
  opacity: 1;
}


.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.project-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0.4rem 0;
}

.project-tags li {
  background: #eef5ff;
  color: #005fcc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
}
.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #2c2c2c;
}

.project-highlights span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.project-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #007acc;
  border: 1px solid #007acc;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-links a:hover {
  background: #007acc;
  color: #ffffff;
}

@media (max-width: 600px) {
  .project-card img {
    height: 140px;
  }

  .project-card {
    padding: 1.2rem;
  }
}

.skills-section {
  padding: 5rem 2rem;
}

.skills-container {
  max-width: 1000px;
  margin: 0 auto;
}

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

.skill-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5rem;
  background: #fff;
}

.skill-card h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #007acc;
}

.skill-card ul {
  list-style: none;
  padding-left: 0;
}

.skill-card li {
  margin-bottom: 0.5rem;
}

.education-section {
  padding: 5rem 2rem;
}

.education-container {
  max-width: 1000px;
  margin: 0 auto;
}

.education-item {
  margin-bottom: 2.5rem;
}

.education-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.education-place {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.education-details {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.education-dates {
  font-size: 0.9rem;
  opacity: 0.7;
}
.certifications-section {
  padding: 5rem 2rem;
}

.certifications-container {
  max-width: 1000px;
  margin: 0 auto;
}

.certifications-list {
  list-style: none;
  padding-left: 0;
}

.certifications-list li {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.languages-section {
  padding: 5rem 2rem;
}

.languages-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

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

.language-card {
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.language-card:hover {
  transform: translateY(-4px);
}

.language-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.language-level {
  font-size: 1rem;
  font-weight: 600;
}

.language-level.native {
  color: #2e7d32; /* verde */
}

.language-level.advanced {
  color: #007acc;
}

.language-level span {
  font-weight: 400;
  font-size: 0.9rem;
  display: block;
  margin-top: 0.2rem;
  color: #555;
}

.experience-section {
  padding: 5rem 2rem;
}

.experience-container {
  max-width: 1000px;
  margin: 0 auto;
}

.experience-block {
  margin-bottom: 3rem;
}

.experience-block h3 {
  margin-bottom: 1.5rem;
  color: #007acc;
}

.experience-item {
  margin-bottom: 1.5rem;
}

.experience-item h4 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 2rem;
  margin-top: 2rem;
}

.contact-icons a {
  color: #007acc;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-icons a:hover {
  color: #005f99;
  transform: translateY(-3px);
}

.contact-section {
  padding: 5rem 2rem;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 1.5rem;
}

.contact-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-email i {
  margin-right: 0.5rem;
  color: #007acc;
}

.contact-email a {
  text-decoration: none;
  color: #222;
}

.contact-email a:hover {
  color: #007acc;
}

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
}
