/* ========================================================================
   Modern Financial Website Styles
   Primary Colors: Red (#dc3545), Blue (#0d6efd), White (#ffffff)
   ======================================================================== */

/* CSS Variables for Brand Colors */
:root {
  --primary-red: #dc3545;
  --primary-blue: #0d6efd;
  --dark-blue: #0a58ca;
  --light-blue: #cfe2ff;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --success: #198754;
  --warning: #ffc107;
  --info: #0dcaf0;
  --danger: var(--primary-red);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  
  /* Border Radius */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Bootstrap Color Overrides */
.text-primary { color: var(--primary-blue) !important; }
.bg-primary { background-color: var(--primary-blue) !important; }
.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}
.btn-primary:hover {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: var(--white);
}

.loading-logo {
  max-height: 80px;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
}

.loading-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Navigation */
.modern-nav {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.modern-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.modern-nav .navbar-nav .nav-link {
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.75rem 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.modern-nav .navbar-nav .nav-link:hover,
.modern-nav .navbar-nav .nav-link.active {
  color: var(--primary-blue);
}

.modern-nav .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.modern-nav .navbar-nav .nav-link:hover::after,
.modern-nav .navbar-nav .nav-link.active::after {
  width: 80%;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 1rem 0;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

.mobile-welfare-btn {
  margin-right: 1rem;
}

/* Buttons */
.btn-rounded {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary.btn-rounded:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-primary {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* Stunning Hero Slider with Corporate Colors */
.modern-hero-slider {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.modern-hero-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(220, 53, 69, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(13, 110, 253, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  min-height: 100vh;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, 
      rgba(13, 110, 253, 0.85) 0%, 
      rgba(220, 53, 69, 0.75) 50%,
      rgba(13, 110, 253, 0.85) 100%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  z-index: 1;
}

/* Ensure floating cards are always visible on desktop */
@media (min-width: 992px) {
  .hero-visual {
    position: relative;
    z-index: 100;
  }
  
  .floating-card {
    position: relative;
    z-index: 101;
  }
  
  .floating-cta-badge {
    bottom: 120px;
    left: 50px;
  }
  
  .floating-cta-badge.welfare-cta {
    bottom: 120px;
    left: 50px;
  }
}

/* Dynamic slide-specific overlays */
.hero-slide:nth-child(1) .hero-overlay {
  background: 
    linear-gradient(135deg, rgba(220, 53, 69, 0.9) 0%, rgba(13, 110, 253, 0.7) 100%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.hero-slide:nth-child(2) .hero-overlay {
  background: 
    linear-gradient(135deg, rgba(13, 110, 253, 0.85) 0%, rgba(220, 53, 69, 0.85) 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%);
}

.hero-slide:nth-child(3) .hero-overlay {
  background: 
    linear-gradient(135deg, rgba(25, 135, 84, 0.8) 0%, rgba(13, 110, 253, 0.8) 100%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.hero-slide:nth-child(4) .hero-overlay {
  background: 
    linear-gradient(135deg, rgba(13, 110, 253, 0.9) 0%, rgba(220, 53, 69, 0.6) 100%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%);
}

.hero-slide:nth-child(5) .hero-overlay {
  background: 
    linear-gradient(135deg, rgba(255, 193, 7, 0.8) 0%, rgba(220, 53, 69, 0.8) 100%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  max-width: 800px;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 20px;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  animation: badgePulse 3s ease-in-out infinite;
  color: #333;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
  50% { transform: scale(1.05); box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3); }
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-title span {
  position: relative;
  display: inline-block;
}

.hero-title .text-warning {
  color: #ffd700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  animation: glow 2s ease-in-out infinite;
}

.hero-title .text-danger {
  color: #dc3545;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  animation: glow 2s ease-in-out infinite;
}

.hero-title .text-success {
  color: #28a745;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  animation: glow 2s ease-in-out infinite;
}

.hero-title .text-info {
  color: #17a2b8;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { 
    filter: brightness(1) drop-shadow(0 0 10px currentColor);
  }
  50% { 
    filter: brightness(1.2) drop-shadow(0 0 20px currentColor);
  }
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.7;
  max-width: 650px;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-actions .btn {
  position: relative;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.hero-actions .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.hero-actions .btn:hover::before {
  left: 100%;
}

.hero-actions .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-actions .btn-warning {
  background: linear-gradient(135deg, #ffd700 0%, #ff8f00 100%);
  border: none;
  color: #000;
}

.hero-actions .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
  border: none;
}

.hero-actions .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #51cf66 100%);
  border: none;
}

.hero-actions .btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #339af0 100%);
  border: none;
}

.hero-actions .btn-outline-light {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(3px);
  color: #fff;
}

.hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 1);
  color: #333;
}

/* Spectacular Floating Visual Elements */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: auto;
}

.floating-card {
  background: #ffffff;
  border: 3px solid #e9ecef;
  border-radius: 25px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #222;
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
  animation: floatAnimation 6s ease-in-out infinite;
  max-width: 320px;
  min-height: 220px;
}

@keyframes floatAnimation {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(1deg); }
  50% { transform: translateY(-25px) rotate(0deg); }
  75% { transform: translateY(-10px) rotate(-1deg); }
}

.floating-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmerFloat 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmerFloat {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.floating-card:hover {
  transform: translateY(-20px) scale(1.05) rotate(2deg);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.floating-card i {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  display: block;
  color: #333;
  animation: iconPulse 2s ease-in-out infinite;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.floating-card h4 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #222;
  text-shadow: none;
  line-height: 1.3;
}

.floating-card p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #444;
  line-height: 1.4;
}

/* Specific card themes with corporate colors */
.loan-card {
  background: linear-gradient(135deg, 
    rgba(220, 53, 69, 0.3) 0%, 
    rgba(255, 193, 7, 0.2) 100%);
  border-color: rgba(220, 53, 69, 0.5);
}

.loan-card i {
  background: linear-gradient(135deg, #dc3545, #ffc107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welfare-card {
  background: linear-gradient(135deg, 
    rgba(13, 110, 253, 0.3) 0%, 
    rgba(220, 53, 69, 0.2) 100%);
  border-color: rgba(13, 110, 253, 0.5);
}

.welfare-card i {
  background: linear-gradient(135deg, #0d6efd, #dc3545);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.savings-card {
  background: linear-gradient(135deg, 
    rgba(25, 135, 84, 0.3) 0%, 
    rgba(13, 110, 253, 0.2) 100%);
  border-color: rgba(25, 135, 84, 0.5);
}

.savings-card i {
  background: linear-gradient(135deg, #198754, #0d6efd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shares-card {
  background: linear-gradient(135deg, 
    rgba(13, 202, 240, 0.3) 0%, 
    rgba(220, 53, 69, 0.2) 100%);
  border-color: rgba(13, 202, 240, 0.5);
}

.shares-card i {
  background: linear-gradient(135deg, #0dcaf0, #dc3545);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-card {
  background: linear-gradient(135deg, 
    rgba(255, 193, 7, 0.3) 0%, 
    rgba(13, 110, 253, 0.2) 100%);
  border-color: rgba(255, 193, 7, 0.5);
}

.mobile-card i {
  background: linear-gradient(135deg, #ffc107, #0d6efd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating CTA Badges - Clean Positioning */
.floating-cta-badge {
  position: absolute;
  bottom: 80px;
  left: 20px;
  z-index: 200;
  animation: ctaFloat 4s ease-in-out infinite;
}

.floating-cta-badge.welfare-cta {
  bottom: 80px;
  left: 20px;
}

/* Comprehensive Mobile Responsiveness */
@media (max-width: 991px) {
  .modern-hero-slider {
    min-height: 100vh;
    height: 100vh;
    display: block !important;
    visibility: visible !important;
  }
  
  .hero-slide {
    display: flex !important;
    visibility: visible !important;
    min-height: 100vh;
  }
  
  .hero-content {
    padding: 2rem 0;
    text-align: center;
    z-index: 10;
    position: relative;
  }
  
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    max-width: 100%;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .floating-cta-badge {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 1.5rem;
    text-align: center;
    animation: none;
  }
  
  .floating-cta-badge.welfare-cta {
    top: auto;
    right: auto;
  }
  
  .floating-apply-btn,
  .floating-welfare-btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
}

@keyframes ctaFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.floating-apply-btn,
.floating-welfare-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #dc3545 0%, #ffc107 100%);
  color: white;
  padding: 1.5rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 
    0 15px 40px rgba(220, 53, 69, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  min-width: 120px;
  text-align: center;
}

.floating-welfare-btn {
  background: linear-gradient(135deg, #0d6efd 0%, #dc3545 100%);
  box-shadow: 
    0 15px 40px rgba(13, 110, 253, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.2);
}

.floating-apply-btn:hover,
.floating-welfare-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 20px 50px rgba(220, 53, 69, 0.5),
    0 10px 25px rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}

.floating-welfare-btn:hover {
  box-shadow: 
    0 20px 50px rgba(13, 110, 253, 0.5),
    0 10px 25px rgba(0, 0, 0, 0.3);
}

.floating-apply-btn i,
.floating-welfare-btn i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  animation: none;
}

.floating-apply-btn span,
.floating-welfare-btn span {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.floating-apply-btn small,
.floating-welfare-btn small {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 600;
}

/* Mega CTA styling */
.mega-cta {
  font-size: 1.2rem !important;
  padding: 1.2rem 3rem !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: megaPulse 3s ease-in-out infinite;
}

@keyframes megaPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  }
}

/* Enhanced Mobile Optimizations */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .hero-badge {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }
  
  .hero-actions .btn {
    font-size: 0.95rem;
    padding: 0.9rem 1.8rem;
  }
  
  .floating-apply-btn,
  .floating-welfare-btn {
    padding: 1.2rem 1rem;
    min-width: 200px;
  }
  
  .floating-apply-btn span,
  .floating-welfare-btn span {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .hero-content {
    padding: 1.5rem 0;
  }
  
  .hero-actions .btn {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
  }
  
  .mega-cta {
    font-size: 1rem !important;
    padding: 1rem 2rem !important;
    letter-spacing: 1px;
  }
  
  .floating-apply-btn,
  .floating-welfare-btn {
    padding: 1rem 0.8rem;
    min-width: 180px;
    border-radius: 15px;
  }
  
  .floating-apply-btn i,
  .floating-welfare-btn i {
    font-size: 1.5rem;
  }
  
  .floating-apply-btn span,
  .floating-welfare-btn span {
    font-size: 0.85rem;
  }
  
  .floating-apply-btn small,
  .floating-welfare-btn small {
    font-size: 0.75rem;
  }
}

/* Swiper Navigation */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: var(--primary-blue);
  transform: scale(1.1);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

/* Swiper Pagination */
.hero-swiper .swiper-pagination {
  bottom: 30px;
}

.hero-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--white);
  transform: scale(1.3);
}

/* Hero Stats Overlay */
.hero-stats-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 2rem 0;
  border-top: 1px solid rgba(13, 110, 253, 0.1);
}

.hero-stats-overlay .stat-item {
  padding: 1rem;
}

.hero-stats-overlay .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-secondary);
  margin-bottom: 0.5rem;
}

.hero-stats-overlay .stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Legacy Hero Section (kept for compatibility) */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
  color: var(--white);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-section .hero-title {
  font-family: var(--font-secondary);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-section .hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.hero-section .stat-item {
  text-align: center;
}

.hero-section .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-secondary);
  color: var(--white);
}

.hero-section .stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services Section */
.services-section {
  padding: var(--section-padding);
  background: var(--gray-100);
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: none;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
  position: relative;
}

.service-icon.primary { background: var(--primary-blue); }
.service-icon.success { background: var(--success); }
.service-icon.info { background: var(--info); }
.service-icon.warning { background: var(--warning); }
.service-icon.danger { background: var(--primary-red); }
.service-icon.secondary { background: var(--gray-600); }

.service-title {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--gray-600);
  line-height: 1.7;
}

/* About Section */
.about-section {
  padding: var(--section-padding);
}

.about-image {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

.section-title {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 500;
}

.feature-list li i {
  color: var(--success);
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: var(--section-padding);
  text-align: center;
}

.cta-title {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.btn-white {
  background: var(--white);
  color: var(--primary-blue);
  border: none;
  font-weight: 700;
}

.btn-white:hover {
  background: var(--gray-100);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Footer */
.modern-footer {
  background: var(--primary-blue);
  color: var(--white);
}

.footer-logo {
  max-height: 50px;
  filter: brightness(0) invert(1);
}

.footer-description {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item i {
  width: 20px;
  margin-right: 1rem;
  opacity: 0.8;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
}

.copyright-text {
  color: rgba(255, 255, 255, 0.8);
}

/* Back to Top Button */
.btn-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all 0.3s ease;
}

.btn-floating.show {
  display: flex;
}

.btn-floating:hover {
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInDown {
  animation: fadeInDown 0.8s ease-out;
}

/* Professional Polish & Final Touches */

/* Smooth Page Transitions */
.page-transition {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Button Animations */
.btn-rounded {
  position: relative;
  overflow: hidden;
}

.btn-rounded::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-rounded:hover::before {
  left: 100%;
}

/* Enhanced Service Cards */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

.service-card:hover::before {
  opacity: 0.1;
}

/* Floating Animation for Service Icons */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.service-icon {
  animation: float 3s ease-in-out infinite;
}

.service-card:hover .service-icon {
  animation-duration: 1.5s;
}

/* Enhanced Hero Slider */
.hero-badge {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Professional Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Enhanced Stats Animation */
.hero-stats-overlay .stat-item {
  position: relative;
}

.hero-stats-overlay .stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.8s ease 0.3s;
}

.hero-stats-overlay .stat-item.animated::after {
  width: 60%;
}

/* Professional Scroll Indicators */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
  z-index: 9999;
  transition: width 0.3s ease;
}

/* Enhanced Navigation */
.modern-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.3), transparent);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 6rem 0 4rem;
  }
  
  .modern-nav {
    padding: 0.5rem 0;
  }
  
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .mobile-welfare-btn {
    order: -1;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .hero-stats {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .btn-floating {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 5rem 0 3rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  .service-title {
    font-size: 1.25rem;
  }
}

/* Utility Classes */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

/* AOS Animation Overrides */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}
