/* Custom Styling for Atus West Microfinance Bank */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --primary: #005838;
  --primary-container: #0e724c;
  --primary-fixed: #9df5c5;
  --secondary: #006d37;
  --secondary-container: #6bfe9c;
  --tertiary: #005742;
  --background: #f9f9fc;
  --surface: #f9f9fc;
  --on-surface: #1a1c1e;
  --on-surface-variant: #3f4942;
  --outline-variant: #bec9c0;
  --font-sans: 'Hanken Grotesk', sans-serif;
  --font-title: 'Manrope', sans-serif;
}

body {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--outline-variant);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-container);
}

/* --- LEVITATION ANIMATIONS --- */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1.5deg);
  }
}

@keyframes float-medium {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(-1.5deg);
  }
}

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

.levitate-slow {
  animation: float-slow 7s ease-in-out infinite;
}

.levitate-medium {
  animation: float-medium 5s ease-in-out infinite;
}

.levitate-fast {
  animation: float-fast 3.5s ease-in-out infinite;
}

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

.glass-card-dark {
  background: rgba(0, 33, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll-triggered reveal animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-slide-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-slide-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-zoom-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-zoom-in.active {
  opacity: 1;
  transform: scale(1);
}

/* 3D tilt card transition styles */
.tilt-card {
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* Custom Gradient Text */
.gradient-text-green {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-light {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-fixed) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shimmer effect for buttons */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.8s ease-in-out;
  pointer-events: none;
}

.shimmer-btn:hover::after {
  transform: translate(50%, 50%) rotate(30deg);
}

/* Premium Card hover effects */
.hover-premium {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px -10px rgba(0, 88, 56, 0.15);
  border-color: rgba(0, 88, 56, 0.25);
}

/* Quick support widget animations */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(1.3); opacity: 0; }
}

.support-ping::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: var(--secondary-container);
  animation: pulse-ring 2s infinite ease-out;
  z-index: -1;
}

/* --- ANIMATED GRADIENT BACKGROUND FOR LOGIN --- */
@keyframes gradient-bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient-bg {
  background: linear-gradient(-45deg, #002113, #005838, #002117, #007257);
  background-size: 400% 400%;
  animation: gradient-bg 12s ease infinite;
}

/* --- FORM GLOWING INPUTS --- */
.input-glowing-focus:focus-within {
  border-bottom-color: var(--primary) !important;
  box-shadow: 0 1px 0 0 var(--primary);
}

/* --- DARK MODE OVERRIDES --- */
html.dark {
  --background: #0b130e;
  --surface: #101c15;
  --on-surface: #f1f5f9;
  --on-surface-variant: #94a3b8;
  --outline-variant: #1e293b;
  color-scheme: dark;
}

html.dark body {
  background-color: #09120c !important;
  color: #f1f5f9 !important;
}

html.dark nav,
html.dark header,
html.dark footer {
  background-color: #0d1a12 !important;
  border-color: #1a2e21 !important;
  color: #f1f5f9 !important;
}

html.dark .bg-surface,
html.dark .bg-white {
  background-color: #122218 !important;
  color: #f1f5f9 !important;
  border-color: #1f3627 !important;
}

html.dark .bg-surface-container-low,
html.dark .bg-gray-50 {
  background-color: #0b1610 !important;
  border-color: #1a2e21 !important;
}

html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-gray-700,
html.dark .text-on-surface {
  color: #f1f5f9 !important;
}

html.dark .text-gray-600,
html.dark .text-gray-500,
html.dark .text-on-surface-variant {
  color: #a0aec0 !important;
}

html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="password"],
html.dark input[type="tel"],
html.dark input[type="number"],
html.dark select {
  background-color: #09120c !important;
  color: #ffffff !important;
  border-color: #1f3627 !important;
}

html.dark .border-gray-100,
html.dark .border-gray-200,
html.dark .border-gray-300 {
  border-color: #1a2e21 !important;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  display: inline-flex;
  items-center: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  background-color: rgba(0, 88, 56, 0.12);
}

html.dark .theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}
