/* ==========================================================================
   CRYSTAL MARK MUMBAI - 2026 APPLE-INSPIRED DESIGN SYSTEM (crystalmark.in)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Montserrat:wght@700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --apple-bg: #F5F5F7;
  --apple-white: #FFFFFF;
  --apple-card: #FFFFFF;
  --apple-text: #1D1D1F;
  --apple-subtext: #86868B;
  --apple-blue: #0071E3;
  --apple-blue-hover: #0077ED;
  --apple-border: rgba(0, 0, 0, 0.08);
  --apple-border-light: rgba(0, 0, 0, 0.04);
  --apple-green: #10B981;
  --apple-amber: #F59E0B;
  --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  color: var(--apple-text);
  background-color: var(--apple-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--apple-bg);
  color: #334155;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  letter-spacing: -0.025em;
  color: var(--apple-text);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #F5F5F7;
}
::-webkit-scrollbar-thumb {
  background: #D2D2D7;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #86868B;
}

/* Apple Frosted Glass Navbar */
.apple-nav {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--apple-border);
  transition: all 0.35s var(--apple-ease);
}

/* Apple Card Geometry & Depth */
.apple-card {
  background: var(--apple-white);
  border: 1px solid var(--apple-border-light);
  border-radius: 28px;
  transition: all 0.5s var(--apple-ease);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
}
.apple-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
}

.apple-card-gray {
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  transition: all 0.5s var(--apple-ease);
}

/* Apple Blue Buttons & Links */
.btn-apple-primary {
  background-color: var(--apple-blue);
  color: #FFFFFF !important;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s var(--apple-ease);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
}
.btn-apple-primary:hover {
  background-color: var(--apple-blue-hover);
  transform: scale(1.02);
  box-shadow: 0 8px 22px rgba(0, 113, 227, 0.4);
}

.btn-apple-secondary {
  background-color: rgba(0, 113, 227, 0.08);
  color: var(--apple-blue) !important;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s var(--apple-ease);
}
.btn-apple-secondary:hover {
  background-color: rgba(0, 113, 227, 0.15);
  transform: scale(1.02);
}

.apple-link {
  color: var(--apple-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
}
.apple-link:hover {
  color: var(--apple-blue-hover);
  gap: 8px;
}

/* Keyframe Animations */
@keyframes pulsePing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes tickerSlide {
  0% { transform: translateY(100%); opacity: 0; }
  10% { transform: translateY(0); opacity: 1; }
  90% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

.animate-float-gentle {
  animation: floatGentle 5s ease-in-out infinite;
}

/* Interactive Hardware Hotspots */
.hotspot-pin {
  position: absolute;
  z-index: 20;
  cursor: pointer;
}
.hotspot-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--apple-blue);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.6);
  position: relative;
  transition: transform 0.3s ease;
}
.hotspot-pin:hover .hotspot-dot {
  transform: scale(1.3);
  background: #00C7FF;
}
.hotspot-ping {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.4);
  animation: pulsePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.hotspot-tooltip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(29, 29, 31, 0.95);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--apple-ease);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.hotspot-pin:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Interactive Before / After Comparison Slider */
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  user-select: none;
}
.slider-before-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-after-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
}
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #FFFFFF;
  cursor: ew-resize;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}
.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: var(--apple-blue);
  font-size: 14px;
  font-weight: bold;
}

/* Apple Segmented Pill Switcher */
.apple-segmented-nav {
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: 9999px;
  display: inline-flex;
  gap: 2px;
}
.apple-segmented-item {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-subtext);
  transition: all 0.3s var(--apple-ease);
  cursor: pointer;
  border: none;
  background: transparent;
}
.apple-segmented-item.active {
  background: #FFFFFF;
  color: var(--apple-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Floating WhatsApp Pulse Button */
.floating-whatsapp {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 990;
  transition: all 0.3s var(--apple-ease);
}
.floating-whatsapp:hover {
  transform: scale(1.1);
}
.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.35);
  animation: pulsePing 2s infinite;
  z-index: -1;
}

/* Mobile Quick Action Bottom Bar */
@media (max-width: 768px) {
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--apple-border);
    padding: 10px 16px env(safe-area-inset-bottom, 10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  }
  body {
    padding-bottom: 75px;
  }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
}
.toast-msg {
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  animation: slideInRight 0.35s ease forwards;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast-success {
  background: #FFFFFF;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.toast-error {
  background: #FFFFFF;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Modal Blur Overlay */
.modal-overlay {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Apple Badge & Pill Styles */
.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.apple-badge-blue {
  background: rgba(0, 113, 227, 0.08);
  color: var(--apple-blue);
  border: 1px solid rgba(0, 113, 227, 0.2);
}
.apple-badge-green {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.apple-badge-amber {
  background: rgba(245, 158, 11, 0.08);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Category Filter Tabs */
.filter-tab-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.25s var(--apple-ease);
  cursor: pointer;
  white-space: nowrap;
}
.filter-tab-btn:hover {
  background: #F3F4F6;
  color: var(--apple-text);
}
.filter-tab-btn.active {
  background: #1D1D1F;
  color: #FFFFFF;
  border-color: #1D1D1F;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Spec Row */
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
}
.spec-row:last-child {
  border-bottom: none;
}
