/* ========================================
   INDEX.CSS - Modern LMIS Landing Page
   10/10 Visual Appeal Upgrade
   ======================================== */

/* ===== CSS Variables for Easy Customization ===== */
:root {
  --primary-blue: #0066ff;
  --primary-green: #00d26a;
  --primary-cyan: #00b4d8;
  --dark-bg: rgba(10, 10, 20, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --shadow-glow: 0 8px 32px rgba(0, 102, 255, 0.3);
  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Wallpaper Container - Animated Background ===== */
.wallpaper-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.wallpaper-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: image-fade 72s infinite;
  transform: scale(1.08);
  filter: brightness(0.65) saturate(1.1);
}

/* Stagger the start of each image's fade cycle (6s per image, 12 images = 72s total) */
.wallpaper-container img:nth-child(1) { animation-delay: 0s; }
.wallpaper-container img:nth-child(2) { animation-delay: 6s; }
.wallpaper-container img:nth-child(3) { animation-delay: 12s; }
.wallpaper-container img:nth-child(4) { animation-delay: 18s; }
.wallpaper-container img:nth-child(5) { animation-delay: 24s; }
.wallpaper-container img:nth-child(6) { animation-delay: 30s; }
.wallpaper-container img:nth-child(7) { animation-delay: 36s; }
.wallpaper-container img:nth-child(8) { animation-delay: 42s; }
.wallpaper-container img:nth-child(9) { animation-delay: 48s; }
.wallpaper-container img:nth-child(10) { animation-delay: 54s; }
.wallpaper-container img:nth-child(11) { animation-delay: 60s; }
.wallpaper-container img:nth-child(12) { animation-delay: 66s; }

/* Smooth cinematic fade animation with Ken Burns effect */
@keyframes image-fade {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  2% {
    opacity: 1;
  }
  6% {
    opacity: 1;
    transform: scale(1);
  }
  8.33% {
    opacity: 0;
    transform: scale(1.02);
  }
  100% {
    opacity: 0;
  }
}

/* Modern gradient overlay */
.wallpaper-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 10, 30, 0.85) 0%,
    rgba(0, 20, 60, 0.75) 50%,
    rgba(10, 10, 40, 0.85) 100%
  );
  z-index: -1;
}



/* ===== Logo Styles ===== */
.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-box img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid var(--glass-border);
  padding: 4px;
  background: var(--glass-bg);
  transition: var(--transition-fast);
}

.logo-box img:hover {
  transform: rotate(10deg) scale(1.1);
  border-color: var(--primary-blue);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

.logo-title h4 {
  margin: 0;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-light);
  letter-spacing: -0.5px;
}

.small-logo h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--text-light);
}

.small-logo a {
  text-decoration: none;
  color: var(--text-light);
}

/* ===== Index Background Container ===== */
.index-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ===== All Index Container ===== */
.all-index {
  border-radius: 16px;
  padding: 4rem 5rem 5rem 5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: none;
  box-shadow: 0 0 80px rgba(0, 102, 255, 0.2);
  min-width: 900px;
}

/* ===== Home Column ===== */
.home-col {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

/* ===== Big Title Styles ===== */
.big-title {
  text-align: center;
  margin-bottom: 3rem;
}

.big-title h2 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -2px;
  color: #ffffff;
}

.big-title p {
  font-family: 'Inter', sans-serif;
  margin-top: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== Login Area Styles ===== */
.login-a {
  text-align: center;
  padding: 1rem 0.75rem;
  opacity: 1;
  margin-top: 1.5rem;
}

.login-a a {
  text-decoration: none;
  color: var(--text-light);
  display: block;
}

.login-a h6 {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
}

.login-a h4 {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

/* ===== Button Styles - Glassmorphism ===== */
.button-a {
  cursor: pointer;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: var(--transition-smooth);
}

.button-a:hover::before {
  left: 100%;
}

.button-a:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.button-a:active {
  transform: translateY(-2px) scale(0.98);
}

.button-a i {
  font-size: 1.6rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-a:hover i {
  transform: scale(1.15);
}

/* ===== Login Area Variants ===== */
.operation-login-area {
  background: linear-gradient(135deg, #0a1a7a 0%, #1e40af 100%);
  box-shadow: 0 4px 25px rgba(30, 64, 175, 0.4);
}

.operation-login-area:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.5);
}

.operation-login-area i {
  color: #93c5fd;
  filter: drop-shadow(0 0 10px rgba(147, 197, 253, 0.6));
}

.sales-login-area {
  background: linear-gradient(135deg, #065f1a 0%, #16a34a 100%);
  box-shadow: 0 4px 25px rgba(22, 163, 74, 0.4);
}

.sales-login-area:hover {
  background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  box-shadow: 0 20px 50px rgba(34, 197, 94, 0.5);
}

.sales-login-area i {
  color: #86efac;
  filter: drop-shadow(0 0 10px rgba(134, 239, 172, 0.6));
}

.factoring-login-area {
  background: linear-gradient(135deg, #0e4a6e 0%, #0891b2 100%);
  box-shadow: 0 4px 25px rgba(8, 145, 178, 0.4);
}

.factoring-login-area:hover {
  background: linear-gradient(135deg, #0c5a7e 0%, #06b6d4 100%);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.5);
}

.factoring-login-area i {
  color: #a5f3fc;
  filter: drop-shadow(0 0 10px rgba(165, 243, 252, 0.6));
}

/* ===== AOS Animation Overrides ===== */
[data-aos] {
  transition-duration: 0.6s !important;
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .all-index {
    padding: 3rem 2rem;
    min-width: auto;
    width: 95%;
    border-radius: 16px;
  }

  .login-a {
    margin-bottom: 1rem;
  }

  .button-a {
    padding: 2rem 1.25rem;
    min-height: 110px;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .all-index {
    padding: 2.5rem 1.5rem;
  }

  .login-a.col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .button-a {
    width: 100%;
    min-height: 100px;
  }
}

@media (max-width: 576px) {
  .big-title h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .all-index {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }

  .button-a {
    border-radius: 16px;
    padding: 1.5rem 1rem;
    min-height: 90px;
  }

 
  .login-a h4 {
    font-size: 1rem;
  }
}

/* ===== Subtle Background Animation ===== */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.index-bg {
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

/* ===== Loading State for Buttons ===== */
.button-a.loading {
  pointer-events: none;
  opacity: 0.7;
}

.button-a.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
