/*==================================================================
  MODERN SERVICE CARDS - OPTIMIZED VERSION
  ================================================================*/

/* ============================================
   1. BACKGROUND SHAPES & ANIMATIONS
   ============================================ */

.tp-service-showcase-area .tp-portfolio-wd-thumb {
  height: clamp(330px, 48vw, 760px);
}

.tp-service-showcase-area .tp-section-title-wrapper h2 {
  letter-spacing: 2px;
}

.tp-service-showcase-area .tp-portfolio-wd-item {
  width: clamp(1100px, 88vw, 1500px);
  margin-left: auto;
  margin-right: auto;
}

.tp-service-showcase-area .tp-portfolio-wd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.tp-service-showcase-area .tp-portfolio-wd-content {
  bottom: 30px;
}

.tp-service-showcase-area .tp-portfolio-wd-content h2 {
  font-size: clamp(46px, 6vw, 82px);
}

.tp-service-showcase-area .tp-service-showcase-btn {
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: var(--tp-common-white);
  margin-top: 10px;
  transition: all 0.3s ease;
}

.tp-service-showcase-area .tp-service-showcase-btn svg path {
  transition: fill 0.3s ease;
}

.tp-service-showcase-area .tp-service-showcase-btn:hover {
  background: rgba(196, 238, 24, 0.9);
  border-color: rgba(196, 238, 24, 0.95);
  color: #030303;
  box-shadow: 0 15px 30px rgba(196, 238, 24, 0.35);
}

.tp-service-showcase-area .tp-service-showcase-btn:hover svg path {
  fill: #030303;
}

.tp-service-showcase-area .tp-service-showcase-desc {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 991px) {
  .tp-service-showcase-area .tp-portfolio-wd-item {
    width: clamp(680px, 94vw, 980px);
    flex-direction: column;
  }
  .tp-service-showcase-area .tp-portfolio-wd-thumb {
    height: clamp(260px, 65vw, 420px);
  }
  .tp-service-showcase-area .tp-portfolio-wd-content {
    bottom: 18px;
  }
}

@media (max-width: 767px) {
  .tp-service-showcase-area .tp-portfolio-wd-thumb {
    height: clamp(240px, 62vw, 360px);
  }
  .tp-service-showcase-area .tp-portfolio-wd-content {
    bottom: 12px;
  }
  .tp-service-showcase-area .tp-portfolio-wd-item {
    width: 94vw;
    padding: 0 12px;
  }
  .tp-service-showcase-area .tp-portfolio-wd-content h2 {
    font-size: clamp(32px, 8vw, 48px);
  }
  .tp-service-showcase-area .tp-service-showcase-desc {
    font-size: 16px;
    line-height: 1.5;
  }
  .tp-service-showcase-area .tp-portfolio-wd-category span {
    font-size: 11px;
    margin-bottom: 8px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
  }
  .tp-service-showcase-area .tp-portfolio-wd-category {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
}

.tp-service-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.tp-service-shape-1,
.tp-service-shape-2,
.tp-service-shape-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: floatShape 25s ease-in-out infinite;
}

.tp-service-shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #fc4f00 0%, transparent 70%);
  top: -200px;
  left: -150px;
}

.tp-service-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #7D5DFF 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: 8s;
}

.tp-service-shape-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #fc4f00 0%, transparent 70%);
  top: 40%;
  right: 5%;
  animation-delay: 16s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(40px, -40px) rotate(120deg);
  }
  66% {
    transform: translate(-30px, 30px) rotate(240deg);
  }
}

/* ============================================
   2. SECTION TITLE ENHANCEMENTS
   ============================================ */

.tp-subtitle-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fc4f00;
  border-radius: 50%;
  margin-left: 10px;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(196, 238, 24, 0.5);
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.tp-title-line svg {
  animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
  from {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
  }
  to {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
  }
}

/* Stats Animation */
.tp-stat-item {
  position: relative;
}

