.tmi-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #000 0%, #1a0a3e 50%, #000 100%);
  color: #fff;
  overflow: hidden;
}

.tmi-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tmi-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(139, 92, 246, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.tmi-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.tmi-header .section-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  color: #fff;
}

.tmi-header .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  border-radius: 2px;
}

.tmi-header .section-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 800px;
  margin: 25px auto 0;
  line-height: 1.6;
}

.tmi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 40px;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.tmi-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 45px 35px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tmi-card:hover {
  transform: translateY(-15px);
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tmi-icon-box {
  width: 80px;
  height: 80px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.tmi-card:hover .tmi-icon-box {
  background: #8b5cf6;
  transform: rotate(10deg);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.tmi-icon {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.tmi-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.tmi-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 30px;
}

.tmi-links {
  margin-top: auto;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.tmi-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8b5cf6;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.tmi-links a:hover {
  background: #8b5cf6;
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .tmi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tmi-section {
    padding: 60px 0;
  }

  .tmi-header .section-title {
    font-size: 2.5rem;
  }
  .tmi-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .tmi-card {
    padding: 35px 25px;
  }
}
