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

body {
    background-color: #e3e3e3;
    font-family: 'Barlow', sans-serif;
    font-weight: 300 !important;
    line-height: 1.6;
}

h1, h2 {
    font-family: 'Permanent Marker', cursive;
    font-size: 700;
}


/*--------------------------------------------------------*/

/*NAVBAR */

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #e3e3e3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 2rem;
    box-shadow: 0px 0.12px 5px #3a3a3a;
    z-index: 8;
}


#menu-toggle {
  display: none;
}

.nav-logo {
    margin-top: .5rem;
}

/* Hamburger icon */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.nav-list {
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
  position: relative;
  color: #3a3a3a;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.current {
    font-weight: 500;
}

/* Animated underline effect */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #3a3a3a;
  transition: width 0.4s ease;
}

/* Hover effect */
.nav-links a:hover::after {
  width: 100%;
}

/* Active link */
.nav-links a.active::after {
  width: 100%;
}


@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    gap: 0.75rem;
  }
  .nav-logo {
    margin: 0;
  }
  .nav-links {
    flex-direction: column;
  }
}


/* -----------------------------------COVER--- */
.about-me {
    margin-top: 6rem;
    width: 100%;
    color: #3a3a3a;
}

.intro {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.intro h1, h2, h3 {
    text-align: center;
}

.intro h1 {
    color: #364967;
}

.background {
    display: flex;
    justify-content: center;
    height: 30rem;
    background-color: #e3e3e3;
    border-radius: 20px;
    padding: 1rem;
    margin: 1rem;
}

.background-text {
    padding: 2rem;
    max-width: 36rem;
}

.about-img {
    height: 100%;
    border-radius: 15px;
    box-shadow: 1px 0.12px 5px #3a3a3a;
}

/* ------------------CAREER---- */

.career {
    margin-top: 2rem;
    width: 100%;
    background-image: url("../images/bosque-eve.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: middle;
    border-top: solid #11223c 2px;
    border-bottom: solid #11223c 2px;
    color: #e3e3e3;
}

.career-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 50rem;
    padding: 2rem;
}

.career-container h2 {
    color: #e3e3e3;
}

.career-timeline {
    list-style: none;
    position: relative;
    margin: 0;
    padding: 0;
}

.career-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: #364967;
}

.career-timeline li {
    position: relative;
    margin: 20px 0;
    padding-left: 50px;
}

.career-timeline li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #b17f4c;
    border: 2px solid #364967;
    box-shadow: 0 0 0 2px #11223c;
}


/*----------------------------HOBBIES-------*/
.hobbies {
    margin: 2rem 0 4rem 0;
}

.hobbies h2 {
    color: #11223c;
    margin-bottom: 1rem;
}

.hobbies-container {
    margin-left: auto;
    margin-right: auto;
    width: 40rem;
    border-radius: 15px;
}

.hobby {
    background-color: rgba(87, 118, 169, 0.2);
    padding: .5rem 2rem 1rem 2rem;
    height: 5rem;
    align-items: center;
}

.hobby h3 {
    margin-right: 1rem;
    width: 16rem;
    text-align: center;
}

.hobby p {
    width: 32rem;
}

.hobby a {
    color: #364967;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.swiper {
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.swiper-slide.hobby {
    height: 9rem;
    display: flex;
}

.swiper-slide.hobby.swiper-slide-active {
    border-radius: 15px;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: #364967;
}

.swiper-button-next::after, .swiper-button-prev::after {
    color: #364967;
    font-size: 20px;
}



/*----------------------------FOOTER-------*/

footer {
    margin: 1rem 0 0 0;
    color: #3a3a3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #3a3a3a;
    color: #e3e3e3;
}

footer h4 {
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.icon {
    filter: invert(94%) sepia(45%) saturate(3735%) hue-rotate(183deg) brightness(125%) contrast(78%);
}

.icon:hover {
    filter: invert(82%) sepia(6%) saturate(667%) hue-rotate(347deg) brightness(83%) contrast(87%);
}

/*-----------------------------------Responsive menu*/
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #333;
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    display: none;
  }

  /* Show menu when checked */
  #menu-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }
}