/* ===== ULTRA SERVICE ICONS - Pro Design System ===== */
/* Dynamic Colors | Glassmorphism | Premium Animations */

.service-icons-section {
  width: 100%;
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.service-icons-container {
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.9) 50%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Animated gradient background */
.service-icons-container::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 35%),
    radial-gradient(ellipse at 60% 80%, rgba(34, 197, 94, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 30% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 35%);
  animation: gradient-float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradient-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-2%, 2%) rotate(1deg); }
  50% { transform: translate(2%, -1%) rotate(-1deg); }
  75% { transform: translate(-1%, -2%) rotate(0.5deg); }
}

.service-icons-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #1e293b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.03em;
}

.service-icons-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #ec4899, #22c55e);
  border-radius: 2px;
}

.service-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

/* ===== Icon Cards - Ultra Glassmorphism ===== */
.service-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(255, 255, 255, 0.92) 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 1px 4px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(0, 0, 0, 0.01);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

/* Dynamic colored glow for each card */
.service-icon-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--card-accent, #6366f1) 0%, transparent 60%);
  opacity: 0;
  transition: all 0.4s ease;
  border-radius: 22px;
  z-index: -1;
  filter: blur(12px);
}

.service-icon-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    var(--card-accent-light, rgba(99, 102, 241, 0.08)) 0%, 
    transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Individual card accent colors */
