/* ============================================
   TESTIMONIALS SECTION ENHANCEMENTS
   ============================================ */

/* Testimonials Section Container */
.page-testimonial {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 40%, #16213e 70%, #0f3460 100%);
  padding: 100px 0 120px;
}

/* Animated Background Gradient Shift */
.page-testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(239, 55, 36, 0.1) 0%,
    transparent 25%,
    rgba(239, 55, 36, 0.05) 50%,
    transparent 75%,
    rgba(239, 55, 36, 0.1) 100%
  );
  background-size: 400% 400%;
  animation: testimonialGradientShift 15s ease infinite;
  pointer-events: none;
  z-index: 0;
}

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

/* Floating orbs in background */
.page-testimonial::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(239, 55, 36, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: -10%;
  left: -5%;
  animation: testimonialOrb 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes testimonialOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(30px, 30px) scale(1.2);
    opacity: 0.8;
  }
}

.page-testimonial .container {
  position: relative;
  z-index: 1;
}

/* Section Title */
.page-testimonial h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 50px;
}

/* ============================================
   3D CAROUSEL / COVERFLOW EFFECT
   ============================================ */

/* Enhanced Owl Carousel for 3D Effect */
.page-testimonial .testi-carousel {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.page-testimonial .testi-carousel .owl-stage {
  display: flex;
  align-items: center;
}

.page-testimonial .testi-carousel .item {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.85) rotateY(15deg);
  opacity: 0.5;
  filter: blur(2px);
}

.page-testimonial .testi-carousel .owl-item.active .item {
  transform: scale(1) rotateY(0deg);
  opacity: 1;
  filter: blur(0);
  z-index: 10;
}

.page-testimonial .testi-carousel .owl-item.active + .owl-item .item,
.page-testimonial .testi-carousel .owl-item:has(+ .owl-item.active) .item {
  transform: scale(0.9) rotateY(-10deg);
  opacity: 0.7;
  filter: blur(1px);
}

/* Testimonial Card Container */
.page-testimonial .item > .row {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 25px 15px;
  position: relative;
}

/* Decorative accent line on card */
.page-testimonial .item > .row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef3724, #ff6b5b, #ffd700, #ff6b5b, #ef3724);
  background-size: 200% 100%;
  animation: testimonialAccentLine 3s ease infinite;
  border-radius: 30px 30px 0 0;
  z-index: 10;
}

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

.page-testimonial .testi-carousel .owl-item.active .item > .row {
  box-shadow:
    0 30px 70px rgba(239, 55, 36, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(239, 55, 36, 0.4);
  transform: scale(1.02);
}

/* ============================================
   AVATAR / IMAGE ENHANCEMENTS
   ============================================ */

/* Image container with zoom effect */
.page-testimonial .img-place {
  position: relative;
  overflow: hidden;
  border-radius: 25px 0 0 25px;
  height: 100%;
  min-height: 380px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
}

.page-testimonial .img-place img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
  filter: saturate(0.9);
}

/* Avatar zoom on active */
.page-testimonial .testi-carousel .owl-item.active .img-place img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.page-testimonial .img-place:hover img {
  transform: scale(1.12);
  filter: saturate(1.2);
}

/* Gradient overlay on image */
.page-testimonial .img-place::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(239, 55, 36, 0.3) 0%,
    transparent 40%,
    transparent 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.page-testimonial .testi-carousel .owl-item.active .img-place::before {
  opacity: 1;
}

/* Decorative corner accent on image */
.page-testimonial .img-place::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-left: 3px solid rgba(239, 55, 36, 0.7);
  border-bottom: 3px solid rgba(239, 55, 36, 0.7);
  border-radius: 0 0 0 15px;
  z-index: 2;
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: all 0.4s ease 0.2s;
}

.page-testimonial .testi-carousel .owl-item.active .img-place::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================
   QUOTE ICON ANIMATION
   ============================================ */

/* Quote icon before testimonial content */
.page-testimonial .caption {
  position: relative;
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(239, 55, 36, 0.02) 100%);
}

.page-testimonial .caption::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 25px;
  font-size: 8rem;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.25), rgba(255, 107, 91, 0.15));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: quoteFloat 5s ease-in-out infinite;
  z-index: 0;
}

@keyframes quoteFloat {
  0%, 100% {
    transform: translateY(0) rotate(-3deg) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-8px) rotate(3deg) scale(1.05);
    opacity: 1;
  }
}

/* Closing quote */
.page-testimonial .caption::after {
  content: '"';
  position: absolute;
  bottom: 15px;
  right: 25px;
  font-size: 5rem;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.15), rgba(255, 107, 91, 0.1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: quoteFloat 5s ease-in-out infinite 2.5s;
  z-index: 0;
}

/* ============================================
   TESTIMONIAL CONTENT SLIDE-IN ANIMATION
   ============================================ */

/* Testimonial text content */
.page-testimonial .testi-content {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
  margin-bottom: 30px;
  padding: 20px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 3px solid rgba(239, 55, 36, 0.4);
  padding-left: 20px;
  margin-left: 10px;
}

.page-testimonial .testi-carousel .owl-item.active .testi-content {
  opacity: 1;
  transform: translateY(0);
}

/* Text reveal animation on active */
.page-testimonial .testi-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(30, 30, 50, 0.95) 100%);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.page-testimonial .testi-carousel .owl-item.active .testi-content::before {
  transform: translateX(101%);
}

/* ============================================
   TESTIMONIAL INFO / AUTHOR SECTION
   ============================================ */

/* Author info container */
.page-testimonial .testi-info {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 15px;
}

.page-testimonial .testi-carousel .owl-item.active .testi-info {
  opacity: 1;
  transform: translateX(0);
}