.tp-stat-item h3 {
  background: linear-gradient(135deg, #fc4f00 0%, #7D5DFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ============================================
   3. SERVICE CARD CONTAINER
   ============================================ */

.tp-service-modern-card {
  height: 100%;
  perspective: 1000px;
}

.tp-service-modern-card-inner {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.tp-service-modern-card-inner:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(196, 238, 24, 0.4);
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(196, 238, 24, 0.1);
}

/* ============================================
   4. ANIMATED BORDER
   ============================================ */

.tp-service-border-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(196, 238, 24, 0.3),
    transparent
  );
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  animation: borderFlow 4s linear infinite;
}

.tp-service-modern-card-inner:hover .tp-service-border-animation {
  opacity: 1;
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* ============================================
   5. NUMBER BADGE
   ============================================ */

.tp-service-modern-number {
  position: absolute;
  top: 35px;
  right: 35px;
  width: 50px;
  height: 50px;
  background: rgba(196, 238, 24, 0.08);
  border: 2px solid rgba(196, 238, 24, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.tp-service-modern-card-inner:hover .tp-service-modern-number {
  background: rgba(196, 238, 24, 0.15);
  border-color: rgba(196, 238, 24, 0.6);
  transform: rotate(360deg) scale(1.1);
}

.tp-number-pulse {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border: 2px solid #fc4f00;
  border-radius: 50%;
  animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0;
}

.tp-service-modern-card-inner:hover .tp-number-pulse {
  opacity: 1;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ============================================
   6. IMAGE & OVERLAY
   ============================================ */

.tp-service-modern-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.tp-service-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.tp-service-modern-img {
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  filter: brightness(0.9) contrast(1.1);
}

.tp-service-modern-card-inner:hover .tp-service-modern-img {
  transform: scale(1.12) rotate(2deg);
  filter: brightness(1) contrast(1.2);
}

.tp-service-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(196, 238, 24, 0.4) 0%,
    rgba(125, 93, 255, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-service-modern-card-inner:hover .tp-service-img-overlay {
  opacity: 1;
}

.tp-service-view-icon {
  background: rgba(255, 255, 255, 0.9);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #030303;
  transform: scale(0) rotate(-180deg);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.tp-service-modern-card-inner:hover .tp-service-view-icon {
  transform: scale(1) rotate(0deg);
}

/* ============================================
   7. ICON WITH MAGNETIC EFFECT
   ============================================ */

.tp-service-modern-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: rgba(196, 238, 24, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  overflow: hidden;
}

.tp-service-modern-card-inner:hover .tp-service-modern-icon {
  background: rgba(196, 238, 24, 0.15);
  transform: rotateY(360deg);
}

.tp-icon-magnetic {
  position: relative;
  transition: transform 0.3s ease;
}

.tp-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #fc4f00 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: glow 2s ease-in-out infinite;
}

.tp-service-modern-card-inner:hover .tp-icon-glow {
  opacity: 0.3;
}

@keyframes glow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.2;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.4;
  }
}

/* ============================================
   8. TITLE WITH ARROW
   ============================================ */

.tp-service-modern-link {
  color: var(--tp-common-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
}

.tp-service-modern-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #fc4f00, #7D5DFF);
  transition: width 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.tp-service-modern-link:hover::after,
.tp-service-modern-card-inner:hover .tp-service-modern-link::after {
  width: 100%;
}

.tp-title-arrow {
  display: inline-flex;
  width: 24px;
  height: 24px;
  background: rgba(196, 238, 24, 0.1);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  color: #fc4f00;
}

.tp-service-modern-link:hover .tp-title-arrow,
.tp-service-modern-card-inner:hover .tp-title-arrow {
  background: #fc4f00;
  color: #030303;
  transform: translate(5px, -5px) rotate(45deg);
}

/* ============================================
   9. TAGS
   ============================================ */

.tp-service-modern-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tp-service-modern-tag {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag-dot {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.tp-service-modern-card-inner:hover .tp-service-modern-tag {
  background: rgba(196, 238, 24, 0.1);
  border-color: rgba(196, 238, 24, 0.4);
  color: #fc4f00;
  transform: translateY(-2px);
}

/* ============================================
   10. BUTTON WITH DOUBLE ARROW
   ============================================ */

.tp-service-modern-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tp-service-modern-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fc4f00;
  transition: width 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.tp-service-modern-btn:hover::before,
.tp-service-modern-card-inner:hover .tp-service-modern-btn::before {
  width: 100%;
}

.tp-service-modern-btn:hover,
.tp-service-modern-card-inner:hover .tp-service-modern-btn {
  color: #fc4f00;
}

.btn-arrow-wrapper {
  position: relative;
  width: 22px;
  height: 10px;
  overflow: hidden;
}

.btn-arrow {
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.btn-arrow-clone {
  transform: translateX(-100%);
}

.tp-service-modern-btn:hover .btn-arrow,
.tp-service-modern-card-inner:hover .btn-arrow {
  transform: translateX(100%);
}

.tp-service-modern-btn:hover .btn-arrow-clone,
.tp-service-modern-card-inner:hover .btn-arrow-clone {
  transform: translateX(0);
}

/* ============================================
   11. GLOW EFFECT
   ============================================ */

.tp-service-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(196, 238, 24, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  filter: blur(40px);
}

.tp-service-modern-card-inner:hover .tp-service-glow-effect {
  opacity: 1;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
  }
}

/* ============================================
   12. SPARKLES
   ============================================ */

.tp-service-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tp-service-modern-card-inner:hover .tp-service-sparkles {
  opacity: 1;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fc4f00;
  border-radius: 50%;
  box-shadow: 0 0 10px #fc4f00;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 60%;
  right: 20%;
  animation-delay: 0.7s;
}

.sparkle-3 {
  bottom: 25%;
  left: 30%;
  animation-delay: 1.4s;
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   13. OVERLAY
   ============================================ */

.tp-service-modern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(196, 238, 24, 0) 0%,
    rgba(196, 238, 24, 0.05) 50%,
    rgba(125, 93, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  border-radius: 20px;
}

.tp-service-modern-card-inner:hover .tp-service-modern-overlay {
  opacity: 1;
}

/* ============================================
   14. RESPONSIVE
   ============================================ */

@media only screen and (max-width: 1199px) {
  .tp-service-modern-card-inner {
    padding: 35px;
  }
  
  .tp-service-img-wrapper img {
    height: 260px !important;
  }
}

@media only screen and (max-width: 991px) {
  .tp-service-modern-card-inner {
    padding: 30px;
  }
  
  .tp-service-img-wrapper img {
    height: 240px !important;
  }
  
  .tp-service-modern-number {
    width: 45px;
    height: 45px;
  }
}

@media only screen and (max-width: 767px) {
  .tp-service-modern-card-inner {
    padding: 25px;
  }
  
  .tp-service-img-wrapper img {
    height: 220px !important;
  }
  
  .tp-service-modern-number {
    top: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
  }
  
  .tp-service-modern-icon {
    width: 70px;
    height: 70px;
  }
  
  .tp-service-modern-icon i {
    font-size: 44px !important;
  }
}

@media only screen and (max-width: 575px) {
  .tp-service-modern-card-inner {
    padding: 20px;
  }
  
  .tp-service-img-wrapper img {
    height: 200px !important;
  }
  
  .tp-service-modern-number {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  
  .tp-service-modern-thumb {
    margin-bottom: 20px !important;
  }
  
  .tp-service-modern-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px !important;
  }
  
  .tp-service-modern-icon i {
    font-size: 38px !important;
  }
  
  .tp-service-stats {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .tp-stat-item h3 {
    font-size: 32px !important;
  }
}

/* ============================================
   15. SCROLL ANIMATION SERVICES (Service 3)
   ============================================ */

.tp-service-pp-pin {
  position: relative;
  z-index: 1;
}

.tp-service-pp-item {
  opacity: 0;
  transform: translateY(40px);
  animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.tp-service-pp-item:nth-child(1) { animation-delay: 0.1s; }
.tp-service-pp-item:nth-child(2) { animation-delay: 0.3s; }
.tp-service-pp-item:nth-child(3) { animation-delay: 0.5s; }
.tp-service-pp-item:nth-child(4) { animation-delay: 0.7s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tp-service-pp-panel {
  position: relative;
  padding: 60px 0;
  border-bottom: 1px solid rgba(196, 238, 24, 0.08);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.tp-service-pp-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(196, 238, 24, 0.03) 50%,
    transparent 100%);
  transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 0;
  pointer-events: none;
}

.tp-service-pp-panel:hover::before {
  left: 100%;
}

.tp-service-pp-number {
  position: relative;
  z-index: 2;
  display: inline-block;
}

.tp-service-pp-number span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(196, 238, 24, 0.08);
  border-radius: 50%;
  border: 2px solid rgba(196, 238, 24, 0.3);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.tp-service-pp-panel:hover .tp-service-pp-number span {
  background: rgba(196, 238, 24, 0.15);
  border-color: rgba(196, 238, 24, 0.6);
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 0 30px rgba(196, 238, 24, 0.3);
}

.tp-service-pp-content {
  position: relative;
  z-index: 2;
}

.tp-service-pp-content h4 {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  background: linear-gradient(135deg, #fff 0%, #fc4f00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  background-position: 0% 50%;
}

.tp-service-pp-panel:hover .tp-service-pp-content h4 {
  background-position: 100% 50%;
}

.tp-service-pp-content p {
  position: relative;
  transition: all 0.4s ease;
}

.tp-service-pp-panel:hover .tp-service-pp-content p {
  color: rgba(255, 255, 255, 0.95) !important;
}

.tp-service-pp-btn {
  position: relative;
  z-index: 2;
}

.tp-service-pp-category {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.tp-service-pp-category span {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(196, 238, 24, 0.06);
  border: 1px solid rgba(196, 238, 24, 0.2);
  border-radius: 24px;
  font-size: 12px;
  color: rgba(196, 238, 24, 0.8);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.tp-service-pp-panel:hover .tp-service-pp-category span {
  background: rgba(196, 238, 24, 0.15);
  border-color: rgba(196, 238, 24, 0.5);
  color: #fc4f00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(196, 238, 24, 0.15);
}

.tp-service-pp-thumb {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 16px;
}

.tp-service-pp-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 16px;
  filter: brightness(0.9) contrast(1.1);
}

.tp-service-pp-panel:hover .tp-service-pp-thumb img {
  transform: scale(1.08) rotate(1deg);
  filter: brightness(1) contrast(1.2);
}

.tp-service-pp-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(196, 238, 24, 0.3) 0%,
    rgba(125, 93, 255, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 16px;
}

.tp-service-pp-panel:hover .tp-service-pp-thumb::after {
  opacity: 1;
}

/* Staggered row animation */
.tp-service-pp-item:nth-child(odd) .tp-service-pp-thumb {
  animation: slideInRight 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.tp-service-pp-item:nth-child(even) .tp-service-pp-thumb {
  animation: slideInLeft 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Glow effect on hover */
.tp-service-pp-panel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 238, 24, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  filter: blur(50px);
  z-index: 1;
}

.tp-service-pp-panel:hover::after {
  opacity: 1;
  animation: glowPulseService 2s ease-in-out infinite;
}

@keyframes glowPulseService {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Responsive */
@media only screen and (max-width: 991px) {
  .tp-service-pp-panel {
    padding: 50px 0;
  }
  
  .tp-service-pp-number span {
    width: 50px;
    height: 50px;
    font-size: 14px;
  }
  
  .tp-service-pp-content h4 {
    font-size: 45px !important;
  }
}

@media only screen and (max-width: 767px) {
  .tp-service-pp-panel {
    padding: 40px 0;
  }
  
  .tp-service-pp-item:nth-child(odd) .tp-service-pp-thumb {
    animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  }

  .tp-service-pp-item:nth-child(even) .tp-service-pp-thumb {
    animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  }
}

/* ============================================
   15. PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU Acceleration */
.tp-service-modern-card-inner,
.tp-service-modern-img,
.tp-service-modern-number,
.tp-icon-magnetic,
.tp-service-pp-item,
.tp-service-pp-panel,
.tp-service-pp-thumb {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
