/*=====================================================
    SERVICES SECTION - Image Design in Dark Theme
======================================================*/

.services-section {
  position: relative;
  padding: 100px 0;
  background: var(--otto-bg-dark);
  background-image: url('../images/shapes/dot-bg.webp');
  background-repeat: repeat;
  background-size: auto;
  background-position: center;
  overflow: hidden;
}

/* Animated Background Shapes */
.services-section::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(92, 176, 233, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: float-shape-1 20s ease-in-out infinite;
  pointer-events: none;
}

.services-section::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(143, 136, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: float-shape-2 25s ease-in-out infinite;
  pointer-events: none;
}

/* Additional Floating Shapes */
.services-section__inner::before {
  content: '';
  position: absolute;
  top: 30%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(250, 86, 116, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(70px);
  animation: float-shape-3 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.services-section__inner::after {
  content: '';
  position: absolute;
  top: 60%;
  left: 8%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(96, 101, 212, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(75px);
  animation: float-shape-4 22s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Floating Animation Keyframes */
@keyframes float-shape-1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  33% {
    transform: translate(30px, -40px) scale(1.1);
    opacity: 0.6;
  }
  66% {
    transform: translate(-20px, 30px) scale(0.9);
    opacity: 0.7;
  }
}

@keyframes float-shape-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  33% {
    transform: translate(-40px, 30px) scale(1.15);
    opacity: 0.5;
  }
  66% {
    transform: translate(25px, -35px) scale(0.95);
    opacity: 0.6;
  }
}

@keyframes float-shape-3 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-30px, 40px) rotate(180deg) scale(1.2);
    opacity: 0.4;
  }
}

@keyframes float-shape-4 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate(40px, -30px) rotate(-180deg) scale(1.1);
    opacity: 0.45;
  }
}

/* Title Section */
.services-section__inner {
  position: relative;
  z-index: 1;
}

.services-section__title-box {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  z-index: 2;
}

.services-section__badge {
  display: inline-block;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(92, 176, 233, 0.3);
  border-radius: 50px;
  color: #5CB0E9;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.services-section__title {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
  color: var(--otto-white);
}

.services-section__title-highlight {
  color: #5CB0E9;
}

/* Carousel Container */
.services-section__carousel {
  position: relative;
  width: 100%;
}

.services-swiper {
  overflow: hidden;
  padding: 80px 50px 50px 50px;
}

.services-swiper .swiper-slide {
  height: auto;
}

/* Service Card - Exact Image Style (Dark) */
.services-section__card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 70px 10px 10px 10px;
  padding: 0;
  padding-top: 60px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  overflow: visible;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Icon positioned at top edge (half outside card) */
.services-section__icon {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--otto-gradient-pink-purple);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  box-shadow: 0 10px 30px rgba(92, 176, 233, 0.4);
}

/* White circle background inside icon */
/* .services-section__icon::before {
  content: '';
  position: absolute;
  width: 75px;
  height: 75px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.4s ease;
} */

/* Card content padding */
.services-section__card-content {
  padding: 50px 30px 0px;
}

