/* ==========================================================================
   SALAMAR INTERNATIONAL BUSINESS - OFFICIAL STYLESHEET
   Dubái & Global Operations • Luxury Sovereign Corporate Design System
   ========================================================================== */

/* --- 1. TYPOGRAPHY IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- 2. CSS VARIABLES / DESIGN TOKENS --- */
:root {
  --font-cinzel: 'Cinzel', serif;
  --font-playfair: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-dark: #0B0D10;
  --bg-darker: #050608;
  --bg-card: #12151C;
  --bg-card-hover: #181C26;
  --bg-card-border: rgba(212, 175, 55, 0.2);
  
  --gold-primary: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-lighter: #FFF6D6;
  --gold-dark: #AA7C11;
  --gold-darker: #7A580B;
  --gold-shadow: rgba(212, 175, 55, 0.35);
  
  --text-primary: #F8F5EE;
  --text-muted: rgba(248, 245, 238, 0.65);
}

/* --- 3. BASE HTML & RESET --- */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: #FFF6D6;
}

/* --- 4. TYPOGRAPHY CLASSES --- */
.font-cinzel {
  font-family: var(--font-cinzel);
}

.font-serif-display {
  font-family: var(--font-playfair);
}

.font-sans-clean {
  font-family: var(--font-sans);
}

/* --- 5. LUXURY GOLD GRADIENTS & GLOWS --- */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFF6D6 0%, #F3E5AB 25%, #D4AF37 60%, #AA7C11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold-light {
  background: linear-gradient(135deg, #FFFFFF 0%, #F3E5AB 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-glow {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.18);
}

.gold-glow-lg {
  box-shadow: 0 0 45px rgba(212, 175, 55, 0.3);
}

.gold-border-glow {
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.gold-border-glow:hover {
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.5) 50%, transparent 100%);
}

/* --- 6. KEYFRAME ANIMATIONS --- */

/* Burj Khalifa Vertical Pan & Zoom Motion */
@keyframes burjPanVertical {
  0% {
    transform: scale(1.2) translateY(0px);
  }
  50% {
    transform: scale(1.2) translateY(-40px);
  }
  100% {
    transform: scale(1.2) translateY(0px);
  }
}

.animate-burj-pan {
  animation: burjPanVertical 14s ease-in-out infinite-alternate !important;
  animation: burjPanVertical 14s ease-in-out infinite alternate !important;
  will-change: transform;
}

/* Shimmer Light Reflection */
@keyframes goldShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.25) 50%, rgba(212, 175, 55, 0) 100%);
  background-size: 200% 100%;
  animation: goldShimmer 4s infinite linear;
}

/* Breathing Glow */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.04);
  }
}

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

/* Floating Slow */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

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

.fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

/* --- 7. LUXURY CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0B0D10;
}

::-webkit-scrollbar-thumb {
  background: #252219;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* --- 8. ESG SIMULATOR RANGE INPUT STYLING --- */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  width: 100%;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #1C202B;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

input[type=range]::-webkit-slider-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF6D6, #D4AF37);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.7);
  border: 2px solid #0B0D10;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.22);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.95);
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #1C202B;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

input[type=range]::-moz-range-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF6D6, #D4AF37);
  cursor: pointer;
  border: 2px solid #0B0D10;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type=range]::-moz-range-thumb:hover {
  transform: scale(1.22);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.95);
}

/* --- 9. MODALS & OVERLAYS --- */
.modal-backdrop {
  background-color: rgba(5, 6, 8, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* --- 10. LUXURY CARDS & GLASSMORPHISM --- */
.card-luxury {
  background: #12151C;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-luxury:hover {
  background: #161A24;
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
  transform: translateY(-3px);
}

.glass-panel {
  background: rgba(18, 21, 28, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
