/*
=====================================
RRV Agencia Aduanal - Premium Enhancements
=====================================
Animations, hover effects, and visual polish
Designed to work ON TOP of style.css
*/

/* =====================================
   1. Keyframe Animations
   ===================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================
   2. Scroll Animation Triggers
   ===================================== */

[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"] {
  transform: translateY(30px);
}

[data-animate="fade-up"].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-down"] {
  transform: translateY(-30px);
}

[data-animate="fade-down"].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(-50px);
}

[data-animate="fade-left"].animated {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="fade-right"] {
  transform: translateX(50px);
}

[data-animate="fade-right"].animated {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate="fade-in"].animated {
  opacity: 1;
}

[data-animate="scale-in"] {
  transform: scale(0.8);
}

[data-animate="scale-in"].animated {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation delays */
[data-animate-delay="100"].animated {
  transition-delay: 0.1s;
}

[data-animate-delay="200"].animated {
  transition-delay: 0.2s;
}

[data-animate-delay="300"].animated {
  transition-delay: 0.3s;
}

[data-animate-delay="400"].animated {
  transition-delay: 0.4s;
}

[data-animate-delay="500"].animated {
  transition-delay: 0.5s;
}

/* =====================================
   3. Enhanced Hero Section
   ===================================== */

.hero {
  background: linear-gradient(135deg, rgba(43, 46, 78, 0.7) 0%, rgba(165, 54, 146, 0.3) 100%),
              url('../images/hero.jpg') center center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 20px
    );
  z-index: 1;
  pointer-events: none;
}

/* Decorative gradient circles */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(165, 54, 146, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.hero h1 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid rgba(107, 206, 181, 0.5);
  border-radius: 50px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--color-tertiary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-sm);
  animation: fadeInDown 1s ease-out 0.2s backwards;
}

.hero-rotating {
  position: relative;
  min-height: 3.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-subtitle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  will-change: opacity;
}

.hero-subtitle.active {
  opacity: 1;
  visibility: visible;
}

.hero-content > p,
.hero-content .hero-subtitle {
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-buttons .btn {
  position: relative;
  overflow: hidden;
}

.hero-buttons .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.5s ease, height 0.5s ease;
}

.hero-buttons .btn:hover::before {
  width: 300px;
  height: 300px;
}

/* =====================================
   4. Enhanced Stats Bar
   ===================================== */

.stats-bar {
  position: relative;
  background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(26, 26, 46, 1) 100%);
}

