body {
  margin: 0;
  padding: 0;
  background-color: #171717;
  color: white;
  font-family: 'Ubuntu', sans-serif;
  height: auto;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, #2DA5BC 1px, transparent 1px);
  background-size: 25px 25px;
  opacity: 0;
  animation: respiracion 7s ease-in-out infinite;
  z-index: 0;
}

@keyframes respiracion {
  0% { opacity: 0; }
  50% { opacity: 0.5; }
  100% { opacity: 0; }
}

.page-hero {
  height: 100vh;
  width: 100vw;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5.2rem;
  box-sizing: border-box;
  z-index: 1;
}

.page-hero .content {
  max-width: 700px;
  width: 100%;
}

.top-bar {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  box-sizing: border-box;
}

.top-bar-left, .top-bar-right {
  display: flex;
}

.top-bar-item {
  color: white;
  font-size: 1rem;
  padding: 0.4rem 0.5rem;
  border-radius: 25px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.datetime-container {
  display: flex;
  align-items: center;
}

.calendar-icon {
  font-size: 1.3rem;
  margin-right: 8px;
}

.datetime-text {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  line-height: 1;
  color: #ccc;
}

.content {
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.presentation {
  background-color: transparent;
  max-width: 900px;
  text-align: left;
}

.presentation h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.presentation .title {
  font-size: 1.15rem;
  color: #ccc;
  border: 2px solid #2DA5BC;
  border-radius: 25px;
  padding: 0.45rem 0.9rem;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.presentation h2.subtitle {
  font-size: 2.2rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.presentation .description {
  font-size: 1.4rem;
  color: #ccc;
  margin-top: 0.25rem;
}

.contact-button {
  position: relative;
  display: inline-block;
  padding: 0.75rem 3rem 0.75rem 1.5rem;
  margin: 0;
  font-weight: bold;
  color: #ccc;
  background-color: transparent;
  border: 2px solid #2DA5BC;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  z-index: 0;
  transition: color 0.4s ease;
}

.contact-button::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23ccc' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 17l5-5-5-5v10z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.contact-button:hover::after {
  transform: translateY(-50%) rotate(45deg);
}

.contact-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #2DA5BC;
  z-index: -1;
  transition: left 0.4s ease;
}

.contact-button:hover::before {
  left: 0;
}

.contact-button:hover {
  color: #fff;
}

.bottom-bar {
  position: fixed;
  bottom: 10px; 
  left: 50%; 
  transform: translateX(-50%) translateY(20px);
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  z-index: 1000;
  border: 2px solid #2DA5BC;
  max-width: 240px;
  width: auto;
  gap: 18px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bottom-bar-item img {
  width: 32px;
  height: 32px;
  filter: grayscale(100%) brightness(70%);
  transition: filter 0.3s ease;
  cursor: pointer;
}

.bottom-bar-item img:hover {
  filter: brightness(0) saturate(100%) invert(56%) sepia(18%) saturate(1200%) hue-rotate(155deg) brightness(96%) contrast(88%);
}

.bottom-bar-item.active img {
  filter: brightness(1) saturate(100%) invert(56%) sepia(18%) saturate(1200%) hue-rotate(155deg) brightness(120%) contrast(100%);
}

.page-about {
  width: 100vw;
  padding: 4rem 2rem 6rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  background-color: #171717;
  position: relative;
  z-index: -1;
}

.about-content {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
  color: #ccc;
  text-align: left;
}

.about-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #2DA5BC;
   text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
}

.green-container {
  padding: 1rem;
  margin-top: 1rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.green-header {
  display: flex;
  align-items: center;
  height: 100%;
  margin-top: 3rem;
  padding-left: 1.5rem;
}

.green-header span {
  font-size: 1.2rem;
  font-weight: bold;
}

.blue-container {
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  border-radius: 5px;
  height: auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.skills-grid > .skill:nth-child(5) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.skill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.2rem;
  color: #ccc;
  border-radius: 4px;
  font-weight: 600;
  gap: 0.5rem;
}

.skill-icon {
  border-radius: 8px;
  padding: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background-color: transparent;
}

.skill-name {
  font-size: 1.5rem;
  height: 50px; 
  display: flex;
  align-items: left;
  color: #ccc;
  padding-left: 10px;
  flex-direction: column;
}

.skill-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.skill-desc {
  font-size: 0.8rem; 
  margin-top: 4px;
  line-height: 1.2;
  font-style: italic;
  font-weight: bold;
}

.skill-icon.terraform {
   background-color: rgba(123, 66, 189, 0.2);
}

.skill-icon.kubernetes {
  background-color: rgba(49, 109, 230, 0.2);
}

.skill-icon.ansible {
  background-color: rgba(238, 0, 0, 0.15); 
}

.skill-icon.docker {
  background-color: rgba(36, 150, 237, 0.15);
}

.skill-icon.aws {
  background-color: rgba(255, 153, 0, 0.15);
}

.skill-icon.azure {
  background-color: rgba(0, 120, 215, 0.15);
}

.skill-icon.bash {
  background-color: rgba(0, 149, 86, 0.15);
}

.skill-icon.nodejs {
  background-color: rgba(0, 149, 86, 0.15);
}

.skill-icon.nestjs {
  background-color: rgba(238, 0, 0, 0.15);
}

.skill-icon.python {
  background-color: rgba(53, 114, 165, 0.2);
}

.skill-icon.javascript {
  background-color: rgba(240, 219, 79, 0.25);
}

.skill-icon.typescript {
  background-color: rgba(0, 122, 204, 0.2);
}

.skill-icon.html {
  background-color: rgba(227, 76, 38, 0.2);
}

.skill-icon.css {
  background-color: rgba(38, 77, 228, 0.2);
}

.skill-icon.gitlab {
  background-color: rgba(226, 67, 41, 0.2);
}

.skill-icon.github {
  background-color: rgba(36, 41, 46, 0.2);
}

.skill-icon.fastapi {
  background-color: rgba(0, 204, 153, 0.2);
}

.skill-icon.jenkins {
  background-color: rgba(240, 214, 182, 0.3);
}

.skill-icon.mongodb {
  background-color: rgba(71, 170, 99, 0.2);
}

.skill-icon.postgresql {
  background-color: rgba(49, 99, 142, 0.2);
}

.page-experience {
  background-color: #171717;
  color: #ccc;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

.experience-body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.experience-photo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 80px;
  gap: 1rem;
  border-radius: 8px;
  margin-right: 1rem;
}

.svg-with-bg {
  background-color: white;
  padding: 8px;
  border-radius: 8px;
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.page-experience h2 {
  font-size: 3rem; 
  margin-bottom: 2.5rem;
  color: #2DA5BC;
  text-align: center;
}

.experience-item {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 40px;
  color: #e0e0e0;
  
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 800px;
  transition: background-color 0.3s ease;
}

.experience-date {
  font-weight: 500;
  color: #aaa;
}

.experience-content h3 {
  margin: 0;
  font-size: 1.1rem;
  color: white;
  font-style: bold;
}

.experience-content {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.experience-content p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #ccc;
}

.tech-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  background-color: #2DA5BC;
  color: white;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 500;
}

.page-services {
  background-color: #171717;
  color: #ccc;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh; 
}

.page-services h2 {
  font-size: 3rem; 
  margin-bottom: 50px;
  color: #2DA5BC;
}

.services-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px; 
  width: 100%;
}

.service {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 40px 30px;
  width: 350px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.7);
  transition: background-color 0.3s ease;
}

.service:hover {
  background-color: #3c3c3c;
}

.service-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #ccc;
}

