/* ========================================================
   HighArab - Saudi Heavy Machinery & Contracting
   Premium Royal Navy & Metallic Gold Theme
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
  --color-primary-dark: #0F172A;
  --color-primary-darker: #020617;
  --color-navy: #1E293B;
  --color-gold: #D4AF37;
  --color-gold-hover: #C5A028;
  --color-gold-light: #FDE68A;
  --color-amber: #F59E0B;
  --color-slate-bg: #F8FAFC;
  --color-charcoal: #0F172A;
  --font-arabic: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-english: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Typography based on language */
html[lang="ar"] {
  font-family: var(--font-arabic);
}

html[lang="en"] {
  font-family: var(--font-english);
}

body {
  background-color: #F8FAFC;
  color: #0F172A;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Classes */
.glass-header {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Gold Gradient Accents */
.bg-gold-gradient {
  background: linear-gradient(135deg, #D4AF37 0%, #F59E0B 50%, #B48C36 100%);
}

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

.border-gold-glow {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

/* Slider Custom Styles */
.hero-swiper {
  width: 100%;
  position: relative;
}

.swiper-slide {
  overflow: hidden;
  position: relative;
}

.swiper-pagination-bullet {
  width: 32px !important;
  height: 6px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.35) !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  width: 48px !important;
  background: #D4AF37 !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.9) !important;
}

.swiper-button-next,
.swiper-button-prev {
  width: 48px !important;
  height: 48px !important;
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-radius: 9999px !important;
  color: #D4AF37 !important;
  transition: all 0.3s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #D4AF37 !important;
  color: #020617 !important;
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: bold !important;
}

/* Floating WhatsApp Pulse Animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-pulse {
  animation: pulse-ring 2.2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

/* Card Hover Lift */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
}

/* Custom Page Scrollbar */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #0F172A;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 5px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #F59E0B;
}

/* 3D Interactive Flip Card Architecture */
/* Flip Card 3D Animation (Rock-Solid Absolute Locked Positioning) */
.flip-card {
  perspective: 1200px;
  background-color: transparent;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  border-radius: 1.5rem;
  overflow: hidden;
  transform-style: preserve-3d;
  margin: 0 !important;
}

.flip-card-front {
  z-index: 2;
  transform: rotateY(0deg);
  pointer-events: auto;
}

.flip-card:hover .flip-card-front,
.flip-card.is-flipped .flip-card-front {
  z-index: 1;
  pointer-events: none;
}

.flip-card-back {
  z-index: 1;
  transform: rotateY(180deg);
  pointer-events: none;
}

.flip-card:hover .flip-card-back,
.flip-card.is-flipped .flip-card-back {
  z-index: 10;
  pointer-events: auto;
}

.flip-card-back a,
.flip-card-back button {
  position: relative;
  z-index: 50;
  pointer-events: auto !important;
  transform: translateZ(20px);
}

/* ========================================================
   Infinite Continuous Logo Marquee Track (GPU Accelerated)
   ======================================================== */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

html[dir="rtl"] .marquee-track {
  animation: marquee-scroll-rtl 40s linear infinite;
}

html[dir="rtl"] .marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}