/* Thumbnail profile image */
.page-testimonial .thumb-profile {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(135deg, #ef3724, #ff6b5b, #ffd700) padding-box,
              linear-gradient(135deg, #ef3724, #ff6b5b, #ffd700) border-box;
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.4);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.page-testimonial .thumb-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.page-testimonial .testi-carousel .owl-item.active .thumb-profile {
  transform: scale(1.1);
}

.page-testimonial .thumb-profile:hover img {
  transform: scale(1.15);
}

/* Animated ring around thumbnail */
.page-testimonial .thumb-profile::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px dashed rgba(239, 55, 36, 0.5);
  border-radius: 50%;
  animation: thumbnailRingSpin 10s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-testimonial .testi-carousel .owl-item.active .thumb-profile::before {
  opacity: 1;
}

@keyframes thumbnailRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Author name and tagline */
.page-testimonial .tagline h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-testimonial .tagline .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-testimonial .tagline img {
  vertical-align: middle;
  margin-left: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  height: 18px !important;
  width: auto !important;
  max-width: 60px;
  object-fit: contain;
  filter: brightness(1) grayscale(0);
  opacity: 0.85;
}

.page-testimonial .tagline img:hover {
  transform: scale(1.15);
  opacity: 1;
  filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ============================================
   STAR RATING ANIMATION
   ============================================ */

/* Star rating container */
.testimonial-rating {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}

.testimonial-rating .star {
  width: 20px;
  height: 20px;
  position: relative;
}

.testimonial-rating .star svg {
  width: 100%;
  height: 100%;
  fill: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.testimonial-rating .star.filled svg {
  fill: #ffd700;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* Star animation on active */
.page-testimonial .testi-carousel .owl-item.active .testimonial-rating .star {
  animation: starPop 0.4s ease forwards;
}

.page-testimonial .testi-carousel .owl-item.active .testimonial-rating .star:nth-child(1) { animation-delay: 0.1s; }
.page-testimonial .testi-carousel .owl-item.active .testimonial-rating .star:nth-child(2) { animation-delay: 0.2s; }
.page-testimonial .testi-carousel .owl-item.active .testimonial-rating .star:nth-child(3) { animation-delay: 0.3s; }
.page-testimonial .testi-carousel .owl-item.active .testimonial-rating .star:nth-child(4) { animation-delay: 0.4s; }
.page-testimonial .testi-carousel .owl-item.active .testimonial-rating .star:nth-child(5) { animation-delay: 0.5s; }

@keyframes starPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Star shimmer effect */
.testimonial-rating .star.filled::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: starShimmer 2s ease-in-out infinite;
}

@keyframes starShimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ============================================
   PAGINATION DOTS ANIMATION
   ============================================ */

/* Owl carousel dots */
.page-testimonial .owl-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 50px;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50px;
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-testimonial .owl-dot {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.page-testimonial .owl-dot span {
  display: none;
}

/* Dot hover effect */
.page-testimonial .owl-dot:hover {
  background: rgba(239, 55, 36, 0.5);
  border-color: rgba(239, 55, 36, 0.8);
  transform: scale(1.2);
}

/* Active dot with animation */
.page-testimonial .owl-dot.active {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  border-color: transparent;
  width: 35px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(239, 55, 36, 0.5);
}

/* Progress indicator inside active dot */
.page-testimonial .owl-dot.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  animation: dotProgress 5s linear forwards;
}

@keyframes dotProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Ripple effect on dot click */
.page-testimonial .owl-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(239, 55, 36, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.page-testimonial .owl-dot:active::after {
  width: 50px;
  height: 50px;
  opacity: 0;
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */

/* Owl carousel navigation */
.page-testimonial .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 10px;
}

.page-testimonial .owl-prev,
.page-testimonial .owl-next {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.2), rgba(255, 107, 91, 0.15)) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(239, 55, 36, 0.3) !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.5rem !important;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-testimonial .owl-prev:hover,
.page-testimonial .owl-next:hover {
  background: linear-gradient(135deg, #ef3724, #ff6b5b) !important;
  border-color: transparent !important;
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(239, 55, 36, 0.5), 0 0 20px rgba(239, 55, 36, 0.3);
}

.page-testimonial .owl-prev:active,
.page-testimonial .owl-next:active {
  transform: scale(1.05);
}

/* Arrow icon animation */
.page-testimonial .owl-prev:hover::before {
  animation: arrowBounceLeft 0.5s ease infinite;
}

.page-testimonial .owl-next:hover::before {
  animation: arrowBounceRight 0.5s ease infinite;
}

@keyframes arrowBounceLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3px); }
}

@keyframes arrowBounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* ============================================
   STAR RATING SYSTEM
   ============================================ */

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
}

.testimonial-rating .star {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.testimonial-rating .star.filled {
  color: #ffc107;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Star animation on hover */
.page-testimonial .item:hover .testimonial-rating .star.filled {
  animation: starPulse 0.6s ease-in-out infinite;
}

.testimonial-rating .star.filled:nth-child(1) { animation-delay: 0s; }
.testimonial-rating .star.filled:nth-child(2) { animation-delay: 0.1s; }
.testimonial-rating .star.filled:nth-child(3) { animation-delay: 0.2s; }
.testimonial-rating .star.filled:nth-child(4) { animation-delay: 0.3s; }
.testimonial-rating .star.filled:nth-child(5) { animation-delay: 0.4s; }

@keyframes starPulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
  }
  50% {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
  }
}

/* ============================================
   AUTO-PLAY PROGRESS INDICATOR
   ============================================ */

/* Auto-play progress bar at bottom */
.testimonial-autoplay-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.testimonial-autoplay-progress .progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ef3724, #ff6b5b);
  animation: autoplayProgress 5s linear infinite;
}

@keyframes autoplayProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Pause indicator on hover */
.page-testimonial .testi-carousel.paused .testimonial-autoplay-progress .progress-bar {
  animation-play-state: paused;
}

/* ============================================
   TESTIMONIALS - LIGHT/DARK MODE THEMING
   ============================================ */

/* Light Mode Styles (Default - when no [data-theme="dark"]) */
:root .page-testimonial {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 40%, #dee2e6 70%, #f1f3f5 100%);
}

:root .page-testimonial::before {
  background: linear-gradient(
    45deg,
    rgba(239, 55, 36, 0.05) 0%,
    transparent 25%,
    rgba(239, 55, 36, 0.03) 50%,
    transparent 75%,
    rgba(239, 55, 36, 0.05) 100%
  );
}

