/* Custom Styles and Utility Overlays */

body {
  overflow-x: hidden;
}

/* Custom Cursors */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #D4AF37;
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor-dot {
  width: 4px;
  height: 4px;
  background-color: #D4AF37;
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}

/* Cyberpunk Glassmorphism */
.glass {
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-dark {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.glass-card {
  background: rgba(13, 13, 13, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15), /* purple glow */
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Luxury Cyber Gradients */
.gold-gradient {
  background: linear-gradient(135deg, #F6D365 0%, #D4AF37 100%);
}

.purple-gradient {
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
}

.blue-gradient {
  background: linear-gradient(135deg, #3FA9F5 0%, #1D4ED8 100%);
}

.sunset-gradient {
  background: linear-gradient(135deg, #FF8A00 0%, #E11D48 100%);
}

.luxury-text-gradient {
  background: linear-gradient(135deg, #F9FAFB 30%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.luxury-glow-gradient {
  background: linear-gradient(135deg, #D4AF37 0%, #7C3AED 50%, #3FA9F5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.animate-float-slow {
  animation: float 8s ease-in-out infinite;
}

.animate-float-fast {
  animation: float 4s ease-in-out infinite;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7C3AED;
}

/* ──────────────────────────────────────────────────────────────────────────────
   SMARTWATCH & MICRO-VIEWPORT RESPONSIVENESS (Down to 160px)
   ────────────────────────────────────────────────────────────────────────────── */

/* Wearable, Watch, & Tiny screen scaling rules */
@media (max-width: 480px) {
  /* Restored default sizing for readability */
}

@media (max-width: 360px) {
  .glass-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }
  header {
    width: 98% !important;
    top: 4px !important;
  }
}

@media (max-width: 280px) {
  /* Scale down header logo size for watch screens */
  header img, .logo-container, header Link, header div {
    max-width: 60px !important;
    max-height: 60px !important;
  }
  header {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    border-radius: 8px !important;
  }
  header button {
    padding: 4px !important;
  }
  /* Remove excessive section spacings */
  main {
    padding-top: 75px !important;
    padding-bottom: 30px !important;
  }
  section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  /* Prevent horizontal layout overflows */
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 200px) {
  /* Fully disable memory-heavy 3D canvas and high-cost background rings on watches */
  canvas,
  #hero-canvas,
  .hero-canvas-container,
  .absolute-glow-rings,
  .pointer-events-none {
    display: none !important;
  }
  body {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  main {
    padding-top: 60px !important;
  }
  /* Enforce single column grids */
  .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  /* Wrap all flex elements vertically */
  .flex {
    flex-wrap: wrap !important;
  }
  /* Smooth scroll performance on low-power devices */
  * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
  }
}
