/* MediaVision Infotech - custom styles layered on top of Tailwind CDN utility classes */

:root {
  --color-primary: #2563EB;
  --color-secondary: #0F172A;
  --color-accent: #06B6D4;
  --color-success: #22C55E;
  --color-bg: #F8FAFC;
}

html {
  scroll-behavior: smooth;
}

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

/* Gradient text */
.gradient-text {
  background: linear-gradient(90deg, #2563EB 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Gradient background utilities */
.bg-gradient-primary {
  background: linear-gradient(135deg, #2563EB 0%, #0F172A 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, #06B6D4 0%, #2563EB 100%);
}

.bg-hero-radial {
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.15), transparent 40%),
              radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.15), transparent 40%),
              radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.1), transparent 40%);
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sticky nav shadow state */
#site-header.scrolled {
  box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

/* Card hover lift */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -20px rgba(37, 99, 235, 0.25);
}

/* Floating animation for illustrations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}
.float {
  animation: float 6s ease-in-out infinite;
}
.float-slow {
  animation: float 8s ease-in-out infinite;
}
.float-delay {
  animation: float 7s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Fade / reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }

/* Animated gradient border button */
.btn-primary {
  background: linear-gradient(90deg, #2563EB, #06B6D4);
  transition: all 0.3s ease;
  background-size: 200% auto;
}
.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 12px 30px -10px rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Mobile nav */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobile-menu.open {
  max-height: 640px;
}

/* Marquee for trusted logos / infinite scroller */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-item.open .accordion-content {
  max-height: 500px;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}
.accordion-icon {
  transition: transform 0.3s ease;
}

/* Blob shapes behind sections */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.5;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563EB, #06B6D4);
  border-radius: 8px;
}

/* Back to top */
#back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

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

/* Progress step line active dot pulse */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  100% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
}
.pulse-dot {
  animation: pulse-ring 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Form focus */
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