/* Hover Effects */
.services-section__card:hover {
  transform: translateY(-10px) scale(1);
  border-color: rgba(255, 87, 51, 0.3);
  box-shadow: 0 20px 50px rgba(255, 87, 51, 0.4);
  background: linear-gradient(135deg, #ff58333a 0%, #ffc40029 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(15px);
}

.services-section__card:hover .services-section__icon {
  /* transform: scale(1.12); */
  box-shadow: 0 15px 40px rgba(92, 176, 233, 0.5);
}

.services-section__card:hover .services-section__icon::before {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.services-section__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  /* filter: brightness(150) invert(1); */
  opacity: 1;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.services-section__card:hover .services-section__icon img {
  transform: scale(1.1);
}

/* Card Title */
.services-section__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--otto-white);
  margin-bottom: 15px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* Blue Underline */
.services-section__card-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #5CB0E9;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Card Text */
.services-section__card-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

/* Learn More Button - Hidden, appears on hover */
.services-section__learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--otto-gradient-pink-purple);
  border: none;
  border-radius: 12px;
  color: var(--techguru-white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.5s linear;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.services-section__card:hover .services-section__learn-more {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Modern Gradient Button Hover Effects */
.services-section__learn-more::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 50%;
  height: 0;
  visibility: hidden;
  background-color: var(--techguru-base);
  opacity: 0;
  z-index: -1;
  transition: all 0.4s ease-in-out;
}

.services-section__learn-more:hover::before {
  width: 100%;
  height: 100%;
  visibility: visible;
  opacity: 1;
}

.services-section__learn-more::after {
  position: absolute;
  background-color: var(--techguru-base);
  bottom: 0;
  right: 0;
  content: "";
  width: 50%;
  height: 0;
  visibility: hidden;
  opacity: 0;
  z-index: -1;
  transition: all 0.4s ease-in-out;
}

.services-section__learn-more:hover::after {
  width: 100%;
  height: 100%;
  visibility: visible;
  opacity: 1;
}

.services-section__learn-more:hover {
  color: var(--techguru-black);
  transform: translateY(-2px);
}

/* Navigation */
.services-section__navigation {
  margin-top: 0px;
  position: relative;
  z-index: 2;
}

.services-section__arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.services-section__arrow {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--otto-white);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.services-section__arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(92, 176, 233, 0.5);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(92, 176, 233, 0.2);
}

.services-section__arrow i {
  font-size: 16px;
}

/* Progress Bar */
.services-section__progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.services-section__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #5CB0E9 0%, #6065D4 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 25%;
  box-shadow: 0 0 10px rgba(92, 176, 233, 0.5);
}

/* Responsive Design */
@media (max-width: 1199px) {
  .services-section__title {
    font-size: 42px;
  }
  
  .services-section__icon {
    width: 75px;
    height: 75px;
    top: -37px;
  }
  
  .services-section__icon::before {
    width: 72px;
    height: 72px;
  }
  
  .services-section__card-content {
    padding: 0 25px 35px;
  }
  
  .services-section__icon img {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 991px) {
  .services-section {
    padding: 80px 0;
  }
  
  .services-section__title {
    font-size: 38px;
  }
  
  .services-section__icon {
    width: 70px;
    height: 70px;
    top: -35px;
  }
  
  .services-section__icon::before {
    width: 68px;
    height: 68px;
  }
  
  .services-section__icon img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 767px) {
  .services-section {
    padding: 60px 0;
  }
  
  .services-section__title {
    font-size: 32px;
  }
  
  .services-section__badge {
    font-size: 14px;
    padding: 8px 22px;
  }
  
  .services-section__icon {
    width: 65px;
    height: 65px;
    top: -32px;
    border-radius: 18px;
  }
  
  .services-section__icon::before {
    width: 65px;
    height: 65px;
  }
  
  .services-section__icon img {
    width: 30px;
    height: 30px;
  }
  
  .services-section__card-content {
    padding: 0 25px 30px;
  }
  
  .services-section__card-title {
    font-size: 20px;
  }

  .services-section__title-box{
    margin-bottom: 10px;
  }
  
  .services-section__card-text {
    font-size: 14px;
  }
  
  .services-section__arrow {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 575px) {
  .services-section__title {
    font-size: 28px;
  }
  
  .services-section__icon {
    width: 60px;
    height: 60px;
    top: -30px;
    border-radius: 16px;
  }
  
  .services-section__icon::before {
    width: 60px;
    height: 60px;
  }
  
  .services-section__icon img {
    width: 28px;
    height: 28px;
  }
  
  .services-section__card-content {
    padding: 0 20px 25px;
  }
  
  .services-section__card-title {
    font-size: 18px;
  }
  
  .services-section__arrow {
    width: 42px;
    height: 42px;
  }
  
  .services-section__arrow i {
    font-size: 14px;
  }
}
