:root {
  /* Main Colors */
  --color-primary: #38bdf8;
  --color-secondary: #7dd3fc;
  --color-tertiary: #0ea5e9;

  /* Darker Variants */
  --color-primary-darker: #0ea5e9;
  --color-secondary-darker: #38bdf8;
  --color-tertiary-darker: #0284c7;

  /* Transparent Colors */
  --color-primary-opacity: #38bdf833;
  --color-secondary-opacity: #7dd3fc33;
  --color-tertiary-opacity: #0ea5e933;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    #38bdf8,
    #7dd3fc
  );

  --gradient-secondary: linear-gradient(
    135deg,
    #0ea5e9,
    #38bdf8
  );

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-light: #f8fafc;
  --color-gray: #94a3b8;
  --color-dark: #0f172a;
  --color-black: #020617;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html{
  font-size: 62.5%;
  box-sizing: border-box;
}

body{
  font-family: 'poppins', sans-serif;
  font-weight: 300;
  color: #444;
  line-height: 1.9;
  background-color: #f3f3f3;
}


/* GENERAL ELEMENTS*/
.section{
  padding: 15rem 3rem;
  border-top: 1px solid #ddd ;
  transition: transform 1s, opacity 1s ;
}

.section__title {
  max-width: 80rem;
  margin: 0 auto 8rem auto;
  justify-items: center;
}

.section__description{
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
  

}

.section__header{
  font-size: 4rem;
  line-height: 1.3;
  font-weight: 500;
}

.btn{
  display: inline-block;
  background-color: var(--color-primary);
  font-size: 1.6rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  padding: 1.25rem 4.5rem;
  border-radius: 10rem;
  cursor: pointer;
  transition: all 0.3s;
}


.btn{
  display: inline-block;
  background-color: var(--color-primary);

}

/*Header*/
.header{
  padding: 0 3rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header__title{
  flex: 1;
  max-width: 115rem;
  display: grid;
  grid-template-columns: 3fr 2fr;
  row-gap:  3rem;
  align-content: center;
  justify-content: center;

  align-items: start;
  justify-items: start;
}

h1{
  font-size: 5.5rem;
  line-height: 1.35;
}

h4{
  font-size: 2.4rem;
  font-weight: 500;
}

.header__img{
  width: 100%;
  grid-column: 2 / 3;
  grid-row: 1/ span 4;
  transform: translateY(-6rem);
  border-radius: 2rem;
}

.highlight{
  position: relative;
}
.highlight::after{
  display: block;
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  opacity: 0.7;
  transform: scale(1.07, 1.05) skewX(-15deg);
  background-image: var(--gradient-primary);
}


/* NAVIGATION */

.nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 9rem;
  width: 100%;
  padding:  0 6rem;
  z-index: 100;
}

/* nav and stickly class at the same time */
.nav.sticky{
  position: fixed;
  background-color: rgba(255, 255, 255, 0.95);

}

.nav__logo{
  height: 10.5rem;
  transition: all 0.3s;
}

.nav__links{
  display: flex;
  align-items: center;
  list-style: none;
}
.nav__item{
  margin-left: 4rem;
}

.nav__link:link,
.nav__link:visited{
  font-size: 1.7rem;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
  display: block;
  transition: all 0.3s;
}

.nav__link--btn:link,
.nav__link--btn:visited{
  padding: 0.8rem 2.5rem;
  border-radius: 3rem;
  background-color: var(--color-primary);
  color: #222;
}

.nav__link--btn:hover,
.nav__link--btn:active{
  border-radius: 3rem;
  background-color: var(--color-primary-darker);
  color: #333
}

.nav__toggle {
  display: none;
}

/*FEATURES*/
.features{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 0 12rem;
}

.features__img{
  width: 100%;
  border-radius: 2rem;

}
.features__feature{
  align-self: center;
  justify-self: center;
  width: 70%;
  font-size: 1.5rem;
}

.features__header{
  font-size: 2rem;
  margin-bottom: 1rem;
  justify-self: end;
}

