/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;500;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(353, 98%, 67%);
  --first-color-alt: hsl(353, 50%, 47%);
  --gradient-color: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
  --black-color: hsl(353, 90%, 16%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat Alternates", sans-serif;
  --biggest-font-size: 2.5rem;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 5.5rem;
    --normal-font-size: 1rem;
  }
}

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

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--black-color);
  background:url('../img/img-bg.svg'), no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: transparent;
  z-index: var(--z-fixed);
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--black-color);
}

.nav__logo i {
  font-size: 2rem;
}

.nav__logo span {
  font-weight: var(--font-semi-bold);
}

.nav__toggle,
.nav_close {
  display: flex;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: -120%;
    left: 0;
    background-color: hsla(353, 98%, 90%, .4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    padding-block: 5rem 4rem;
    box-shadow: 0 4px 24px hsla(353, 90%, 4%, .2);
    transition: top .4s;
  }
}

.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.nav__link {
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  top: 0;
}

/* Add blur header */
.blur-header::after {
  content: '';
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(353, 98%, 90%, .4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  top: 0;
  left: 0;
  z-index: -1;
}

/*=============== HOME ===============*/
.home {
  position: relative;
}

.home__container {
  padding-top: 10.5rem;
  height: 100vh;
}

.home__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.3);
}

.home__data {
  position: relative;
  text-align: center;
  z-index: var(--z-tooltip);
}

.home__title {
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
}

.home__description {
  font-weight: var(--font-medium);
  margin-bottom: 2rem;
}

.home__button {
  display: inline-flex;
  background: var(--gradient-color);
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  border-radius: .5rem;
  transition: box-shadow .4s;
}

.home__button:hover {
  box-shadow: 0 16px 48px hsla(353, 90%, 56%, .4);
}

.home__lantern-1,
.home__lantern-2 {
  position: absolute;
  width: 50px;
}

.home__lantern-1 {
  top: 2.5rem;
  right: .5rem;
  rotate: 15deg;
}

.home__lantern-2 {
  left: .75rem;
  bottom: -5rem;
  rotate: -15deg;
}

.home__images img {
  position: absolute;
  max-width: initial;
  width: 800px;
  right: -9.2rem;
  bottom: 0;
  filter: saturate(1.3);
}

/* Sakura petals */
.sakura-petals{
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10000;
  pointer-events: none;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .home__title {
    font-size: 2rem;
  }
}

