/* ======= Gallery Styles ======= */
.gallery {
  background-color: rgba(var(--inverse-color-rgb), 0.02);
  overflow: hidden;
}

.gallery .subtitle {
  background-color: rgba(var(--bs-secondary-rgb), 0.2);
  color: var(--bs-primary);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.gallery-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 768px) {
  .gallery-container {
    padding: 0 50px;
  }
}

.gallery-track-wrapper {
  overflow: hidden;
  border-radius: 15px;
  cursor: grab;
}

.gallery-track-wrapper:active {
  cursor: grabbing;
}

.gallery-track-wrapper.dragging {
  cursor: grabbing;
}

.gallery-track-wrapper.dragging .gallery-item {
  pointer-events: none;
}

.gallery-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 0;
}

.gallery-item {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  background-color: var(--bs-body-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(var(--bs-black-rgb), 0.08);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 2rem rgba(var(--bs-black-rgb), 0.15);
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: rgba(var(--inverse-color-rgb), 0.05);
}

@media (max-width: 768px) {
  .gallery-image-wrapper {
    height: 320px;
  }
}

@media (max-width: 576px) {
  .gallery-image-wrapper {
    height: 280px;
  }
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--bs-primary-rgb), 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 48px;
  color: var(--bs-white);
  animation: zoomPulse 1.5s ease-in-out infinite;
}

@keyframes zoomPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.gallery-caption {
  text-align: center;
  padding: 25px;
  background-color: var(--bs-body-bg);
}

.gallery-caption h4 {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-heading-color);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.gallery-item:hover .gallery-caption h4 {
  color: var(--bs-primary);
}

.gallery-caption p {
  font-size: 0.9375rem;
  color: var(--bs-body-color);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Navigation Buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  color: var(--bs-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 0.25rem 0.5rem rgba(var(--bs-black-rgb), 0.15);
}

.gallery-nav:hover {
  background-color: var(--bs-primary-hover);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0.5rem 1rem rgba(var(--bs-black-rgb), 0.2);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav i {
  font-size: 24px;
}

.gallery-nav-prev {
  left: 0;
}

.gallery-nav-next {
  right: 0;
}

@media (max-width: 768px) {
  .gallery-nav {
    width: 40px;
    height: 40px;
  }
  .gallery-nav i {
    font-size: 20px;
  }
}

/* Gallery Indicators */
.gallery-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(var(--inverse-color-rgb), 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.indicator:hover {
  background-color: rgba(var(--inverse-color-rgb), 0.4);
  transform: scale(1.2);
}

.indicator.active {
  background-color: var(--bs-primary);
  width: 32px;
  border-radius: 6px;
}

.indicator.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: 2px solid rgba(var(--bs-primary-rgb), 0.3);
  border-radius: 8px;
  animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Smooth Animation */
.gallery-track.animating {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loading State */
.gallery-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(var(--inverse-color-rgb), 0.05) 0%, 
    rgba(var(--inverse-color-rgb), 0.1) 50%, 
    rgba(var(--inverse-color-rgb), 0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 1;
}

.gallery-image-wrapper img {
  position: relative;
  z-index: 2;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}



/* Additional Styles */
/* ========================================
   ENHANCED GUI IMPROVEMENTS
   Preserving original color scheme
   ======================================== */

/* ===== SMOOTH SCROLLING & TRANSITIONS ===== */
html {
  scroll-behavior: smooth;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* ===== ENHANCED HERO SECTION ===== */
.hero__v6 {
  background: linear-gradient(135deg, 
    rgba(var(--bs-secondary-rgb), 0.05) 0%, 
    rgba(var(--inverse-color-rgb), 0.02) 100%);
  position: relative;
  overflow: hidden;
}

.hero__v6::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, 
    rgba(var(--bs-secondary-rgb), 0.15) 0%, 
    transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero__v6::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, 
    rgba(var(--bs-secondary-rgb), 0.1) 0%, 
    transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero__v6 .hero-subtitle {
  background: linear-gradient(135deg, 
    rgba(var(--bs-secondary-rgb), 0.9), 
    rgba(var(--bs-secondary-rgb), 0.7));
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(var(--bs-secondary-rgb), 0.3);
  animation: slideInFromTop 0.8s ease-out;
}

.hero__v6 .hero-title {
  background: linear-gradient(135deg, 
    var(--bs-heading-color) 0%, 
    var(--bs-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInFromLeft 1s ease-out;
}

.hero__v6 .hero-img .img-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInFromBottom 1.2s ease-out;
}

.hero__v6 .hero-img .img-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(var(--bs-black-rgb), 0.2);
}

/* ===== ENHANCED BUTTONS ===== */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.2);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.3);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(var(--bs-primary-rgb), 0.2);
}

/* ===== ENHANCED CARDS ===== */
.service-card,
.testimonial,
.price-table,
.gallery-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before,
.testimonial::before,
.price-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(var(--bs-secondary-rgb), 0.1), 
    transparent);
  transition: left 0.6s;
}

.service-card:hover::before,
.testimonial:hover::before,
.price-table:hover::before {
  left: 100%;
}

.service-card:hover,
.testimonial:hover,
.price-table:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(var(--bs-black-rgb), 0.12);
  border-color: rgba(var(--bs-secondary-rgb), 0.3);
}

