/* Custom Styling for Power Tech Tools */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --secondary: #0ea5e9;
  --dark-bg: #0b1120;
  --dark-card: #131c31;
  --dark-border: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.font-tech {
  font-family: 'Chakra Petch', monospace, sans-serif;
}

/* Industrial Grid Pattern */
.bg-industrial-grid {
  background-color: #080d1a;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-dot-pattern {
  background-image: radial-gradient(rgba(245, 158, 11, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Radial Glows */
.glow-amber {
  box-shadow: 0 0 40px -10px rgba(245, 158, 11, 0.35);
}

.glow-blue {
  box-shadow: 0 0 40px -10px rgba(14, 165, 233, 0.35);
}

/* Metallic Edge Card */
.metal-card {
  background: linear-gradient(145deg, #131d33, #0d1526);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.metal-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Blade Rotation Animation */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 28s linear infinite;
}

.animate-spin-slow:hover {
  animation-play-state: paused;
}

/* Pulse Glow Animation */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 4s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #090e17;
}
::-webkit-scrollbar-thumb {
  background: #25334d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Badge styling */
.badge-verified {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.badge-psu {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* WhatsApp floating pulse */
@keyframes whatsapp-ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-pulse {
  animation: whatsapp-ripple 2s infinite;
}

/* Modal Backdrops */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* High contrast inputs */
input, select, textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
}

/* Custom table styling */
.tech-table th {
  background-color: #17233d;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 10px 14px;
}

.tech-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.875rem;
}

.tech-table tr:hover td {
  background-color: rgba(245, 158, 11, 0.04);
}