.stat-item {
  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: var(--border-radius);
  padding: var(--space-md);
  transition: all var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-number {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

.stat-suffix {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.7em;
  font-weight: 700;
}

.stat-label {
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* =====================================
   5. Enhanced Service Cards
   ===================================== */

.service-card {
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-slow);
  z-index: 1;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(165, 54, 146, 0.15),
              0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card-icon,
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
  font-size: 1.75rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover .service-card-icon,
.service-card:hover .service-icon {
  transform: rotate(360deg);
  box-shadow: 0 8px 20px rgba(165, 54, 146, 0.4);
}

.service-card-icon svg,
.service-icon svg {
  stroke: var(--color-white);
  fill: none;
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.service-link {
  position: relative;
  transition: all var(--transition-base);
}

.service-link:hover {
  color: #8b2b7a;
  transform: translateX(4px);
}

.service-link::after {
  transition: transform var(--transition-fast);
}

.service-link:hover::after {
  transform: translateX(8px);
}

/* =====================================
   6. Enhanced Testimonial Cards
   ===================================== */

.testimonial-card {
  border-left: 3px solid transparent;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card:hover::after {
  transform: scaleY(1);
}

.testimonial-quote {
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: -1rem;
  top: -2rem;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  font-weight: 700;
}

.testimonial-author {
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
  border-top: 2px solid rgba(165, 54, 146, 0.1);
  transition: border-color var(--transition-base);
}

.testimonial-card:hover .testimonial-author {
  border-top-color: var(--color-primary);
}

.testimonial-avatar {
  transition: transform var(--transition-base);
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.1);
}

/* =====================================
   7. Enhanced Mission/Vision Cards
   ===================================== */

.mv-card {
  border-top: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.mv-card:hover::before {
  transform: scaleX(1);
}

.mv-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.mv-card-icon,
.mv-icon {
  background: linear-gradient(135deg, rgba(107, 206, 181, 0.1) 0%, rgba(165, 54, 146, 0.05) 100%);
  color: var(--color-tertiary);
  transition: all var(--transition-base);
}

.mv-card:hover .mv-card-icon,
.mv-card:hover .mv-icon {
  background: var(--gradient-primary);
  color: var(--color-white);
  transform: scale(1.1) rotate(5deg);
}

/* =====================================
   8. Enhanced Contact Section
   ===================================== */

.contact-info {
  background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(26, 26, 46, 1) 100%);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(165, 54, 146, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.contact-info .container,
.contact-info > * {
  position: relative;
  z-index: 1;
}

.contact-details li {
  transition: all var(--transition-base);
  padding: var(--space-sm);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-sm);
}

.contact-details li:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.contact-info-item {
  transition: all var(--transition-base);
}

.contact-info-item:hover {
  transform: translateX(4px);
}

.contact-info-item:hover .contact-info-icon {
  background: rgba(165, 54, 146, 0.4);
  transform: scale(1.1);
}

.contact-info-icon {
  transition: all var(--transition-base);
}

.contact-details svg,
.contact-info-icon svg {
  stroke: var(--color-tertiary);
  fill: none;
  transition: stroke var(--transition-base);
}

.contact-info-item:hover svg {
  stroke: var(--color-white);
}

/* Enhanced form inputs */
.form-group input,
.form-group select,
.form-group textarea {
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(165, 54, 146, 0.1),
              0 4px 12px rgba(165, 54, 146, 0.15);
  transform: translateY(-2px);
}

.form-group label {
  transition: color var(--transition-fast);
}

.form-group input:focus ~ label,
.form-group select:focus ~ label,
.form-group textarea:focus ~ label {
  color: var(--color-primary);
}

/* Custom select arrow */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a53692' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

/* Enhanced button animations */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  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.5s ease, height 0.5s ease;
  z-index: -1;
}

.btn:hover::after {
  width: 400px;
  height: 400px;
}

.btn-primary:hover {
  background-color: #8b2b7a;
  box-shadow: 0 8px 25px rgba(165, 54, 146, 0.4);
  transform: translateY(-3px) scale(1.02);
}

.btn-secondary:hover {
  box-shadow: 0 8px 25px rgba(107, 206, 181, 0.3);
}

.btn-accent:hover {
  background-color: #3a3e66;
  box-shadow: 0 8px 25px rgba(43, 46, 78, 0.4);
}

/* =====================================
   9. WhatsApp Float Button Enhanced
   ===================================== */

.whatsapp-float {
  background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  animation: pulse 2s infinite;
  overflow: hidden;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.whatsapp-float:hover::before {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float svg {
  fill: var(--color-white);
  width: 60%;
  height: 60%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Pulse ring effect */
.whatsapp-float::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* =====================================
   10. Enhanced Navigation
   ===================================== */

.nav-menu a {
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active::after {
  background: var(--gradient-primary);
}

/* Enhanced scrolled state */
.site-header.scrolled {
  background: rgba(43, 46, 78, 0.98);
  padding: 0.25rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header.scrolled .navbar {
  padding: 0.5rem 0;
}

.site-header.scrolled .site-logo img {
  height: 40px;
  transition: height var(--transition-base);
}

/* Mobile menu animation enhancements */
@media (max-width: 768px) {
  .nav-menu {
    background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(26, 26, 46, 0.98) 100%);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
      repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.02) 20px
      );
    pointer-events: none;
  }

  .nav-menu li {
    animation: slideInRight 0.3s ease-out backwards;
  }

  .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
  .nav-menu li:nth-child(2) { animation-delay: 0.15s; }
  .nav-menu li:nth-child(3) { animation-delay: 0.2s; }
  .nav-menu li:nth-child(4) { animation-delay: 0.25s; }
  .nav-menu li:nth-child(5) { animation-delay: 0.3s; }
  .nav-menu li:nth-child(6) { animation-delay: 0.35s; }
  .nav-menu li:nth-child(7) { animation-delay: 0.4s; }
  .nav-menu li:nth-child(8) { animation-delay: 0.45s; }

  .nav-menu.active li {
    animation-name: slideInRight;
  }
}

/* Hamburger to X animation */
.nav-toggle span {
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* =====================================
   11. Enhanced Footer
   ===================================== */

.footer-col a {
  position: relative;
  transition: all var(--transition-base);
}

.footer-col a::before {
  content: '→';
  position: absolute;
  left: -1.25rem;
  opacity: 0;
  transition: all var(--transition-fast);
  color: var(--color-primary);
}

.footer-col a:hover {
  color: var(--color-primary);
  transform: translateX(1.25rem);
}

.footer-col a:hover::before {
  opacity: 1;
  left: -1rem;
}

.footer-social a,
.social-links a {
  position: relative;
  overflow: hidden;
}

.footer-social a::before,
.social-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--gradient-primary);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.footer-social a:hover,
.social-links a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(165, 54, 146, 0.4);
}

.footer-social a:hover::before,
.social-links a:hover::before {
  width: 100%;
  height: 100%;
}

.footer-col h3 {
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.footer-col:hover h3::after {
  width: 100%;
}

/* =====================================
   12. Enhanced Section Titles
   ===================================== */

.section-title h2 {
  animation: fadeInUp 0.8s ease-out;
}

.section-title h2::after {
  animation: scaleIn 0.8s ease-out 0.4s backwards;
}

.section-subtitle {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* =====================================
   13. Enhanced FAQ Section
   ===================================== */

.faq-item {
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(165, 54, 146, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.faq-item.active {
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.faq-question {
  position: relative;
}

.faq-question::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.faq-item.active .faq-question::before {
  width: 4px;
}

/* =====================================
   14. Enhanced About Section
   ===================================== */

.about-image {
  position: relative;
  overflow: hidden;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.about-image:hover::after {
  opacity: 0.2;
}

.about-features li {
  transition: all var(--transition-base);
}

.about-features li:hover {
  transform: translateX(8px);
  color: var(--color-secondary);
}

.about-features li::before {
  transition: all var(--transition-base);
}

.about-features li:hover::before {
  transform: scale(1.2);
  color: var(--color-primary);
}

/* =====================================
   15. Loading States & Skeletons
   ===================================== */

.loading-skeleton {
  background: linear-gradient(
    90deg,
    rgba(165, 54, 146, 0.05) 25%,
    rgba(107, 206, 181, 0.05) 50%,
    rgba(165, 54, 146, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--border-radius-sm);
}

/* =====================================
   16. Scroll Progress Indicator
   ===================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* =====================================
   17. Enhanced Utility Animations
   ===================================== */

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform var(--transition-base);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-brightness {
  transition: filter var(--transition-base);
}

.hover-brightness:hover {
  filter: brightness(1.1);
}

/* =====================================
   18. Gradient Text Utilities
   ===================================== */

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-hover {
  transition: all var(--transition-base);
}

.gradient-text-hover:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================
   19. Glass Morphism Utilities
   ===================================== */

.glass {
  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);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =====================================
   20. Performance Optimizations
   ===================================== */

/* Hardware acceleration for smooth animations */
.hero,
.service-card,
.testimonial-card,
.mv-card,
.stat-item,
.whatsapp-float,
.nav-menu,
.btn {
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .whatsapp-float {
    animation: none !important;
  }

  .hero::after {
    animation: none !important;
  }
}

/* =====================================
   14. Hero Video Background
   ===================================== */

.hero-video {
    background: var(--color-secondary);
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 177.78vh; /* 16:9 aspect ratio */
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-video-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 46, 78, 0.75) 0%, rgba(165, 54, 146, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-video .hero-content {
    position: relative;
    z-index: 2;
}

.hero-video::before,
.hero-video::after {
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-video-bg {
        min-width: 300vh;
        min-height: 100vw;
    }
}

/* =====================================
   END OF PREMIUM ENHANCEMENTS
   ===================================== */
