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

:root {
  --primary-blue: #0052cc;
  --primary-dark-blue: #0a2540;
  --accent-blue: #0066ff;
  --light-blue: #e6f0ff;
  --sky-blue: #0284c7;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
}

* {
  font-family: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Be Vietnam Pro', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p, span, label {
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Prevent isolated orphan word wrapping on buttons, badges, nav links, and tags */
button,
.btn,
nav a,
.badge,
.tag,
.whitespace-nowrap-forced {
  white-space: nowrap;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #0052cc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0a2540;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark {
  background: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blue Gradient Text & Badges */
.gradient-text {
  background: linear-gradient(135deg, #0052cc 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg {
  background: linear-gradient(135deg, #0a2540 0%, #0052cc 100%);
}

/* Card Hover Elevation */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 82, 204, 0.15), 0 10px 10px -5px rgba(0, 82, 204, 0.08);
}

/* Smooth Modal Backdrop */
.modal-backdrop {
  background-color: rgba(10, 37, 64, 0.75);
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   HERO BANNER ENTRANCE ANIMATIONS
   ========================================================================== */

/* Keyframes */
@keyframes heroFadeDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroCardSlideIn {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes heroFloatCard {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Entrance Animation Utility Classes */
.animate-hero-badge {
  animation: heroFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-hero-title {
  animation: heroSlideRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.animate-hero-desc {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.animate-hero-cta {
  animation: heroZoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.animate-hero-stats {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.animate-hero-card {
  animation: heroCardSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.animate-hero-float {
  animation: heroFloatCard 5s ease-in-out 1.3s infinite;
}

/* Mobile Responsive Optimization Utilities */
html {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .font-heading {
    word-break: break-word;
  }
  
  .container, .max-w-7xl, .max-w-\[1400px\] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .product-item img {
    max-height: 160px;
  }
}