/* OPERATIONS*/
.operations{
  max-width: 100rem;
  margin: 12rem auto 0 auto;
  background-color: #fff;
}

.operations__tab-container{
  display: flex;
  justify-content: center;
}

.operations__tab{
  margin-right: 2.5rem;
  transform: translateY(-50%);
}

.operations__tab span{
  margin-right: 1rem;
  font-weight: 600;
  display: inline-block;
}

.operations__tab--1{
  background-color: var(--color-secondary);
}

.operations__tab--1:hover{
  background-color: var(--color-secondary-darker);
}

.operations__tab--3{
  background-color: var(--color-tertiary);
  margin: 0;
}

.operations__tab--3:hover{
  background-color: var(--color-tertiary-darker);
}

.operations__tab--active{
  transform: translateY(-66%);
}
.operations__content{
  display: none;

  /* JUST PRESENTATIONAL*/
  font-size: 1.7rem;
  padding: 2.5rem  7rem 6.5rem 7rem;
}

.operations__content--active{
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3rem;
  row-gap: 0.5rem;
}

.operations__header {
  font-size: 2.25rem;
  font-weight: 500;
  align-self: center;
  justify-self: end;
}

.operations__content p {
  grid-column: 1;
}

/*SLIDER*/
.slider{
  max-width: 100rem;
  height: 50rem;
  margin: 0 auto;
  position: relative;

  /* IN THE END */
  overflow: hidden;
}

.slide{
  position: absolute;
  top: 0;
  width: 100%;
  height: 50rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s;
}

.slide > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__btn{
  position: absolute;
  top: 50%;
  z-index: 10;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  color: #333;
  border-radius: 50%;
  height: 5.5rem;
  width: 5.5rem ;
  font-size: 3.25rem;
  cursor: pointer;
}

.slider__btn--left{
  left: 6%;
  transform: translate(-50%, -50%);
}

.slider__btn--right{
  right: 6%;
  transform: translate(-50%, -50%);
}

.section--hidden {
  opacity: 0;
  transform: translateY(8rem);
}

.dots{
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dots__dot{
  border: none;
  background-color: #b9b9b9;
  opacity: 0.7;
  height: 1rem;
  width: 1rem;
  border-radius: 50%;
  margin-right: 1.75rem;
  cursor: pointer;
  transition: all 0.5s;
}

.dots__dot:last-child{
  margin: 0;
}

.dots__dot--active{
  background-color: #fff;
  opacity: 1;
}

/* TESTIMONIALS*/
.testimonial{
  width: 65%;
  position: relative;
}
.testimonial::before{
  content: '\201C';
  position: absolute;
  top: -5.7rem;
  left: -6.8rem;
  line-height: 1;
  font-size: 20rem;
  font-family: inherit;
  color: var(--color-primary);
  z-index: -1;
}

.testimonial__header{
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.testimonial__text{
  font-size: 1.7rem;
  margin-bottom: 3.5rem;
  color: #666;
}

.testimonial__author{
  margin-left: 3rem;
  font-style: normal;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  column-gap: 2rem;
}

.testimonial__photo{
  grid-row: 1 / span 2;
  width: 6.5rem;
  border-radius: 50%;
}

.testimonial__name{
  font-size: 1.7rem;
  font-weight: 500;
  align-self: end;
  margin: 0;
}

.testimonial__location{
  font-size: 1.5rem;
}

.section__title--testimonials{
  margin-bottom: 4rem;
}

/* FOOTER */
.footer {
  padding: 10rem 3rem;
   background-image: linear-gradient(
    to top left,
    #075985,
    #0284c7
  );
}

.footer__nav {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-bottom: 5rem;
}

.footer__item {
  margin-right: 4rem;
}

.footer__link {
  font-size: 1.6rem;
  color: #eee;
  text-decoration: none;
}

.footer__logo {
  height: 5rem;
  display: block;
  margin: 0 auto;
  margin-bottom: 5rem;
}

.footer__copyright {
  font-size: 1.4rem;
  color: #aaa;
  text-align: center;
}

.footer__copyright .footer__link {
  font-size: 1.4rem;
}

@media (max-width: 1100px) {
  .header__title{
  flex: 1;
  max-width: 115rem;
  display: grid;
  grid-template-columns: 3fr 2fr;
  row-gap:  3rem;
  column-gap: 3rem;
  align-content: center;
  justify-content: center;

  align-items: start;
  justify-items: start;
}

}


/* ============================= */
/* MOBILE FULLSCREEN NAVIGATION  */
/* ============================= */

.nav__toggle {
  display: none;
}


/* ---------- Mobile ---------- */

@media (max-width: 800px) {

  /* Hamburger button */
  .nav__toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
  }


  /* Hamburger lines */
  .nav__toggle span {
    display: block;
    width: 2.6rem;
    height: 2px;
    background-color: #444;
    border-radius: 2px;
    transition: all 0.3s ease;
  }


  /* ---------- Fullscreen menu ---------- */

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 3rem 2rem;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition:
      transform 0.4s ease,
      opacity 0.3s ease,
      visibility 0.3s ease;
  }


  /* Open menu */
  .nav__links--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }


  /* ---------- Menu links ---------- */

  .nav__item {
    width: 100%;
    text-align: center;
  }


  .nav__link {
    display: block;
    padding: 1rem;
    font-size: 2.4rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }


  .nav__link:hover {
    transform: translateY(-2px);
  }


  /* Open account button */
  .nav__link--btn {
    display: inline-block;
    width: auto;
    margin-top: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.8rem;
  }


  /* ---------- Hamburger → X ---------- */

  .nav__toggle--active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }


  .nav__toggle--active span:nth-child(2) {
    opacity: 0;
  }


  .nav__toggle--active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

}

