@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Dancing+Script:wght@600;700&display=swap');

:root {
  --primary-solar: #0284c7;
  --accent-solar: #f59e0b;
  --accent-green: #10b981;
  --primary-finance: #1e3a8a;
  --accent-finance: #d97706;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Logo container styling for maximum clarity */
.brand-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo-img:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .brand-logo-img {
    height: 74px;
  }
}

/* Glassmorphism & Card Elevation */
.glass-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.premium-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Sliders */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0284c7;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: transform 0.15s ease;
}

.finance-theme input[type=range]::-webkit-slider-thumb {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Image Zoom */
.img-zoom {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .img-zoom {
  transform: scale(1.08);
}

/* Ambient glow */
.ambient-glow-sky {
  position: relative;
}
.ambient-glow-sky::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-gold {
  position: relative;
}
.ambient-glow-gold::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Pulse animation */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.7; }
}

.animate-pulse-glow {
  animation: pulseGlow 6s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Testimonial Slider Styles */
[data-slider-track] {
  display: flex;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.slider-item {
  box-sizing: border-box;
  flex-shrink: 0;
}

.slider-item > div {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-item:hover > div {
  transform: translateY(-4px);
}

/* 3D Shield Floating Animation */
@keyframes shieldFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(1.2deg);
  }
}

.animate-shield-float {
  animation: shieldFloat 4s ease-in-out infinite;
}

/* ==========================================================================
   ADVANCED MODERN ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Shimmering Gradient Text Animation */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-gradient-text {
  background-size: 200% auto;
  animation: gradientFlow 4s ease infinite;
}

/* Card Shimmer Light Sweep on Hover */
.shine-hover {
  position: relative;
  overflow: hidden;
}

.shine-hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.shine-hover:hover::after {
  transform: rotate(25deg) translateY(100%);
}

/* Scroll-Driven Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays for child cards */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Gentle Floating Badges */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.animate-float-gentle {
  animation: floatGentle 3.5s ease-in-out infinite;
}

/* Pulse Button Glow */
@keyframes btnGlowPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  }
  50% {
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.65), 0 0 0 6px rgba(56, 189, 248, 0.25);
  }
}

.animate-btn-pulse {
  animation: btnGlowPulse 2.8s ease-in-out infinite;
}

/* Finance Button Pulse Glow */
@keyframes btnGlowPulseFin {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  }
  50% {
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.65), 0 0 0 6px rgba(251, 191, 36, 0.25);
  }
}

.animate-btn-pulse-fin {
  animation: btnGlowPulseFin 2.8s ease-in-out infinite;
}

/* ==========================================================================
   ANDROID NATIVE APPLICATION FEEL (MOBILE ENHANCEMENTS)
   ========================================================================== */

/* Hide native scrollbars on horizontal swipeable chips */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Android Touch Feedback */
.android-ripple {
  position: relative;
  overflow: hidden;
}
.android-tap {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.android-tap:active {
  transform: scale(0.95);
  opacity: 0.9;
}

/* Mobile Safe Bottom Space for Android Navigation Bar */
@media (max-width: 767px) {
  body {
    padding-bottom: 74px; /* Space for fixed bottom bar */
  }

  /* Android App Bottom Sheet Styling for Modals */
  .android-bottom-sheet {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .android-bottom-sheet > div {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 28px 28px 0 0 !important;
    max-height: 88vh !important;
    animation: slideUpSheet 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideUpSheet {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  /* Side Drawer Slide-In */
  .android-drawer {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .android-drawer.is-open {
    transform: translateX(0) !important;
  }
}

/* Android Material Pill Active Indicator */
.nav-pill-active {
  background-color: rgba(2, 132, 199, 0.15);
  color: #0284c7 !important;
  border-radius: 9999px;
  padding: 4px 14px;
}
.theme-finance .nav-pill-active,
.mode-finance .nav-pill-active {
  background-color: rgba(217, 119, 6, 0.15);
  color: #d97706 !important;
}
