/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 224;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --smaller-font-size: 0.75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}
@media screen and (min-width: 1000px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: 0.875rem;
  }
}

/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}

.html {
  scroll-behavior: smooth;
}

.body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: white !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}
.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

/* Default: solid navbar */
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #49326B; /* Solid color at top */
  transition: background-color 0.3s ease;
}

/* On scroll: make navbar transparent */
.scroll-header {
  background-color: #453568aa;
  box-shadow: none;
}


/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: 0.5s;
  }
}

.nav__item {
  margin-bottom: 0;
  border-bottom: none;
  font: color white;
}


.nav__link {
  text-decoration: none;
  position: relative;
    color: white; 

}

.nav__link:hover {
  position: relative;
  color: #FFFFFF; 
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: #FDB11D;
}

.nav__logo {
  color: #fff; 
}

.nav__toggle {
  color: #fff; 
  font-size: 1.5rem;
  cursor: pointer;
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: #FDB11D;
}


/*=== Show menu ===*/
.show {
  right: 0;
}
.disclaimer {
  background-color: rgba(0, 0, 0, 0.157); 
  color: #ffffff;
  text-align: center;
  padding: 8px 16px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.home {
  background-image: url(/images/carouselphotos/10.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 4rem 1rem;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
}

.home__data {
  flex: 1 1 500px;
  text-align: center; /* Center the title horizontally */
}

.home__title {
  font-size: 3.1rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 0.5rem; /* Reduced space between title and subtitle */
}

.home__title-color {
  color: #FDB11D;
}

.home__subtitle {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  color: #fff;
}

.get-started-button {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.button {
  background-color: #FDB11D;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.button:hover {
  background-color: #3b265b;
}

.home__img {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 4s ease-in-out infinite;
}

.home__hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Responsive Layout for smaller screens and portrait orientation */
@media (max-width: 768px) {
  .home__container {
    flex-direction: column;
    text-align: center;
    justify-content: center; /* Center content vertically */
  }

  .home__data,
  .home__img {
    flex: 1 1 100%;
  }

  .home__title {
    font-size: 2rem;
  }

  .home__subtitle {
    font-size: 1.2rem;
    margin-top: 1rem; /* Adjusted spacing between title and subtitle */
  }

  /* Ensure the button stays centered */
  .get-started-button {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .home__hero-img {
    width: 70%;
    margin-top: 2rem;
  }
}



/*BUTTONS*/
.button {
  display: inline-block;
  background-color: #49326B; 
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
}

.button:hover {
  background-color: #3b265b; /* Slightly darker shade */
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
}


/*BUTTONS*/
.button {
    background-color: #FDB11D;
    color: #fff;
    padding: 0.75rem 2.5rem;
    font-weight: var(--font-semi);
    border-radius: 0.5rem;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
    margin: 1rem auto 0 auto;  /* ✅ Center the button only */
    display: inline-block;
  }
  
  

.button:hover {
  background-color: #3b265b; /* Slightly darker shade */
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
}



/* ===== FOOTER ===== */
.footer {
  background-color: var(--second-color);
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__logo {
  margin-bottom: var(--mb-4);
}

.footer__logo img {
  height: 40px;  
  width: auto;   
}

.footer__social {
  margin-bottom: var(--mb-4);
  display: flex;
  justify-content: center; 
}

.footer__icon {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-2);
}

.footer__copy {
  font-size: var(--smaller-font-size);
}



/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }
  .home__img {
    width: 200px;
  }
}
@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  .home__img {
    width: 300px;
    bottom: 25%;
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }
  .contact__container {
    justify-items: center;
  }
}
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    color: white;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 60px;
    border-bottom: 2px solid white;
    margin-top: 0.5rem;
  }
  
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }

  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
  }
  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 300px;
  }
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}
@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
}

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }






    /* ✅ Main wrapper to contain the carousels */
    .page-wrapper {
      font-family: 'Poppins', sans-serif;
      background: #111;
      overflow-x: hidden;
    }

    /* ✅ Shared overlay text style */
    .overlay-text {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      display: flex;
      justify-content: center;
      align-items: center;
      pointer-events: none;
    }

    .overlay-text h2 {
      color: white;
      font-size: 2rem;
      font-weight: 700;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: 1px;
      padding: 0 1rem;
    }

    /* ✅ Top Carousel */
    .carousel-container {
      position: relative;
      width: 100vw;
      overflow: hidden;
      height: 200px;
    }

    .carousel-track {
      display: flex;
      animation: scroll 40s linear infinite;
      width: max-content;
    }

    .carousel-item {
      min-width: 300px;
      height: 200px;
      flex-shrink: 0;
    }

    .carousel-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* ✅ Bottom image strip */
    .image-strip-container {
      position: relative;
      width: 100vw;
      overflow: hidden;
      
    }

    .image-strip-track {
      display: flex;
      animation: scroll 50s linear infinite;
      width: max-content;
    }

    .image-strip-item {
      flex: 0 0 auto;
      width: calc(100vw / 3);
      height: 100%;
    }

    .image-strip-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* ✅ Keyframes */
    @keyframes scroll {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-50%);
      }
    }

    /* ✅ Responsive styles */
    @media (max-width: 768px) {
      .carousel-item {
        min-width: 250px;
        height: 160px;
      }

      .image-strip-item {
        width: calc(100vw / 2);
      }

      .overlay-text h2 {
        font-size: 1.2rem;
      }
    }
