/* -------------------------------------------
   Enhanced UX - Smooth Scrolling & Visual Effects
   ------------------------------------------- */

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Enhanced scroll smoothness */
.mil-wrapper {
  scroll-behavior: smooth;
}

/* ===== CUSTOM CURSOR WITH TRAIL - MAXIMALIST ===== */
.mil-custom-cursor-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

/* Glow background layer */
.mil-cursor-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(93, 72, 212, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease;
}

.mil-cursor-glow.mil-link,
.mil-cursor-glow.mil-button,
.mil-cursor-glow.mil-image,
.mil-cursor-glow.mil-card {
  opacity: 1;
  width: 300px;
  height: 300px;
}

.mil-cursor-glow.mil-button {
  background: radial-gradient(circle, rgba(139, 122, 232, 0.25) 0%, transparent 70%);
}

.mil-cursor-glow.mil-image {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  width: 400px;
  height: 400px;
}

/* Outer ring - maximalist */
.mil-cursor-outer-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(93, 72, 212, 0.15);
  border-radius: 50%;
  will-change: transform;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-cursor-outer-ring.mil-link,
.mil-cursor-outer-ring.mil-button,
.mil-cursor-outer-ring.mil-image,
.mil-cursor-outer-ring.mil-card {
  opacity: 1;
  width: 100px;
  height: 100px;
  border-color: rgba(93, 72, 212, 0.3);
}

.mil-cursor-outer-ring.mil-button {
  width: 120px;
  height: 120px;
  border-width: 2px;
  border-color: rgba(139, 122, 232, 0.5);
}

.mil-cursor-outer-ring.mil-image {
  width: 140px;
  height: 140px;
  border-style: dashed;
}

.mil-cursor-outer-ring.mil-clicking {
  transform: scale(0.8) !important;
}

/* Main cursor dot */
.mil-cursor-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #d4a574 0%, #992800 50%, #e8b87a 100%);
  border-radius: 50%;
  will-change: transform;
  box-shadow: 
    0 0 10px rgba(93, 72, 212, 0.8),
    0 0 20px rgba(93, 72, 212, 0.5),
    0 0 40px rgba(93, 72, 212, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5);
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-cursor-dot.mil-link {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #fff 0%, #a594f9 100%);
  box-shadow: 
    0 0 15px rgba(93, 72, 212, 1),
    0 0 30px rgba(93, 72, 212, 0.6),
    0 0 60px rgba(93, 72, 212, 0.4);
}

.mil-cursor-dot.mil-button {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #fff 0%, #992800 100%);
  box-shadow: 
    0 0 20px rgba(153, 40, 0, 1),
    0 0 40px rgba(139, 122, 232, 0.8),
    0 0 80px rgba(93, 72, 212, 0.5);
}

.mil-cursor-dot.mil-image {
  width: 6px;
  height: 6px;
  background: #fff;
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(93, 72, 212, 0.6);
}

.mil-cursor-dot.mil-input {
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: #992800;
  animation: cursor-blink 1s ease-in-out infinite;
}

.mil-cursor-dot.mil-text {
  width: 8px;
  height: 8px;
  opacity: 0.6;
}

.mil-cursor-dot.mil-card {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #fff 0%, #e8b87a 100%);
}

.mil-cursor-dot.mil-menu {
  width: 12px;
  height: 12px;
  background: #fff;
  mix-blend-mode: difference;
}

.mil-cursor-dot.mil-social {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #ff6b6b 0%, #992800 50%, #3c7f72 100%);
  animation: cursor-rainbow 2s linear infinite;
}

.mil-cursor-dot.mil-clicking {
  transform: scale(0.6) !important;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes cursor-rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Cursor ring */
.mil-cursor-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(93, 72, 212, 0.5);
  border-radius: 50%;
  will-change: transform;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-cursor-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(139, 122, 232, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: cursor-ring-pulse 2s ease-in-out infinite;
}

.mil-cursor-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.mil-cursor-ring.mil-link {
  width: 70px;
  height: 70px;
  border-color: rgba(93, 72, 212, 0.8);
  border-width: 2px;
}

.mil-cursor-ring.mil-link::before {
  animation: cursor-ring-spin 4s linear infinite;
  border-style: dashed;
  border-color: rgba(139, 122, 232, 0.5);
}

.mil-cursor-ring.mil-button {
  width: 80px;
  height: 80px;
  border-color: rgba(139, 122, 232, 1);
  border-width: 3px;
  background: rgba(93, 72, 212, 0.1);
}

.mil-cursor-ring.mil-button::before {
  animation: none;
  opacity: 0;
}

.mil-cursor-ring.mil-image {
  width: 90px;
  height: 90px;
  border-color: rgba(255, 255, 255, 0.6);
  border-width: 1px;
  border-style: dashed;
}

.mil-cursor-ring.mil-image::before {
  animation: cursor-ring-spin 8s linear infinite reverse;
  border-style: dotted;
}

.mil-cursor-ring.mil-input {
  width: 50px;
  height: 30px;
  border-radius: 4px;
  border-color: rgba(93, 72, 212, 0.6);
}

.mil-cursor-ring.mil-input::before {
  display: none;
}

.mil-cursor-ring.mil-text {
  width: 36px;
  height: 36px;
  border-color: rgba(93, 72, 212, 0.2);
  border-width: 1px;
}

.mil-cursor-ring.mil-text::before {
  animation: none;
  opacity: 0;
}

.mil-cursor-ring.mil-card {
  width: 80px;
  height: 80px;
  border-color: rgba(93, 72, 212, 0.7);
  border-radius: 12px;
}

.mil-cursor-ring.mil-card::before {
  border-radius: 12px;
}

.mil-cursor-ring.mil-menu {
  width: 60px;
  height: 60px;
  border-color: #fff;
  mix-blend-mode: difference;
}

.mil-cursor-ring.mil-social {
  width: 50px;
  height: 50px;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(93, 72, 212, 0.3), rgba(78, 205, 196, 0.3));
  animation: cursor-rainbow-bg 3s linear infinite;
}

.mil-cursor-ring.mil-clicking {
  transform: scale(0.85) !important;
}

@keyframes cursor-ring-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