:root .page-testimonial::after {
  background: radial-gradient(circle, rgba(239, 55, 36, 0.05) 0%, transparent 70%);
}

:root .page-testimonial h1 {
  color: #212529;
  text-shadow: none;
}

:root .page-testimonial .text-muted {
  color: #6c757d !important;
}

:root .page-testimonial .item > .row {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

:root .page-testimonial .testi-carousel .owl-item.active .item > .row {
  box-shadow:
    0 20px 60px rgba(239, 55, 36, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(239, 55, 36, 0.25);
}

:root .page-testimonial .img-place {
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

:root .page-testimonial .caption {
  background: linear-gradient(180deg, transparent 0%, rgba(239, 55, 36, 0.01) 100%);
}

:root .page-testimonial .caption::before {
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.15), rgba(255, 107, 91, 0.08));
  -webkit-background-clip: text;
  background-clip: text;
}

:root .page-testimonial .caption::after {
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.1), rgba(255, 107, 91, 0.05));
  -webkit-background-clip: text;
  background-clip: text;
}

:root .page-testimonial .testi-content {
  color: #495057;
  text-shadow: none;
  border-left-color: rgba(239, 55, 36, 0.3);
}

:root .page-testimonial .testi-content::before {
  background: linear-gradient(90deg, transparent 0%, rgba(248, 249, 250, 0.95) 100%);
}

