/* ========================================================
   PT SUMBER PLAST INDO - AMW PIPE
   Apple-Inspired Futuristic Styling & Motion Effects
   ======================================================== */

:root {
  --bg-space: #050608;
  --bg-card: rgba(14, 18, 27, 0.7);
  --bg-card-hover: rgba(22, 28, 42, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 229, 255, 0.35);
  --neon-cyan: #00f0ff;
  --neon-blue: #0071e3;
  --neon-green: #00d26a;
  --titanium-light: #f5f5f7;
  --titanium-muted: #86868b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-space);
  color: var(--titanium-light);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  selection-background-color: var(--neon-cyan);
  selection-color: #000;
}

/* Full Viewport 1-Page Section Utility */
.full-page-viewport {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Apple Titanium & Gradient Text */
.text-titanium {
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #0071e3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ff8800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Apple Frosted Glass */
.glass-nav {
  background: rgba(5, 6, 8, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px -15px rgba(0, 240, 255, 0.12), 0 0 0 1px rgba(0, 240, 255, 0.15);
  transform: translateY(-4px);
}

/* Ambient Radial Glow */
.ambient-glow-cyan {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0, 113, 227, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-blue {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, rgba(59, 130, 246, 0.04) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Futuristic Badge */
.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.apple-badge-cyan {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
  color: #00f0ff;
}

/* Apple-style Button */
.btn-apple-primary {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-apple-primary:hover {
  background: #e2e8f0;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  transform: scale(1.02);
}

.btn-apple-glow {
  background: linear-gradient(135deg, #00f0ff 0%, #0071e3 100%);
  color: #000000;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
}

.btn-apple-glow:hover {
  box-shadow: 0 6px 30px rgba(0, 240, 255, 0.45);
  transform: scale(1.03);
}

.btn-apple-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-apple-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

/* Bento Box Grid Utilities */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #050608;
}

::-webkit-scrollbar-thumb {
  background: #1f293d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}

/* 3D Canvas Container */
#pipe-canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: grab;
}

#pipe-canvas-container:active {
  cursor: grabbing;
}

/* Pulse Animation */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulseGlow 6s ease-in-out infinite;
}

/* Tech Grid Background Pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  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);
}
