/* 
 * Modern Home Page Styles
 * Bootstrap-free, performance-optimized CSS
 * Mobile-first responsive design using CSS Grid and Flexbox
 */

/* ===== CSS CUSTOM PROPERTIES (DESIGN TOKENS) ===== */
:root {
  /* Color Palette */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary-color: #64748b;
  --secondary-hover: #475569;
  --accent-color: #7c3aed;
  --accent-hover: #6d28d9;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-heading: 'Inter', var(--font-family-base);
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* ===== RESET AND BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT CONTAINERS ===== */
.main-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .main-container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .main-container {
    padding: 0 var(--space-8);
  }
}

/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== SPACING UTILITIES ===== */
.mt-5 { margin-top: var(--space-20); }
.mb-4 { margin-bottom: var(--space-6); }
.mb-3 { margin-bottom: var(--space-4); }

/* ===== CARD COMPONENT ===== */
.modern-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.modern-card:hover::before {
  opacity: 1;
}

.card-large {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-medium {
  min-height: 250px;
}

/* ===== MODERN CAROUSEL COMPONENT ===== */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  z-index: 1;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(124, 58, 237, 0.02) 100%);
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  z-index: 1;
  visibility: hidden;
  pointer-events: none;
}

.carousel-item.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 3;
  visibility: visible;
  pointer-events: auto;
}

.carousel-item.prev {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 2;
  visibility: hidden;
  pointer-events: none;
}

.carousel-item.next {
  opacity: 0;
  transform: translateX(100%);
  z-index: 2;
  visibility: hidden;
  pointer-events: none;
}

.carousel-item.transitioning {
  z-index: 3;
  visibility: visible;
}

.carousel-item.transitioning.next {
  opacity: 0;
  transform: translateX(100%);
}

.carousel-item.transitioning.prev {
  opacity: 0;
  transform: translateX(-100%);
}

.carousel-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.carousel-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gray-900), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gray-900); /* Fallback for non-webkit browsers */
  margin-bottom: var(--space-6);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.carousel-text {
  font-size: var(--text-xl);
  color: var(--gray-600);
  margin-bottom: var(--space-4);
  line-height: 1.6;
  font-weight: 400;
}

.carousel-text strong {
  color: var(--primary-color);
  font-weight: 700;
}

.carousel-icon {
  margin: var(--space-8) 0;
  position: relative;
}

.carousel-icon .icon {
  font-size: 5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary-color); /* Fallback for non-webkit browsers */
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2));
}

/* Modern Navigation Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  color: var(--gray-700);
  font-size: 24px;
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.carousel-control:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.carousel-control:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
  left: var(--space-6);
}

.carousel-next {
  right: var(--space-6);
}

.carousel-control-icon {
  font-size: 28px;
  line-height: 1;
  font-weight: bold;
}

/* Modern Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.carousel-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--transition-normal);
}

.carousel-indicator:hover {
  border-color: var(--primary-color);
  transform: scale(1.2);
}

.carousel-indicator:hover::before {
  width: 6px;
  height: 6px;
}

.carousel-indicator.active {
  border-color: var(--primary-color);
  transform: scale(1.3);
}

.carousel-indicator.active::before {
  width: 8px;
  height: 8px;
}

/* Modern Animations and Micro-interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.carousel-content > * {
  animation: fadeInUp 0.8s ease-out forwards;
}

.carousel-content .carousel-title {
  animation-delay: 0.1s;
}

.carousel-content .carousel-text:first-of-type {
  animation-delay: 0.2s;
}

.carousel-content .carousel-text:nth-of-type(2) {
  animation-delay: 0.3s;
}

.carousel-content .carousel-icon {
  animation-delay: 0.4s;
}

.carousel-content .btn {
  animation-delay: 0.5s;
}

.carousel-icon .icon:hover {
  animation: pulse 1.5s infinite;
}

/* Enhanced focus states for accessibility */
.carousel-control:focus,
.carousel-indicator:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading state animation */
.carousel-item:not(.active) .carousel-content > * {
  opacity: 0;
  transform: translateY(30px);
}

