/* SUGU Services Custom Styles - Royal Blue & Dark Navy Theme */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --primary: #1b75d0;
  --primary-dark: #135cad;
  --primary-light: #eef5fd;
  --primary-glow: rgba(27, 117, 208, 0.35);
  --navy: #0c1a30;
  --navy-dark: #081222;
  --accent-gold: #f59e0b;
  --accent-amber: #d97706;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.85);
}

body {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
}

h1, h2, h3, .font-heading {
  font-family: 'Outfit', 'Inter', sans-serif;
}

.font-script {
  font-family: 'Caveat', cursive;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.glass-dark {
  background: rgba(12, 26, 48, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

/* 3D Mode Card Buttons on Home */
.mode-card {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1.5rem;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: rotate(30deg);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.mode-card:hover::before {
  opacity: 1;
}

.mode-card:hover {
  transform: translateY(-6px) scale(1.015);
}

/* Urban Company Category Card Grid Items */
.sugu-category-card {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.sugu-category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 25px -8px rgba(27, 117, 208, 0.25);
  border-color: #1b75d0;
}

.sugu-category-card img {
  transition: transform 0.4s ease;
  object-fit: contain;
}

.sugu-category-card:hover img {
  transform: scale(1.08);
}

/* Urban Company Style Subcategory Navigation Pill */
.uc-subcat-pill {
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.uc-subcat-pill.active {
  background-color: #1b75d0;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(27, 117, 208, 0.35);
}

/* Realistic product tile styling */
.service-tile {
  background-color: #f0f4f9;
  border-radius: 1rem;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid rgba(226, 232, 240, 0.8);
  min-height: 120px;
}

.service-tile:hover {
  background-color: #e5effa;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(27, 117, 208, 0.15);
  border-color: #1b75d0;
}

.service-tile-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.65rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.06));
}

.service-tile:hover .service-tile-img {
  transform: scale(1.1);
}

.service-tile-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}

/* Category Tab Pill */
.category-nav-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
  background-color: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.category-nav-pill:hover {
  background-color: #f1f5f9;
  color: #1b75d0;
  border-color: #cbd5e1;
}

.category-nav-pill.active {
  background-color: #1b75d0;
  color: #ffffff;
  border-color: #1b75d0;
  box-shadow: 0 4px 12px rgba(27, 117, 208, 0.3);
}

/* ThreeJS Canvas Background */
#threejs-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Modal Transitions */
.modal-enter {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
}
.modal-enter-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}

/* Shimmer Effect for Offers */
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmerMove 3s infinite;
}

@keyframes shimmerMove {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Pulse radar ring for live tracking */
.radar-ring {
  border: 2px solid #1b75d0;
  border-radius: 50%;
  animation: radarPing 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes radarPing {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hide scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
