/* ============================================
   BvisChina - Global Styles
   ============================================ */

/* ============================================
   CSS Variables (Design System)
   ============================================ */
:root {
  /* Primary Colors - New Brand Palette */
  --color-primary-dark-blue: #073A94;
  --color-primary-medium-blue: #4677BB;
  --color-accent-orange: #E27842;
  --color-deep-navy: #0A1628;
  --color-navy-light: #0F1F3A;
  --color-navy-lighter: #1A365D;

  /* Secondary Colors (Slate Scale) */
  --color-slate-900: #0A1628;
  --color-slate-800: #0F1F3A;
  --color-slate-700: #1A365D;
  --color-slate-600: #2D4A6F;
  --color-slate-400: #6B8CB3;
  --color-slate-200: #B8D0E8;
  --color-white: #FFFFFF;

  /* Accent Colors */
  --color-amber-500: #E27842;
  --color-amber-400: #E8936A;
  --color-amber-600: #C55E2F;
  --color-blue-500: #4677BB;
  --color-blue-400: #6A9BD4;
  --color-green-500: #10B981;
  --color-red-500: #EF4444;

  /* Gradients */
  --gradient-hero: linear-gradient(180deg, rgba(7, 58, 148, 0.3) 0%, rgba(10, 22, 40, 0.95) 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(70, 119, 187, 0.1) 0%, rgba(226, 120, 66, 0.05) 100%);
  --gradient-cta: linear-gradient(135deg, #E27842 0%, #E8936A 100%);
  --gradient-divider: linear-gradient(90deg, transparent 0%, #4677BB 50%, transparent 100%);

  /* Shadows */
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-button: 0 4px 14px 0 rgba(226, 120, 66, 0.4);
  --glow-amber: 0 0 20px rgba(226, 120, 66, 0.35);
  --glow-blue: 0 0 20px rgba(70, 119, 187, 0.35);

  /* Timing Functions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Durations */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  --duration-slowest: 1000ms;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ============================================
   Base Styles (Specific Selectors - NO * reset)
   ============================================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-deep-navy);
  color: var(--color-slate-200);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 4.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: 3rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-blue-500);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-smooth);
}

a:hover {
  color: var(--color-blue-400);
}

img {
  max-width: 100%;
  /* height: auto; */
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

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

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

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

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

/* ============================================
   Utility Classes
   ============================================ */

/* Animation Utilities */
.animate-fade-in-up {
  animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s var(--ease-out-expo) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s var(--ease-out-expo) forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s var(--ease-out-expo) forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s var(--ease-out-expo) forwards;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Initial state for scroll animations */
.scroll-animate {
  opacity: 0;
}

.scroll-animate.animated {
  opacity: 1;
}

/* Typography Utilities */
.text-gradient {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-amber-500);
}

.caption {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-slate-400);
}

/* ============================================
   Component Styles
   ============================================ */

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  background: var(--gradient-cta);
  color: var(--color-deep-navy);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-button), var(--glow-amber);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  background: transparent;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-navy-lighter);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-secondary:hover {
  border-color: var(--color-amber-500);
  color: var(--color-amber-500);
}

.btn-secondary:active {
  background: rgba(245, 158, 11, 0.1);
}

/* Cards */
.card {
  background: var(--color-navy-light);
  border: 1px solid var(--color-navy-lighter);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-8px);
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-navy-light);
  border: 1px solid var(--color-navy-lighter);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: 1rem;
  transition: all 200ms ease;
}

.form-input::placeholder {
  color: var(--color-slate-400);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-blue-500);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Section Divider */
.section-divider {
  height: 1px;
  background: var(--gradient-divider);
  margin: var(--space-16) 0;
}

/* Glass Effect */
.glass {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Glow Effects */
.glow-amber {
  box-shadow: var(--glow-amber);
}

.glow-blue {
  box-shadow: var(--glow-blue);
}

/* ============================================
   Responsive Typography
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1.125rem;
  }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--color-amber-500);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: var(--color-amber-500);
  color: var(--color-deep-navy);
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 1rem;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.scroll-animate.animated:hover .w-12.h-12.rounded-lg.flex.items-center.justify-center.mb-4{
    transform: scale(1.2)
}
.scroll-animate.animated .w-12.h-12.rounded-lg.flex.items-center.justify-center.mb-4{
    transition: 0.4s all ease
}
.company-card img {
    margin-bottom: calc(var(--spacing) * 2);
    border-radius: 10px;
}