/* ===== ENHANCED ICONS ===== */
.features__v2 .icon,
.services__v3 .icon,
.about__v4 .mission-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.features__v2 .icon:hover,
.about__v4 .mission-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(var(--bs-secondary-rgb), 0.4);
}

.services__v3 .icon:hover {
  transform: translateY(-5px) scale(1.05);
}

/* ===== ENHANCED STEP CARDS ===== */
.howitworks__v1 .step-card {
  transition: all 0.4s ease;
}

.howitworks__v1 .step-card:hover {
  transform: scale(1.05);
}

.howitworks__v1 .step-number {
  position: relative;
  transition: all 0.4s ease;
}

.howitworks__v1 .step-number::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid var(--bs-secondary);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.4s ease;
}

.howitworks__v1 .step-card:hover .step-number::after {
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 1;
}

/* ===== ENHANCED PRICING CARDS ===== */
.pricing__v2 .price-table {
  transform-style: preserve-3d;
}

.pricing__v2 .popular {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 20px 60px rgba(var(--bs-primary-rgb), 0.3);
}

/* ===== ENHANCED GALLERY ===== */
.gallery-item {
  transform-style: preserve-3d;
  perspective: 800px;
}

.gallery-item:hover {
  box-shadow: 0 20px 60px rgba(var(--bs-black-rgb), 0.2);
}

.gallery-overlay {
  backdrop-filter: blur(5px);
}

.gallery-nav {
  backdrop-filter: blur(10px);
  background: rgba(var(--bs-primary-rgb), 0.95);
}

.gallery-nav::after {
  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.4s, height 0.4s;
}

.gallery-nav:hover::after {
  width: 100%;
  height: 100%;
}

/* ===== ENHANCED TESTIMONIALS ===== */
.testimonial {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(var(--bs-secondary-rgb), 0.05) 100%);
}

.testimonial blockquote {
  position: relative;
  padding-left: 30px;
}

.testimonial blockquote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  color: rgba(var(--bs-secondary-rgb), 0.3);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ===== ENHANCED STATS SECTION ===== */
.stats__v3 .content {
  position: relative;
}

.stats__v3 .content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

/* ===== ENHANCED FORM CONTROLS ===== */
.form-control {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.form-control:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(var(--bs-primary-rgb), 0.15);
  border-width: 2px;
}

/* ===== ENHANCED LINKS ===== */
a {
  position: relative;
  display: inline-block;
}

a:not(.btn):not(.nav-link)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--bs-primary), 
    rgba(var(--bs-secondary-rgb), 1));
  transition: width 0.3s ease;
}

a:not(.btn):not(.nav-link):hover::after {
  width: 100%;
}

/* ===== ENHANCED SECTIONS ===== */
.section {
  position: relative;
  transition: all 0.3s ease;
}

/* Alternating section backgrounds */
.section:nth-child(even) {
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(var(--inverse-color-rgb), 0.02) 50%, 
    transparent 100%);
}

/* ===== ENHANCED SUBTITLE BADGES ===== */
.subtitle {
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(var(--bs-secondary-rgb), 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(var(--bs-secondary-rgb), 0.5);
  }
}

/* ===== ENHANCED FOOTER ===== */
.footer {
  background: linear-gradient(to bottom, 
    rgba(var(--inverse-color-rgb), 0.02) 0%, 
    rgba(var(--inverse-color-rgb), 0.05) 100%);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(var(--bs-secondary-rgb), 0.5), 
    transparent);
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ENHANCED BACK TO TOP BUTTON ===== */
#back-to-top {
  backdrop-filter: blur(10px);
  background: rgba(var(--bs-primary-rgb), 0.9);
}

#back-to-top::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

#back-to-top:hover::before {
  width: 100%;
  height: 100%;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.3);
}

/* ===== ENHANCED ACCORDION ===== */
.faq__v2 .custom-accordion .accordion-item {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(var(--inverse-color-rgb), 0.02) 100%);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.faq__v2 .custom-accordion .accordion-item:hover {
  border-left-color: rgba(var(--bs-secondary-rgb), 0.7);
  transform: translateX(5px);
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes shimmerEnhanced {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(var(--bs-black-rgb), 0.1);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
  .hero__v6::before,
  .hero__v6::after {
    width: 300px;
    height: 300px;
  }
  
  .pricing__v2 .popular::after {
    font-size: 0.6rem;
    padding: 4px 10px;
  }
}

/* ===== SMOOTH PAGE TRANSITIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: fadeIn 0.5s ease-in;
}

/* ===== ENHANCED HOVER STATES ===== */
.nav-link,
.dropdown-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.dropdown-item:hover {
  transform: translateX(5px);
}

/* ===== SHADOW DEPTH SYSTEM ===== */
.shadow-soft {
  box-shadow: 0 2px 10px rgba(var(--bs-black-rgb), 0.05);
}

.shadow-medium {
  box-shadow: 0 5px 20px rgba(var(--bs-black-rgb), 0.08);
}

.shadow-strong {
  box-shadow: 0 10px 40px rgba(var(--bs-black-rgb), 0.12);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(var(--inverse-color-rgb), 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, 
    rgba(var(--bs-secondary-rgb), 0.7), 
    rgba(var(--bs-primary-rgb), 0.7));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, 
    rgba(var(--bs-secondary-rgb), 1), 
    rgba(var(--bs-primary-rgb), 1));
}