@import "https://fonts.googleapis.com/css?family=Montserrat:300, 400, 700&display=swap";

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

.container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

p {
  color: black;
  font-size: 1.4rem;
  margin-top: 5px;
  line-height: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05rem;
}

.section-title {
  font-size: 4rem;
  font-weight: 300;
  color: black;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-align: center;
  scroll-margin-top: 110px;
}

.section-title span {
  color: rgb(0, 74, 134);
}

.cta {
  display: inline-block;
  padding: 10px 30px;
  color: white;
  background-color: transparent;
  border: 3px solid rgb(0, 74, 134);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-right: 20px;
  margin-top: 30px;
  transition: 0.3s ease;
  transition-property: background-color, color;
}

.cta:hover {
  color: white;
  background-color: rgb(0, 74, 134);
}

.cta1 {
  display: inline-block;
  padding: 10px 30px;
  color: white;
  background-color: transparent;
  border-radius: 10px;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-right: 20px;
  margin-top: 30px;
  transition: 0.3s ease;
  transition-property: background-color, color;
  animation: pulse-glow-green 2.5s infinite;
}

.cta1:hover {
  color: white;
  background-color: rgb(0, 134, 0);
  animation-play-state: paused;
  box-shadow: none;
}

.cta2 {
  display: inline-block;
  padding: 10px 30px;
  color: white;
  background-color: transparent;
  /*border: 3px solid rgb(0, 74, 134);*/
  border-radius: 10px;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-right: 20px;
  margin-top: 30px;
  transition: 0.3s ease;
  transition-property: background-color, color;
  animation: pulse-glow-blue 2.5s infinite;
  animation-delay: 0.3s;
}

.cta2:hover {
  color: white;
  background-color: rgb(0, 74, 134);
  animation-play-state: paused;
  box-shadow: none;
}

.cta3 {
  display: inline-block;
  padding: 10px 30px;
  color: white;
  background-color: transparent;
  /*border: 3px solid rgb(0, 74, 134);*/
  border-radius: 10px;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-right: 20px;
  margin-top: 30px;
  transition: 0.3s ease;
  transition-property: background-color, color;
  animation: pulse-glow-gray 2.5s infinite;
  animation-delay: 0.6s;
}

.cta3:hover {
  color: white;
  background-color: rgb(108, 117, 125);
  animation-play-state: paused;
  box-shadow: none;
}

@keyframes pulse-glow-green {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 134, 0, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 134, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 134, 0, 0);
  }
}

@keyframes pulse-glow-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 74, 134, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 74, 134, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 74, 134, 0);
  }
}

@keyframes pulse-glow-gray {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 117, 125, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(108, 117, 125, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(108, 117, 125, 0);
  }
}

/* Header section */
#header {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: auto;
}

#header .header {
  min-height: 8vh;
  background-color: rgba(31, 30, 30, 0.24);
  transition: 0.3s ease background-color;
}

#header .nav-bar {
  display: contents;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 1450px;
  padding: 0 10px;
}

#header .nav-list ul {
  list-style: none;
  position: absolute;
  background-color: rgb(31, 30, 30);
  width: 100vw;
  height: 100vh;
  left: 100%;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  overflow-x: hidden;
  transition: 0.5s ease left;
}

#header .nav-list ul.active {
  left: 0%;
}

#header .nav-list ul a {
  font-size: 2.5rem;
  font-weight: 100;
  letter-spacing: 0.2rem;
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  padding: 10px;
  display: block;
  transition: color 0.25s ease;
}

#header .nav-list ul li a.active-link {
  color: rgb(120, 190, 255);
}

#header .nav-list ul a::after {
  content: attr(data-after);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: rgba(240, 248, 255, 0.021);
  font-size: 13rem;
  letter-spacing: 50px;
  z-index: -1;
  transition: 0.3s ease letter-spacing;
}

#header .nav-list ul li:hover a::after {
  transform: translate(-50%, -50%) scale(1);
  letter-spacing: initial;
}

#header .nav-list ul li:hover a {
  color: rgb(0, 74, 134);
}

#header .hamburger {
  height: 60px;
  width: 60px;
  display: inline-block;
  border: 3px solid white;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  transform: scale(0.8);
  margin-right: 20px;
}

#header .hamburger:after {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  border-radius: 50%;
  border: 3px solid white;
  animation: hamburger_puls 1s ease infinite;
}

