/*-----------------------------------*\
  #main.css
\*-----------------------------------*/

/**
 *
 */

/**
 * TABLE OF CONTENT
 *
 * COMPONENTS
 * Btn............................Buttons style
 * Slider.........................Slider style
 * Card...........................Cards style
 *
 * MAIN CONTENT
 * Header.........................Modify header style
 * Hero...........................Hero styles
 * Client.........................Client style
 * About..........................About style
 * Skills.........................Skills style
 * Cta............................Cta style
 * Testimonials...................Testimonials style
 * Media queries..................Responsive for all devices
 */

/*-----------------------------------*\
  #COMPONENTS
\*-----------------------------------*/

@import url("./components/btn.css");
@import url("./components/slider.css");
@import url("./components/card.css");


/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  background-color: transparent;
}

.header.active {
  background-color: var(--white);
}


/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  position: relative;
  background-color: var(--maximum-yellow-red_a10);
  padding-block-start: calc(var(--section-padding) + 60px);
  text-align: center;
  overflow-x: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  bottom: 70%;
  right: -75%;
  background-color: var(--maximum-yellow-red_a40);
  transform: rotate(-45deg);
  border-radius: var(--radius-50);
  z-index: -1;
}

.hero .container {
  display: grid;
  gap: 70px;
}

.hero-subtitle {
  color: var(--jet);
  text-transform: uppercase;
  font-weight: var(--fw-600);
  letter-spacing: 3px;
  margin-block-end: 20px;
}

.hero-text {
  margin-block: 25px;
  color: var(--jet);
}

.hero .btn {
  margin-inline: auto;
  cursor: pointer;
}

.hero-banner {
  max-width: max-content;
  margin-inline: auto;
}


/*-----------------------------------*\
  #CLIENT
\*-----------------------------------*/

.client {
  background-color: var(--jet);
  padding-block: 30px;
}

.client .slider-item {
  min-width: calc(50% - 15px);
}

.client .slider::-webkit-scrollbar {
  display: block;
}


/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about .container {
  display: grid;
  gap: 50px;
}

.about nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.about nav ul li {
  display: inline;
}

.about nav ul li a {
  color: black;
  text-decoration: none;
  font-size: 18px;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.about nav ul li a:hover, nav ul li a.active {
  color: #f25252;
  border-bottom-color: #f25252;
}

.about .experience ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.about .experience ul li {
  margin-bottom: 10px;
  font-size: 18px;
}

.about .experience ul li span {
  color: #f25252;
  font-weight: bold;
  margin-right: 10px;
}

.about-me {
  margin-left: 40px;
  color: black;
}

.about-me h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.about-me p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/*-----------------------------------*\
  #SKILLS
\*-----------------------------------*/

.skill {
  padding-block-end: 0;
}

.skill .container,
.skill-list {
  display: grid;
}

.skill .container {
  gap: 50px;
}

.skill-list {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.skill .card ion-icon {
  font-size: 3rem;
}

.skill .card .card-title {
  color: var(--jet);
  font-size: 1.6rem;
  font-weight: var(--fw-500);
}


/*-----------------------------------*\
  #CTA
\*-----------------------------------*/

.cta {
  background-color: var(--jet);
  text-align: center;
  padding-block: 46px 50px;
}

.cta .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.cta .title-lg {
  color: var(--white);
  font-weight: var(--fw-500);
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {

  /**
   * CLIENT, ABOUT & SKILL
   */
  .client .slider-item {
    min-width: calc(33.33% - 20px);
  }

  .client .slider-item .w-100,
  .about-banner,
  .skill-banner {
    max-width: max-content;
    margin-inline: auto;
  }


  /**
   * CTA
   */
  .cta .container {
    justify-content: space-between;
  }

}


/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {

  /**
   * HERO
   */
  .hero-text {
    --fs-18: 2rem;
  }

  .hero::after {
    top: -20%;
    bottom: 50%;
    left: 48%;
    right: -15%;
  }


  /**
   * CLIENT
   */
  .client .slider-item {
    min-width: calc(25% - 22.5px);
  }


  /**
   * TESTIMONIALS
   */
  .testi .slider-item {
    min-width: calc(50% - 15px);
  }

}


/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {

  /**
   * HERO, ABOUT, SKILL
   */
  :is(.hero, .about, .skill) .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }


  /**
   * HERO
   */
  .hero {
    text-align: left;
  }

  .hero .btn {
    margin-inline: 0;
  }


  /**
   * CLIENT
   */
  .client .slider-item {
    min-width: calc(20% - 24px);
  }


  /**
   * SKILL
   */
  .skill .container {
    align-items: flex-start;
  }

}


/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * ABOUT
   */
  .about-list {
    gap: 40px;
  }

}
