/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Root Variables */
:root {
  --primary-color: #6a38c2;
  --primary-color-dark: #6132b4;
  --text-dark: #262626;
  --text-light: #737373;
  --extra-light: #e5e5e5;
  --white: #ffffff;
  --max-width: 1200px;
}

/* Base Styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
 

/* Section Container */
.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

/* Section Header */
.section__header {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.section__header span {
  color: var(--primary-color);
}

.section__description {
  max-width: 600px;
  margin-inline: auto;
  color: var(--text-light);
  line-height: 1.75rem;
  text-align: center;
}

/* Steps Section */
.steps {
  background-image: url("steps-bg.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.steps__grid {
  margin-top: 4rem;
  display: grid;
  gap: 1rem;
}

.steps__card {
  padding: 2rem 1.5rem;
  min-height: 260px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 5px 5px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
  /* Remove animation here, only use class for animation */
}

.steps__card.animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s, transform 0.7s;
}

.steps__card:nth-child(1).animate {
  transition-delay: 0.1s;
}
.steps__card:nth-child(2).animate {
  transition-delay: 0.4s;
}
.steps__card:nth-child(3).animate {
  transition-delay: 0.7s;
}
.steps__card:nth-child(4).animate {
  transition-delay: 1.0s;
}

.steps__card:hover {
  transform: translateY(-5px);
}

.steps__card span {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 10px 18px;
  font-size: 2.1rem;
  border-radius: 100%;
}

.steps__card:nth-child(1) span {
  color: #fa4e09;
  background-color: #fff9f6;
}

.steps__card:nth-child(2) span {
  color: #6a38c2;
  background-color: #e9ddff;
}

.steps__card:nth-child(3) span {
  color: #3ac2ba;
  background-color: #f0fffe;
}

.steps__card:nth-child(4) span {
  color: #fbbc09;
  background-color: #fff8e3;
}

.steps__card h4 {
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.steps__card p {
  color: var(--text-light);
  font-size: 1.25rem;
  line-height: 1.8;
}

/* Explore Section */
.explore__grid {
  margin-block: 4rem;
  display: grid;
  gap: 1rem;
}

.explore__card {
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.explore__card:hover {
  background-color: var(--primary-color);
  transform: translateY(-10px);
}

.explore__card span {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 5px 11px;
  font-size: 1.5rem;
  border-radius: 5px;
  transition: 0.3s;
}

.explore__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  transition: 0.3s;
}

.explore__card p {
  color: var(--text-light);
  font-size: 1.05rem;
  transition: 0.3s;
}

.explore__card:hover h4,
.explore__card:hover p {
  color: var(--white);
}

.explore__btn {
  text-align: center;
}

.btn {
  padding: 1rem 2rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-color-dark);
  box-shadow: 2px 2px 10px rgba(106, 56, 194, 0.5);
}

/* Responsive Design */
@media (width > 540px) {
  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  .steps__grid {
    margin-top: 6rem;
    grid-template-columns: repeat(4, 1fr);
  }

  .steps__card:nth-child(2n - 1) {
    transform: translateY(-2rem);
  }

  .explore__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (width > 1024px) {
  .steps__card {
    padding: 1.5rem;
  }

  .explore__card {
    padding: 1.5rem;
  }
}