#header .hamburger .bar {
  height: 2px;
  width: 30px;
  position: relative;
  background-color: white;
  z-index: -1;
}

#header .hamburger .bar::after,
#header .hamburger .bar::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  background-color: white;
  transition: 0.3s ease;
  transition-property: top, bottom;
}

#header .hamburger .bar::after {
  top: 8px;
}

#header .hamburger .bar::before {
  bottom: 8px;
}

#header .hamburger.active .bar::before {
  bottom: 0;
}

#header .hamburger.active .bar::after {
  top: 0;
}
/* End Header section */

/* Cover Section */
.container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
}

#cover {
  background-image: url("https://Fgarita.github.io/Garita-CV/images/ingeniería-en-sistemas-computacionales-1.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  background-repeat: no-repeat;
}

#cover::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  opacity: 0.6;
  z-index: -1;
}

#cover h1 {
  text-align: left;
  display: block;
  width: fit-content;
  font-size: 4rem;
  position: relative;
  color: transparent;
  font-weight: 300;
  animation: text_reveal 1s ease forwards;
  animation-delay: 1s;
  margin-bottom: 10px;
}

#cover h1:nth-child(1) {
  animation-delay: 2s;
}

#cover h1:nth-child(2) {
  animation-delay: 2.5s;
}

#cover h1:nth-child(3) {
  animation-delay: 3s;
}

#cover h1 span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: rgb(0, 74, 134);
  animation: text_reveal_box 1.5s ease;
  animation-delay: 0.7s;
}

#cover h1:nth-child(1) span {
  animation-delay: 1s;
}

#cover h1:nth-child(2) span {
  animation-delay: 1.5s;
}

#cover h1:nth-child(3) span {
  animation-delay: 2s;
}

a#cta {
  margin-left: 45px;
  display: inline-block;
  padding: 5px 10px;
  color: white;
  border: 4px solid rgb(0, 74, 134);
  font-weight: 400;
  background-color: transparent;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  margin-top: 30px;
  transition: 0.3s ease;
  transition-property: background-color color;
}

#cover .cover {
  max-width: 1200px;
  margin: 0;
  padding: 0 50px;
  justify-content: flex-start;
}

div#Message {
  margin-bottom: 10%;
  position: absolute;
  bottom: 0;
}

.right-buttons {
  position: absolute;
  bottom: 10%;
  right: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px; /* Añade espacio entre los botones */
}

.right-buttons a.cta1 i {
  margin-right: 10px; /* Añade espacio entre el ícono y el texto */
}

.right-buttons a.cta2 i {
  margin-right: 10px; /* Añade espacio entre el ícono y el texto */
}

.right-buttons a.cta3 i {
  margin-right: 10px; /* Añade espacio entre el ícono y el texto */
}

/* Mostrar solo los nombres en vista de computadora */
.right-buttons a span {
  display: inline;
}

.right-buttons a i {
  display: none;
}

/* Estilos generales */
.right-buttons {
  display: flex;
  gap: 10px;
}

.right-buttons a span {
  display: inline;
}

.right-buttons a i {
  display: none;
}

/* Estilos generales */
.right-buttons {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.right-buttons a span {
  display: inline;
}

.right-buttons a i {
  display: none;
}

/* Mostrar solo los iconos en vista de móvil */
@media (max-width: 768px) {
  .right-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    flex-direction: column;
  }

  .right-buttons a span {
    display: none;
  }

  .right-buttons a i {
    display: inline;
  }

  #cover h1 {
    font-size: 2.1rem;
  }

  #cover .cover {
    padding: 0 20px;
  }

  div#Message {
    position: absolute;
    bottom: 20%;
    left: 20px;
    right: 20px;
    margin-bottom: 0;
  }

  a#cta {
    margin-left: 0;
    font-size: 1.1rem;
  }
}

/* Asegura que la sección tenga posición relativa para el posicionamiento absoluto de los botones */
.specific-section {
  position: relative;
  padding: 20px;
  border: 1px solid #ccc;
  margin: 20px 0;
}

/* End Hero Section */

/* About Section */
#about .about {
  flex-direction: column-reverse;
  text-align: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 110px 20px 80px;
}

#about .col-left {
  width: 250px;
  height: 360px;
}

#about .col-right {
  width: 100%;
}

#about .col-right h2:not(.section-title) {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.2rem;
  margin-bottom: 10px;
}