:root .page-testimonial .testi-info {
  background: rgba(248, 249, 250, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

:root .page-testimonial .tagline h5 {
  color: #212529;
  background: linear-gradient(135deg, #212529, #495057);
  -webkit-background-clip: text;
  background-clip: text;
}

:root .page-testimonial .tagline .text-muted {
  color: #6c757d !important;
}

:root .testimonial-rating .star {
  color: rgba(0, 0, 0, 0.2);
}

:root .testimonial-rating .star.filled {
  color: #ffc107;
  text-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

:root .page-testimonial .owl-dots {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

:root .page-testimonial .owl-dot {
  background: rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(0, 0, 0, 0.12);
}

:root .page-testimonial .owl-dot:hover {
  background: rgba(239, 55, 36, 0.3);
  border-color: rgba(239, 55, 36, 0.5);
}

:root .page-testimonial .owl-prev,
:root .page-testimonial .owl-next {
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.1), rgba(255, 107, 91, 0.08)) !important;
  border: 2px solid rgba(239, 55, 36, 0.2) !important;
  color: #ef3724 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

:root .page-testimonial .owl-prev:hover,
:root .page-testimonial .owl-next:hover {
  color: #fff !important;
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.3);
}

:root .testimonial-autoplay-progress {
  background: rgba(0, 0, 0, 0.08);
}

:root .testimonial-view-toggle .view-btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(239, 55, 36, 0.15);
}

:root .testimonial-view-toggle .view-btn:hover {
  background: rgba(239, 55, 36, 0.08);
}

:root .quote-mark {
  color: rgba(239, 55, 36, 0.05);
}

/* Dark Mode Overrides */
[data-theme="dark"] .page-testimonial {
  background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 40%, #16213e 70%, #0f3460 100%);
}

[data-theme="dark"] .page-testimonial::before {
  background: linear-gradient(
    45deg,
    rgba(239, 55, 36, 0.1) 0%,
    transparent 25%,
    rgba(239, 55, 36, 0.05) 50%,
    transparent 75%,
    rgba(239, 55, 36, 0.1) 100%
  );
}

[data-theme="dark"] .page-testimonial::after {
  background: radial-gradient(circle, rgba(239, 55, 36, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .page-testimonial h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .page-testimonial .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .page-testimonial .item > .row {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .page-testimonial .testi-carousel .owl-item.active .item > .row {
  box-shadow:
    0 30px 70px rgba(239, 55, 36, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(239, 55, 36, 0.4);
}

[data-theme="dark"] .page-testimonial .img-place {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
}

[data-theme="dark"] .page-testimonial .caption {
  background: linear-gradient(180deg, transparent 0%, rgba(239, 55, 36, 0.02) 100%);
}

[data-theme="dark"] .page-testimonial .caption::before {
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.25), rgba(255, 107, 91, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="dark"] .page-testimonial .caption::after {
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.15), rgba(255, 107, 91, 0.1));
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="dark"] .page-testimonial .testi-content {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left-color: rgba(239, 55, 36, 0.4);
}

[data-theme="dark"] .page-testimonial .testi-content::before {
  background: linear-gradient(90deg, transparent 0%, rgba(30, 30, 50, 0.95) 100%);
}

[data-theme="dark"] .page-testimonial .testi-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .page-testimonial .tagline h5 {
  color: #fff;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="dark"] .page-testimonial .tagline .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .testimonial-rating .star {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .testimonial-rating .star.filled {
  color: #ffc107;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

[data-theme="dark"] .page-testimonial .owl-dots {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .page-testimonial .owl-dot {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .page-testimonial .owl-dot:hover {
  background: rgba(239, 55, 36, 0.5);
  border-color: rgba(239, 55, 36, 0.8);
}

[data-theme="dark"] .page-testimonial .owl-prev,
[data-theme="dark"] .page-testimonial .owl-next {
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.2), rgba(255, 107, 91, 0.15)) !important;
  border: 2px solid rgba(239, 55, 36, 0.3) !important;
  color: #fff !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .page-testimonial .owl-prev:hover,
[data-theme="dark"] .page-testimonial .owl-next:hover {
  box-shadow: 0 8px 30px rgba(239, 55, 36, 0.5), 0 0 20px rgba(239, 55, 36, 0.3);
}

[data-theme="dark"] .testimonial-autoplay-progress {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .testimonial-view-toggle .view-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(239, 55, 36, 0.2);
}

[data-theme="dark"] .testimonial-view-toggle .view-btn:hover {
  background: rgba(239, 55, 36, 0.1);
}

[data-theme="dark"] .quote-mark {
  color: rgba(239, 55, 36, 0.08);
}

/* ============================================
   RESPONSIVE TESTIMONIALS
   ============================================ */

@media (max-width: 991.98px) {
  .page-testimonial .item > .row {
    flex-direction: column;
  }

  .page-testimonial .img-place {
    border-radius: 20px 20px 0 0;
    min-height: 250px;
  }

  .page-testimonial .caption {
    padding: 25px;
  }

  .page-testimonial .caption::before {
    font-size: 4rem;
    top: 10px;
    left: 15px;
  }

  .page-testimonial .caption::after {
    font-size: 3rem;
  }

  .page-testimonial .owl-nav {
    padding: 0 10px;
  }

  .page-testimonial .owl-prev,
  .page-testimonial .owl-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem !important;
  }
}

@media (max-width: 767.98px) {
  .page-testimonial {
    padding: 50px 0;
  }

  .page-testimonial .testi-carousel .item {
    transform: scale(0.95) rotateY(0deg);
    filter: blur(0);
  }

  .page-testimonial .img-place {
    min-height: 200px;
  }

  .page-testimonial .testi-content {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .page-testimonial .thumb-profile {
    width: 50px;
    height: 50px;
  }

  .page-testimonial .tagline h5 {
    font-size: 1rem;
  }

  .page-testimonial .owl-dots {
    gap: 8px;
    margin-top: 25px;
  }

  .page-testimonial .owl-dot {
    width: 10px;
    height: 10px;
  }

  .page-testimonial .owl-dot.active {
    width: 28px;
  }

  .page-testimonial::after {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .page-testimonial .caption::before,
  .page-testimonial .caption::after {
    display: none;
  }

  .page-testimonial .owl-nav {
    display: none;
  }

  .page-testimonial .testi-info {
    flex-direction: column;
    text-align: center;
  }
}

/* Print styles for testimonials */
@media print {
  .page-testimonial {
    background: #fff;
  }

  .page-testimonial .item > .row {
    background: #f8f9fa;
    border: 1px solid #ddd;
  }

  .page-testimonial .testi-content,
  .page-testimonial h1 {
    color: #333;
  }

  .page-testimonial .owl-nav,
  .page-testimonial .owl-dots {
    display: none;
  }
}

/* ============================================
   TESTIMONIALS - ANIMATED QUOTE MARKS BACKGROUND
   ============================================ */

.testimonial-quotes-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.quote-mark {
  position: absolute;
  width: 120px;
  height: 120px;
  color: rgba(239, 55, 36, 0.08);
  opacity: 0;
  animation: quoteFloat 20s ease-in-out infinite;
}

.quote-mark-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.quote-mark-2 {
  top: 60%;
  right: 8%;
  animation-delay: 6s;
  width: 80px;
  height: 80px;
}

.quote-mark-3 {
  bottom: 15%;
  left: 15%;
  animation-delay: 12s;
  width: 100px;
  height: 100px;
}

@keyframes quoteFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(20px) rotate(-10deg) scale(0.8);
  }
  10%, 90% {
    opacity: 1;
  }
  50% {
    opacity: 1;
    transform: translateY(-20px) rotate(10deg) scale(1);
  }
}

/* ============================================
   TESTIMONIALS - VIEW TOGGLE (Carousel / Marquee)
   ============================================ */

.testimonial-view-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.testimonial-view-toggle .view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(239, 55, 36, 0.2);
  border-radius: 25px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.testimonial-view-toggle .view-btn:hover {
  background: rgba(239, 55, 36, 0.1);
  border-color: rgba(239, 55, 36, 0.4);
  color: var(--color-primary);
}

.testimonial-view-toggle .view-btn.active {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(239, 55, 36, 0.3);
}

.testimonial-view-toggle .view-btn i {
  font-size: 16px;
}

/* ============================================
   TESTIMONIALS - CAROUSEL VIEW CONTAINER
   ============================================ */

.testimonial-carousel-view {
  display: none;
}

.testimonial-carousel-view.active {
  display: block;
  animation: fadeInView 0.5s ease;
}

.testimonial-marquee-view {
  display: none;
}

.testimonial-marquee-view.active {
  display: block;
  animation: fadeInView 0.5s ease;
}

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

/* ============================================
   TESTIMONIALS - INFINITE SCROLL MARQUEE
   ============================================ */

.testimonial-marquee {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
}

.testimonial-marquee::before,
.testimonial-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.testimonial-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.testimonial-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.marquee-track {
  display: flex;
  gap: 30px;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-card {
  flex-shrink: 0;
  width: 350px;
  padding: 30px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color-light);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.marquee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef3724, #ffd700, #ef3724);
  background-size: 200% 100%;
  animation: shimmerGradient 3s linear infinite;
}

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

.marquee-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(239, 55, 36, 0.3);
}

.marquee-quote-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  color: rgba(239, 55, 36, 0.3);
}

.marquee-quote-icon svg {
  width: 100%;
  height: 100%;
}

.marquee-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
  min-height: 80px;
}

.marquee-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color-light);
}

.marquee-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(239, 55, 36, 0.3);
}

.marquee-author div {
  display: flex;
  flex-direction: column;
}

.marquee-author strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.marquee-author span {
  font-size: 12px;
  color: var(--color-primary);
}

/* ============================================
   TESTIMONIALS - RESPONSIVE MARQUEE
   ============================================ */

