/* ===== THEME VARIABLES ===== */

/* Light Theme */
:root {
  --bg-main: #ffffff;
  --bg-section: #f9fafb;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);

  --text-main: #111111;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --border-soft: rgba(0, 0, 0, 0.08);

  --accent: #ff4ecd;
  --accent-2: #9b5dcd;
}

/* Dark Theme */
.dark-theme {
  --bg-main: #000000;
  --bg-section: #050505;
  --bg-card: #0f172a;
  --bg-glass: rgba(0, 0, 0, 0.65);

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-light: #9ca3af;

  --border-soft: rgba(255, 255, 255, 0.08);

  --accent: #ff4ecd;
  --accent-2: #aa42ff;
}

/* Apply VARIABLES to BODY (GLOBAL) */
body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  transition: background 0.35s ease, color 0.35s ease;
}

/* theam button */
/* Default Light Theme */
:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --btn-bg: #f0f0f0;
}

/* Dark Theme */
.dark-theme {
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --btn-bg: #1e293b;
}

/* ================= Industry Page ================= */

.industry-hero {
  padding: 20px 60px;
  text-align: center;
}

.industry-hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
}

.industry-hero p {
  max-width: 850px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Services Section */

.industry-services {
  padding: 60px 20px 100px;
}

.industry-services h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 50px;
}

.services-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  color: var(--text-color);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-card ul {
  padding-left: 20px;
}

.service-card li {
  font-size: 16px;
  margin-bottom: 10px;
}

/* ================= E-Commerce Services ================= */

.industry-services {
  padding: 80px 20px 120px;
}

.industry-services h2 {
  text-align: center;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 60px;
}

/* Grid */
.services-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}

/* Card */
.service-card {
  position: relative;
  background: var(--bg-card);
  padding: 40px 30px 35px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Entrance animation: bouncy slide-up + scale + shadow */
.services-grid .service-card {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  will-change: transform, opacity, box-shadow;
}

/* Triggered when card enters viewport */
.services-grid .service-card.in-view {
  animation: slideUpBounce 700ms cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}

/* Ensure visible final state even if animation is interrupted */
.services-grid .service-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger helpers (applied by JS or fallback for non-JS) */
.services-grid .service-card[data-delay="1"] {
  animation-delay: 120ms;
}
.services-grid .service-card[data-delay="2"] {
  animation-delay: 220ms;
}
.services-grid .service-card[data-delay="3"] {
  animation-delay: 340ms;
}
.services-grid .service-card[data-delay="4"] {
  animation-delay: 460ms;
}
.services-grid .service-card[data-delay="5"] {
  animation-delay: 580ms;
}
.services-grid .service-card[data-delay="6"] {
  animation-delay: 700ms;
}

@keyframes slideUpBounce {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
  }
  85% {
    transform: translateY(2px) scale(0.995);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }
}

/* Slight decorative accent on hover */
.service-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 4px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(155, 93, 205, 0.14),
    rgba(255, 78, 205, 0.14)
  );
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.service-card:hover::after {
  opacity: 1;
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .services-grid .service-card,
  .services-grid .service-card.in-view {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
  }
}

/* Number */
.service-number {
  position: absolute;
  top: 18px;
  right: 25px;
  font-size: 42px;
  font-weight: 800;
  opacity: 0.08;
}

/* Title */
.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* List */
.service-card ul {
  padding-left: 18px;
}

.service-card li {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
}
