@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090a0c;
}
::-webkit-scrollbar-thumb {
  background: #1f2025;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary, #c59b27);
}

:root {
  --accent-primary: #c59b27;
  --accent-glow: rgba(197, 155, 39, 0.15);
  --glass-bg: rgba(13, 14, 20, 0.6);
  --header-bg: rgba(5, 5, 8, 0.8);
  --footer-bg: rgba(10, 10, 15, 0.8);
  --mouse-x: 0px;
  --mouse-y: 0px;
}

body {
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  background-color: #050508;
  color: #f3f4f6;
  transition: font-family 0.3s ease, background 0.3s ease;
}

/* Theme Fonts */
.font-theme-montserrat { font-family: "Montserrat", sans-serif; }
.font-theme-cinzel { font-family: "Cinzel", serif; }
.font-theme-outfit { font-family: "Outfit", sans-serif; }
.font-theme-playfair { font-family: "Playfair Display", serif; }

.font-luxury {
  font-family: "Cinzel", serif;
}

.font-display {
  font-family: "Space Grotesk", sans-serif;
}

/* Premium Dark Background Gradient with Orb animations */
.faded-bg-gradient {
  background: radial-gradient(circle at 50% 0%, #161722 0%, #050508 70%);
  position: relative;
}

/* Dots Grid Background */
.dots-bg {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Lines Grid Background */
.lines-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Noise Texture Background */
.noise-bg {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Header and Footer Background Overrides */
header {
  background: var(--header-bg) !important;
}
#global-footer {
  background: var(--footer-bg) !important;
}

/* Interactive Cursor Glow */
.cursor-glow-active {
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    var(--accent-glow, rgba(197, 155, 39, 0.08)),
    transparent 80%
  );
}

/* Orb animations */
@keyframes float-orb-1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.08;
  }
  33% {
    transform: translate(100px, -60px) scale(1.2);
    opacity: 0.15;
  }
  66% {
    transform: translate(-60px, 80px) scale(0.9);
    opacity: 0.05;
  }
}
@keyframes float-orb-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1.1);
    opacity: 0.06;
  }
  50% {
    transform: translate(-80px, 90px) scale(0.8);
    opacity: 0.12;
  }
}

.animate-float-1 {
  animation: float-orb-1 15s infinite ease-in-out;
}
.animate-float-2 {
  animation: float-orb-2 18s infinite ease-in-out;
}

/* Shimmer Sweep Animation for Gold Buttons */
@keyframes shimmer-sweep {
  0% {
    left: -150%;
  }
  35%, 100% {
    left: 150%;
  }
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  animation: shimmer-sweep 4s infinite ease-in-out;
}

/* Luxury Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 10px 30px -10px rgba(0, 0, 0, 0.7),
    0 1px 1px 0 rgba(255, 255, 255, 0.02) inset;
}

.glass-card-gold {
  background: rgba(13, 14, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 155, 39, 0.15);
  box-shadow: 
    0 15px 35px -10px rgba(0, 0, 0, 0.8),
    0 0 25px 2px rgba(197, 155, 39, 0.02),
    0 1px 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: all 0.3s ease;
}

.glass-card-gold:hover {
  border-color: var(--accent-primary, #c59b27);
  box-shadow: 
    0 20px 40px -8px rgba(0, 0, 0, 0.9),
    0 0 30px 4px var(--accent-glow, rgba(197, 155, 39, 0.06)),
    0 1px 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* Interactive 3D Card Rotation */
.perspective-1000 {
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.card-3d:hover .card-inner {
  transform: rotateY(15deg) rotateX(5deg);
}

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

.backface-hidden {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Card Preset Textures */
.texture-metal-slate {
  background: radial-gradient(circle at 50% 50%, #2a2a35 0%, #0d0d12 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1), 0 10px 25px rgba(0,0,0,0.5);
}

.texture-metal-gold {
  background: linear-gradient(135deg, #dfbc6b 0%, #c4993a 50%, #9e7520 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3), 0 10px 25px rgba(0,0,0,0.3);
}

.texture-metal-silver {
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #64748b 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3), 0 10px 25px rgba(0,0,0,0.3);
}

.texture-wood {
  background: radial-gradient(circle at 30% 20%, #654321 0%, #3d2510 100%);
  border: 1px solid rgba(139, 92, 26, 0.2);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.texture-wood-bamboo {
  background: linear-gradient(135deg, #e3d2aa 0%, #c8b688 100%);
  border: 1px solid rgba(223, 207, 165, 0.4);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.texture-carbon {
  background: radial-gradient(circle at 50% 50%, #151518 0%, #08080a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  background-image: 
    linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.02) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.02) 75%);
  background-size: 8px 8px;
}

.texture-pvc {
  background: #111215;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.05), 0 10px 20px rgba(0,0,0,0.4);
}

/* Smartphone Mockup Frame Styling */
.phone-notch {
  width: 110px;
  height: 22px;
  background: #000;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.phone-screen {
  scrollbar-width: thin;
  scrollbar-color: #1f2025 #090a0c;
}

/* Utility Animations */
.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Fade in effects */
.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Gold Glow Text helper */
.text-gold-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-primary, #c59b27) 50%, var(--accent-primary, #aa7c11) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