.carousel-item.active .carousel-content > * {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth text selection */
.carousel-title,
.carousel-text {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-inner {
    height: 450px;
  }
  
  .carousel-item {
    padding: var(--space-12) var(--space-4);
  }
  
  .carousel-control {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .carousel-prev {
    left: var(--space-4);
  }
  
  .carousel-next {
    right: var(--space-4);
  }
  
  .carousel-indicators {
    bottom: var(--space-6);
    padding: var(--space-2) var(--space-4);
  }
}

@media (max-width: 480px) {
  .carousel-inner {
    height: 400px;
  }
  
  .carousel-item {
    padding: var(--space-8) var(--space-3);
  }
  
  .carousel-text {
    font-size: var(--text-lg);
  }
  
  .carousel-icon .icon {
    font-size: 4rem;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .carousel-item,
  .carousel-control,
  .carousel-indicator,
  .btn,
  .carousel-content > * {
    transition: none;
    animation: none;
  }
}

/* ===== TYPOGRAPHY ===== */
.display-4 {
  font-family: var(--font-family-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

.lead {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--gray-600);
  margin-bottom: var(--space-6);
}

.card-title {
  font-family: var(--font-family-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.card-text {
  font-size: var(--text-base);
  color: var(--gray-600);
  margin-bottom: var(--space-4);
}

/* ===== MODERN BUTTON COMPONENT ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.025em;
  min-width: 140px;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, var(--primary-hover), var(--accent-hover));
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--gray-50);
  color: var(--gray-800);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
  font-weight: 700;
  min-width: 180px;
}

/* Button with icon support */
.btn .icon {
  width: 20px;
  height: 20px;
  margin-right: var(--space-2);
}

.btn-lg .icon {
  width: 24px;
  height: 24px;
}

/* ===== ICON COMPONENT ===== */
.icon-block {
  margin-bottom: var(--space-6);
  transition: transform var(--transition-normal);
}

.icon-block:hover {
  transform: scale(1.1);
}

.icon {
  width: 80px;
  height: 80px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Custom SVG Icons */
.icon-user-check {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232563eb' viewBox='0 0 24 24'%3E%3Cpath d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3Cpath d='m19 9-3 3-1.5-1.5'/%3E%3C/svg%3E");
}

.icon-lock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232563eb' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3Cpath d='M6 10V8a6 6 0 1112 0v2'/%3E%3Cpath d='M6 10h12v8a2 2 0 01-2 2H8a2 2 0 01-2-2v-8z'/%3E%3C/svg%3E");
}

.icon-cash {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232563eb' viewBox='0 0 24 24'%3E%3Cpath d='M2 6h20v12H2V6zm2 2v8h16V8H4zm6 2a2 2 0 100 4 2 2 0 000-4z'/%3E%3C/svg%3E");
}

.icon-check-circle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232563eb' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bounce-animation {
  animation: bounce 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 767px) {
  .display-4 {
    font-size: var(--text-3xl);
  }
  
  .lead {
    font-size: var(--text-base);
  }
  
  .card-large {
    min-height: 300px;
    padding: var(--space-6);
  }
  
  .btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }
  
  .main-container {
    padding: 0 var(--space-3);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .display-4 {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .display-4 {
    font-size: var(--text-5xl);
  }
  
  .card-large {
    min-height: 450px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
.btn:focus,
.carousel-indicator:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== MODERN CAROUSEL STYLES ===== */
.modern-carousel {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-slide.prev {
  transform: translateX(-100%);
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-bg-4 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(1px);
}

.slide-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  height: 100%;
  padding: var(--space-8) var(--space-12);
  color: white;
}

.content-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.content-right {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInRight 0.8s ease-out 0.4s both;
}

.slide-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-4);
}

.slide-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.slide-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
  font-size: var(--text-xl);
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
}

.slide-subdescription {
  font-size: var(--text-lg);
  line-height: 1.5;
  margin: 0;
  opacity: 0.8;
}

.highlight {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-weight: 600;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--text-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: fit-content;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}

.cta-button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(4px);
}

.slide-image {
  max-width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.slide-image img {
  width: 100%;
  height: auto;
  display: block;
}

.slide-visual {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-elements {
  position: relative;
  width: 200px;
  height: 200px;
}

.floating-card {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: float 3s ease-in-out infinite;
}

.floating-card svg {
  width: 40px;
  height: 40px;
  color: white;
}

.card-1 {
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 20px;
  right: 20px;
  animation-delay: 1.5s;
}

.money-animation {
  position: relative;
  width: 200px;
  height: 200px;
}

.coin {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: bold;
  color: white;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: coinFloat 4s ease-in-out infinite;
}

.coin-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.coin-2 {
  bottom: 0;
  left: 0;
  animation-delay: 1.3s;
}

.coin-3 {
  bottom: 0;
  right: 0;
  animation-delay: 2.6s;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  width: 200px;
}

.benefit-item {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.benefit-item:nth-child(2) {
  animation-delay: 0.5s;
}

.benefit-item:nth-child(3) {
  animation-delay: 1s;
}

.benefit-item svg {
  width: 40px;
  height: 40px;
  color: white;
}

.carousel-navigation {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  z-index: 10;
}

.nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.nav-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

.carousel-indicators {
  display: flex;
  gap: var(--space-3);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  border-color: white;
}

.indicator:hover {
  border-color: white;
  transform: scale(1.2);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes coinFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) rotate(120deg);
  }
  66% {
    transform: translateY(-5px) rotate(240deg);
  }
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .modern-carousel {
    height: 500px;
    border-radius: 15px;
  }

  .slide-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-6);
    text-align: center;
  }

  .content-right {
    order: -1;
  }

  .slide-title {
    font-size: var(--text-3xl);
  }

  .slide-description {
    font-size: var(--text-lg);
  }

  .slide-subdescription {
    font-size: var(--text-base);
  }

  .slide-image {
    transform: none;
    max-width: 280px;
  }

  .slide-visual {
    height: 200px;
  }

  .floating-elements,
  .money-animation {
    width: 150px;
    height: 150px;
  }

  .floating-card,
  .coin {
    width: 50px;
    height: 50px;
  }

  .floating-card svg,
  .coin {
    font-size: var(--text-lg);
  }

  .benefits-grid {
    width: 150px;
  }

  .benefit-item {
    width: 60px;
    height: 60px;
  }

  .benefit-item svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .modern-carousel {
    height: 450px;
    border-radius: 10px;
  }

  .slide-content {
    padding: var(--space-4);
  }

  .slide-title {
    font-size: var(--text-2xl);
  }

  .slide-description {
    font-size: var(--text-base);
  }

  .cta-button {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }

  .carousel-navigation {
    bottom: var(--space-4);
    gap: var(--space-4);
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }

  .nav-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.modern-card,
.btn,
.carousel-slide {
  will-change: transform;
}

/* Reduce paint on hover */
.modern-card:hover,
.btn:hover {
  backface-visibility: hidden;
  perspective: 1000px;
}