/* V-CT Company Website Styles - Navy & Gold Theme */

/*
 * Critical fallbacks: Tailwind CDN may not emit custom theme colors (navy/gold)
 * if the config script runs late or fails — body stays white while text stays
 * light → invisible content. These rules guarantee contrast without Tailwind.
 */
:root {
  --vct-navy-950: #050d1a;
  --vct-navy-900: #0a1628;
  --vct-navy-850: #0f1f38;
  --vct-navy-800: #162d4e;
  --vct-gold: #d4af37;
}

html {
  background-color: var(--vct-navy-950);
  scroll-behavior: smooth;
}

body {
  background-color: var(--vct-navy-950);
  color: #f8fafc;
}

#home-hero-bg {
  background: linear-gradient(
    to bottom right,
    var(--vct-navy-950),
    var(--vct-navy-900),
    var(--vct-navy-850)
  ) !important;
}

#home {
  background-color: var(--vct-navy-950);
  color: #f8fafc;
}

/* Hero headline middle line: gradient text even if Tailwind gold utilities missing */
#home h1 span.bg-clip-text.text-transparent {
  background-image: linear-gradient(to right, #f0d78c, #d4af37, #c8a030);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#products,
#partners {
  background-color: var(--vct-navy-950);
  color: #f8fafc;
}

footer.bg-navy-950,
footer[class*="navy"] {
  background-color: var(--vct-navy-950) !important;
  color: #f8fafc;
}

/* Light sections: avoid inheriting white text from body */
#about,
#services,
#contact,
#products {
  color: #1e293b;
}

/* Navbar styles */
.nav-text-color {
  color: white;
}
.nav-text-sub {
  color: rgba(255, 255, 255, 0.5);
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 40px rgba(16, 42, 67, 0.08);
  border-bottom: 1px solid rgba(16, 42, 67, 0.06);
}

.navbar-scrolled .nav-text-color {
  color: #102a43;
}
.navbar-scrolled .nav-text-sub {
  color: #627d98;
}
.navbar-scrolled .nav-link {
  color: #334e68;
}
.navbar-scrolled .nav-link:hover {
  color: #102a43;
  background: rgba(16, 42, 67, 0.05);
}
.navbar-scrolled #mobileMenuBtn i {
  color: #102a43;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
}
.nav-link:hover {
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

/* Scroll reveal initial state */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    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 cubic-bezier(0.16, 1, 0.3, 1),
    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 cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Selection color */
::selection {
  background: rgba(200, 168, 78, 0.2);
  color: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
  background: #9fb3c8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #829ab1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #home h1 {
    font-size: 2.25rem;
  }
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Form placeholder */
::placeholder {
  color: #9fb3c8;
}

/* Loading animation for form */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Gradient text fallback */
@supports not (background-clip: text) {
  .bg-clip-text {
    color: #c8a84e;
  }
}

/* Gold gradient line decoration */
.gold-line::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #d4af37, #c8a84e);
  margin-top: 12px;
  border-radius: 2px;
}

.gold-line-center::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #d4af37, #c8a84e);
  margin-top: 12px;
  border-radius: 2px;
  margin-left: auto;
  margin-right: auto;
}

/* Hover card lift effect */
.card-lift {
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(16, 42, 67, 0.12);
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ==================== NEW WEBSITE STYLES ==================== */

/* Floating Particles */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) scale(1.5);
  }
}

/* Pulse dot animation */
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.pulse-dot {
  animation: pulseDot 2s ease-in-out infinite;
}

/* Pulse ring animation */
@keyframes pulseRing {
  0% {
    r: 8;
    opacity: 0.8;
  }
  100% {
    r: 16;
    opacity: 0;
  }
}

/* Map line draw animation */
.line-animate {
  animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
  from {
    stroke-dashoffset: 400;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Navbar blur on scroll */
#navbar {
  background: transparent;
}

#navbar.navbar-scrolled {
  background: rgba(10, 22, 40, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

#navbar.navbar-scrolled .nav-text-color {
  color: white;
}
#navbar.navbar-scrolled .nav-text-sub {
  color: rgba(255, 255, 255, 0.5);
}
#navbar.navbar-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.7);
}
#navbar.navbar-scrolled .nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}
#navbar.navbar-scrolled #mobileMenuBtn i {
  color: white;
}

/* Hero scroll indicator fix */
#home .animate-bounce {
  animation-name: bounce;
}

/* Map dot hover tooltip */
.map-dot:hover .pulse-ring {
  animation: pulseRing 1s ease-out infinite;
}

/* Partner cards: clean grid layout */
.partner-focus-card {
  transition:
    opacity 0.28s ease,
    border-color 0.2s ease,
    transform 0.25s ease;
}

.partner-focus-card:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}

.partner-focus-country {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.35rem;
}

/* Map ↔ partner card sync */
.partner-focus-card.active {
  border-color: rgba(212, 175, 55, 0.45) !important;
  background: rgba(212, 175, 55, 0.06) !important;
}

/* Mobile menu animation */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileMenu.open {
  max-height: 500px;
}

/* Section divider glow */
.section-glow {
  position: relative;
}

.section-glow::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.4),
    transparent
  );
}

/* Hero gradient text pulse */
@keyframes textPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Map ↔ partner card sync */
.partner-focus-card.active {
  border-color: rgba(212, 175, 55, 0.45) !important;
  background: rgba(212, 175, 55, 0.06) !important;
}

/* Form input focus glow */
.form-input:focus {
  border-color: #162d4e;
  box-shadow: 0 0 0 4px rgba(22, 45, 78, 0.08);
}

/* Counter animation */
.counter {
  font-variant-numeric: tabular-nums;
}

/* CTA button shimmer */
@keyframes ctaShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Back to top button */
#backToTop {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

#backToTop.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Stagger animation delays */
.stagger-1 {
  animation-delay: 0.1s;
}
.stagger-2 {
  animation-delay: 0.2s;
}
.stagger-3 {
  animation-delay: 0.3s;
}
.stagger-4 {
  animation-delay: 0.4s;
}
.stagger-5 {
  animation-delay: 0.5s;
}
.stagger-6 {
  animation-delay: 0.6s;
}
