body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Base header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: transparent;
  border-radius: 20px;
  box-sizing: border-box;
}

.logo {
  height: 40px;
}

body {
  margin-top: 70px;
}

/* Group navbar and contact in one container */
.nav-contact-container {
  display: flex;
  align-items: center;
  margin-left: auto;
  /* This pushes the container to the right */
}

/* Responsive navbar */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: white;
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.navbar-menu li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 14px;
}

.navbar-menu li a:hover {
  color: #8869A5;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #8869A5;
}

.faq-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 15px;
}

.faq-link {
  text-decoration: none;
  color: white;
  background-color: #C58ADE;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}

.faq-link:hover {
  background-color: #8869A5;
}

/* Responsive hero section */
.hero {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #8869A5 20%, #C58ADE 80%);
  color: white;
  position: relative;
  min-height: 25vh;
  max-width: 90%;
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero h2 {
  font-size: clamp(1.2em, 4vw, 2em);
  font-weight: 300;
  margin-bottom: 10px;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(1.5em, 5vw, 3em);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive about section */
.about,
.why-software,
.why-exa {
  max-width: 90%;
  margin: 50px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.about h1,
.why-software h1 {
  font-size: clamp(1.8em, 5vw, 2.5em);
  color: #8869A5;
  margin-bottom: 20px;
}

.about h2 {
  font-size: clamp(1.5em, 4vw, 2em);
  color: #4a4a4a;
  margin-top: 30px;
}

.about p,
.why-software p {
  font-size: clamp(1em, 3vw, 1.2em);
  color: #555;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 15px;
}

.about::before,
.why-software::before {
  content: "";
  display: block;
  width: 80px;
  height: 5px;
  background-color: #8869A5;
  margin: 0 auto 20px auto;
  border-radius: 10px;
}

.about img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  margin: 20px 0;
  height: auto;
}

/* Responsive projects section */
.projects {
  padding: 50px 20px;
  text-align: center;
}

.projects h1 {
  font-size: clamp(1.5em, 5vw, 2em);
  margin-bottom: 20px;
  color: #8869A5;
}

.projects-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.project-card {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 5px 5px
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-card h2 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #8869A5;
}

.project-card p {
  font-size: 1em;
  color: #333;
  margin-bottom: 15px;
}

.project-card a {
  padding: 10px 20px;
  background-color: #C58ADE;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
}

/* Responsive team section */
.team {
  padding: 50px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.team h1 {
  font-size: clamp(1.8em, 5vw, 2.5em);
  color: #4a4a4a;
  margin-bottom: 30px;
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.team-card {
  background-color: white;
  padding: 20px;
  border-radius: 15px;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
  border: 4px solid #8869A5;
}

.team-name {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 10px;
}

.team-role {
  font-size: 1.2em;
  color: #777;
  margin-bottom: 10px;
  font-weight: bold;
}

.team-skills,
.hidden-info {
  font-size: 1em;
  color: #555;
  margin-bottom: 15px;
}

.hidden-info {
  display: none;
}

.team-card.active .hidden-info {
  display: block;
}

.toggle-info {
  margin-top: auto;
  width: 80%;
  padding: 10px;
  font-size: 16px;
  background: #C58ADE;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-info:hover {
  background: #8869A5;
}

/* Responsive why-exa section */
.why-exa h1 {
  font-size: clamp(1.8em, 5vw, 2.8em);
  color: #8869A5;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  margin-bottom: 20px;
}

.why-exa h1::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #C58ADE;
  display: block;
  margin: 8px auto 0;
  border-radius: 2px;
  transition: width 0.4s ease-in-out;
}

.why-exa h1:hover::after {
  width: 120px;
}

.why-exa-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.why-exa-card {
  background-color: white;
  padding: 20px;
  border-radius: 15px;
  width: 100%;
  max-width: 250px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.why-exa-card:hover {
  transform: translateY(-10px);
}

.why-exa-icon {
  font-size: 2.5em;
  color: #8869A5;
  margin-bottom: 10px;
}

.why-exa-card h2 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #4a4a4a;
}

.why-exa-card p {
  font-size: 1em;
  color: #555;
}

/* Responsive footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
}

footer a {
  color: #007bff;
  text-decoration: none;
  margin: 0 5px;
}

footer p {
  margin: 10px 0;
}

.contacto {
  margin: 20px 0;
}

.contacto h3 {
  color: #8869A5;
  margin-bottom: 10px;
}

.contacto a {
  display: block;
  margin: 5px 0;
}

/* Media Queries */
@media screen and (max-width: 992px) {
  .header {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .nav-contact-container {
    flex: 1;
    justify-content: flex-end;
    display: flex;
  }
}

@media screen and (max-width: 768px) {
  .header {
    padding: 10px;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.95);
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .nav-contact-container {
    flex-direction: row-reverse;
    width: auto;
  }

  .navbar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    box-shadow: none;
  }

  .navbar.active {
    max-height: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar-menu {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }

  .navbar-menu li {
    width: 100%;
    text-align: center;
  }

  .navbar-menu li a {
    display: block;
    padding: 10px;
  }

  .faq-container {
    margin-right: 15px;
  }
}

@media screen and (max-width: 576px) {
  .logo {
    height: 30px;
  }

  .faq-link {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 20vh;
    margin: 20px auto;
    padding: 20px 10px;
  }

  .projects-container,
  .team-container,
  .why-exa-container {
    gap: 15px;
  }

  .project-card,
  .team-card,
  .why-exa-card {
    max-width: 100%;
  }

  .why-exa-icon {
    font-size: 2em;
  }

  .contacto a {
    display: inline-block;
    margin: 5px;
  }
}

/* Projects Slider Styles */
.projects-slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.projects-slider {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
}

.slider-btn {
  background-color: rgba(136, 105, 165, 0.7);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.slider-btn:hover {
  background-color: #8869A5;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.projects-slider .project-card {
  flex: 0 0 calc(100% / 3);
  max-width: calc(100% / 3);
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-card h2 {
  font-size: 1.2em;
  color: #8869A5;
  padding: 10px;
  margin: 0;
}

.project-card p {
  flex-grow: 1;
  padding: 0 10px 10px;
  color: #333;
}

.project-card a {
  display: block;
  text-align: center;
  background-color: #C58ADE;
  color: white;
  text-decoration: none;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.project-card a:hover {
  background-color: #8869A5;
}

@media screen and (max-width: 992px) {
  .projects-slider .project-card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 576px) {
  .projects-slider .project-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .slider-btn {
    font-size: 18px;
    padding: 8px 12px;
  }
}

/* From Uiverse.io by McHaXYT */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 20px;

}

.button {
  cursor: pointer;
  text-decoration: none;
  color: #ffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2d2e32;
  border: 2px solid #2d2e32;
  transition: all 0.45s;
}

.button:hover {
  transform: rotate(360deg);
  transform-origin: center center;
  background-color: #ffff;
  color: #2d2e32;
}

.button:hover .btn-svg {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(305deg) brightness(103%) contrast(103%);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}