@media (max-width: 768px) {
  .testimonial-view-toggle {
    flex-wrap: wrap;
  }

  .testimonial-view-toggle .view-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .marquee-card {
    width: 300px;
    padding: 20px;
  }

  .marquee-text {
    font-size: 14px;
    min-height: 70px;
  }

  .quote-mark {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .marquee-card {
    width: 280px;
  }

  .marquee-author img {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   TESTIMONIALS MARQUEE - DARK THEME OVERRIDES
   For .page-testimonial which has dark gradient background
   ============================================ */

/* Fade edges match dark background */
.page-testimonial .testimonial-marquee::before {
  background: linear-gradient(to right, #0a0a14, transparent);
}

.page-testimonial .testimonial-marquee::after {
  background: linear-gradient(to left, #0a0a14, transparent);
}

/* Marquee cards with glassmorphism for dark bg */
.page-testimonial .marquee-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-testimonial .marquee-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(239, 55, 36, 0.4);
}

/* Quote icon styling for dark bg */
.page-testimonial .marquee-quote-icon {
  color: rgba(239, 55, 36, 0.6);
}

.page-testimonial .marquee-quote-icon svg {
  fill: rgba(239, 55, 36, 0.4);
}

/* Text colors for dark bg */
.page-testimonial .marquee-text {
  color: rgba(255, 255, 255, 0.9);
}

/* Author section border for dark bg */
.page-testimonial .marquee-author {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.page-testimonial .marquee-author strong {
  color: #ffffff;
}

.page-testimonial .marquee-author span {
  color: rgba(239, 55, 36, 0.9);
}

/* View toggle buttons for dark bg */
.page-testimonial .testimonial-view-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.page-testimonial .view-btn {
  color: rgba(255, 255, 255, 0.7);
}

.page-testimonial .view-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.page-testimonial .view-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
}

/* ============================================
   TESTIMONIAL LINKEDIN BUTTON
   ============================================ */

/* LinkedIn Button Base Styles - Pill shaped with text */
.testimonial-linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 25px;
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 12px;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(0, 119, 181, 0.35);
  letter-spacing: 0.3px;
}

.testimonial-linkedin-btn:hover {
  background: linear-gradient(135deg, #005885 0%, #004165 100%);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 119, 181, 0.5);
}

.testimonial-linkedin-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.testimonial-linkedin-btn i {
  line-height: 1;
  font-size: 14px;
}

.testimonial-linkedin-btn span {
  display: inline;
}

/* Testi-info flex adjustment for LinkedIn button */
.testi-info {
  display: flex;
  align-items: center;
}

.testi-info .tagline {
  flex: 1;
}

/* Light mode adjustments (default) */
.testimonial-linkedin-btn {
  border: 2px solid transparent;
}

/* Dark mode (inside .page-testimonial which has dark bg) */
.page-testimonial .testimonial-linkedin-btn {
  background: linear-gradient(135deg, #0077b5 0%, #0088cc 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 3px 15px rgba(0, 119, 181, 0.5);
}

.page-testimonial .testimonial-linkedin-btn:hover {
  background: linear-gradient(135deg, #0088cc 0%, #00a0dc 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 25px rgba(0, 119, 181, 0.7);
}

/* Marquee card LinkedIn button - Compact pill */
.marquee-linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 15px;
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
}

.marquee-linkedin-btn span {
  display: inline;
}

.marquee-linkedin-btn i {
  font-size: 11px;
}

.marquee-linkedin-btn:hover {
  background: #005885;
  color: #ffffff;
  transform: scale(1.15);
}

.marquee-author {
  display: flex;
  align-items: center;
}

.marquee-author > div {
  flex: 1;
}

/* Dark mode marquee LinkedIn button */
.page-testimonial .marquee-linkedin-btn {
  background: rgba(0, 119, 181, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-testimonial .marquee-linkedin-btn:hover {
  background: #0077b5;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   CLIENTS / PARTNERS SECTION ENHANCEMENTS
   ============================================ */

/* Section Container with Glassmorphism */
.page-client {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
}

/* Animated background pattern */
.page-client::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(239, 55, 36, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(239, 55, 36, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Decorative floating orbs */
.page-client::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(239, 55, 36, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -10%;
  right: -5%;
  animation: clientOrb 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes clientOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-20px, -20px) scale(1.2);
    opacity: 0.8;
  }
}

.page-client .container {
  position: relative;
  z-index: 1;
}

/* Section Title Styling */
.page-client h1,
.page-client .section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-client h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ef3724, #ff6b5b);
  border-radius: 3px;
}

/* ============================================
   GLASSMORPHISM LOGO CONTAINER
   ============================================ */

.page-client .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
}

.page-client .item {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0;
}

.page-client .img-place {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 25px 35px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

/* Shimmer effect on container */
.page-client .img-place::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.page-client .img-place:hover::before {
  left: 150%;
}

/* Hover lift effect */
.page-client .img-place:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow:
    0 20px 40px rgba(239, 55, 36, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(239, 55, 36, 0.3);
}

/* ============================================
   LOGO GRAYSCALE → COLOR ON HOVER
   ============================================ */

.page-client .img-place img {
  display: block;
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.page-client .img-place:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* ============================================
   FLOATING / BOBBING ANIMATION
   ============================================ */

.page-client .item {
  animation: logoBob 4s ease-in-out infinite;
}

.page-client .item:nth-child(1) { animation-delay: 0s; }
.page-client .item:nth-child(2) { animation-delay: 0.5s; }
.page-client .item:nth-child(3) { animation-delay: 1s; }
.page-client .item:nth-child(4) { animation-delay: 1.5s; }
.page-client .item:nth-child(5) { animation-delay: 0.3s; }
.page-client .item:nth-child(6) { animation-delay: 0.8s; }
.page-client .item:nth-child(7) { animation-delay: 1.3s; }
.page-client .item:nth-child(8) { animation-delay: 1.8s; }

@keyframes logoBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pause bobbing on hover */
.page-client .item:hover {
  animation-play-state: paused;
}

/* ============================================
   TOOLTIP WITH COMPANY NAME
   ============================================ */

.page-client .img-place[data-tooltip] {
  position: relative;
}

.page-client .img-place[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 8px 16px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* Tooltip arrow */
.page-client .img-place[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border: 6px solid transparent;
  border-top-color: #1a1a2e;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 101;
}

.page-client .img-place[data-tooltip]:hover::after,
.page-client .img-place[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   LOGO FADE-IN STAGGER ANIMATION
   ============================================ */

.page-client .item {
  opacity: 0;
  transform: translateY(40px) scale(0.9);
}

.page-client .item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Staggered reveal delays */
.page-client .row:first-of-type .item:nth-child(1) { transition-delay: 0.1s; }
.page-client .row:first-of-type .item:nth-child(2) { transition-delay: 0.2s; }
.page-client .row:first-of-type .item:nth-child(3) { transition-delay: 0.3s; }
.page-client .row:first-of-type .item:nth-child(4) { transition-delay: 0.4s; }
.page-client .row:nth-of-type(2) .item:nth-child(1) { transition-delay: 0.5s; }
.page-client .row:nth-of-type(2) .item:nth-child(2) { transition-delay: 0.6s; }
.page-client .row:nth-of-type(2) .item:nth-child(3) { transition-delay: 0.7s; }
.page-client .row:nth-of-type(2) .item:nth-child(4) { transition-delay: 0.8s; }

/* ============================================
   INFINITE SCROLL MARQUEE (Netflix-style)
   ============================================ */

/* Marquee container - optional alternative layout */
.client-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 30px 0;
}

/* Gradient masks for seamless edges */
.client-marquee-container::before,
.client-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.client-marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, #f8f9fa, transparent);
}

.client-marquee-container::after {
  right: 0;
  background: linear-gradient(90deg, transparent, #f8f9fa);
}

.client-marquee {
  display: flex;
  gap: 60px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.client-marquee:hover {
  animation-play-state: paused;
}

.client-marquee .marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.client-marquee .marquee-item:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(239, 55, 36, 0.15);
}

.client-marquee .marquee-item img {
  max-width: 100px;
  max-height: 50px;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.4s ease;
}

.client-marquee .marquee-item:hover img {
  filter: grayscale(0%) opacity(1);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Reverse direction marquee for second row */
.client-marquee.reverse {
  animation-direction: reverse;
}

/* ============================================
   ALTERNATIVE: LOGO GRID WITH GLOW EFFECT
   ============================================ */

.page-client .img-place.glow-effect {
  position: relative;
}

.page-client .img-place.glow-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(239, 55, 36, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease;
  border-radius: 50%;
  z-index: 0;
}

.page-client .img-place.glow-effect:hover::after {
  transform: translate(-50%, -50%) scale(1.5);
}

/* ============================================
   LOGO PULSE RING ANIMATION
   ============================================ */

.page-client .img-place.pulse-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(239, 55, 36, 0.3);
  border-radius: 20px;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 0;
}

.page-client .img-place.pulse-ring:hover::before {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
  animation: pulseRing 1.5s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0;
  }
}

/* ============================================
   LOGO CARD SPOTLIGHT EFFECT
   ============================================ */

.page-client .img-place.spotlight {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  background:
    radial-gradient(
      circle at var(--spotlight-x) var(--spotlight-y),
      rgba(239, 55, 36, 0.1) 0%,
      transparent 50%
    ),
    rgba(255, 255, 255, 0.7);
}

/* ============================================
   RESPONSIVE CLIENTS SECTION
   ============================================ */

@media (max-width: 991.98px) {
  .page-client {
    padding: 60px 0;
  }

  .page-client .row {
    gap: 15px;
  }

  .page-client .img-place {
    padding: 20px 25px;
  }

  .page-client .img-place img {
    max-width: 100px;
    max-height: 50px;
  }

  .client-marquee-container::before,
  .client-marquee-container::after {
    width: 80px;
  }

  .client-marquee {
    gap: 40px;
  }
}

@media (max-width: 767.98px) {
  .page-client {
    padding: 50px 0;
  }

  .page-client .row {
    gap: 12px;
  }

  .page-client .img-place {
    padding: 15px 20px;
    border-radius: 15px;
  }

  .page-client .img-place img {
    max-width: 80px;
    max-height: 40px;
  }

  /* Reduce bobbing on mobile */
  @keyframes logoBob {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }

  .client-marquee-container::before,
  .client-marquee-container::after {
    width: 50px;
  }

  .client-marquee {
    gap: 30px;
    animation-duration: 20s;
  }

  .client-marquee .marquee-item {
    padding: 15px 20px;
  }

  .client-marquee .marquee-item img {
    max-width: 70px;
    max-height: 35px;
  }
}

@media (max-width: 575.98px) {
  .page-client .img-place[data-tooltip]::after {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .page-client::after {
    display: none;
  }
}

/* Print styles for clients section */
@media print {
  .page-client .item {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .page-client .img-place img {
    filter: none;
  }

  .client-marquee {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================
   CONTACT SECTION ENHANCEMENTS
   ============================================ */

/* Contact Section Container */
.page-contact {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

/* Dark Mode Background */
[data-theme="dark"] .page-contact {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Light Mode Background */
:root:not([data-theme="dark"]) .page-contact {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f1f3f5 100%);
}

/* Animated Background */
.page-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(239, 55, 36, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(239, 55, 36, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Floating particles in background */
.page-contact::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(239, 55, 36, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  top: 20%;
  right: -10%;
  animation: contactOrb 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes contactOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-30px, 30px) scale(1.2);
    opacity: 0.8;
  }
}

.page-contact .container,
.page-contact .container-fluid {
  position: relative;
  z-index: 1;
}

/* Section Title */
.page-contact h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
}

.page-contact .badge-subhead {
  background: rgba(239, 55, 36, 0.2);
  color: #ef3724;
  border: 1px solid rgba(239, 55, 36, 0.3);
}

/* ============================================
   GOOGLE MAPS DARK MODE STYLING
   ============================================ */

.page-contact .vg-maps {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  min-height: 450px;
}

.page-contact .google-maps-container {
  width: 100%;
  height: 100%;
  min-height: 450px;
  filter: grayscale(1) contrast(1.1) brightness(0.9);
  transition: filter 0.5s ease;
}

.page-contact .vg-maps:hover .google-maps-container {
  filter: grayscale(0.5) contrast(1.05) brightness(0.95);
}

/* Dark mode overlay for maps */
.page-contact .vg-maps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.3) 0%,
    rgba(15, 52, 96, 0.2) 100%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.page-contact .vg-maps:hover::before {
  opacity: 0.5;
}

/* Map pin pulse animation overlay */
.page-contact .vg-maps::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(239, 55, 36, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: mapPinPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mapPinPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 55, 36, 0.5);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(239, 55, 36, 0);
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* ============================================
   CONTACT FORM GLASSMORPHISM CONTAINER
   ============================================ */

.page-contact .vg-contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 40px 35px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.page-contact .vg-contact-form:hover {
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(239, 55, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(239, 55, 36, 0.2);
}

/* ============================================
   FLOATING LABEL INPUTS
   ============================================ */

.page-contact .form-group-float {
  position: relative;
  margin-bottom: 25px;
}

.page-contact .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 18px 20px;
  font-size: 1rem;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.page-contact .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

/* Input Focus States */
.page-contact .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(239, 55, 36, 0.6);
  outline: none;
  box-shadow:
    0 0 0 4px rgba(239, 55, 36, 0.15),
    0 5px 20px rgba(239, 55, 36, 0.2);
}

.page-contact .form-control:focus::placeholder {
  opacity: 0;
  transform: translateY(-10px);
}

/* Floating Label */
.page-contact .floating-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding: 0 5px;
}

.page-contact textarea ~ .floating-label {
  top: 20px;
  transform: translateY(0);
}

.page-contact .form-control:focus ~ .floating-label,
.page-contact .form-control:not(:placeholder-shown) ~ .floating-label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #ef3724;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 46, 0.9) 50%);
}

/* Input Glow Effect Animation */
@keyframes inputGlow {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(239, 55, 36, 0.15),
      0 5px 20px rgba(239, 55, 36, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(239, 55, 36, 0.1),
      0 5px 25px rgba(239, 55, 36, 0.25);
  }
}

.page-contact .form-control:focus {
  animation: inputGlow 2s ease-in-out infinite;
}

/* Textarea specific */
.page-contact textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   FORM VALIDATION ANIMATIONS
   ============================================ */

/* Invalid state */
.page-contact .form-control.is-invalid {
  border-color: #dc3545;
  animation: inputShake 0.5s ease-in-out;
}

@keyframes inputShake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(10px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}

/* Invalid pulse effect */
.page-contact .form-control.is-invalid {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
}

/* Valid state */
.page-contact .form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
}

/* Validation icon indicator */
.page-contact .form-group-float .validation-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: all 0.3s ease;
}

.page-contact .form-control.is-valid ~ .validation-icon.valid,
.page-contact .form-control.is-invalid ~ .validation-icon.invalid {
  opacity: 1;
}

.page-contact .validation-icon.valid {
  color: #28a745;
}

.page-contact .validation-icon.invalid {
  color: #dc3545;
}

/* Error message styling */
.page-contact .invalid-feedback {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.page-contact .form-control.is-invalid ~ .invalid-feedback {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SEND BUTTON ANIMATION
   ============================================ */

.page-contact .btn-submit,
.page-contact .btn-theme {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #ef3724 0%, #ff6b5b 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 20px rgba(239, 55, 36, 0.3);
}

/* Button hover effect */
.page-contact .btn-submit:hover,
.page-contact .btn-theme:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(239, 55, 36, 0.4);
}

/* Shimmer effect */
.page-contact .btn-submit::before,
.page-contact .btn-theme::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.page-contact .btn-submit:hover::before,
.page-contact .btn-theme:hover::before {
  left: 100%;
}

/* Button icon */
.page-contact .btn-submit .btn-icon,
.page-contact .btn-theme .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.page-contact .btn-submit:hover .btn-icon,
.page-contact .btn-theme:hover .btn-icon {
  transform: translateX(5px);
}

/* Loading state */
.page-contact .btn-submit.loading,
.page-contact .btn-theme.loading {
  pointer-events: none;
  opacity: 0.8;
}

.page-contact .btn-submit.loading .btn-text,
.page-contact .btn-theme.loading .btn-text {
  opacity: 0;
}

.page-contact .btn-submit.loading::after,
.page-contact .btn-theme.loading::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: buttonSpinner 0.8s linear infinite;
}

@keyframes buttonSpinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Send icon animation on hover */
.page-contact .btn-submit .send-icon,
.page-contact .btn-theme .send-icon {
  transition: all 0.3s ease;
}

.page-contact .btn-submit:hover .send-icon,
.page-contact .btn-theme:hover .send-icon {
  transform: translateX(5px) rotate(45deg);
}

/* Ripple effect on click */
.page-contact .btn-submit .ripple,
.page-contact .btn-theme .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: buttonRipple 0.6s ease-out;
  pointer-events: none;
}

@keyframes buttonRipple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   SUCCESS STATE ANIMATION
   ============================================ */

/* Success overlay */
.page-contact .form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 10;
}

.page-contact .vg-contact-form.success .form-success-overlay {
  opacity: 1;
  visibility: visible;
}

/* Success checkmark animation */
.page-contact .success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745, #34ce57);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transform: scale(0);
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.2s;
}

@keyframes successPop {
  0% {
    transform: scale(0) rotate(-45deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.page-contact .success-checkmark svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkmarkDraw 0.4s ease forwards;
  animation-delay: 0.5s;
}

@keyframes checkmarkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Success message */
.page-contact .success-message {
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: successTextFade 0.4s ease forwards;
  animation-delay: 0.7s;
}

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

.page-contact .success-message h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #28a745;
}

.page-contact .success-message p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Confetti burst effect */
.page-contact .success-confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.page-contact .success-confetti span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: confettiBurst 1s ease-out forwards;
}

.page-contact .success-confetti span:nth-child(1) { background: #ef3724; animation-delay: 0.3s; }
.page-contact .success-confetti span:nth-child(2) { background: #ffd700; animation-delay: 0.35s; }
.page-contact .success-confetti span:nth-child(3) { background: #28a745; animation-delay: 0.4s; }
.page-contact .success-confetti span:nth-child(4) { background: #007bff; animation-delay: 0.45s; }
.page-contact .success-confetti span:nth-child(5) { background: #ff6b5b; animation-delay: 0.5s; }
.page-contact .success-confetti span:nth-child(6) { background: #6f42c1; animation-delay: 0.55s; }

@keyframes confettiBurst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx, 50px), var(--ty, -50px)) scale(0);
    opacity: 0;
  }
}

.page-contact .success-confetti span:nth-child(1) { --tx: -60px; --ty: -80px; }
.page-contact .success-confetti span:nth-child(2) { --tx: 70px; --ty: -70px; }
.page-contact .success-confetti span:nth-child(3) { --tx: -50px; --ty: 60px; }
.page-contact .success-confetti span:nth-child(4) { --tx: 80px; --ty: 50px; }
.page-contact .success-confetti span:nth-child(5) { --tx: -30px; --ty: -90px; }
.page-contact .success-confetti span:nth-child(6) { --tx: 40px; --ty: 80px; }

/* ============================================
   CONTACT CARDS WITH ICONS
   ============================================ */

.page-contact .contact-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.page-contact .contact-info-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.page-contact .contact-info-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(239, 55, 36, 0.3);
  box-shadow: 0 15px 40px rgba(239, 55, 36, 0.15);
}

/* Card icon */
.page-contact .contact-info-card .card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.2), rgba(255, 107, 91, 0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.page-contact .contact-info-card .card-icon img,
.page-contact .contact-info-card .card-icon svg {
  width: 28px;
  height: 28px;
  transition: all 0.4s ease;
}

.page-contact .contact-info-card:hover .card-icon {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  transform: scale(1.1) rotate(10deg);
}

.page-contact .contact-info-card:hover .card-icon img,
.page-contact .contact-info-card:hover .card-icon svg {
  filter: brightness(0) invert(1);
  transform: scale(1.1);
}

/* Card content */
.page-contact .contact-info-card h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.page-contact .contact-info-card p,
.page-contact .contact-info-card a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  transition: color 0.3s ease;
}

.page-contact .contact-info-card a:hover {
  color: #ef3724;
}

/* Card shimmer effect */
.page-contact .contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.page-contact .contact-info-card:hover::before {
  left: 150%;
}

/* ============================================
   SOCIAL ICONS HOVER BURST
   ============================================ */

.page-contact .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-contact .social-link {
  position: relative;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.page-contact .social-link img,
.page-contact .social-link svg {
  width: 22px;
  height: 22px;
  transition: all 0.4s ease;
  filter: brightness(0) invert(1) opacity(0.7);
}

/* Hover burst effect */
.page-contact .social-link:hover {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.4);
}

.page-contact .social-link:hover img,
.page-contact .social-link:hover svg {
  filter: brightness(0) invert(1);
  transform: scale(1.1);
}

/* Burst ring animation */
.page-contact .social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(239, 55, 36, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: all 0.4s ease;
}

.page-contact .social-link:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
  opacity: 1;
  animation: socialBurst 0.6s ease-out forwards;
}

@keyframes socialBurst {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Multiple burst rings */
.page-contact .social-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(239, 55, 36, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

.page-contact .social-link:hover::after {
  animation: socialBurst 0.6s ease-out 0.1s forwards;
}

/* Platform-specific colors on hover */
.page-contact .social-link.github:hover {
  background: linear-gradient(135deg, #333, #24292e);
}

.page-contact .social-link.linkedin:hover {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.page-contact .social-link.twitter:hover {
  background: linear-gradient(135deg, #1da1f2, #14171a);
}

.page-contact .social-link.instagram:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.page-contact .social-link.facebook:hover {
  background: linear-gradient(135deg, #1877f2, #3b5998);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.page-contact .vg-maps,
.page-contact .vg-contact-form,
.page-contact .contact-info-card {
  opacity: 0;
  transform: translateY(40px);
}

.page-contact .vg-maps.revealed,
.page-contact .vg-contact-form.revealed,
.page-contact .contact-info-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Staggered reveal for contact cards */
.page-contact .contact-info-card:nth-child(1) { transition-delay: 0.1s; }
.page-contact .contact-info-card:nth-child(2) { transition-delay: 0.2s; }
.page-contact .contact-info-card:nth-child(3) { transition-delay: 0.3s; }
.page-contact .contact-info-card:nth-child(4) { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE CONTACT SECTION
   ============================================ */

@media (max-width: 991.98px) {
  .page-contact {
    padding: 60px 0;
  }

  .page-contact .vg-maps {
    min-height: 350px;
    margin-bottom: 30px;
  }

  .page-contact .vg-contact-form {
    padding: 30px 25px;
  }

  .page-contact .contact-info-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 767.98px) {
  .page-contact {
    padding: 50px 0;
  }

  .page-contact .vg-maps {
    min-height: 300px;
    border-radius: 15px;
  }

  .page-contact .google-maps-container {
    min-height: 300px;
  }

  .page-contact .vg-contact-form {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .page-contact .form-control {
    padding: 15px;
    font-size: 0.95rem;
  }

  .page-contact .btn-submit,
  .page-contact .btn-theme {
    width: 100%;
    padding: 14px 30px;
  }

  .page-contact .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .page-contact .social-links {
    gap: 12px;
  }

  .page-contact .social-link {
    width: 45px;
    height: 45px;
  }

  .page-contact::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .page-contact .success-checkmark {
    width: 60px;
    height: 60px;
  }

  .page-contact .success-checkmark svg {
    width: 30px;
    height: 30px;
  }

  .page-contact .success-message h4 {
    font-size: 1.25rem;
  }

  .page-contact .contact-info-card {
    padding: 20px;
  }

  .page-contact .contact-info-card .card-icon {
    width: 50px;
    height: 50px;
  }
}

/* Print styles for contact section */
@media print {
  .page-contact {
    background: #fff;
    padding: 30px 0;
  }

  .page-contact .vg-maps,
  .page-contact .vg-contact-form,
  .page-contact .contact-info-card {
    opacity: 1;
    transform: none;
  }

  .page-contact .vg-contact-form {
    background: #f8f9fa;
    border: 1px solid #ddd;
  }

  .page-contact h1,
  .page-contact .form-control,
  .page-contact .contact-info-card p {
    color: #333;
  }

  .page-contact .vg-maps::before,
  .page-contact .vg-maps::after {
    display: none;
  }