#about .col-right p {
  margin-bottom: 20px;
  text-align: justify;
}

#about .col-right .cta {
  color: black;
  margin-bottom: 50px;
  padding: 10px 20px;
  font-size: 2rem;
  animation: pulse-glow-blue 2.5s infinite;
}

#about .col-right .cta:hover {
  color: white;
  animation-play-state: paused;
  box-shadow: none;
}

#about .col-left .about-img {
  height: auto;
  max-width: 100%;
  position: relative;
  border: 10px solid white;
  object-fit: contain;
  top: 50px;
}

#about .col-left .about-img::after {
  content: "";
  position: absolute;
  left: -33px;
  top: 19px;
  height: 98%;
  width: 98%;
  border: 7px solid rgb(0, 74, 134);
  z-index: -1;
}
/* End About Section */

/* profile Section */

#profile .container {
  align-items: flex-start;
  padding-top: 110px;
}

#profile .profile-top {
  max-width: 500px;
  margin: 0 auto;
  width: 95%;
}

#profile .profile-top p {
  margin-top: 20px;
  color: black;
  text-align: justify;
}
/* End profile Section */

/* objectives Section */

#objectives .container {
  align-items: flex-start;
  padding-top: 110px;
}

#objectives .objectives-top {
  max-width: 500px;
  margin: 0 auto;
  width: 95%;
}

#objectives .objectives-top p {
  margin-top: 20px;
  color: black;
  text-align: justify;
}
/* End objectives Section */

/* education Section */

#education .container {
  align-items: flex-start;
  padding-top: 110px;
}

#education .education-top {
  max-width: 500px;
  margin: 0 auto;
  width: 95%;
  margin-top: 10px;
}

#education .education-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

#education .education-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 30px;
  margin: 10px 5%;
  position: relative;
}

#education .education-item .icon {
  width: 100%;
  max-width: 160px;
}

#education .education-item .icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

#education .education-item .icon:last-child {
  max-width: 280px;
  margin-top: 10px;
  border: 6px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* End education Section */

/* certificates Section */

#certificates .certificates {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 110px 0 80px;
}

#certificates .certificates-top {
  max-width: 500px;
  margin: 0 auto;
  width: 95%;
}

#certificates .certificates-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

#certificates .certificates-item {
  text-align: center;
  flex-basis: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  border-radius: 10px;
  background-size: cover;
  margin: 10px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#certificates .certificates-item .cert-date {
  margin-top: 10px;
  font-size: 0.85rem;
  opacity: 0.75;
  letter-spacing: 0.3px;
}

#currently-learning {
  padding: 30px 0 50px;
  text-align: center;
}

section[id] {
  scroll-margin-top: 50px;
}

#currently-learning .container {
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 110px;
}

#currently-learning .learning-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: #f9f9f9;
  padding: 16px 28px;
  border-radius: 50px;
  border: 2px solid rgb(0, 74, 134);
  max-width: 600px;
  margin: 20px auto 0;
}

#currently-learning .learning-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background-color: #28a745;
  animation: learning-pulse 2s infinite;
}

#currently-learning .learning-item p {
  margin: 0;
  text-align: left;
  font-size: 1rem;
  color: #333;
}

@keyframes learning-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

#certificates .certificates-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  opacity: 0.8;
  z-index: -1;
}

#certificates .certificates-item .icon {
  position: relative;
}

#certificates .certificates-item img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

#certificates .certificates-item .popup-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  text-align: center;
  z-index: 10;
  width: 250px;
  max-width: 80%;
}

#certificates .certificates-item:hover img {
  transform: scale(1.05);
}

#certificates .certificates-item:hover .popup-window {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Ajustes responsivos */
@media (max-width: 1200px) {
  #certificates .certificates-item {
    flex-basis: 30%;
  }
}

@media (max-width: 768px) {
  #certificates .certificates-item {
    flex-basis: 45%;
    margin: 10px 5%;
  }

  #certificates .certificates-item .popup-window {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  #certificates .certificates-item {
    flex-basis: 100%;
    margin: 10px 0;
    padding: 15px;
  }

  #certificates .certificates-item .popup-window {
    font-size: 1.5rem;
  }
}

.popup-window a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  pointer-events: auto;
  cursor: pointer;
}

.popup-window a:hover {
  text-decoration: underline;
}

