/* SupToria Custom Modern Styles & Enhancements */

/* ============================================
   1. BASE & TYPOGRAPHY
   ============================================ */

/* Smooth scrolling and base font settings */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

/* Balanced text wrapping utility */
.text-balance {
  text-wrap: balance;
}

/* Prose readability class for body text blocks */
.prose-modern {
  font-size: 1.0625rem;       /* ~17px – slightly larger than base */
  line-height: 1.75;
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.005em;
}

.prose-modern p + p {
  margin-top: 1.25em;
}

/* ============================================
   2. SCROLLBAR
   ============================================ */

/* Custom Modern Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0b0b0e;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #FF6B00;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #27272a #0b0b0e;
}

/* ============================================
   3. BACKGROUND PATTERNS
   ============================================ */

/* 3D Print Build Plate Grid Pattern */
.bg-tech-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-dot-pattern {
  background-image: radial-gradient(rgba(255, 107, 0, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ============================================
   4. GLOW EFFECTS
   ============================================ */

/* Refined Glowing effects */
.glow-orange {
  box-shadow: 0 0 35px rgba(255, 107, 0, 0.2);
}

.glow-blue {
  box-shadow: 0 0 35px rgba(0, 122, 255, 0.2);
}

.glow-orange-border {
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
}

.glow-blue-border {
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 122, 255, 0.15);
}

/* ============================================
   5. GLASS PANELS
   ============================================ */

/* Ultra-Clean Modern Glass Panel */
.glass-panel {
  background: rgba(18, 18, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Enhanced card hover – subtle orange/blue gradient border glow */
.glass-panel-hover:hover {
  border-color: transparent;
  background: rgba(24, 24, 30, 0.85);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 107, 0, 0.25),
    0 0 24px rgba(255, 107, 0, 0.08),
    0 0 24px rgba(0, 122, 255, 0.06);
}

/* Featured glass panel – brighter bg, stronger border glow */
.glass-panel-featured {
  background: rgba(28, 28, 34, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 0, 0.18);
  box-shadow:
    0 0 30px rgba(255, 107, 0, 0.08),
    0 0 60px rgba(0, 122, 255, 0.04);
}

/* Interactive glass panel – pointer + scale */
.glass-panel-interactive {
  background: rgba(18, 18, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-interactive:hover {
  background: rgba(28, 28, 34, 0.85);
  border-color: rgba(255, 107, 0, 0.22);
  transform: scale(1.025);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   6. SECTION DIVIDERS
   ============================================ */

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 107, 0, 0.3) 25%,
    rgba(0, 122, 255, 0.3) 75%,
    transparent 100%
  );
}

/* ============================================
   7. ACCENT LINE DECORATORS
   ============================================ */

/* Left accent – 3px gradient border (orange → blue) */
.accent-line-left {
  position: relative;
  padding-left: 1rem;
}

.accent-line-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #FF6B00, #007AFF);
}

/* Top accent – thin gradient line */
.accent-line-top {
  position: relative;
  padding-top: 0.75rem;
}

.accent-line-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #FF6B00, #007AFF);
}

/* ============================================
   8. TABS / SEGMENTED CONTROL
   ============================================ */

/* Modern Segmented Control / Tab Switcher */
.tab-switch-container {
  background: rgba(12, 12, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 9999px;
  display: inline-flex;
}

.tab-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn.active-order {
  background: #FF6B00;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.tab-btn.active-service {
  background: #007AFF;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

/* ============================================
   9. ANIMATIONS
   ============================================ */

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Staggered fade-in-up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;                /* start invisible, animation fills forward */
}

/* Animation delay utilities */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

/* ============================================
   10. TEXT HIGHLIGHT
   ============================================ */

.text-highlight {
  background: rgba(255, 107, 0, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ============================================
   11. CONTENT GRID UTILITY
   ============================================ */

.content-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   12. STAT CARD
   ============================================ */

.stat-card {
  position: relative;
  background: rgba(18, 18, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6B00, #007AFF);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ============================================
   13. MISC / COMPONENTS
   ============================================ */

/* Before / After Slider specific handle and bounds */
.ba-slider-container {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.ba-before-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.ba-after-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 10;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9), 0 0 6px rgba(0, 122, 255, 0.6);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 20;
  pointer-events: none;
}

.ba-slider-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #111115;
  border: 2px solid #007AFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 122, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: ew-resize;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.ba-slider-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 122, 255, 0.6);
}

/* Three.js Canvas Cursor styling */
#three-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}

/* Gradient text helpers */
.gradient-text-orange {
  background: linear-gradient(135deg, #FF842B 0%, #FF6B00 50%, #E05E00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #4DA2FF 0%, #007AFF 50%, #005BBD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   14. CONTENT PROTECTION & ANTI-COPY
   ============================================ */

/* Disable text & element selection globally */
*, *::before, *::after {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* Disable iOS callout menu on long tap */
}

/* Allow normal text selection & typing inside form fields */
input,
textarea,
select,
[contenteditable="true"],
.allow-select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Disable ghost image dragging & preview overlays */
img,
picture,
svg,
video {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Hide text selection highlight on protected content */
::selection {
  background: transparent;
  color: inherit;
}

::-moz-selection {
  background: transparent;
  color: inherit;
}

/* Preserve active selection highlight inside editable inputs with brand orange */
input::selection,
textarea::selection,
[contenteditable="true"]::selection,
.allow-select::selection {
  background: #FF6B00 !important;
  color: #ffffff !important;
}

input::-moz-selection,
textarea::-moz-selection,
[contenteditable="true"]::-moz-selection,
.allow-select::-moz-selection {
  background: #FF6B00 !important;
  color: #ffffff !important;
}