@keyframes cursor-ring-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes cursor-rainbow-bg {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Cursor text label */
.mil-cursor-text {
  position: absolute;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  text-shadow: 0 0 10px rgba(93, 72, 212, 0.8);
}

.mil-cursor-text.mil-visible {
  opacity: 1;
}

.mil-cursor-text.mil-link,
.mil-cursor-text.mil-button,
.mil-cursor-text.mil-card {
  margin-top: 55px;
}

.mil-cursor-text.mil-image {
  margin-top: 65px;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.mil-cursor-text.mil-input {
  margin-top: 35px;
  color: #992800;
  text-shadow: none;
}

/* Cursor trail */
.mil-cursor-trail {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, rgba(139, 122, 232, 0.6) 0%, rgba(93, 72, 212, 0.4) 100%);
  border-radius: 50%;
  will-change: transform, opacity;
  box-shadow: 0 0 6px rgba(93, 72, 212, 0.4);
}

/* Hide the old cursor element */
.mil-ball {
  display: none !important;
}

/* Hide default cursor on desktop */
@media screen and (min-width: 1200px) {
  body,
  a, button, input, textarea,
  [onclick], .mil-link, .mil-button,
  .mil-interactive, img, video,
  h1, h2, h3, h4, h5, h6, p, span {
    cursor: none !important;
  }
}

/* Show default cursor on mobile/tablet */
@media screen and (max-width: 1199px) {
  .mil-custom-cursor-container {
    display: none;
  }
  
  body,
  a, button, input, textarea {
    cursor: auto !important;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .mil-cursor-ring::before {
    animation: none;
  }
  
  .mil-cursor-trail {
    display: none;
  }
  
  .mil-cursor-glow {
    display: none;
  }
  
  .mil-cursor-outer-ring {
    display: none;
  }
}

/* ===== ENHANCED CURSOR EFFECTS (LEGACY - HIDDEN) ===== */
/* Old cursor styles removed - using new custom cursor with trail */

/* ===== MAGNETIC BUTTON EFFECT ===== */
.mil-magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ===== ENHANCED SCROLL ANIMATIONS ===== */
.mil-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-up.mil-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for children */
.mil-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-stagger.mil-visible > *:nth-child(1) { transition-delay: 0.1s; }
.mil-stagger.mil-visible > *:nth-child(2) { transition-delay: 0.2s; }
.mil-stagger.mil-visible > *:nth-child(3) { transition-delay: 0.3s; }
.mil-stagger.mil-visible > *:nth-child(4) { transition-delay: 0.4s; }
.mil-stagger.mil-visible > *:nth-child(5) { transition-delay: 0.5s; }
.mil-stagger.mil-visible > *:nth-child(6) { transition-delay: 0.6s; }

.mil-stagger.mil-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PARALLAX DEPTH LAYERS ===== */
.mil-parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

.mil-parallax-slow { --parallax-speed: 0.3; }
.mil-parallax-medium { --parallax-speed: 0.5; }
.mil-parallax-fast { --parallax-speed: 0.8; }

/* ===== ENHANCED HOVER EFFECTS ===== */
.mil-hover-lift {
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===== GLOW EFFECTS ===== */
.mil-glow {
  position: relative;
}

.mil-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(93, 72, 212, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
  z-index: -1;
}

.mil-glow:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
}

/* ===== TEXT REVEAL ANIMATION ===== */
.mil-text-reveal {
  overflow: hidden;
}

.mil-text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-text-reveal.mil-visible span {
  transform: translateY(0);
}

/* ===== ENHANCED IMAGE EFFECTS ===== */
.mil-img-frame {
  overflow: hidden;
}

.mil-img-frame img {
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-img-frame:hover img {
  transform: scale(1.08);
}

/* Image reveal animation */
.mil-img-reveal {
  position: relative;
  overflow: hidden;
}

.mil-img-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #992800;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.mil-img-reveal.mil-visible::after {
  transform: scaleX(0);
}

/* ===== SMOOTH SECTION TRANSITIONS ===== */
section {
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93, 72, 212, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

section:hover::before {
  opacity: 1;
}

/* ===== ENHANCED BUTTON EFFECTS ===== */
.mil-button {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.mil-button:hover::before {
  width: 300px;
  height: 300px;
}

.mil-button:hover {
  box-shadow: 0 10px 30px rgba(93, 72, 212, 0.4);
}

/* ===== LINK HOVER EFFECTS ===== */
.mil-link {
  position: relative;
}

.mil-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #992800;
  transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-link:hover::after {
  width: 100%;
}

/* ===== ENHANCED PROGRESS BAR ===== */
.mil-progress-track {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.mil-progress-track .mil-progress {
  background: linear-gradient(180deg, #992800 0%, #e8b87a 100%);
  box-shadow: 0 0 10px rgba(153, 40, 0, 0.5);
}

/* ===== FLOATING ANIMATION ===== */
.mil-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ===== GRADIENT TEXT ===== */
.mil-gradient-text {
  background: linear-gradient(135deg, #992800 0%, #e8b87a 50%, #992800 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ===== CARD TILT EFFECT ===== */
.mil-tilt {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.mil-tilt-inner {
  transform: translateZ(30px);
}

/* ===== SMOOTH MENU TRANSITIONS ===== */
.mil-menu-frame {
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              visibility 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-main-menu ul li {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mil-menu-frame.mil-active .mil-main-menu ul li {
  opacity: 1;
  transform: translateX(0);
}

.mil-menu-frame.mil-active .mil-main-menu ul li:nth-child(1) { transition-delay: 0.1s; }
.mil-menu-frame.mil-active .mil-main-menu ul li:nth-child(2) { transition-delay: 0.15s; }
.mil-menu-frame.mil-active .mil-main-menu ul li:nth-child(3) { transition-delay: 0.2s; }
.mil-menu-frame.mil-active .mil-main-menu ul li:nth-child(4) { transition-delay: 0.25s; }
.mil-menu-frame.mil-active .mil-main-menu ul li:nth-child(5) { transition-delay: 0.3s; }
.mil-menu-frame.mil-active .mil-main-menu ul li:nth-child(6) { transition-delay: 0.35s; }

/* ===== ENHANCED SERVICES SECTION ===== */
.mil-services-grid .mil-service-item {
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              background 0.4s ease;
}

.mil-services-grid .mil-service-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

/* ===== TEAM MEMBER CARDS ===== */
.mil-team-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-team-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.mil-team-card .mil-img-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mil-team-card:hover .mil-img-frame::after {
  opacity: 1;
}

/* ===== MILESTONE COUNTER ANIMATION ===== */
.mil-counter {
  transition: transform 0.3s ease;
}

.mil-counter:hover {
  transform: scale(1.1);
}

/* ===== FOOTER ENHANCEMENTS ===== */
footer .mil-footer-menu ul li a {
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer .mil-footer-menu ul li a:hover {
  transform: translateX(5px);
}

/* ===== NOISE TEXTURE OVERLAY ===== */
.mil-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== SMOOTH SCROLL INDICATOR ===== */
.mil-scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mil-scroll-indicator.mil-visible {
  opacity: 1;
}

.mil-scroll-indicator .mil-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
  position: relative;
}

.mil-scroll-indicator .mil-wheel {
  width: 4px;
  height: 8px;
  background: #992800;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media screen and (max-width: 992px) {
  .mil-up {
    transform: translateY(40px);
  }
  
  .mil-hover-lift:hover {
    transform: translateY(-5px);
  }
  
  .mil-float {
    animation: none;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}


/* ===== ENHANCED BANNER/HERO SECTION ===== */
.mil-banner {
  position: relative;
}

.mil-video-background {
  position: relative;
  overflow: hidden;
}

.mil-video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.mil-video-background video {
  transition: transform 0.5s ease;
}

/* ===== ENHANCED PARTNERS SLIDER ===== */
.mil-infinite-show .swiper-slide {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mil-infinite-show .swiper-slide:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* ===== SERVICES SECTION ENHANCEMENTS ===== */
#services {
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(139, 122, 232, 0.1) 0%,
    transparent 50%
  );
  animation: services-glow 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes services-glow {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10%, 10%); }
  50% { transform: translate(-5%, 5%); }
  75% { transform: translate(-10%, -10%); }
}

.mil-services-grid > div {
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              background 0.4s ease,
              border-color 0.4s ease;
}

.mil-services-grid > div:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.03);
}

/* ===== FOOTER ENHANCEMENTS ===== */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(93, 72, 212, 0.5),
    transparent
  );
}

/* ===== PRELOADER ENHANCEMENTS ===== */
.mil-preloader {
  background: linear-gradient(135deg, #000 0%, #1a1a2e 100%);
}

.mil-preloader .mil-reveal-box {
  background: linear-gradient(90deg, #992800, #e8b87a);
}

/* ===== MENU ENHANCEMENTS ===== */
.mil-menu-frame {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%);
  backdrop-filter: blur(20px);
}

.mil-main-menu ul li a {
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.mil-main-menu ul li a::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 0;
  height: 2px;
  background: #992800;
  transform: translateY(-50%);
  transition: width 0.3s ease;
}

.mil-main-menu ul li a:hover::before,
.mil-main-menu ul li.mil-active a::before {
  width: 15px;
}

/* ===== SOFT BACKGROUND SECTION ===== */
.mil-soft-bg {
  position: relative;
}

.mil-soft-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(242, 242, 242, 1) 0%,
    rgba(250, 250, 255, 1) 100%
  );
  z-index: -1;
}

/* ===== ANIMATION ELEMENTS ===== */
.mil-animation {
  transition: transform 0.5s ease;
}

.mil-animation:hover {
  transform: scale(1.05);
}

/* ===== BACK TO TOP ENHANCEMENT ===== */
.mil-back-to-top .mil-link {
  position: relative;
  overflow: hidden;
}

.mil-back-to-top .mil-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(93, 72, 212, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.mil-back-to-top .mil-link:hover::before {
  left: 100%;
}

/* ===== LOADING STATES ===== */
.mil-loading {
  position: relative;
  overflow: hidden;
}

.mil-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #992800;
  outline-offset: 3px;
}

/* ===== SMOOTH COLOR TRANSITIONS ===== */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

/* Override for elements that need different transitions */
.mil-up,
.mil-scale,
.mil-parallax,
.mil-img-frame img,
.mil-button,
.mil-link,
.mil-ball {
  transition-property: all;
}