@media (max-width: 650px) {
  .header__title {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto;
    row-gap: 3rem;

    justify-items: center;
    align-items: center;
    text-align: center;
  }

  .header__img{
  width: 90%;
  grid-column: 1;
  grid-row: 1;
  transform: translateY(-6rem);
  border-radius: 2rem;
}

/*FEATURES*/
.features{
  display: grid;
  grid-template-columns: 1fr ;
  gap: 4rem;
  margin: 0 2rem;
}

.features__img{
  width: 100%;
  border-radius: 2rem;

}

.features__feature{
  align-self: center;
  justify-self: center;
  width: 90%;
  font-size: 1.5rem;
}

.features__header{
  font-size: 2rem;
  margin-bottom: 1rem;
  justify-self: end;
}
.features__feature:nth-child(3) {
    order: 4;
  }

  .features__img:nth-child(4) {
    order: 3;
  }

  .btn{display: inline-block;
  background-color: var(--color-primary);
  font-size: 1.6rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 10rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn{
  display: inline-block;
  background-color: var(--color-primary);
}

.nav__logo{
  height: 10.5rem;
  transition: all 0.3s;
  display: none;
}

/* TESTIMONIALS*/
.testimonial{
  width: 90%;
  position: relative;
}

.testimonial::before{
  content: '\201C';
  position: absolute;
  top: -5.7rem;
  left: -6.8rem;
  line-height: 1;
  font-size: 10rem;
  font-family: inherit;
  color: var(--color-primary);
  z-index: -1;
}


.operations{
  max-width: 100rem;
  margin: 12rem 0 0 0;
  background-color: #fff;
}
.operations__content{
  display: none;

  /* JUST PRESENTATIONAL*/
  font-size: 1.7rem;
  padding: 1.25rem  3.5rem 3rem 3.5rem;
}

.operations__content--active{
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3rem;
  row-gap: 0.5rem;
}

.operations__header {
  font-size: 2.25rem;
  font-weight: 500;
  align-self: end;
  justify-self: end;
}

.operations__content p {
  grid-column: 1;
}

.nav.sticky{
display: none;

}



}