.service-icon-card:nth-child(1) { --card-accent: #6366f1; --card-accent-light: rgba(99, 102, 241, 0.12); }
.service-icon-card:nth-child(2) { --card-accent: #ec4899; --card-accent-light: rgba(236, 72, 153, 0.12); }
.service-icon-card:nth-child(3) { --card-accent: #22c55e; --card-accent-light: rgba(34, 197, 94, 0.12); }
.service-icon-card:nth-child(4) { --card-accent: #f59e0b; --card-accent-light: rgba(245, 158, 11, 0.12); }
.service-icon-card:nth-child(5) { --card-accent: #06b6d4; --card-accent-light: rgba(6, 182, 212, 0.12); }
.service-icon-card:nth-child(6) { --card-accent: #8b5cf6; --card-accent-light: rgba(139, 92, 246, 0.12); }

/* Icon wrapper with dynamic backgrounds */
.service-icon-wrapper {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  position: relative;
  border-radius: 16px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.6) 100%);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Individual icon wrapper colors */
.service-icon-card:nth-child(1) .service-icon-wrapper { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }
.service-icon-card:nth-child(2) .service-icon-wrapper { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.service-icon-card:nth-child(3) .service-icon-wrapper { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.service-icon-card:nth-child(4) .service-icon-wrapper { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.service-icon-card:nth-child(5) .service-icon-wrapper { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%); }
.service-icon-card:nth-child(6) .service-icon-wrapper { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }

/* Ultra-modern SVG Icons */
.service-icon-wrapper svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Individual icon colors */
.service-icon-card:nth-child(1) .service-icon-wrapper svg { stroke: #6366f1; }
.service-icon-card:nth-child(2) .service-icon-wrapper svg { stroke: #ec4899; }
.service-icon-card:nth-child(3) .service-icon-wrapper svg { stroke: #22c55e; }
.service-icon-card:nth-child(4) .service-icon-wrapper svg { stroke: #f59e0b; }
.service-icon-card:nth-child(5) .service-icon-wrapper svg { stroke: #06b6d4; }
.service-icon-card:nth-child(6) .service-icon-wrapper svg { stroke: #8b5cf6; }

/* Icon Labels */
.service-icon-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  text-align: center;
  transition: all 0.3s ease;
  line-height: 1.3;
}

/* ===== Hover States - Ultra Premium ===== */
.service-icon-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

.service-icon-card:hover::before {
  opacity: 0.6;
}

.service-icon-card:hover::after {
  opacity: 1;
}

.service-icon-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 
    0 8px 24px var(--card-accent-light),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-icon-card:hover .service-icon-wrapper svg {
  transform: scale(1.15);
  stroke-width: 2.5;
  filter: drop-shadow(0 4px 8px var(--card-accent-light));
}

.service-icon-card:hover .service-icon-label {
  color: var(--card-accent);
  transform: translateY(-2px);
  letter-spacing: 0.12em;
}

/* ===== Active/Pressed State ===== */
.service-icon-card:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

/* ===== RTL Support ===== */
[dir="rtl"] .service-icons-section { direction: rtl; }
[dir="rtl"] .service-icon-card { direction: rtl; }
[dir="rtl"] .service-icons-grid { direction: rtl; }

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .service-icons-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  
  .service-icons-container {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }
  
  .service-icon-card {
    padding: 1.25rem 0.875rem;
    min-height: 110px;
  }
  
  .service-icon-wrapper {
    width: 52px;
    height: 52px;
  }
  
  .service-icon-wrapper svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 768px) {
  .service-icons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
  }
  
  .service-icons-section {
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  .service-icons-container {
    padding: 1.75rem 1.25rem;
    border-radius: 22px;
  }
  
  .service-icons-title {
    font-size: 1.25rem;
    margin-bottom: 1.75rem;
  }
  
  .service-icon-card {
    padding: 1.125rem 0.625rem;
    min-height: 100px;
    border-radius: 18px;
  }
  
  .service-icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    border-radius: 14px;
  }
  
  .service-icon-wrapper svg {
    width: 24px;
    height: 24px;
  }
  
  .service-icon-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 480px) {
  .service-icons-section {
    padding: 0 0.875rem;
    margin: 1.5rem auto;
  }
  
  .service-icons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .service-icons-container {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }
  
  .service-icons-title {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
  }
  
  .service-icon-card {
    padding: 1rem 0.5rem;
    min-height: 90px;
    border-radius: 16px;
  }
  
  .service-icon-wrapper {
    width: 44px;
    height: 44px;
    margin-bottom: 0.625rem;
    border-radius: 12px;
  }
  
  .service-icon-wrapper svg {
    width: 22px;
    height: 22px;
  }
  
  .service-icon-label {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }
  
  .service-icon-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

@media (max-width: 360px) {
  .service-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
  
  .service-icon-card {
    padding: 0.875rem 0.5rem;
    min-height: 85px;
  }
  
  .service-icon-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .service-icon-label {
    font-size: 0.6rem;
  }
}

/* ===== Dark Mode Support ===== */
.dark-mode .service-icons-container {
  background: linear-gradient(145deg, 
    rgba(30, 41, 59, 0.95) 0%, 
    rgba(15, 23, 42, 0.9) 50%,
    rgba(30, 41, 59, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark-mode .service-icons-title {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-mode .service-icon-card {
  background: linear-gradient(145deg, 
    rgba(51, 65, 85, 0.98) 0%, 
    rgba(30, 41, 59, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark-mode .service-icon-wrapper {
  background: linear-gradient(135deg, 
    rgba(71, 85, 105, 0.9) 0%, 
    rgba(51, 65, 85, 0.7) 100%);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dark-mode .service-icon-label {
  color: #cbd5e1;
}

.dark-mode .service-icon-card:hover .service-icon-label {
  color: var(--card-accent);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .service-icon-card,
  .service-icon-card::before,
  .service-icon-wrapper,
  .service-icon-wrapper svg,
  .service-icon-label {
    transition: none;
    animation: none;
  }
  
  .service-icons-container::before {
    animation: none;
  }
}

/* ===== Focus States ===== */
.service-icon-card:focus-visible {
  outline: 2px solid var(--card-accent, #6366f1);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15);
}

/* ===== Staggered Load Animation ===== */
@keyframes icon-card-entrance {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  70% {
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.service-icon-card {
  animation: icon-card-entrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.service-icon-card:nth-child(1) { animation-delay: 0.05s; }
.service-icon-card:nth-child(2) { animation-delay: 0.1s; }
.service-icon-card:nth-child(3) { animation-delay: 0.15s; }
.service-icon-card:nth-child(4) { animation-delay: 0.2s; }
.service-icon-card:nth-child(5) { animation-delay: 0.25s; }
.service-icon-card:nth-child(6) { animation-delay: 0.3s; }

/* ===== Shimmer Effect on Hover ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.service-icon-card:hover::after {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out;
}

/* Hide old icons */
.icon-container:has(> .icon-item),
.service-icons:has(> [class*="icon"]),
[class*="icon-section"]:has(> [class*="icon"]),
[class*="tool-icons"],
[class*="emoji-icons"],
[id*="icon-section"],
[id*="tool-icons"] {
  display: none !important;
}
