/* MSK Developers — Homepage enhancements */

/* Expertise & glow cards */
.expertise-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.expertise-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, hsl(var(--p) / 0.6), hsl(var(--s) / 0.4), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.expertise-card:hover {
  transform: translateY(-6px);
}

.expertise-card:hover::before,
.card-glow:hover {
  opacity: 1;
}

.card-glow {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px hsl(var(--p) / 0.2);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: hsl(var(--p) / 0.15);
  color: hsl(var(--p));
  margin-bottom: 1rem;
}

.icon-badge svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Why Choose Us counter */
.counter-value {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: hsl(var(--p));
}

@media (min-width: 768px) {
  .counter-value {
    font-size: 4.5rem;
  }
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: hsl(var(--b2) / 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px hsl(var(--p) / 0.1);
}

.why-item i {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Timeline */
.timeline-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.timeline-track {
  display: flex;
  gap: 0;
  min-width: min-content;
  position: relative;
  padding: 2rem 1rem 1rem;
}

@media (min-width: 768px) {
  .timeline-track {
    justify-content: space-between;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
  }
}

.timeline-step {
  flex: 0 0 auto;
  width: 10rem;
  scroll-snap-align: center;
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .timeline-step {
    flex: 1;
    width: auto;
  }
}

.timeline-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: hsl(var(--p));
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px hsl(var(--b1)), 0 0 12px hsl(var(--p) / 0.4);
  animation: timeline-pulse 2.5s ease-in-out infinite;
}

.timeline-step:nth-child(odd) .timeline-dot {
  animation-delay: 0.3s;
}

@keyframes timeline-pulse {
  0%, 100% { box-shadow: 0 0 0 4px hsl(var(--b1)), 0 0 8px hsl(var(--p) / 0.3); }
  50% { box-shadow: 0 0 0 4px hsl(var(--b1)), 0 0 20px hsl(var(--p) / 0.6); }
}

.timeline-connector {
  position: absolute;
  top: 2.55rem;
  left: 5rem;
  right: 5rem;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--p) / 0.3), hsl(var(--p)), hsl(var(--p) / 0.3));
  z-index: 1;
  display: none;
}

@media (min-width: 768px) {
  .timeline-connector {
    display: block;
  }
}

.timeline-step-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(var(--p));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-step-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Industries */
.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: hsl(var(--b2));
  border: 1px solid hsl(var(--b3));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px hsl(var(--p) / 0.15);
}

.industry-icon {
  font-size: 2rem;
  line-height: 1;
}

.industry-label {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Tech stack badges */
.tech-group {
  margin-bottom: 1.5rem;
}

.tech-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--p));
  margin-bottom: 0.75rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: hsl(var(--b2));
  border: 1px solid hsl(var(--b3));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tech-badge:hover {
  transform: scale(1.05);
  border-color: hsl(var(--p));
  box-shadow: 0 2px 12px hsl(var(--p) / 0.15);
}

.tech-badge.skeleton {
  background: linear-gradient(90deg, hsl(var(--b2)) 25%, hsl(var(--b3)) 50%, hsl(var(--b2)) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  color: transparent;
  border-color: transparent;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tech-badge.loaded {
  animation: none;
}

/* Trust / particles */
.particle-section {
  position: relative;
  overflow: hidden;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.particle-content {
  position: relative;
  z-index: 1;
}

/* Hero particles (lighter) */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles canvas {
  width: 100%;
  height: 100%;
  opacity: 0.25;
}

/* Section spacing utility */
.section-pad {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.2s ease-out;
}
