/* ===== GLOBAL ANIMATIONS & ENHANCED UI ===== */

/* ---- Fade-in on scroll ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---- Slide in from left ---- */
.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-left.visible { opacity: 1; transform: translateX(0); }

/* ---- Slide in from right ---- */
.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* ---- Scale in ---- */
.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* ===== ENHANCED CARD STYLES ===== */

/* Glass card */
.glass-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(37,99,235,0.10), 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(37,99,235,0.16), 0 4px 16px rgba(0,0,0,0.08);
}

/* Elevated card */
.elevated-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e8f0fe;
  box-shadow: 0 2px 8px rgba(37,99,235,0.07), 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.elevated-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(37,99,235,0.14), 0 4px 12px rgba(0,0,0,0.07);
  border-color: #22c55e;
}

/* Stat card */
.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #d1fae5;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: 0 4px 16px rgba(34,197,94,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(34,197,94,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(34,197,94,0.18);
}
.stat-card .stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card .stat-label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--primary-dark);
}

/* Feature card */
.feature-card {
  background: #ffffff;
  border: 1.5px solid #e8f0fe;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 4px 20px rgba(37,99,235,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #2563eb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(37,99,235,0.14);
  border-color: #bfdbfe;
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-card .fc-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}
.feature-card h3 {
  font-size: var(--font-size-base);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
}
.feature-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== SECTION DIVIDERS ===== */
.section-wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.section-wave svg {
  display: block;
  width: 100%;
}

/* ===== GRADIENT SECTION BACKGROUNDS ===== */
.bg-gradient-blue-green {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
}
.bg-gradient-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.bg-white-shadow {
  background: #ffffff;
  box-shadow: inset 0 1px 0 #e2e8f0, inset 0 -1px 0 #e2e8f0;
}

/* ===== ENHANCED PRODUCT CARD ===== */
.product-card {
  background: #ffffff;
  border: 1.5px solid #e8f0fe;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #2563eb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 1;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(37,99,235,0.15);
  border-color: #22c55e;
}
.product-card:hover::before { transform: scaleX(1); }

/* ===== ENHANCED CATEGORY CARD ===== */
.category-card {
  background: #ffffff;
  border: 1.5px solid #e8f0fe;
  border-left: 4px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}
.category-card:hover {
  border-left-color: var(--primary);
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  transform: translateX(5px);
  box-shadow: 0 8px 24px rgba(34,197,94,0.14);
}

/* ===== WHY CARD ENHANCED ===== */
.why-card {
  text-align: center;
  padding: var(--space-xl);
  background: #ffffff;
  border: 1.5px solid #e8f0fe;
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #2563eb);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.14);
  border-color: #bfdbfe;
}
.why-card:hover::before { transform: scaleX(1); }

.why-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}
.why-card h3 {
  font-size: var(--font-size-base);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
}
.why-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== ENHANCED SIDEBAR BLOCKS ===== */
.sidebar-block {
  background: #ffffff;
  border: 1.5px solid #e8f0fe;
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
  transition: box-shadow 0.25s ease;
}
.sidebar-block:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.12);
}

/* ===== ENHANCED FORM INPUTS ===== */
.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
  outline: none;
}

/* ===== ENHANCED BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(34,197,94,0.30);
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 8px 24px rgba(34,197,94,0.40);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,99,235,0.25);
  transform: translateY(-2px);
}

/* ===== ENHANCED NAVBAR ===== */
.navbar {
  box-shadow: 0 2px 20px rgba(37,99,235,0.10);
}

/* Footer visuals — primary styles in main.css */

/* ===== PROMO BANNER ENHANCED ===== */
.promo-banner {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(37,99,235,0.30);
  position: relative;
  overflow: hidden;
}
.promo-banner::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

/* ===== PAGE BACKGROUND ===== */
body {
  background: #f8fafc;
}

.page-wrapper {
  position: relative;
  background: transparent;
}

/* Sections */
.about-split,
.mvv-section,
.brands-section,
.cert-section,
.contact-section,
.cart-section,
.checkout-section,
.product-detail-section,
.why-section,
.why-ashveera,
.industries-section,
.featured-section,
.categories-section,
.promo-section {
  background: var(--bg-page);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ===== PULSE BADGE ===== */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
.badge-pulse {
  animation: badgePulse 2s infinite;
}

/* ===== COUNTER ANIMATION ===== */
.count-up {
  display: inline-block;
  transition: all 0.3s ease;
}

/* ===== TOOLTIP ===== */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }
