| .carousel { |
| max-width: 100%; |
| margin: auto; |
| border-radius: 12px; |
| overflow: hidden; |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); |
| } |
|
|
| .carousel img { |
| width: 100%; |
| height: 300px; |
| object-fit: cover; |
| } |
|
|
| .carousel-control-prev, |
| .carousel-control-next { |
| width: 5%; |
| } |
|
|
| .carousel-control-prev-icon, |
| .carousel-control-next-icon { |
| background-color: rgba(0, 0, 0, 0.5); |
| border-radius: 50%; |
| padding: 10px; |
| } |
|
|
| .modern-carousel-container { |
| margin: 20px 0; |
| position: relative; |
| } |
|
|
| .modern-carousel { |
| border-radius: 25px; |
| overflow: hidden; |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); |
| position: relative; |
| } |
|
|
| .carousel-image-container { |
| position: relative; |
| height: 500px; |
| overflow: hidden; |
| } |
|
|
| .carousel-image { |
| width: 100%; |
| height: 100%; |
| object-fit: cover; |
| transition: transform 0.5s ease; |
| } |
|
|
| .carousel-overlay { |
| position: absolute; |
| top: 0; |
| left: 0; |
| right: 0; |
| bottom: 0; |
| background: linear-gradient( |
| 135deg, |
| rgba(255, 107, 107, 0.3) 0%, |
| rgba(78, 205, 196, 0.3) 50%, |
| rgba(69, 183, 209, 0.3) 100% |
| ); |
| z-index: 1; |
| } |
|
|
| .carousel-glow { |
| position: absolute; |
| top: 0; |
| left: 0; |
| right: 0; |
| bottom: 0; |
| background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%); |
| z-index: 2; |
| } |
|
|
| .carousel-content { |
| position: absolute; |
| top: 50%; |
| left: 50px; |
| transform: translateY(-50%); |
| z-index: 3; |
| color: white; |
| max-width: 500px; |
| } |
|
|
| .carousel-title { |
| font-size: 3.5rem; |
| font-weight: 800; |
| margin-bottom: 20px; |
| background: linear-gradient(135deg, #ffffff, #f8f9fa); |
| -webkit-background-clip: text; |
| -webkit-text-fill-color: transparent; |
| background-clip: text; |
| text-shadow: 0 0 30px rgba(255, 255, 255, 0.5); |
| line-height: 1.2; |
| } |
|
|
| .carousel-subtitle { |
| font-size: 1.5rem; |
| font-weight: 400; |
| margin-bottom: 30px; |
| opacity: 0.9; |
| text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); |
| } |
|
|
| .carousel-cta { |
| background: linear-gradient(135deg, #ff6b6b, #4ecdc4); |
| color: white; |
| border: none; |
| padding: 15px 35px; |
| font-size: 1.1rem; |
| font-weight: 600; |
| border-radius: 50px; |
| cursor: pointer; |
| transition: all 0.3s ease; |
| position: relative; |
| overflow: hidden; |
| box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4); |
| } |
|
|
| .carousel-cta::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; |
| } |
|
|
| .carousel-cta:hover::before { |
| left: 100%; |
| } |
|
|
| .carousel-cta:hover { |
| transform: translateY(-3px); |
| box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6); |
| } |
|
|
| .modern-carousel-control { |
| width: 60px; |
| height: 60px; |
| background: rgba(255, 255, 255, 0.1); |
| backdrop-filter: blur(20px); |
| border: 1px solid rgba(255, 255, 255, 0.2); |
| border-radius: 50%; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| transition: all 0.3s ease; |
| top: 50%; |
| transform: translateY(-50%); |
| } |
|
|
| .modern-carousel-control:hover { |
| background: rgba(255, 255, 255, 0.2); |
| transform: translateY(-50%) scale(1.1); |
| box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); |
| } |
|
|
| .modern-carousel-icon { |
| width: 20px; |
| height: 20px; |
| background-size: contain; |
| filter: brightness(0) invert(1); |
| } |
|
|
| .carousel-control-prev { |
| left: 30px; |
| } |
|
|
| .carousel-control-next { |
| right: 30px; |
| } |
|
|
| .carousel-indicators { |
| bottom: 30px; |
| } |
|
|
| .carousel-indicators [data-bs-target] { |
| width: 12px; |
| height: 12px; |
| border-radius: 50%; |
| background: rgba(255, 255, 255, 0.5); |
| border: 2px solid rgba(255, 255, 255, 0.8); |
| transition: all 0.3s ease; |
| } |
|
|
| .carousel-indicators .active { |
| background: linear-gradient(135deg, #ff6b6b, #4ecdc4); |
| transform: scale(1.2); |
| } |
|
|
| @media (max-width: 768px) { |
| .carousel img { |
| height: 250px; |
| } |
|
|
| .carousel-image-container { |
| height: 300px; |
| } |
|
|
| .carousel-content { |
| left: 20px; |
| right: 20px; |
| max-width: none; |
| text-align: center; |
| } |
|
|
| .carousel-title { |
| font-size: 2.5rem; |
| margin-bottom: 15px; |
| } |
|
|
| .carousel-subtitle { |
| font-size: 1.2rem; |
| margin-bottom: 20px; |
| } |
|
|
| .carousel-cta { |
| padding: 12px 25px; |
| font-size: 1rem; |
| } |
|
|
| .modern-carousel-control { |
| width: 50px; |
| height: 50px; |
| } |
|
|
| .carousel-control-prev { |
| left: 15px; |
| } |
|
|
| .carousel-control-next { |
| right: 15px; |
| } |
| } |
|
|
| @media (max-width: 480px) { |
| .carousel img { |
| height: 200px; |
| } |
|
|
| .carousel-control-prev, |
| .carousel-control-next { |
| width: 8%; |
| } |
|
|
| .carousel-image-container { |
| height: 250px; |
| } |
|
|
| .carousel-title { |
| font-size: 2rem; |
| } |
|
|
| .carousel-subtitle { |
| font-size: 1rem; |
| } |
|
|
| .modern-carousel-control { |
| width: 40px; |
| height: 40px; |
| } |
|
|
| .modern-carousel-icon { |
| width: 16px; |
| height: 16px; |
| } |
| } |
|
|
| .carousel-item { |
| transition: transform 0.6s ease-in-out; |
| } |
|
|
| .carousel-item.active { |
| animation: slideIn 0.6s ease-in-out; |
| } |
|
|
| @keyframes slideIn { |
| from { |
| opacity: 0; |
| transform: translateX(100px); |
| } |
| to { |
| opacity: 1; |
| transform: translateX(0); |
| } |
| } |