/* AutomizePlus Software - Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0F62FE;
  --secondary: #1E293B;
  --accent: #2563EB;
  --bg-card: #F8FAFC;
  --border-radius: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1E293B;
  background-color: #F8FAFC;
  background-image: 
    radial-gradient(at 15% 15%, rgba(15, 98, 254, 0.07) 0px, transparent 55%),
    radial-gradient(at 85% 25%, rgba(14, 165, 233, 0.08) 0px, transparent 55%),
    radial-gradient(at 50% 60%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
    radial-gradient(at 25% 85%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Smooth Page Entrance Entrance */
@keyframes pageEntrance {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.page-entrance {
  animation: pageEntrance 500ms ease-out forwards;
}

/* Staggered Hero Sequence Animations */
@keyframes heroStagger {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stagger-1 { animation: heroStagger 600ms cubic-bezier(0.16, 1, 0.3, 1) 100ms both; }
.hero-stagger-2 { animation: heroStagger 600ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both; }
.hero-stagger-3 { animation: heroStagger 600ms cubic-bezier(0.16, 1, 0.3, 1) 340ms both; }
.hero-stagger-4 { animation: heroStagger 600ms cubic-bezier(0.16, 1, 0.3, 1) 460ms both; }
.hero-stagger-5 { animation: heroStagger 600ms cubic-bezier(0.16, 1, 0.3, 1) 580ms both; }

/* Floating Pill Light Glassmorphism Navigation */
.floating-pill-nav {
  position: fixed !important;
  top: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 72rem; /* Compact 6xl width for a true floating capsule */
  z-index: 50;
  height: 76px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.08), 0 4px 16px -2px rgba(15, 98, 254, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background-color 300ms ease, backdrop-filter 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.floating-pill-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 8px 24px -4px rgba(15, 98, 254, 0.08);
  border-color: rgba(226, 232, 240, 0.95);
}

/* Light Glassmorphic Scroll To Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #0F62FE;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -6px rgba(15, 98, 254, 0.2), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 300ms ease, visibility 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease, border-color 200ms ease;
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#scroll-to-top:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 98, 254, 0.3);
  color: #2563EB;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 36px -6px rgba(15, 98, 254, 0.3), 0 6px 16px -2px rgba(15, 23, 42, 0.1);
}

#scroll-to-top .scroll-top-arrow {
  transition: transform 200ms ease;
}

#scroll-to-top:hover .scroll-top-arrow {
  transform: translateY(-2.5px);
}

.nav-link-item {
  position: relative;
  transition: color 250ms ease;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: #0F62FE;
  border-radius: 9999px;
  transform: translateX(-50%);
  transition: width 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-item:hover::after,
.nav-link-item.active::after {
  width: 100%;
}

/* Premium Light Glassmorphism Cards System */
.glass-card, .bg-card, .tab-panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 16px 36px -12px rgba(15, 98, 254, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease, background-color 300ms ease;
}

.glass-card:hover, .bg-card:hover, .tab-panel:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 25px 2px rgba(14, 165, 233, 0.28), 0 20px 45px -10px rgba(15, 98, 254, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

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

/* Website-wide Light Glassmorphism Architecture */
section.bg-white,
main > section.bg-white {
  background-color: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

section.bg-slate-50,
main > section.bg-slate-50 {
  background-color: rgba(248, 250, 252, 0.72) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Glass Form Inputs & Controls */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02) !important;
  transition: all 250ms ease !important;
}

input:focus,
textarea:focus,
select:focus {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(14, 165, 233, 0.5) !important;
  box-shadow: 0 0 18px 2px rgba(14, 165, 233, 0.22), inset 0 1px 2px rgba(255, 255, 255, 1) !important;
  outline: none !important;
}

/* Glass Floating Modals, Mobile Drawers & Glass Containers */
.glass-container,
.glass-drawer {
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* Glass Footer & Sub-footers */
footer.bg-secondary {
  background: rgba(30, 41, 59, 0.92) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

/* Elegant Hero Category Label (Replaces Rounded Pill Badges) */
.hero-category-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #0F62FE;
  margin-bottom: 0.75rem;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Ambient Background Blobs */
.bg-blob-blue {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15, 98, 254, 0.12) 0%, rgba(37, 99, 235, 0.03) 60%, transparent 100%);
  filter: blur(60px);
  pointer-events: none;
  border-radius: 9999px;
}

.bg-blob-indigo {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.02) 60%, transparent 100%);
  filter: blur(65px);
  pointer-events: none;
  border-radius: 9999px;
}

.bg-blob-teal {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, rgba(56, 189, 248, 0.02) 60%, transparent 100%);
  filter: blur(55px);
  pointer-events: none;
  border-radius: 9999px;
}

/* Custom Gradient Text & Backgrounds */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.text-gradient {
  background: linear-gradient(135deg, #0F62FE 0%, #2563EB 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #0F62FE 0%, #1D4ED8 100%);
}

/* Animated Hero Backgrounds (Unique CSS Animations Per Page) */
@keyframes floatBlob {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.22; transform: scale(1.1); }
}

.bg-hero-glow {
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(15, 98, 254, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
}

.bg-hero-glow::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

/* About Page Hero Animated Blob */
.bg-about-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, #FFFFFF 100%);
}
.bg-about-hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBlob 8s ease-in-out infinite;
  pointer-events: none;
}

/* Services Page Hero Animated Grid */
.bg-services-hero {
  position: relative;
  background: radial-gradient(circle at 30% 20%, rgba(15, 98, 254, 0.08) 0%, rgba(255, 255, 255, 0) 65%);
}

/* Products Page Hero Animated Light Beam */
.bg-products-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(239, 246, 255, 0.8) 100%);
}

/* Career Page Hero Background */
.bg-career-hero {
  position: relative;
  background: radial-gradient(circle at 70% 30%, rgba(147, 51, 234, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Button Micro-Interactions (Scale, Shine, Shadow Glow) */
.btn-ripple {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.btn-ripple:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px -5px rgba(15, 98, 254, 0.3);
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-ripple:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* Card Hover Elevation & Border Glow */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 25px 2px rgba(14, 165, 233, 0.28), 0 20px 40px -10px rgba(15, 98, 254, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Infinite Horizontal Marquee for Client Logos */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Floating Action Button (FAB) Pulsing */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pulse-effect::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.4);
  z-index: -1;
  animation: pulse-ring 2.5s ease-in-out infinite;
}

/* Swiper Custom Bullet Pagination */
.swiper-pagination-bullet-active {
  background: #0F62FE !important;
  width: 24px !important;
  border-radius: 9999px !important;
  transition: width 0.3s ease !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0F62FE;
}

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