@import url("https://fonts.googleapis.com/css?family=Nunito+Sans&display=swap");

body {
  font-family: "Nunito Sans", sans-serif;
  color: #555;
}

.hero {
  background: linear-gradient(to right, #660a5e, #cc14c3);
  overflow: hidden;
  position: relative;
}

.logo {
  height: 60px;
  max-width: 100%;
}

#particles-js {
  z-index: 0;
}

.btn-primary {
  background-color: #660a5e;
  border: none;
}

.btn-primary:hover {
  background-color: #cc14bd;
}

.text-primary {
  color: #cc14bd !important;
}

/* ANIMATION BASE */
.animate {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

/* ANIMATION TRIGGERS */
.animate-visible {
  opacity: 1;
}

/* FADE aNIMATIONS */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-left.animate-visible {
  animation: fadeInLeft 1.5s ease-out forwards;
}

.fade-in-right.animate-visible {
  animation: fadeInRight 1.5s ease-out forwards;
}

.fade-in-up.animate-visible {
  animation: fadeInUp 1.5s ease-out forwards;
}

/* MOBILE ADJUSTMENT */
@media (max-width: 576px) {
  .hero .btn {
    width: 100%;
  }
}

.portfolio-card {
  background: linear-gradient(to right, #660a5e, #cc14c3);
  color: #fff;
}

.portfolio-card .card-title,
.portfolio-card .card-text {
  color: #fff;
}

.portfolio-card img {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #fff;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.02);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

.footer {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

.footer .bubbles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1rem;
  filter: url("#blob");
  z-index: 1;
}

.footer .bubble {
  position: absolute;
  left: var(--position, 50%);
  bottom: -4rem;
  width: var(--size, 4rem);
  height: var(--size, 4rem);
  background-color: #cc14c3;
  border-radius: 50%;
  animation: bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s),
    bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s);
  transform: translateX(-50%);
}

.footer .content {
  position: relative;
  z-index: 2;
}

.footer h5 {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #660a5e;
}

.footer a {
  color: #cc14c3;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer a:hover {
  text-decoration: underline;
}

.footer i {
  color: #cc14c3;
}


.subscribe-btn {
  background-color: #660a5e;
  color: white;
  border: none;
}

.subscribe-btn:hover {
  background-color: #cc14bd;
}

@keyframes bubble-size {
  0%,
  75% {
    width: var(--size, 4rem);
    height: var(--size, 4rem);
  }
  100% {
    width: 0rem;
    height: 0rem;
  }
}

@keyframes bubble-move {
  0% {
    bottom: -4rem;
  }
  100% {
    bottom: var(--distance, 20rem);
  }
}

@media (max-width: 768px) {
  .footer .row > div {
    text-align: center;
  }
}

/* SERVICES SECTION STYLING */
.services {
  background: linear-gradient(to right, #660a5e, #cc14c3);
}

.service-card {
  background-color: #ffffff;
  color: #660a5e;
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease-out, transform 0.8s ease-out;
  opacity: 0;
  transform: translateY(30px);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.service-card i {
  color: #ffd700;
}

.service-card.animate-fadeInUp {
  opacity: 1;
  transform: translateY(0);
}

.certification {
  background-color: #fff;
  color: #000;
}

/* Horizontal scrolling container adjustment */
.d-flex.flex-nowrap {
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* Certificates initial state */
.certificate img {
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  transform: translateX(-50px);
  max-height: 250px;
  object-fit: contain;
}

/* Show when in viewport */
.certificate.in-view img {
  opacity: 1;
  transform: translateX(0);
}