/**
 * TechIT Solution - Premium Glassmorphism & 3D Embossed Design System
 * With Modern Scroll-Reveals, Glow Accents, and Interactive Loaders
 */

:root {
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-hover: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-border-highlight: rgba(255, 255, 255, 0.35);
  --glass-blur: blur(16px);
  --accent-cyan: #00d4ff;
  --accent-purple: #8a2be2;
  --accent-blue: #0072ff;
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --emboss-shadow: 
    -6px -6px 16px rgba(255, 255, 255, 0.06),
    8px 14px 28px rgba(0, 0, 0, 0.45),
    inset 1px 1px 2px rgba(255, 255, 255, 0.18);
  --emboss-shadow-hover: 
    -8px -8px 22px rgba(255, 255, 255, 0.1),
    12px 20px 36px rgba(0, 0, 0, 0.6),
    inset 1px 1px 3px rgba(255, 255, 255, 0.28);
}

/* Top Progress Indicator */
#page-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), #0072ff, var(--accent-purple));
  width: 0%;
  z-index: 9999;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px var(--accent-cyan);
  pointer-events: none;
}

/* Ensure no horizontal movement on mobile */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
}

/* Modern Glass Container Base */
.glass-panel, 
.glass-card, 
.card, 
.product-card, 
.portfolio-modern-card, 
.modal-content, 
.marquee-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border) !important;
  border-top: 1px solid var(--glass-border-highlight) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 18px !important;
  box-shadow: var(--emboss-shadow) !important;
  color: #fff !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease !important;
  position: relative;
  overflow: hidden;
}

/* Shimmer Light Reflection on Hover */
.glass-panel::before, 
.product-card::before, 
.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 100%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

.product-card:hover::before, 
.card:hover::before {
  transform: rotate(25deg) translateY(100%);
}

.product-card:hover, 
.card:hover, 
.portfolio-modern-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: var(--emboss-shadow-hover) !important;
  border-color: rgba(0, 212, 255, 0.45) !important;
}

/* 3D Embossed Buttons */
.btn-primary, 
.btn-add-quote, 
.cart-btn {
  background: linear-gradient(135deg, #184594 0%, #0d2757 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  box-shadow: 
    -3px -3px 8px rgba(255, 255, 255, 0.12),
    4px 8px 16px rgba(0, 0, 0, 0.45),
    inset 1px 1px 2px rgba(255, 255, 255, 0.25) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.btn-primary:hover, 
.btn-add-quote:hover, 
.cart-btn:hover {
  background: linear-gradient(135deg, #225bc4 0%, #133980 100%) !important;
  transform: translateY(-2px);
  box-shadow: 
    -4px -4px 12px rgba(255, 255, 255, 0.2),
    6px 12px 24px rgba(0, 0, 0, 0.6),
    inset 1px 1px 3px rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
}

.btn-primary:active, 
.btn-add-quote:active, 
.cart-btn:active {
  transform: translateY(2px) !important;
  box-shadow: 
    inset 3px 3px 6px rgba(0, 0, 0, 0.65),
    inset -2px -2px 4px rgba(255, 255, 255, 0.1) !important;
}

/* Debossed Sunken Form Inputs */
.form-control, .form-select {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  border-radius: 12px !important;
  box-shadow: 
    inset 2px 3px 8px rgba(0, 0, 0, 0.55),
    inset -1px -1px 2px rgba(255, 255, 255, 0.08) !important;
  transition: all 0.25s ease !important;
}

.form-control:focus, .form-select:focus {
  background: rgba(0, 0, 0, 0.45) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 
    inset 2px 3px 8px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(0, 212, 255, 0.45) !important;
  outline: none;
}

/* Category Filter Pills in Catalog */
.category-pill, .filter-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin: 4px;
  box-shadow: -2px -2px 6px rgba(255, 255, 255, 0.05), 3px 5px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.category-pill:hover, .category-pill.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(0, 114, 255, 0.35) 100%);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
}

/* RFQ Floating Badge for Mobile */
.rfq-floating-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1040;
  background: linear-gradient(135deg, #0072ff 0%, #00d4ff 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 114, 255, 0.5), inset 1px 1px 2px rgba(255, 255, 255, 0.4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rfq-floating-bar:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 30px rgba(0, 212, 255, 0.6);
  color: #fff;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Helpers */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Subtle Animated Mesh / Gradient Glow in Background */
@keyframes meshPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  50% { transform: scale(1.1) translate(20px, -20px); opacity: 0.7; }
  100% { transform: scale(1) translate(0, 0); opacity: 0.4; }
}

.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: meshPulse 12s infinite ease-in-out;
}

.bg-glow-cyan {
  width: 380px;
  height: 380px;
  background: rgba(0, 212, 255, 0.15);
  top: 10%;
  left: 5%;
}

/* Responsive Adjustments for Mobile Stability */
@media (max-width: 768px) {
  .product-card:hover, .card:hover, .portfolio-modern-card:hover {
    transform: none !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .bg-glow-orb {
    display: none !important;
  }
}
