/* -------------------------------------------

Floating Ambient Lights Decoration

------------------------------------------- */
.mil-ambient-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.mil-light-1 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(42, 205, 254, 0.6) 0%, rgba(42, 205, 254, 0) 70%);
  animation: floatLight1 15s infinite ease-in-out;
  top: 20%;
  left: 10%;
}

.mil-light-2 {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(130, 237, 102, 0.5) 0%, rgba(130, 237, 102, 0) 70%);
  animation: floatLight2 20s infinite ease-in-out;
  top: 60%;
  right: 15%;
}

.mil-light-3 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(71, 249, 252, 0.4) 0%, rgba(71, 249, 252, 0) 70%);
  animation: floatLight3 18s infinite ease-in-out;
  bottom: 30%;
  left: 20%;
}

.mil-light-4 {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(62, 229, 255, 0.3) 0%, rgba(62, 229, 255, 0) 70%);
  animation: floatLight4 22s infinite ease-in-out;
  top: 40%;
  right: 30%;
}

.mil-light-5 {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  animation: floatLight5 16s infinite ease-in-out;
  bottom: 20%;
  right: 10%;
}

@keyframes floatLight1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(30px, -20px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translate(-20px, 40px) scale(0.8);
    opacity: 0.3;
  }
  75% {
    transform: translate(40px, 20px) scale(1.1);
    opacity: 0.5;
  }
}

@keyframes floatLight2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  33% {
    transform: translate(-40px, 30px) scale(1.3);
    opacity: 0.3;
  }
  66% {
    transform: translate(20px, -30px) scale(0.9);
    opacity: 0.7;
  }
}

@keyframes floatLight3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  20% {
    transform: translate(25px, -35px) scale(1.1);
    opacity: 0.6;
  }
  40% {
    transform: translate(-30px, -10px) scale(0.7);
    opacity: 0.2;
  }
  60% {
    transform: translate(15px, 25px) scale(1.2);
    opacity: 0.5;
  }
  80% {
    transform: translate(-20px, 40px) scale(0.9);
    opacity: 0.3;
  }
}

@keyframes floatLight4 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  30% {
    transform: translate(-35px, 20px) scale(1.4);
    opacity: 0.5;
  }
  70% {
    transform: translate(25px, -25px) scale(0.8);
    opacity: 0.4;
  }
}

@keyframes floatLight5 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }
  25% {
    transform: translate(-20px, -30px) scale(1.1);
    opacity: 0.4;
  }
  50% {
    transform: translate(35px, 15px) scale(0.9);
    opacity: 0.3;
  }
  75% {
    transform: translate(-15px, 35px) scale(1.2);
    opacity: 0.5;
  }
}

/* Mobile optimizations for ambient lights */
@media (max-width: 768px) {
  .mil-ambient-light {
    filter: blur(8px);
    opacity: 0.3;
  }
  
  .mil-light-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 5%;
  }
  
  .mil-light-2 {
    width: 45px;
    height: 45px;
    top: 65%;
    right: 10%;
  }
  
  .mil-light-3 {
    width: 70px;
    height: 70px;
    bottom: 25%;
    left: 15%;
  }
  
  .mil-light-4 {
    width: 50px;
    height: 50px;
    top: 45%;
    right: 25%;
  }
  
  .mil-light-5 {
    width: 65px;
    height: 65px;
    bottom: 15%;
    right: 5%;
  }
  
  /* Reduce animation movement on mobile */
  @keyframes floatLight1 {
    0%, 100% {
      transform: translate(0, 0) scale(1);
      opacity: 0.3;
    }
    50% {
      transform: translate(15px, -10px) scale(1.1);
      opacity: 0.4;
    }
  }
  
  @keyframes floatLight2 {
    0%, 100% {
      transform: translate(0, 0) scale(1);
      opacity: 0.3;
    }
    50% {
      transform: translate(-15px, 15px) scale(1.1);
      opacity: 0.4;
    }
  }
  
  @keyframes floatLight3 {
    0%, 100% {
      transform: translate(0, 0) scale(1);
      opacity: 0.3;
    }
    50% {
      transform: translate(10px, -15px) scale(1.1);
      opacity: 0.4;
    }
  }
  
  @keyframes floatLight4 {
    0%, 100% {
      transform: translate(0, 0) scale(1);
      opacity: 0.2;
    }
    50% {
      transform: translate(-10px, 10px) scale(1.1);
      opacity: 0.3;
    }
  }
  
  @keyframes floatLight5 {
    0%, 100% {
      transform: translate(0, 0) scale(1);
      opacity: 0.2;
    }
    50% {
      transform: translate(12px, -8px) scale(1.1);
      opacity: 0.3;
    }
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .mil-ambient-light {
    animation: none;
  }
  
  .mil-circle-text {
    animation: none;
  }
}

/* Dark theme triangles */
.mil-position-1 .mil-triangle {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mil-position-2 .mil-triangle {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.mil-position-3 .mil-triangle {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.mil-position-4 .mil-triangle {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Light theme support */
.mil-position-4.mil-dark .mil-triangle {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Animation delays for variety */
.mil-position-2 .mil-octahedron {
  animation-delay: 0.5s;
}

.mil-position-3 .mil-octahedron {
  animation-delay: 1s;
}

.mil-position-4 .mil-octahedron {
  animation-delay: 0.5s;
}

@keyframes rotate {
  from {
    transform: rotateX(0deg) rotateY(360deg) rotateZ(360deg);
  }
  to {
    transform: rotateX(360deg) rotateY(0deg) rotateZ(-360deg);
  }
}

/* Digital Artify Brand Styles - Global CSS */
/* Apply this to all HTML pages for consistent branding */

/* Brand Color Variables */
:root {
    --brand-primary: #2BCDFE;
    --brand-accent: #82ED66;
    --brand-secondary: #47F9FC;
    --brand-white: #FEFEFE;
    --brand-tertiary: #3EE5FF;
}

/* Brand Name Styling */
.mil-digital,
.mil-brand-name .mil-digital {
    color: var(--brand-primary) !important;
}

.mil-artify,
.mil-brand-name .mil-artify {
    color: var(--brand-accent) !important;
}

/* Universal Button Hover Effect - The style you love from team.html */
.mil-button:hover,
.mil-button:focus {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)) !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0, 0, 0.3642, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 205, 254, 0.3);
}

/* Icon Button Hover */
.mil-icon-button:hover,
.mil-icon-button-sm:hover {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)) !important;
    color: white !important;
}

/* Link Hover Effects */
.mil-link:hover {
    color: var(--brand-primary) !important;
}

/* Social Icons Hover */
.mil-social-icons .social-icon:hover {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)) !important;
    color: white !important;
    transition: all 0.3s ease;
    transform: translateY(-2px);
}

/* Team Card Hover Effects */
.mil-team-card:hover {
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 2px solid var(--brand-primary);
    box-shadow: 0 10px 25px rgba(42, 205, 254, 0.2);
}

/* Service Card Hover */
.mil-service-card-sm:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 25px rgba(42, 205, 254, 0.15);
}

/* Contact Form Focus Effects */
.mil-contact-form input:focus,
.mil-contact-form textarea:focus,
.mil-subscribe-form input:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 20px rgba(42, 205, 254, 0.1);
    outline: none;
}

/* Navigation Menu Hover */
.mil-main-menu a:hover {
    color: var(--brand-primary) !important;
}

/* Portfolio Item Hover */
.mil-portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(42, 205, 254, 0.2);
}

/* Blog Card Hover */
.mil-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(42, 205, 254, 0.15);
}

/* Accent Color Classes */
.mil-accent {
    color: var(--brand-accent) !important;
}

.mil-brand-primary {
    color: var(--brand-primary) !important;
}

.mil-brand-secondary {
    color: var(--brand-secondary) !important;
}

/* Circle Hover Animation */
@keyframes circleHover {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.mil-circle-text {
  animation: circleHover 3s infinite alternate;
}

/* Logo Gradient Effect */
.mil-logo:hover {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer hover effects - simplified to brand colors */
footer .mil-logo:hover {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

footer .mil-social-icons .social-icon:hover {
    background: none !important;
    color: var(--brand-primary) !important;
    transform: none !important;
    transition: all 0.3s ease !important;
}

/* Disable hover effects for blog cards (Popular Publications) */
.mil-blog-card:hover {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Blue hover effects for other services section */
.mil-service-card-lg.mil-other-card:hover {
    background-color: #2BCDFE !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(43, 205, 254, 0.3) !important;
    transition: all 0.3s ease !important;
}

.mil-service-card-lg.mil-other-card:hover h4 {
    color: white !important;
}

.mil-service-card-lg.mil-other-card:hover .mil-descr {
    color: white !important;
}

.mil-service-card-lg.mil-other-card:hover .mil-service-list li {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.mil-service-card-lg.mil-other-card:hover .mil-link {
    color: white !important;
}

.mil-service-card-lg.mil-other-card:hover .mil-link svg {
    background-color: white !important;
}

.mil-service-card-lg.mil-other-card:hover .mil-link svg path {
    fill: #2BCDFE !important;
}
