/* styles.css - Custom styling for Global Currency Hub (GCH) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #E6C15C;
  --color-secondary: #F9E7B9;
  --color-bg: #050505;
  --color-surface: #0B0B0B;
  --color-accent-glow: rgba(230, 193, 92, 0.15);
  --color-accent-glow-strong: rgba(230, 193, 92, 0.4);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: #E2E8F0;
  overflow-x: hidden;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 4px;
  border: 2px solid var(--color-bg);
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Glassmorphism */
.glass-nav {
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.glass-card {
  background: rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

/* Animations */
@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-2deg); }
}

@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
  }
}

@keyframes rotate-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.animate-float-delayed {
  animation: float-reverse 7s ease-in-out infinite;
  animation-delay: 1s;
}

.animate-rotate-slow {
  animation: rotate-slow 25s linear infinite;
}

.animate-pulse-gold {
  animation: pulse-gold 4s infinite ease-in-out;
}

/* Glowing text classes */
.text-glow-gold {
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Gold Gradient text */
.text-gradient-gold {
  background: linear-gradient(135deg, #B38F34 0%, #F9E7B9 25%, #E6C15C 50%, #F9E7B9 75%, #B38F34 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 4s linear infinite;
}

/* Gold frame styling */
.gold-frame {
  border: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.9) 0%, rgba(5, 5, 5, 0.95) 100%);
}

.gold-frame::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  pointer-events: none;
}

/* Border Tracing Effect */
.border-trace-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.border-trace-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.border-trace-btn:hover::before {
  left: 100%;
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #D4AF37, #F5D67B);
  z-index: 9999;
  width: 0%;
}

/* Custom Scroll reveal initial states */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-hidden.reveal-left {
  transform: translateX(-30px);
}

.reveal-hidden.reveal-right {
  transform: translateX(30px);
}

.reveal-visible {
  opacity: 1;
  transform: translate(0) !important;
}

/* Timeline vertical line */
.timeline-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.6) 50%, rgba(212, 175, 55, 0.1) 100%);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline-line::before {
    left: 20px;
    transform: none;
  }
}

/* Odometer / Ticker number rotation styling */
.odo-container {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  color: #E6C15C; /* Solid Metallic Gold */
}

.odo-digit {
  display: inline-block;
  height: 4rem;
  overflow: hidden;
  position: relative;
  width: 2.2rem;
  text-align: center;
}

@media (max-width: 640px) {
  .odo-digit {
    height: 3rem;
    width: 1.6rem;
  }
}

.odo-strip {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.odo-strip span {
  height: 4rem;
  line-height: 4rem;
  display: block;
  color: #E6C15C; /* Solid Metallic Gold */
  text-shadow: 0 0 15px rgba(230, 193, 92, 0.5); /* Glowing Gold */
}

@media (max-width: 640px) {
  .odo-strip span {
    height: 3rem;
    line-height: 3rem;
  }
}

/* Styled Watermark Section Background */
.section-bg-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.05; /* Balanced contrast for text visibility */
  mix-blend-mode: lighten;
  background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=1200&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(110%);
}

.section-bg-watermark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #050505 0%, rgba(230, 193, 92, 0.08) 50%, #050505 100%);
  z-index: 1;
}