p {
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.6;
}


.page-contact {
  width: 100vw;
  padding: 4rem 2rem 6rem;
  background-color: #171717;
  color: #ccc;
  text-align: center;
  box-sizing: border-box;
}

.page-contact h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: #2DA5BC;
}

.page-contact p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #ccc;
}

.contact-form {
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  text-align: left;
  padding: 2rem;
  margin-bottom: 3rem;
  border-radius: 8px;
  border: 4px solid transparent;
  background: linear-gradient(45deg, #2DA5BC, #23879e);
  background-clip: padding-box, border-box;
  box-shadow: 0 0 0 4px transparent;
  position: relative;
  z-index: 0;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  z-index: -1;
  border-radius: 12px;
  background: linear-gradient(45deg, #2DA5BC, #23879e);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border-radius: 6px;
  border: 2px solid transparent;
  background-color: #fff;
  color: #222;
  font-size: 1rem;
  resize: vertical;
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

.contact-form button {
  background-color: #04998B;
  border: none;
  color: white;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #4B2DC7;
}

@media (max-width: 767px) {
    .bottom-bar {
    display: none !important;
  }

  .skill-name {
    display: none;
  }

  .skill {
    flex-direction: column;
    align-items: center;
  }

  .skill-icon {
    width: 40px;
    height: 40px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 1rem;
  }

  .contact-form {
    width: calc(100vw - 2rem);
    margin: 0 auto;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
  }

  .page-contact {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
}

@media (max-width: 430px) {
  .experience-item {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    gap: 1.2rem;
  }
  .experience-photo, .experience-date {
    margin-left: 10px;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .skill {
    padding: 0.5rem;
  }
}

@media only screen and (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {
  .experience-item {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    gap: 1.2rem;
  }
  .experience-photo, .experience-date {
    margin-left: 10px;
  }
}

@media only screen and (min-width: 760px) and (max-width: 780px) and (orientation: portrait) {
  .skill {
    gap: 0;
  }
}

@media (min-width: 480px) and (max-width: 945px) and (orientation: landscape) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}