/* ===========================
   SERVICES HERO
=========================== */

/* Hidden by default */

.hero-content .small-title,
.hero-content h1,
.hero-content .hero-description,
.hero-buttons,
.bottom-row {
  opacity: 0;
}

.services-hero.animate .hero-content .small-title {
  animation: fade-in 1s ease 0.1s both;
}

.services-hero.animate .hero-content h1 {
  animation: slide-in-left 1s ease 0.2s both;
}

.services-hero.animate .hero-content .hero-description {
  animation: fade-in 1s ease 0.45s both;
}

.services-hero.animate .hero-buttons {
  animation: fade-in 1s ease 0.7s both;
}

.services-hero.animate .bottom-row {
  animation: slide-in-bottom 1s ease 0.9s both;
}

/* ===========================
   STORY
=========================== */

.story-left,
.story-right p {
  opacity: 0;
}

.story.animate .story-left {
  animation: slide-in-left 1s ease both;
}

.story.animate .story-right p:nth-child(1) {
  animation: fade-in 0.8s ease 0.2s both;
}

.story.animate .story-right p:nth-child(2) {
  animation: fade-in 0.8s ease 0.4s both;
}

.story.animate .story-right p:nth-child(3) {
  animation: fade-in 0.8s ease 0.6s both;
}

/* ===========================
   SERVICES
=========================== */

.services .heading .small-title,
.services .heading h2,
.services .heading .description,
.service-card {
  opacity: 0;
}

.services.animate .heading .small-title {
  animation: slide-in-bottom 0.8s ease both;
}

.services.animate .heading h2 {
  animation: slide-in-bottom 0.8s ease 0.15s both;
}

.services.animate .heading .description {
  animation: fade-in 0.8s ease 0.3s both;
}

.services.animate .service-card:nth-child(1) {
  animation: slide-in-bottom 0.8s ease 0.2s both;
}

.services.animate .service-card:nth-child(2) {
  animation: slide-in-bottom 0.8s ease 0.35s both;
}

.services.animate .service-card:nth-child(3) {
  animation: slide-in-bottom 0.8s ease 0.5s both;
}

.services.animate .service-card:nth-child(4) {
  animation: slide-in-bottom 0.8s ease 0.65s both;
}

.services.animate .service-card:nth-child(5) {
  animation: slide-in-bottom 0.8s ease 0.8s both;
}

.services.animate .service-card:nth-child(6) {
  animation: slide-in-bottom 0.8s ease 0.95s both;
}

/* ===========================
   PROCESS
=========================== */

.process .heading .small-title,
.process .heading h2,
.process .heading .description,
.step {
  opacity: 0;
}

.process.animate .heading .small-title {
  animation: slide-in-bottom 0.8s ease both;
}

.process.animate .heading h2 {
  animation: slide-in-bottom 0.8s ease 0.15s both;
}

.process.animate .heading .description {
  animation: fade-in 0.8s ease 0.3s both;
}

.process.animate .step:nth-child(1) {
  animation: slide-in-left 0.8s ease 0.2s both;
}

.process.animate .step:nth-child(2) {
  animation: slide-in-left 0.8s ease 0.35s both;
}

.process.animate .step:nth-child(3) {
  animation: slide-in-left 0.8s ease 0.5s both;
}

.process.animate .step:nth-child(4) {
  animation: slide-in-left 0.8s ease 0.65s both;
}

.process.animate .step:nth-child(5) {
  animation: slide-in-left 0.8s ease 0.8s both;
}

.process.animate .step:nth-child(6) {
  animation: slide-in-left 0.8s ease 0.95s both;
}

.process.animate .step:nth-child(7) {
  animation: slide-in-left 0.8s ease 1.1s both;
}

.process.animate .step:nth-child(8) {
  animation: slide-in-left 0.8s ease 1.25s both;
}

/* ===========================
   TECHNOLOGY
=========================== */

.expertise .heading .small-title,
.expertise .heading h2,
.expertise .heading .description,
.tech-grid > div {
  opacity: 0;
}

.expertise.animate .heading .small-title {
  animation: slide-in-bottom 0.8s ease both;
}

.expertise.animate .heading h2 {
  animation: slide-in-bottom 0.8s ease 0.15s both;
}

.expertise.animate .heading .description {
  animation: fade-in 0.8s ease 0.3s both;
}

.expertise.animate .tech-grid > div {
  animation: fade-in 0.6s ease both;
}

/* ===========================
   CTA
=========================== */

.cta .small-title,
.cta h2,
.cta .description,
.cta-btn {
  opacity: 0;
}

.cta.animate .small-title {
  animation: slide-in-bottom 0.8s ease both;
}

.cta.animate h2 {
  animation: slide-in-bottom 0.8s ease 0.15s both;
}

.cta.animate .description {
  animation: fade-in 0.8s ease 0.35s both;
}

.cta.animate .cta-btn {
  animation: fade-in 0.8s ease 0.55s both;
}

/* ===========================
   FOOTER
=========================== */

footer h3,
footer p,
footer small {
  opacity: 0;
}

footer.animate h3 {
  animation: slide-in-bottom 0.8s ease both;
}

footer.animate p {
  animation: fade-in 0.8s ease 0.2s both;
}

footer.animate small {
  animation: fade-in 0.8s ease 0.4s both;
}

/* ===========================
   KEYFRAMES
=========================== */

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-bottom {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
