/* ============================================
   AS OUTLET AVM - Shared Styles & Animations
   ============================================ */

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #1B3A6B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0f2bc4;
}

/* Hide scrollbar for horizontal scroll containers */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================
   ANIMATIONS - Scroll-triggered
   ============================================ */

/* Scroll animations - disabled to prevent blank sections */
[data-animate] {
  opacity: 1 !important;
  transform: none !important;
}
[data-stagger] {
  opacity: 1 !important;
}
[data-stagger] > [data-animate] {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(9) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(10) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(n+11) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
  position: relative;
}

/* Parallax */
.parallax-bg {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ============================================
   NAVBAR
   ============================================ */
.nav-scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Mega Menu */
.mega-menu-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.mega-menu:hover .mega-menu-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */
.card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(19, 55, 236, 0.12);
}

.card-hover-subtle {
  transition: all 0.3s ease;
}
.card-hover-subtle:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Image zoom on card hover */
.img-zoom {
  overflow: hidden;
}
.img-zoom img,
.img-zoom .bg-img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover img,
.img-zoom:hover .bg-img {
  transform: scale(1.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: #1B3A6B;
  color: white;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-primary:hover::after {
  transform: translateX(100%);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(19, 55, 236, 0.35);
}

/* ============================================
   TEXT ANIMATIONS
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, #1B3A6B 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typing cursor effect */
.typing-cursor::after {
  content: '|';
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* ============================================
   LOADING & TRANSITIONS
   ============================================ */

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1B3A6B;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   MAP
   ============================================ */
.map-container {
  background-image: radial-gradient(circle at 2px 2px, #e2e8f0 1px, transparent 0);
  background-size: 24px 24px;
}

.map-block {
  transition: all 0.3s ease;
  cursor: pointer;
}
.map-block:hover {
  filter: brightness(0.95);
  transform: scale(1.02);
}

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  transition: all 0.3s ease;
}
.fab:hover {
  transform: scale(1.1);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-slide .hero-content h2 {
    font-size: 2rem !important;
  }
}

/* ============================================
   PULSE ANIMATION for live elements
   ============================================ */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}
.pulse-dot {
  animation: pulse-dot 2s infinite;
}

/* Marquee for brands */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 30s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Shimmer loading placeholder */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ============================================
   DESIGN IMPROVEMENTS
   ============================================ */

/* Smooth page feel */
* { scroll-behavior: smooth; }

/* Better focus styles for accessibility */
:focus-visible {
  outline: 3px solid #1B3A6B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Card tilt micro-interaction */
.tilt-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.tilt-card:hover {
  transform: perspective(1000px) rotateY(-1.5deg) rotateX(1.5deg) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* Glow effect on hover */
.glow-hover {
  transition: box-shadow 0.3s ease;
}
.glow-hover:hover {
  box-shadow: 0 0 40px rgba(19, 55, 236, 0.12), 0 8px 32px rgba(0,0,0,0.08);
}

/* Gold glow */
.glow-gold:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), 0 8px 32px rgba(0,0,0,0.08);
}

/* Gradient mesh backgrounds */
.gradient-mesh-1 {
  background:
    radial-gradient(at 20% 80%, rgba(19,55,236,0.08) 0%, transparent 50%),
    radial-gradient(at 80% 20%, rgba(59,130,246,0.06) 0%, transparent 50%),
    radial-gradient(at 50% 50%, rgba(19,55,236,0.03) 0%, transparent 70%);
}

/* Text gradient animation */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.text-gradient-animated {
  background: linear-gradient(135deg, #1B3A6B, #3B82F6, #1B3A6B);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* Smooth underline effect for links */
.link-underline {
  position: relative;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}
.link-underline:hover::after {
  width: 100%;
}

/* Glass card */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
}

/* Dark glass */
.glass-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Staggered fade-in for grids (JS-free, uses nth-child delays) */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(16px);
  animation: stagger-in 0.5s ease forwards;
}
.stagger-grid > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-grid > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-grid > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-grid > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-grid > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-grid > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-grid > *:nth-child(n+7) { animation-delay: 0.35s; }

@keyframes stagger-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Accessibility toolbar spacing */
.a11y-toolbar-btn {
  position: fixed;
  left: 1.5rem;
  bottom: 6rem;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1B3A6B;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(19,55,236,0.3);
  transition: all 0.3s ease;
  border: none;
}
.a11y-toolbar-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(19,55,236,0.4);
}
