﻿/* =========================
   LAYOUT
   ========================= */
.industries-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 20px;
  align-items: center;
}

/* =========================
   LEFT SIDE
   ========================= */
.circle-number {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Floating animation (desktop only) */
@keyframes floatSlow {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* =========================
   TEXT REVEAL (LEFT)
   ========================= */
.text-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.text-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RIGHT SIDE GRID
   ========================= */
.industries-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  animation: floatSlow 5s ease-in-out infinite;
  gap: 1px;
}

/* =========================
   INDUSTRY BOX (BASE)
   ========================= */
.industry-box {
 
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
 margin-bottom: 2px;
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    background 0.35s ease,
    border 0.35s ease;

  will-change: transform, opacity;
}

/* =========================
   CARD REVEAL (RIGHT)
   ========================= */
.card-reveal[data-animate="left"] {
  transform: translateX(-40px);
}

.card-reveal[data-animate="right"] {
  transform: translateX(40px);
}

.card-reveal.visible {
  opacity: 1;
  transform: translateX(0);
  will-change: auto; /* critical: removes blur */
}

/* =========================
   ACTIVE (CLICKED)
   ========================= */
.industry-box.active {
  background: linear-gradient(135deg, #e7f5ff, #ffffff);
  border: 1px solid #74c0fc;
}

/* =========================
   HEADER
   ========================= */
.industry-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.industry-header .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1bbf83;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.industry-header h4 {
  font-family: "Poppins", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.industry-header h4::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #1bbf83;
  font-size: 18px;
  margin-left: 8px;
  transition: transform 0.35s ease;
}

.industry-box.active .industry-header h4::after {
  transform: rotate(180deg);
}

/* =========================
   CONTENT (ACCORDION)
   ========================= */
.industry-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;

  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-muted);

  transition:
    max-height 0.35s ease,
    opacity 0.35s ease,
    margin-top 0.35s ease;
}

.industry-box.active .industry-content {
  max-height: 220px;
  opacity: 1;
  margin-top: 12px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px) {
  .industries-layout {
    grid-template-columns: 1fr;
  }

  .industries-right {
    grid-template-columns: 1fr;
  }

  .industries-left {
    animation: none;
  }
}
