/* Enhanced Micro-Interactions */

/* Button Hover Effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* Button Ripple Effect */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Form Input Animations */
.form-group-single {
  position: relative;
  margin-bottom: 25px;
}

.form-group-single input,
.form-group-single textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #414141;
  border-radius: 8px;
  background: #000000;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.form-group-single input:focus,
.form-group-single textarea:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Floating Label Effect */
.form-group-single label {
  position: absolute;
  top: 15px;
  left: 20px;
  color: #757575;
  transition: all 0.3s ease;
  pointer-events: none;
  background: #000000;
  padding: 0 5px;
}

.form-group-single input:focus + label,
.form-group-single input:not(:placeholder-shown) + label,
.form-group-single textarea:focus + label,
.form-group-single textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 15px;
  font-size: 12px;
  color: #ff0000;
  font-weight: 600;
}

/* Card Hover Effects */
.portfolio__single,
.blog__single,
.service-t__slider-single {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.portfolio__single:hover,
.blog__single:hover,
.service-t__slider-single:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image Hover Effects */
.portfolio__single img,
.blog__single-thumb img {
  transition: all 0.4s ease;
}

.portfolio__single:hover img,
.blog__single-thumb:hover img {
  transform: scale(1.05);
}

/* Navigation Hover Effects */
.navbar__item a {
  position: relative;
  transition: all 0.3s ease;
}

.navbar__item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--theme-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar__item a:hover::after {
  width: 100%;
}

/* Social Media Icons */
.social a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Bounce Animation */
.bounce {
  animation: bounce 2s infinite;
}

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

/* Shake Animation */
.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Success Animation */
.success {
  animation: success 0.6s ease-in-out;
}

@keyframes success {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Error Animation */
.error {
  animation: error 0.6s ease-in-out;
}

@keyframes error {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Tooltip */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #414141;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #414141;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Progress Bar Animation */
.progress-bar {
  width: 100%;
  height: 6px;
  background: #414141;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #ff0000, transparent);
  animation: progress 2s infinite;
}

@keyframes progress {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Text Typing Effect */
.typing {
  overflow: hidden;
  border-right: 2px solid #ff0000;
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

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

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #ff0000; }
}

/* Hover Card Effect */
.hover-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.hover-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.hover-card:hover::before {
  left: 100%;
}

/* Magnetic Effect */
.magnetic {
  transition: transform 0.3s ease;
}

.magnetic:hover {
  transform: scale(1.05);
}

/* Glow Effect */
.glow {
  transition: all 0.3s ease;
}

.glow:hover {
  box-shadow: 0 0 20px #ff0000;
}

/* 3D Flip Effect */
.flip-card {
  perspective: 1000px;
  height: 300px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: #ff0000;
  color: white;
}

/* --- Our Clients section: dark theme, simple logos --- */
.clients-section {
    background: transparent !important;
    position: relative;
    overflow: visible;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-bottom: 40px;
}
.clients-section::before {
    display: none !important;
}
.clients-section .container {
    position: relative;
    z-index: 1;
}
.clients-section .section__header {
    color: #fff;
}
.clients-section .section__header .title,
.clients-section .section__header .title-anim {
    color: #fff !important;
    font-weight: 800;
    letter-spacing: -1px;
}
.clients-section .section__header .text-anim {
    color: #e0e0e0 !important;
    font-size: 1.1rem;
    margin-top: 10px;
}
.clients-section .sub-title {
    display: inline-block;
    background: #111;
    color: #e53935;
    border: 2px solid #e53935;
    border-radius: 2em;
    padding: 0.4em 1.4em 0.4em 1.2em;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    box-shadow: none;
    margin-bottom: 1.2em;
    position: relative;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}
.clients-section .sub-title i {
    margin-left: 0.5em;
    font-size: 1.1em;
    vertical-align: middle;
}
.client-logo {
    background: transparent !important;
    border-radius: 0;
    padding: 1.5rem 0.5rem;
    text-align: center;
    box-shadow: none !important;
    border: none !important;
    position: relative;
    overflow: visible;
    transition: none !important;
}
.client-logo::before {
    display: none !important;
}
.client-logo:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: none !important;
}
.client-img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
}
.client-logo:hover .client-img {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .client-logo {
        padding: 1rem 0.2rem;
        margin-bottom: 1rem;
    }
    .client-img {
        max-height: 50px;
    }
}
@media (max-width: 576px) {
    .client-logo {
        padding: 0.7rem 0.1rem;
    }
    .client-img {
        max-height: 40px;
    }
}
/* Remove fade-in and stagger for logos */
.client-logo.fade-top,
.client-logo.fade-top.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
} 

/* --- Testimonials: text-only card layout (all pages) --- */
.section.testimonial .testimonial-s__slider-single .row {
  justify-content: center;
}

.section.testimonial .testimonial-s__content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 28px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.section.testimonial .testimonial-s__content .quote {
  margin-bottom: 10px;
}

.section.testimonial .testimonial-s__content .quote i {
  font-size: 28px;
  color: #e63946;
}

.section.testimonial .testimonial-s__content .content h4 {
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.35rem);
  line-height: 1.6;
  margin-bottom: 14px;
  text-transform: none;
}

.section.testimonial .testimonial-s__content .content-cta h5 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.section.testimonial .testimonial-s__content .content-cta p {
  font-size: 0.95rem;
  margin-bottom: 0;
  opacity: 0.9;
}

@media (max-width: 576px) {
  .section.testimonial .testimonial-s__content {
    padding: 18px 16px 16px;
    border-radius: 14px;
  }
  .section.testimonial .testimonial-s__content .quote i {
    font-size: 24px;
  }
}