.popup-window {
  pointer-events: auto;
}

/* End certificates Section */

/* Projects section */
#projects .projects {
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 0 80px;
}

#projects .projects-header h2 {
  margin-bottom: 50px;
}

#projects .all-projects {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#projects .project-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 80%;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
}

#projects .project-info {
  padding: 30px;
  flex-basis: 50%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
  color: white;
  text-align: justify;
}

#projects .project-info h3 {
  font-size: 4rem;
  font-weight: 500;
}

#projects .project-info h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: auto 0;
}

#projects .project-info p {
  color: white;
}

#projects .project-img {
  flex-basis: 50%;
  height: 300px;
  overflow: hidden;
  position: relative;
  color: white;
}

#projects .project-img:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
  opacity: 0.7;
}

#projects .project-img:hover {
  color: white;
}

#projects .project-img img {
  transition: 0.3s ease transform;
}

#projects .project-item:hover .project-img img {
  transform: scale(1.1);
  color: white;
}

.tech-review h2 {
  font-size: 4rem;
  font-weight: 500;
  margin-top: 10px;
}

.tech-review ul {
  list-style-type: none;
  margin: 20px 10px;
  font-size: 1.4rem;
  font-weight: 400;
}

.tech-review {
  letter-spacing: 0.07rem;
  line-height: 2.3rem;
  position: absolute;
  width: 100%;
  z-index: 1;
  padding: 30px;
  flex-basis: 50%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  transition-property: color;
  transition-duration: 1s;
  color: transparent;
  text-align: left;
}

.tech-review:hover {
  transition-property: color;
  transition-duration: 1s;
  color: white;
}

.py {
  display: inline-block;
  padding: 10px 30px;
  color: white;
  background-color: transparent;
  border: 3px solid rgb(0, 74, 134);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-right: 20px;
  margin-top: 10px;
  transition: 0.3s ease;
  transition-property: background-color, color;
}

.py:hover {
  color: white;
  background-color: rgb(0, 74, 134);
}

/* End Projects section */

/* skills Section */
#skills .skills {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 110px 0 80px;
}

#skills .skills-top {
  max-width: 500px;
  margin: 0 auto;
  width: 95%;
}

#skills .skills-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.skills-category h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(0, 74, 134);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e5e8ec;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f5f7fa;
  border: 1.5px solid #e0e0e0;
  color: #333;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.skill-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: rgb(0, 74, 134);
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #b0b6bd;
}

.skill-chip.level-intermediate .skill-dot {
  background: #2e9e5b;
}

.skill-chip.level-basic .skill-dot {
  background: #e0a726;
}

.skills-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #666;
}

.skills-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.skills-legend .skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.skills-legend .level-intermediate-dot {
  background: #2e9e5b;
}

.skills-legend .level-basic-dot {
  background: #e0a726;
}

@media (max-width: 600px) {
  #skills .skills-bottom {
    padding: 0 15px;
  }
}

#skills .skills-item {
  text-align: left;
  flex-basis: 20%; /* Ajustado para pantalla más grande */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  padding: 20px; /* Incrementado para mejor tacto en dispositivos táctiles */
  border-radius: 10px;
  background-size: cover;
  margin: 10px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#skills .skills-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(60deg, #090a0a 0%, #0653a5 100%);
  background-color: rgba(31, 30, 30, 0.24);
  opacity: 0.8; /* Ajustado para mejor legibilidad */
  z-index: -1;
}

#skills .skills-item h2 {
  font-size: 1rem;
  color: white;
  margin: 10px;
  text-transform: uppercase;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  #skills .skills-item {
    flex-basis: 30%; /* Ajuste para pantallas medianas */
  }
}

@media (max-width: 768px) {
  #skills .skills-item {
    flex-basis: 45%; /* Mejor ajuste para pantallas más pequeñas */
    margin: 10px 5%;
  }

  #skills .skills-item h2 {
    font-size: 1.2rem; /* Font size slightly larger for better readability */
  }
}

@media (max-width: 480px) {
  #skills .skills-item {
    flex-basis: 100%; /* Full width for mobile devices */
    margin: 10px 0;
    padding: 15px; /* Adequate padding for touch devices */
  }

  #skills .skills-item h2 {
    font-size: 1.5rem; /* Larger font size for better readability on small screens */
  }
}

/* End skills Section */

/* Experience Section */

