/* ==========================================================================
   ÉTUDE NOTARIALE MAÎTRE HASNAE ABOUAM - LUXURY DESIGN SYSTEM
   Bilingual Arabic (Cairo) & French (Cormorant Garamond / Inter)
   Palette: Deep Navy (#0F172A), Gold (#C5A059), Moroccan Red (#B91C1C), Emerald Green (#15803D)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-navy: #0F172A;
  --color-navy-dark: #070B14;
  --color-navy-light: #1E293B;
  --color-gold: #C5A059;
  --color-gold-light: #DFBA73;
  --color-gold-dark: #9E7D3B;
  --color-red: #B91C1C;
  --color-green: #15803D;
  --color-ivory: #F8FAFC;
  --font-arabic: 'Cairo', sans-serif;
  --font-french-serif: 'Cormorant Garamond', Georgia, serif;
  --font-french-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Configuration */
html {
  scroll-behavior: smooth;
  font-family: var(--font-french-sans);
  color: #334155;
  background-color: var(--color-navy);
}

html[dir="rtl"] {
  font-family: var(--font-arabic);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0F172A;
}
::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #DFBA73;
}

/* Typography Helpers */
.font-arabic {
  font-family: var(--font-arabic);
}
.font-serif-luxury {
  font-family: var(--font-french-serif);
}
.font-sans-ui {
  font-family: var(--font-french-sans);
}

/* Moroccan Geometric Pattern Watermarks */
.bg-moroccan-pattern {
  background-color: #0F172A;
  background-image: radial-gradient(rgba(197, 160, 89, 0.08) 1px, transparent 1px),
    radial-gradient(rgba(197, 160, 89, 0.05) 1px, #0F172A 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

.bg-moroccan-arabesque {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l7.5 22.5L60 30l-22.5 7.5L30 60l-7.5-22.5L0 30l22.5-7.5z' fill='%23C5A059' fill-opacity='0.035' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.bg-moroccan-star-subtle {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C5A059' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M40 0l6 14 14-6-6 14 14 6-14 6 6 14-14-6-6 14-6-14-14 6 6-14-14-6 14-6-6-14 14 6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Gold Metallic Gradients */
.gold-gradient-text {
  background: linear-gradient(135deg, #F3E5AB 0%, #DFBA73 35%, #C5A059 70%, #9E7D3B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #DFBA73 0%, #C5A059 50%, #9E7D3B 100%);
}

.gold-gradient-border {
  border-image: linear-gradient(135deg, #DFBA73, #C5A059, #9E7D3B) 1;
}

.gold-shimmer {
  background: linear-gradient(90deg, transparent, rgba(223, 186, 115, 0.25), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Glassmorphism Classes */
.glass-panel-dark {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.glass-panel-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 10px 30px -10px rgba(197, 160, 89, 0.15);
}

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

.preserve-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.rotate-y-180 {
  transform: rotateY(180deg);
}

.card-glare {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}

/* Luxury Card Shadow */
.luxury-card-shadow {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px 0 rgba(197, 160, 89, 0.12);
}

/* Seal & Stamp styling */
.official-stamp {
  border: 2px dashed rgba(197, 160, 89, 0.4);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle glow animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.45);
  }
}

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

/* RTL specific adjustments */
[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}

[dir="rtl"] .space-x-reverse > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

/* Interactive Calculator range slider styling */
input[type="range"] {
  accent-color: #C5A059;
}

/* Smooth modal transition */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Button Luxury Hover */
.btn-luxury-primary {
  background: linear-gradient(135deg, #DFBA73 0%, #C5A059 50%, #9E7D3B 100%);
  color: #0F172A;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-luxury-primary:hover {
  background: linear-gradient(135deg, #F3E5AB 0%, #DFBA73 50%, #C5A059 100%);
  box-shadow: 0 10px 25px -5px rgba(197, 160, 89, 0.4);
  transform: translateY(-2px);
}

.btn-luxury-outline {
  border: 1px solid rgba(197, 160, 89, 0.6);
  color: #DFBA73;
  transition: all 0.3s ease;
}

.btn-luxury-outline:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: #DFBA73;
  color: #FFFFFF;
  transform: translateY(-2px);
}
