/* JSD Electric LLC - Modern Clean Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #08090b;
  --bg-surface: #0f1115;
  --bg-card: #15181e;
  --bg-card-hover: #1c212a;
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #b45309;
  --gold-metallic: linear-gradient(135deg, #ffe082 0%, #ffc107 35%, #ffa000 70%, #d4af37 100%);
  --silver-metallic: linear-gradient(135deg, #ffffff 0%, #cfd8dc 40%, #90a4ae 70%, #eceff1 100%);
  --cyan-accent: #38bdf8;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-gold: #fcd34d;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.35);
  --border-gold-bright: rgba(251, 191, 36, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #090a0d;
}
::-webkit-scrollbar-thumb {
  background: #2b303a;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Typography Enhancements */
h1, h2, h3, h4, .brand-font {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

.mono-font {
  font-family: 'Space Grotesk', monospace;
}

/* Subtle Carbon / Circuit Texture Overlay */
.carbon-pattern {
  background-image: 
    radial-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

/* 3D Three.js Hero Canvas */
#three-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}

/* Glow Utilities */
.glow-gold {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

.glow-gold-lg {
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.25), 0 0 100px rgba(245, 158, 11, 0.1);
}

.text-glow-gold {
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.text-glow-cyan {
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

/* Metallic Gradients */
.gold-gradient-text {
  background: linear-gradient(135deg, #fff7c2 0%, #facc15 30%, #f59e0b 70%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.silver-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Diamond Border Motif (Direct Inspiration from Business Card Back) */
.card-diamond-frame {
  position: relative;
  display: inline-block;
}

.card-diamond-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(226, 232, 240, 0.35);
  transform: rotate(45deg);
  pointer-events: none;
  transition: all 0.4s ease;
}

.card-diamond-frame::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  transform: rotate(45deg);
  pointer-events: none;
  transition: all 0.4s ease;
}

/* 3D Realistic Business Card Component */
.card-3d-scene {
  perspective: 1200px;
  width: 100%;
  max-width: 460px;
  height: 270px;
  margin: 0 auto;
}

.card-3d-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 16px;
  cursor: pointer;
}

.card-3d-flipper.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  padding: 24px;
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 30px rgba(245, 158, 11, 0.15);
  background: 
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(30, 41, 59, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, #121418 0%, #0a0b0d 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Dynamic Glare Reflection across 3D Card */
.card-face::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(30deg);
  pointer-events: none;
  transition: transform 0.5s ease;
}

.card-face-back {
  transform: rotateY(180deg);
  background: 
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, #0e1014 0%, #060708 100%);
}

/* Dual Diamond Outline for Card Back */
.card-back-geometric {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  pointer-events: none;
}

.diamond-outer {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
}

.diamond-inner {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  transform: rotate(45deg);
}

/* Light beam streak */
.card-beam {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  width: 140%;
  top: 50%;
  left: -20%;
  transform: rotate(-35deg);
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(18, 21, 27, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 24px rgba(245, 158, 11, 0.12);
}

/* Interactive Button Hover Glow */
.btn-electric {
  position: relative;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0d10;
  font-weight: 700;
  overflow: hidden;
  transition: all 0.25s ease;
  z-index: 1;
}

.btn-electric::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.btn-electric:hover::before {
  left: 100%;
}

.btn-electric:hover {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6), 0 4px 14px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  color: #000;
}

.btn-outline-gold {
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.05);
  transition: all 0.25s ease;
}

.btn-outline-gold:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

/* Pulsing Badge Indicator */
.pulse-indicator {
  position: relative;
}

.pulse-indicator::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.6;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Electric Spark Animation */
@keyframes spark-flicker {
  0%, 100% { opacity: 0.9; }
  25% { opacity: 0.4; }
  50% { opacity: 1; filter: drop-shadow(0 0 8px #f59e0b); }
  75% { opacity: 0.6; }
}

.spark-animate {
  animation: spark-flicker 3s infinite ease-in-out;
}

/* Range Slider Styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #1f242d;
  height: 8px;
  border-radius: 4px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Custom Notification Toast */
#toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .card-3d-scene {
    height: 240px;
    max-width: 360px;
  }
  .card-face {
    padding: 16px;
  }
}