#experience .container {
  align-items: flex-start;
  padding-top: 110px;
  padding-bottom: 80px;
}

#experience .experience-top {
  max-width: 800px;
  margin: 0 auto;
  width: 95%;
}

#experience .experience-top p {
  margin-top: 10px;
  color: black;
  text-align: justify;
}

.accordion {
  width: 100%; /* Asegura que el acordeón ocupe el ancho disponible */
  border: 1px solid #ccc;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-title-heading {
  margin: 0;
}

.accordion-title {
  cursor: pointer;
  padding: 12px 14px;
  background-image: linear-gradient(
    180deg,
    rgba(72, 85, 99, 1) 0%,
    rgba(41, 50, 60, 1) 100%
  );
  margin: 0;
  color: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-image 0.25s ease;
  /* Reset de estilos por defecto del <button> */
  border: none;
  width: 100%;
  font: inherit;
  text-align: left;
  border-radius: 0;
}

.accordion-title:focus-visible {
  outline: 3px solid rgb(120, 190, 255);
  outline-offset: -3px;
}

.accordion-title-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.accordion-title .role {
  font-weight: 600;
  font-size: 1.1rem;
}

.accordion-title .accordion-meta {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.8;
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content .accordion-inner {
  overflow: hidden;
  min-height: 0;
}

.accordion-content ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.accordion-content ul li {
  margin-bottom: 8px;
  text-align: left;
}

.accordion.active .accordion-content {
  grid-template-rows: 1fr;
}

.accordion.active .accordion-content .accordion-inner {
  padding: 15px;
  border-top: 1px solid #ccc;
}

.accordion-arrow {
  margin-left: auto;
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.accordion.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion.active .accordion-title {
  background-image: linear-gradient(180deg, rgb(0, 94, 168), rgb(0, 58, 107));
}

/* End experience Section */

/* Contact Section */
#contact .contact {
  flex-direction: column;
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 110px;
}

#contact .contact-title {
  margin-bottom: 20px;
}

#contact .contact-items {
  width: 100%;
}

#contact .contact-item {
  width: 80%;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  padding: 30px;
  margin: 30px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0px 0px 18px 0 #0000002c;
  transition: 0.3s ease box-shadow;
}

#contact .contact-item:hover {
  box-shadow: 0px 0px 5px 0 #0000002c;
}

/* Formulario de contacto — estilos base, aplican a todos los tamaños de pantalla */
#contact .contact-form {
  width: 100%;
  margin-top: 30px;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

#contact .contact-form form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background-color: #fff;
  padding: 35px 30px;
  border-radius: 16px;
  border-top: 4px solid rgb(0, 74, 134);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#contact .contact-form .form-group {
  width: 100%;
  margin-bottom: 18px;
  position: relative;
  text-align: left;
}

#contact .contact-form .form-group i {
  position: absolute;
  left: 16px;
  top: 16px;
  color: rgb(0, 74, 134);
  opacity: 0.6;
  font-size: 0.95rem;
  pointer-events: none;
  transition:
    opacity 0.3s,
    color 0.3s;
}

#contact .contact-form .form-group textarea ~ i {
  top: 16px;
}

#contact .contact-form .form-group input,
#contact .contact-form .form-group textarea {
  width: 100%;
  padding: 13px 16px 13px 42px;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  color: #333;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

#contact .contact-form .form-group input::placeholder,
#contact .contact-form .form-group textarea::placeholder {
  color: #999;
}

#contact .contact-form .form-group input:focus,
#contact .contact-form .form-group textarea:focus {
  border-color: rgb(0, 74, 134);
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 74, 134, 0.12);
}

#contact .contact-form .form-group input:focus ~ i,
#contact .contact-form .form-group textarea:focus ~ i {
  color: rgb(0, 74, 134);
  opacity: 1;
}

#contact .contact-form .form-group textarea {
  resize: vertical;
  min-height: 110px;
  padding-top: 13px;
}

#contact .contact-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: rgb(0, 74, 134);
  color: #fff;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 6px;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

#contact .contact-form .btn:hover {
  background-color: rgb(0, 58, 107);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 74, 134, 0.3);
}

#contact .contact-form .btn:active {
  transform: translateY(0);
}

#contact .contact-form h2.status-message {
  margin-bottom: 22px;
  font-size: 1.6rem;
  color: #333;
  font-weight: 600;
}

