/* Custom styling for Trade Aurevia website */

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

:root {
  --color-navy-dark: #071A33;
  --color-navy-medium: #0B2345;
  --color-gold: #D4A72C;
  --color-gold-light: #F5C84C;
  --color-white: #FFFFFF;
  --color-gray-light: #F5F7FA;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Custom Gold Gradients */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFF 0%, #F5C84C 30%, #D4A72C 70%, #F5C84C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold-pure-gradient {
  background: linear-gradient(135deg, #F5C84C 0%, #D4A72C 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #F5C84C 0%, #D4A72C 50%, #B8860B 100%);
}

.bg-gold-gradient-hover {
  background: linear-gradient(135deg, #FFF 0%, #F5C84C 50%, #D4A72C 100%);
}

.border-gold-gradient {
  border-image: linear-gradient(135deg, #F5C84C, #D4A72C, #0B2345) 1;
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(11, 35, 69, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 167, 44, 0.15);
}

.glass-panel-hover:hover {
  border-color: rgba(245, 200, 76, 0.4);
  box-shadow: 0 10px 30px -10px rgba(212, 167, 44, 0.2);
  transform: translateY(-5px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-navy-dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-navy-medium) 0%, var(--color-gold) 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}

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

@keyframes float-delayed {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes float-horizontal {
  0% { transform: translateX(0px); }
  50% { transform: translateX(10px); }
  100% { transform: translateX(0px); }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 15px rgba(212, 167, 44, 0.2); }
  50% { box-shadow: 0 0 30px rgba(245, 200, 76, 0.45); }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

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

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

.animate-float-horizontal {
  animation: float-horizontal 7s ease-in-out infinite;
}

.animate-pulse-gold {
  animation: pulse-gold 3s infinite;
}

.map-line {
  stroke-dasharray: 8;
  animation: dash 30s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Animated Grid Hero Background */
.hero-grid-bg {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(212, 167, 44, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 167, 44, 0.03) 1px, transparent 1px);
}

/* Glow Borders */
.glow-border {
  position: relative;
}
.glow-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 200, 76, 0.3), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Scroll Indicators */
.scroll-indicator-dot {
  animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* Custom Button Hover Transition */
.btn-premium {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 167, 44, 0.3);
}

/* Reveal on Scroll default states */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Tilt effect containers */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .animate-float, .animate-float-delayed, .animate-float-horizontal, .scroll-indicator-dot, .map-line {
    animation: none !important;
    transform: none !important;
  }
}

/* Infinity Marquee Ticker Styles */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.3333%); } /* Loop over 3 sets for perfect seamless transition */
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  background: var(--color-navy-medium);
  border-top: 1px solid rgba(212, 167, 44, 0.2);
  border-bottom: 1px solid rgba(212, 167, 44, 0.2);
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  padding: 0.75rem 0;
}

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