@media screen and (min-width: 350px) and (max-height: 680px) {
  .home__container {
    height: 700px;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__data {
    max-width: 380px;
    margin-inline: auto;
  }

  .home__images img {
    width: initial;
    right: 0;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .home__container {
    height: 960px;
  }

  .home__data {
    max-width: 610px;
    text-align: initial;
    margin: 0;
  }

  .home__description {
    padding-right: 8rem;
    margin-bottom: 3rem;
  }

  .home__lantern-1,
  .home__lantern-2 {
    width: 80px;
  }

  .home__lantern-1 {
    top: 6.5rem;
    right: 4rem;
  }

  .home__lantern-2 {
    left: initial;
    right: 14rem;
    bottom: -3.5rem;
  }

  ::-webkit-scrollbar {
    width: .6rem;
    background-color: hsl(353, 12%, 10%);
  }

  ::-webkit-scrollbar-thumb {
    background-color: hsl(353, 12%, 25%);
  }
}

/* For 2K resolutions (2048 x 1152) */
@media screen and (min-width: 2048px) and (max-height: 1100px) {
  .container {
    max-width: 1300px;
  }

  .home__container {
    height: 100vh;
    display: grid;
  }

  .home__data {
    align-self: center;
  }
}

/* For taller devices */
@media screen and (max-width: 1150px) and (min-height: 900px) {
  .home__container {
    display: grid;
  }

  .home__data {
    align-self: center;
  }
}

/*=============== ABOUT ===============*/
.about__container {
   padding-block: 5rem;
}

.about__header {
   text-align: center;
   margin-bottom: 4rem;
}

.about__subtitle {
   font-size: 1.1rem;
   color: var(--first-color);
   margin-top: 0.5rem;
}

/* Slider Styles */
.about__slider {
   position: relative;
   margin-bottom: 5rem;
   overflow: hidden;
}

.slider__container {
   position: relative;
   padding: 2rem 0;
}

.slider__track {
   display: flex;
   width: 100%;
   position: relative;
}

.slider__slide {
   flex: 0 0 100%;
   width: 100%;
   position: relative;
}

.slide__content {
   display: grid;
   gap: 2rem;
   padding: 0 1rem;
   opacity: 0.7;
   transform: scale(0.95);
   transition: all 0.5s ease-in-out;
}

.slider__slide[style*="translateX(0%)"] .slide__content {
   opacity: 1;
   transform: scale(1);
}

.slide__image {
   position: relative;
   text-align: center;
}

.slide__img {
   width: 280px;
   margin: 0 auto;
}

.slide__shadow {
   width: 250px;
   height: 40px;
   background: hsla(0, 0%, 0%, 0.2);
   position: absolute;
   bottom: -1.5rem;
   left: 50%;
   transform: translateX(-50%);
   filter: blur(12px);
   border-radius: 50%;
}

.slide__data {
   text-align: center;
}

.slide__title {
   font-size: 1.5rem;
   margin-bottom: 1rem;
   color: var(--black-color);
}

.slide__description {
   line-height: 1.7;
}

/* Slider Controls */
.slider__controls {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 2rem;
   margin-top: 2rem;
}

.slider__btn {
   background: none;
   border: none;
   font-size: 1.5rem;
   color: var(--black-color);
   cursor: pointer;
   transition: color 0.3s;
}

.slider__btn:hover {
   color: var(--first-color);
}

.slider__indicators {
   display: flex;
   gap: 0.5rem;
}

.indicator {
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background-color: var(--black-color);
   opacity: 0.5;
   cursor: pointer;
   transition: all 0.3s;
}

.indicator.active {
   opacity: 1;
   background-color: var(--first-color);
   transform: scale(1.2);
}

/* Features Styles */
.about__features {
   margin-bottom: 5rem;
}

.features__grid {
   display: grid;
   gap: 2rem;
   grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature__card {
   background: rgba(255, 255, 255, 0.1);
   backdrop-filter: blur(10px);
   padding: 2rem;
   border-radius: 1rem;
   text-align: center;
   transition: transform 0.3s;
}

.feature__card:hover {
   transform: translateY(-0.5rem);
}

.feature__icon {
   font-size: 2.5rem;
   color: var(--first-color);
   margin-bottom: 1rem;
}

.feature__title {
   font-size: 1.25rem;
   margin-bottom: 0.5rem;
}

.feature__description {
   font-size: 0.9rem;
   line-height: 1.6;
}

/* Stats Styles */
.stats__grid {
   display: grid;
   gap: 2rem;
   grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
   text-align: center;
}

.stat__item {
   padding: 2rem;
   background: rgba(255, 255, 255, 0.1);
   backdrop-filter: blur(10px);
   border-radius: 1rem;
}

.stat__number {
   font-size: 2.5rem;
   font-weight: var(--font-bold);
   color: var(--first-color);
   margin-bottom: 0.5rem;
   display: block;
}

.stat__label {
   font-size: 1rem;
   color: var(--black-color);
}

/* Responsive Adjustments */
@media screen and (min-width: 768px) {
   .slide__content {
      grid-template-columns: repeat(2, 1fr);
      align-items: center;
      gap: 4rem;
   }

   .slide__data {
      text-align: left;
   }

   .slide__img {
      width: 350px;
   }

   .feature__card {
      padding: 3rem 2rem;
   }
}

@media screen and (min-width: 1024px) {
   .about__header {
      margin-bottom: 6rem;
   }

   .slide__img {
      width: 400px;
   }

   .feature__card {
      padding: 3.5rem 2.5rem;
   }

   .stat__number {
      font-size: 3rem;
   }
}

/*=============== PROJECTS ===============*/
.projects__container {
   padding-block: 5rem;
}

.projects__header {
   text-align: center;
   margin-bottom: 4rem;
}

.projects__subtitle {
   font-size: 1.1rem;
   color: var(--first-color);
   margin-top: 0.5rem;
}

.projects__grid {
   display: grid;
   gap: 2rem;
   margin-bottom: 3rem;
}

.project__card {
   background: rgba(255, 255, 255, 0.1);
   backdrop-filter: blur(10px);
   border-radius: 1rem;
   overflow: hidden;
   transition: transform 0.3s;
}

.project__card:hover {
   transform: translateY(-0.5rem);
}

.project__content {
   padding: 2rem;
   position: relative;
}

.project__icon {
   font-size: 2rem;
   color: var(--first-color);
   margin-bottom: 1rem;
}

.project__title {
   font-size: 1.25rem;
   margin-bottom: 0.5rem;
   color: var(--black-color);
}

.project__description {
   font-size: 0.9rem;
   line-height: 1.6;
   margin-bottom: 1.5rem;
}

.project__stats {
   display: flex;
   gap: 1rem;
   font-size: 0.9rem;
}

.project__stat {
   display: flex;
   align-items: center;
   gap: 0.25rem;
}

.project__stat i {
   color: var(--first-color);
}

.project__button {
   position: absolute;
   right: 2rem;
   bottom: 2rem;
   display: flex;
   align-items: center;
   justify-content: center;
   width: 32px;
   height: 32px;
   background-color: var(--black-color);
   color: #fff;
   border-radius: 50%;
   transition: all 0.3s;
}

.project__button:hover {
   background-color: var(--first-color);
   transform: translateY(-0.25rem);
}

.projects__more {
   text-align: center;
}

.projects__button {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   background: var(--gradient-color);
   color: var(--black-color);
   font-weight: var(--font-semi-bold);
   padding: 1rem 2rem;
   border-radius: .5rem;
   transition: box-shadow .4s;
}

.projects__button:hover {
   box-shadow: 0 16px 48px hsla(353, 90%, 56%, .4);
}

/*=============== PROJECTS LOADING & ERROR STATES ===============*/
.projects__loading,
.projects__error {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 3rem;
   text-align: center;
   background: rgba(255, 255, 255, 0.1);
   backdrop-filter: blur(10px);
   border-radius: 1rem;
   gap: 1rem;
}

.projects__loading i,
.projects__error i {
   font-size: 3rem;
   color: var(--first-color);
}

.projects__loading i {
   animation: spin 1s linear infinite;
}

.projects__error p {
   color: var(--black-color);
   margin-bottom: 1rem;
}

.projects__retry {
   background: var(--gradient-color);
   color: var(--black-color);
   font-weight: var(--font-semi-bold);
   padding: 0.75rem 1.5rem;
   border-radius: .5rem;
   border: none;
   cursor: pointer;
   transition: box-shadow .4s;
}

.projects__retry:hover {
   box-shadow: 0 8px 24px hsla(353, 90%, 56%, .4);
}

@keyframes spin {
   from {
      transform: rotate(0deg);
   }
   to {
      transform: rotate(360deg);
   }
}

/*=============== FAQ ===============*/
.faq__container {
   padding-block: 5rem;
}

.faq__header {
   text-align: center;
   margin-bottom: 4rem;
}

.faq__subtitle {
   font-size: 1.1rem;
   color: var(--first-color);
   margin-top: 0.5rem;
}

.faq__list {
   display: grid;
   gap: 1.5rem;
   padding: 1rem;
}

.faq__item {
   background: rgba(255, 255, 255, 0.1);
   backdrop-filter: blur(10px);
   border-radius: 1rem;
   padding: 1.25rem;
   transition: all 0.3s;
}

.faq__header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 1.5rem;
   cursor: pointer;
}

.faq__title {
   font-size: 1.15rem;
   font-weight: var(--font-medium);
}

.faq__icon {
   font-size: 1.5rem;
   color: var(--first-color);
   transition: transform 0.3s;
}

.faq__item.active .faq__icon {
   transform: rotate(45deg);
}

.faq__content {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.3s ease-out;
}

.faq__description {
   padding: 1.25rem 0;
   line-height: 1.7;
}

.faq__item.active .faq__content {
   max-height: 1000px;
   transition: max-height 0.5s ease-in;
}

@media screen and (min-width: 968px) {
   .faq__list {
      grid-template-columns: repeat(2, 1fr);
   }
}