.status-message {
  font-size: 16px;
  margin-bottom: 15px;
  text-align: center;
  transition:
    color 0.3s,
    background-color 0.3s;
}

.status-message.success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 8px;
}

.status-message.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 8px;
}

@media (max-width: 480px) {
  #contact .contact-form form {
    padding: 26px 18px;
  }
}
/* End contact form */

#contact .icon {
  width: 70px;
  margin: 0 auto;
  margin-bottom: 10px;
}

#contact .contact-info h3 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 5px;
}

#contact .contact-info h2 {
  font-size: 1.3rem;
  line-height: 2rem;
  font-weight: 500;
}
/* End contact Section */

/* Footer */
#footer {
  background-image: linear-gradient(
    180deg,
    rgba(72, 85, 99, 1) 0%,
    rgba(41, 50, 60, 1) 100%
  );
}

#footer .footer {
  min-height: 200px;
  flex-direction: column;
  padding-top: 50px;
  padding-bottom: 10px;
}

#footer h2 {
  color: white;
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

#footer .social-icon {
  display: flex;
  margin-bottom: 30px;
}

#footer .social-item {
  height: 40px;
  width: 40px;
  margin: 0 5px;
}

#footer .social-item img {
  transition: 0.3s ease filter;
}

#footer .social-item:hover img {
  filter: grayscale(1);
}

#footer p {
  color: white;
  font-size: 1.3rem;
}
/* End Footer */

/* Keyframes */
@keyframes hamburger_puls {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes text_reveal_box {
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

@keyframes text_reveal_box_inverted {
  50% {
    width: 0;
    left: 100%;
  }
  100% {
    width: 100%;
    left: 0;
  }
}

@keyframes text_reveal {
  100% {
    color: white;
  }
}

@keyframes text_reveal_name {
  100% {
    color: rgb(0, 74, 134);
    font-weight: 500;
  }
}
/* End Keyframes */

/* Media Query For Tablet */
@media only screen and (min-width: 768px) {
  .cta {
    font-size: 2rem;
    padding: 15px;
    margin: auto;
  }

  h2.section-title {
    font-size: 6rem;
  }

  /* awards Section */
  #awards .awards-bottom .awards-item {
    flex-basis: 45%;
    margin: 2.5%;
  }
  /* End awards Section */

  /* Project */
  #projects .project-item {
    flex-direction: row;
  }

  #projects .project-item:nth-child(even) {
    flex-direction: row-reverse;
  }

  #projects .project-item {
    height: 400px;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }

  #projects .all-projects .project-info {
    height: 100%;
  }

  #projects .all-projects .project-img {
    height: 100%;
  }
  /* End Project */

  /* About */
  #about .about {
    flex-direction: row;
  }

  #about .col-left {
    width: 600px;
    height: 400px;
    padding-left: 60px;
  }

  #about .about .col-left .about-img::after {
    left: -45px;
    top: 34px;
    height: 98%;
    width: 98%;
    border: 10px solid rgb(0, 74, 134);
  }

  #about .col-right {
    text-align: left;
    padding: 30px;
  }

  #about .col-right h2 {
    text-align: left;
  }
  /* End About */

  /* contact  */
  #contact .contact {
    flex-direction: column;
    padding-top: 110px;
    align-items: center;
    justify-content: flex-start;
    min-width: 20vh;
  }

  #contact .contact-items {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 0;
  }

  #contact .contact-item {
    width: 30%;
    margin: 0;
    flex-direction: row;
  }

  #contact .contact-item .icon {
    height: 100px;
    width: 100px;
  }

  #contact .contact-item .icon img {
    object-fit: none;
  }

  #contact .contact-item .contact-info {
    width: 100%;
    text-align: left;
    padding-left: 20px;
  }

  /* Formulario de contacto: ver estilos base más abajo, fuera del media query */

  /* End contact  */

  /* End Media Query For Tablet */

  /* Media Query For Desktop */
  @media only screen and (min-width: 1200px) {
    /* header */
    #header .hamburger {
      display: none;
    }

    #header .nav-list ul {
      position: initial;
      display: block;
      height: auto;
      width: fit-content;
      background-color: transparent;
    }

    #header .nav-list ul li {
      display: inline-block;
    }

    #header .nav-list ul li a {
      font-size: 1.8rem;
      position: relative;
    }

    #header .nav-list ul li a.active-link::before {
      content: "";
      position: absolute;
      bottom: 2px;
      left: 10px;
      right: 10px;
      height: 2px;
      background: rgb(120, 190, 255);
    }

    #header .nav-list ul a:after {
      display: none;
    }
    /* End header */

    #awards .awards-bottom .awards-item {
      flex-basis: 22%;
      margin: 1.5%;
    }
  }
  /* End  Media Query For Desktop */
}

