/* Animated Gradient Background for Banner */

.navbar {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding-top: 10px;
  padding-bottom: 10px;
  transition: background 0.4s;
}

.navbar .nav-link {
  color: #222 !important;
  font-weight: 500;
  margin-left: 18px;
  transition: color 0.2s;
  position: relative;
}

.navbar .nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #007bff;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -4px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #007bff !important;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

/* Circle Animation */
.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  animation: float 10s infinite alternate;
  filter: blur(2px);
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.circle1 {
  width: 220px;
  height: 220px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.circle2 {
  width: 180px;
  height: 180px;
  top: 40%;
  left: 70%;
  animation-delay: 2s;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.circle3 {
  width: 130px;
  height: 130px;
  top: 70%;
  left: 20%;
  animation-delay: 4s;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.circle4 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 80%;
  animation-delay: 6s;
  background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-40px) scale(1.15);
  }
}

/* Fade-in for sections */

#about {
  animation-delay: 0.5s;
}

#whatwedo {
  animation-delay: 0.7s;
}

#clients {
  animation-delay: 0.9s;
}

#team {
  animation-delay: 1.1s;
}

#contact {
  animation-delay: 1.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Clients Logo Animation */
.clients img {
  max-height: 60px;
  margin: 20px;
  filter: grayscale(1);
  opacity: 0.8;
  transition: 0.3s, transform 0.4s cubic-bezier(0.42, 0, 0.58, 1);
  will-change: transform;
}

.clients img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.12) rotate(-3deg);
}

/* Team Card Hover */
.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.5s cubic-bezier(0.42, 0, 0.58, 1), transform 0.35s;
}

.team-member img:hover {
  box-shadow: 0 8px 32px rgba(60, 100, 200, 0.18);
  transform: scale(1.07) rotate(2deg);
}

.navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

section {
  padding: 60px 0;
  background: transparent;
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-color: #007bff;
}

footer {
  background: #20232a;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

/* Subtle lines in backgrounds for sections */
.section-bg {
  background: repeating-linear-gradient(
    135deg,
    #f8f9fa,
    #f8f9fa 10px,
    #ececec 12px,
    #f8f9fa 20px
  );
}

/* Animated gradient circles for background */
.why-anim-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(4px);
  z-index: 0;
  animation: why-float 8s infinite alternate;
}

.why-anim-circle1 {
  width: 180px;
  height: 180px;
  top: 10%;
  left: 5%;
  background: radial-gradient(circle at 30% 30%, #4facfe 0%, #00f2fe 100%);
  animation-delay: 0s;
}

.why-anim-circle2 {
  width: 120px;
  height: 120px;
  bottom: 10%;
  right: 8%;
  background: radial-gradient(circle at 70% 70%, #fa709a 0%, #fee140 100%);
  animation-delay: 2s;
}

@keyframes why-float {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-30px) scale(1.12);
  }
}

/* Card hover and animation */
.why-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 24px rgba(60, 100, 200, 0.08);
  border: none;
  transition: transform 0.35s cubic-bezier(0.42, 0, 0.58, 1), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.why-card:hover {
  transform: translateY(-10px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(60, 100, 200, 0.16);
  background: linear-gradient(120deg, #e0eafc 60%, #cfdef3 100%);
}

.why-icon {
  animation: why-bounce 1.2s infinite alternate;
}

.why-card:hover .why-icon {
  animation: why-bounce-fast 0.6s infinite alternate;
}

@keyframes why-bounce {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

@keyframes why-bounce-fast {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-14px);
  }
}

/* Fade-in up animation for cards and headings */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: why-fade-in-up 0.8s forwards;
}

.fade-in-up[style*="animation-delay"] {
  animation-delay: inherit;
}

@keyframes why-fade-in-up {
  to {
    opacity: 1;
    transform: none;
  }
}

#whatwedo .card {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s forwards;
}

#whatwedo .col-md-3:nth-child(1) .card {
  animation-delay: 0.2s;
}

#whatwedo .col-md-3:nth-child(2) .card {
  animation-delay: 0.4s;
}

#whatwedo .col-md-3:nth-child(3) .card {
  animation-delay: 0.6s;
}

#whatwedo .col-md-3:nth-child(4) .card {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.client-logo-link {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.42, 0, 0.58, 1), box-shadow 0.3s;
  border-radius: 12px;
  padding: 10px 18px;
  animation: client-fade-in-up 0.7s both;
}

.client-logo-link:hover,
.client-logo-link:focus {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 6px 24px rgba(60, 100, 200, 0.13);
  background: rgba(255, 255, 255, 0.7);
}

.client-logo {
  max-height: 60px;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.3s, opacity 0.3s;
}

.client-logo-link:hover .client-logo,
.client-logo-link:focus .client-logo {
  filter: none;
  opacity: 1;
}

@keyframes client-fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

/* Animation for What We Do section heading and cards */
#whatwedo h2,
#whatwedo .lead {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

#whatwedo h2 {
  animation-delay: 0.1s;
}

#whatwedo .lead {
  animation-delay: 0.25s;
}

#whatwedo .card {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: fadeInUpCard 0.8s forwards;
  animation-play-state: paused;
}

#whatwedo .col-md-3:nth-child(1) .card {
  animation-delay: 0.3s;
}

#whatwedo .col-md-3:nth-child(2) .card {
  animation-delay: 0.45s;
}

#whatwedo .col-md-3:nth-child(3) .card {
  animation-delay: 0.6s;
}

#whatwedo .col-md-3:nth-child(4) .card {
  animation-delay: 0.75s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInUpCard {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Card hover effect */
#whatwedo .card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(60, 100, 200, 0.13);
  transition: transform 0.3s, box-shadow 0.3s;
}

@media screen and (max-width: 768px) {
  .hide-on-mobile {
    display: none; /* This hides the span completely */
  }
}