/* Chatbot */
/* Contenedor general */
#chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  font-family: Arial, sans-serif;
  z-index: 9999;
}

/* Icono flotante */
#chatbot-icon {
  background: linear-gradient(145deg, rgb(0, 94, 168), rgb(0, 74, 134));
  color: white;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 74, 134, 0.4);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  animation: chatbot-icon-pulse 2.8s infinite;
}

#chatbot-icon:hover {
  transform: scale(1.08);
  animation-play-state: paused;
  box-shadow: 0 8px 20px rgba(0, 74, 134, 0.5);
}

#chatbot-icon.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

@keyframes chatbot-icon-pulse {
  0% {
    box-shadow:
      0 6px 16px rgba(0, 74, 134, 0.4),
      0 0 0 0 rgba(0, 74, 134, 0.45);
  }
  70% {
    box-shadow:
      0 6px 16px rgba(0, 74, 134, 0.4),
      0 0 0 14px rgba(0, 74, 134, 0);
  }
  100% {
    box-shadow:
      0 6px 16px rgba(0, 74, 134, 0.4),
      0 0 0 0 rgba(0, 74, 134, 0);
  }
}

/* Ventana del chat */
#chatbot-box {
  display: none;
  flex-direction: column;
  width: 320px;
  height: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform-origin: bottom right;
}

#chatbot-box.open {
  display: flex;
  animation: chatbot-open 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#chatbot-box.closing {
  display: flex;
  animation: chatbot-close 0.22s ease forwards;
}

@keyframes chatbot-open {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes chatbot-close {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
}

/* Encabezado */
#chatbot-header {
  background: linear-gradient(120deg, rgb(0, 94, 168), rgb(0, 58, 107));
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.chatbot-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  opacity: 0.85;
}

.chatbot-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc7e;
  display: inline-block;
  box-shadow: 0 0 0 rgba(61, 220, 126, 0.5);
  animation: chatbot-status-pulse 2s infinite;
}

@keyframes chatbot-status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 220, 126, 0.6);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(61, 220, 126, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 126, 0);
  }
}

#close-chat {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#close-chat:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Área de mensajes */
#chatbot-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
}

#chatbot-messages::-webkit-scrollbar {
  width: 5px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
  background: #c7cdd6;
  border-radius: 10px;
}

/* Mensajes */
.message {
  margin-bottom: 10px;
  padding: 9px 13px;
  border-radius: 14px;
  max-width: 82%;
  white-space: pre-line;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: chatbot-message-in 0.28s ease forwards;
  opacity: 0;
}

@keyframes chatbot-message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-message {
  background: linear-gradient(135deg, rgb(0, 94, 168), rgb(0, 74, 134));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.bot-message {
  background: #fff;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Indicador de "escribiendo..." */
.typing-indicator {
  align-self: flex-start;
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(0, 74, 134);
  opacity: 0.5;
  animation: chatbot-typing 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatbot-typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Chips de sugerencias rápidas */
.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.chatbot-chip {
  background: #fff;
  border: 1.5px solid rgb(0, 74, 134);
  color: rgb(0, 74, 134);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.chatbot-chip:hover {
  background: rgb(0, 74, 134);
  color: #fff;
  transform: translateY(-1px);
}

/* Entrada */
#chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e5e8ec;
  padding: 10px 12px;
  background: #fff;
}

#chatbot-input {
  flex: 1;
  border: 1.5px solid #e0e0e0;
  background: #f5f7fa;
  border-radius: 20px;
  padding: 9px 15px;
  outline: none;
  font-size: 0.88rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

#chatbot-input:focus {
  border-color: rgb(0, 74, 134);
  background: #fff;
}

#chatbot-send {
  background: rgb(0, 74, 134);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

#chatbot-send:hover {
  background: rgb(0, 58, 107);
  transform: scale(1.06);
}

@media (max-width: 480px) {
  #chatbot-box {
    width: 92vw;
    height: 70vh;
    right: -4px;
  }

  #chatbot-container {
    right: 14px;
    bottom: 14px;
  }
}

/* ============================= */
/* Modo oscuro                   */
/* ============================= */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background-color: #14181d;
  color: #e6e9ec;
}

html[data-theme="dark"] section:not(#cover):not(#header) {
  background-color: #14181d;
}

/* Textos generales que estaban en negro/gris oscuro (excluye el Home, que tiene su propio diseño con imagen de fondo) */
html[data-theme="dark"] .section-title,
html[data-theme="dark"] h1:not(#cover *),
html[data-theme="dark"] h2:not(#cover *),
html[data-theme="dark"] h3:not(#cover *),
html[data-theme="dark"] p:not(#cover *),
html[data-theme="dark"] .education-item h2,
html[data-theme="dark"] .accordion-content p,
html[data-theme="dark"] .accordion-content li {
  color: #e6e9ec;
}

html[data-theme="dark"] .accordion {
  border-color: #333c46;
}

html[data-theme="dark"] .accordion-content .accordion-inner {
  background-color: #1a1f25;
  border-top-color: #333c46;
}

html[data-theme="dark"] .accordion-content .accordion-inner,
html[data-theme="dark"] .accordion-content .accordion-inner * {
  color: #e6e9ec;
}

/* Tarjetas / fondos claros -> superficie oscura */
html[data-theme="dark"] .skill-chip,
html[data-theme="dark"] #contact .contact-form form,
html[data-theme="dark"] #contact .contact-form .form-group input,
html[data-theme="dark"] #contact .contact-form .form-group textarea,
html[data-theme="dark"] .chatbot-suggestions,
html[data-theme="dark"] #chatbot-messages,
html[data-theme="dark"] .bot-message {
  background-color: #1f252c;
  border-color: #333c46;
  color: #e6e9ec;
}

html[data-theme="dark"] #chatbot-box {
  background-color: #1a1f25;
}

html[data-theme="dark"] .skill-chip {
  color: #d8dde2;
}

html[data-theme="dark"] .certificates-item,
html[data-theme="dark"] .project-item,
html[data-theme="dark"] .contact-item,
html[data-theme="dark"] .education-item {
  background-color: #1f252c;
}

html[data-theme="dark"] #currently-learning .learning-item {
  background-color: #1f252c;
  border-color: #333c46;
}

html[data-theme="dark"] #currently-learning .learning-item p {
  color: #e6e9ec;
}

html[data-theme="dark"] #skills .skill-chip:hover {
  border-color: rgb(120, 190, 255);
}

html[data-theme="dark"] .cert-date {
  color: #b7bec5;
}

html[data-theme="dark"] .accordion-meta {
  color: #cdd3d9;
}

html[data-theme="dark"] a:not(#cover *):not(#header *) {
  color: #7ec2ff;
}

html[data-theme="dark"] .cta:not(#cover *) {
  color: #7ec2ff;
  border-color: #7ec2ff;
}

/* Botón "Open Resume" en About me: necesita más especificidad para ganarle
   a la regla original #about .col-right .cta { color: black; } */
html[data-theme="dark"] #about .col-right .cta {
  color: #7ec2ff;
}

/* Mantener oculto hasta hover el listado de herramientas de cada proyecto, igual que en modo claro */
html[data-theme="dark"] .tech-review,
html[data-theme="dark"] .tech-review h2,
html[data-theme="dark"] .tech-review ul,
html[data-theme="dark"] .tech-review ul li {
  color: transparent !important;
}

html[data-theme="dark"] .tech-review:hover,
html[data-theme="dark"] .tech-review:hover h2,
html[data-theme="dark"] .tech-review:hover ul,
html[data-theme="dark"] .tech-review:hover ul li {
  color: white !important;
}

.language-link {
  display: inline-flex;
  align-items: center;
}

.flag-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

@media only screen and (min-width: 1200px) {
  .flag-icon {
    width: 1.8rem;
    height: 1.8rem;
  }
}

#theme-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 1.4em;
  height: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform 0.3s ease;
}

#theme-toggle i {
  width: 1em;
  text-align: center;
}

#theme-toggle:hover {
  transform: rotate(20deg);
}

@media only screen and (max-width: 1199px) {
  #theme-toggle {
    color: #fff;
    font-size: 2.8rem;
    width: 1.4em;
    height: 1.4em;
  }
}
