mkcart / frontend /src /components /Carousel.css
Kumar
updated
c2efbe6
.Premium-carousel-container {
position: relative;
width: 100%;
height: 100vh;
min-height: 600px;
overflow: hidden;
background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.carousel-wrapper {
position: relative;
width: 100%;
height: 100%;
perspective: 1000px;
}
.carousel-particles {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index:-1;
}
.carousel-particle {
position: absolute;
width: 4px;
height: 4px;
background: radial-gradient(circle, #66e8ea, transparent);
border-radius: 50%;
filter: blur(1px);
animation: particleFloat 6s ease-in-out infinite;
}
.carousel-particle:nth-child(3n) {
background: radial-gradient(circle, #f6d365, transparent);
}
.carousel-particle:nth-child(5n) {
background: radial-gradient(circle, #ff9a9e, transparent);
}
@keyframes particleFloat {
0%,
100% {
transform: translateY(0) rotate(0deg);
opacity: 0;
}
50% {
transform: translateY(-100px) rotate(180deg);
opacity: 1;
}
}
.carousel-main {
position: relative;
width: 100%;
height: 100%;
z-index: 2;
}
.carousel-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.slide-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.slide-image {
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(0.4) contrast(1.2);
}
.slide-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.7;
mix-blend-mode: multiply;
}
.slide-cosmic-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.4) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.4) 0%, transparent 50%),
radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
}
.slide-content {
position: relative;
width: 100%;
max-width: 1400px;
margin: 0 auto;
padding: 0 40px;
z-index: 3;
}
.content-wrapper {
position: relative;
display: grid;
grid-template-columns: 1fr auto;
gap: 60px;
align-items: center;
min-height: 500px;
}
.floating-icons {
position: absolute;
top: -50px;
right: -50px;
width: 200px;
height: 200px;
pointer-events: none;
}
.floating-icon {
position: absolute;
width: 50px;
height: 50px;
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;
color: white;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.floating-icon:nth-child(1) {
top: 0;
right: 0;
background: linear-gradient(135deg, #667eea, #764ba2);
}
.floating-icon:nth-child(2) {
top: 60px;
right: 80px;
background: linear-gradient(135deg, #f6d365, #fda085);
}
.floating-icon:nth-child(3) {
top: 120px;
right: 20px;
background: linear-gradient(135deg, #ff9a9e, #fecfef);
}
.text-content {
max-width: 600px;
}
.slide-subtitle {
display: inline-block;
padding: 8px 20px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 25px;
color: rgba(255, 255, 255, 0.9);
font-size: 0.9rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 20px;
position: relative;
overflow: hidden;
}
.slide-subtitle::before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
animation: shimmer 3s infinite;
}
@keyframes shimmer {
0% {
left: -100%;
}
100% {
left: 100%;
}
}
.slide-title {
font-size: 4.5rem;
font-weight: 800;
line-height: 1.1;
margin-bottom: 24px;
background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
position: relative;
}
.slide-title::after {
content: "";
position: absolute;
bottom: -10px;
left: 0;
width: 100px;
height: 4px;
background: linear-gradient(90deg, #667eea, #f6d365);
border-radius: 2px;
box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}
.slide-description {
font-size: 1.2rem;
line-height: 1.6;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 40px;
font-weight: 300;
max-width: 500px;
}
.slide-actions {
display: flex;
gap: 20px;
align-items: center;
}
.Premium-cta-btn {
position: relative;
display: flex;
align-items: center;
gap: 12px;
padding: 18px 36px;
border: none;
border-radius: 50px;
font-weight: 600;
font-size: 1rem;
text-transform: uppercase;
letter-spacing: 0.5px;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
overflow: hidden;
backdrop-filter: blur(20px);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.Premium-cta-btn.primary {
background: linear-gradient(135deg, var(--accent-color, #667eea), rgba(255, 255, 255, 0.1));
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.Premium-cta-btn.secondary {
background: rgba(255, 255, 255, 0.1);
color: white;
border: 1px solid rgba(255, 255, 255, 0.3);
}
.Premium-cta-btn:hover {
transform: translateY(-5px) scale(1.05);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.btn-glow {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
opacity: 0;
transition: opacity 0.3s ease;
border-radius: 50px;
}
.Premium-cta-btn:hover .btn-glow {
opacity: 1;
}
.btn-particles {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
pointer-events: none;
}
.btn-particle {
position: absolute;
width: 4px;
height: 4px;
background: white;
border-radius: 50%;
opacity: 0;
animation: btnParticle 2s ease-in-out infinite;
}
.btn-particle-1 {
top: 20%;
left: 20%;
animation-delay: 0s;
}
.btn-particle-2 {
top: 20%;
right: 20%;
animation-delay: 0.3s;
}
.btn-particle-3 {
bottom: 20%;
left: 20%;
animation-delay: 0.6s;
}
.btn-particle-4 {
bottom: 20%;
right: 20%;
animation-delay: 0.9s;
}
.btn-particle-5 {
top: 50%;
left: 10%;
animation-delay: 1.2s;
}
.btn-particle-6 {
top: 50%;
right: 10%;
animation-delay: 1.5s;
}
@keyframes btnParticle {
0%,
100% {
opacity: 0;
transform: scale(0);
}
50% {
opacity: 1;
transform: scale(1);
}
}
.btn-shimmer {
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.6s;
}
.Premium-cta-btn:hover .btn-shimmer {
left: 100%;
}
.stats-cards {
display: flex;
flex-direction: column;
gap: 20px;
align-self: flex-start;
}
.stat-card {
position: relative;
padding: 24px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(30px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
text-align: center;
cursor: pointer;
transition: all 0.4s ease;
transform-style: preserve-3d;
min-width: 120px;
}
.stat-card:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.stat-value {
font-size: 2rem;
font-weight: 800;
background: linear-gradient(135deg, #f6d365, #fda085);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 8px;
}
.stat-label {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.7);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.stat-glow {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(246, 211, 101, 0.2), rgba(253, 160, 133, 0.2));
border-radius: 20px;
opacity: 0;
transition: opacity 0.3s ease;
}
.stat-card:hover .stat-glow {
opacity: 1;
}
.carousel-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
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%;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
z-index: 10;
overflow: hidden;
}
.carousel-nav.prev {
left: 40px;
}
.carousel-nav.next {
right: 40px;
}
.carousel-nav:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.4);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.nav-glow {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease;
}
.carousel-nav:hover .nav-glow {
opacity: 1;
}
.slide-indicators {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 12px;
z-index: 10;
}
.indicator {
position: relative;
width: 50px;
height: 6px;
background: rgba(255, 255, 255, 0.2);
border: none;
border-radius: 3px;
cursor: pointer;
transition: all 0.3s ease;
overflow: hidden;
}
.indicator.active {
background: rgba(255, 255, 255, 0.4);
box-shadow: 0 0 20px var(--accent-color, #667eea);
}
.indicator-progress {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--accent-color, #667eea), rgba(255, 255, 255, 0.8));
border-radius: 3px;
}
.progress-ring {
position: absolute;
bottom: 40px;
right: 40px;
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.progress-text {
position: absolute;
color: white;
font-size: 0.8rem;
font-weight: 600;
}
.cosmic-effects {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.cosmic-orb {
position: absolute;
border-radius: 50%;
filter: blur(40px);
animation: cosmicFloat 8s ease-in-out infinite;
}
.orb-1 {
width: 200px;
height: 200px;
background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
top: 20%;
left: 10%;
animation-delay: 0s;
}
.orb-2 {
width: 150px;
height: 150px;
background: radial-gradient(circle, rgba(246, 211, 101, 0.3), transparent);
top: 60%;
right: 15%;
animation-delay: 2s;
}
.orb-3 {
width: 100px;
height: 100px;
background: radial-gradient(circle, rgba(255, 154, 158, 0.3), transparent);
bottom: 20%;
left: 20%;
animation-delay: 4s;
}
.cosmic-nebula {
position: absolute;
border-radius: 50%;
filter: blur(90px);
animation: nebulaFloat 12s ease-in-out infinite;
}
.nebula-1 {
width: 300px;
height: 300px;
background: radial-gradient(ellipse, rgba(168, 237, 234, 0.2), transparent);
top: 10%;
right: 10%;
animation-delay: 1s;
}
.nebula-2 {
width: 250px;
height: 250px;
background: radial-gradient(ellipse, rgba(254, 207, 239, 0.2), transparent);
bottom: 10%;
right: 30%;
animation-delay: 3s;
}
@keyframes cosmicFloat {
0%,
100% {
transform: translate(0, 0) scale(1);
opacity: 0.3;
}
50% {
transform: translate(30px, -30px) scale(1.1);
opacity: 0.6;
}
}
@keyframes nebulaFloat {
0%,
100% {
transform: translate(0, 0) rotate(0deg) scale(1);
opacity: 0.2;
}
33% {
transform: translate(20px, -20px) rotate(120deg) scale(1.05);
opacity: 0.4;
}
66% {
transform: translate(-20px, 20px) rotate(240deg) scale(0.95);
opacity: 0.3;
}
}
@media (max-width: 1024px) {
.content-wrapper {
grid-template-columns: 1fr;
gap: 40px;
text-align: center;
}
.slide-title {
font-size: 3.5rem;
}
.stats-cards {
flex-direction: row;
justify-content: center;
align-self: center;
}
.floating-icons {
display: none;
}
}
@media (max-width: 768px) {
.Premium-carousel-container {
height: 100vh;
min-height: 600px;
}
.slide-content {
padding: 0 20px;
text-align: center;
}
.slide-title {
font-size: 2.8rem;
text-align: center;
margin: 0 auto;
}
.slide-description {
font-size: 1rem;
text-align: center;
max-width: 100%;
margin: 0 auto;
}
.slide-actions {
flex-direction: column;
align-items: center;
gap: 15px;
width: 100%;
}
.Premium-cta-btn {
width: 100%;
max-width: 280px;
justify-content: center;
margin: 0 auto;
}
.carousel-nav {
width: 50px;
height: 50px;
}
.carousel-nav.prev {
left: 20px;
}
.carousel-nav.next {
right: 20px;
}
.stats-cards {
flex-direction: row;
gap: 15px;
justify-content: center;
width: 100%;
}
.stat-card {
padding: 16px;
min-width: 80px;
text-align: center;
}
.stat-value {
font-size: 1.5rem;
}
.progress-ring {
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
}
.floating-icons {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
pointer-events: none;
}
.floating-icon {
position: relative;
margin: 0 10px;
}
.content-wrapper {
grid-template-columns: 1fr;
gap: 30px;
text-align: center;
align-items: center;
justify-content: center;
}
.text-content {
max-width: 100%;
text-align: center;
margin: 0 auto;
}
.slide-subtitle {
margin: 0 auto 20px;
text-align: center;
}
.slide-title {
text-align: center;
margin: 0 auto 24px;
}
.slide-description {
text-align: center;
margin: 0 auto 40px;
}
.slide-actions {
justify-content: center;
align-items: center;
width: 100%;
}
.stats-cards {
justify-content: center;
align-items: center;
width: 100%;
}
.cosmic-effects {
opacity: 0.3;
}
.slide-indicators {
left: 50%;
transform: translateX(-50%);
justify-content: center;
}
.progress-ring {
left: 50%;
transform: translateX(-50%);
right: auto;
}
}
@media (max-width: 576px) {
.Premium-carousel-container {
height: 100vh;
min-height: 500px;
}
.slide-content {
padding: 0 15px;
}
.slide-title {
font-size: 2.2rem;
line-height: 1.2;
margin-bottom: 20px;
}
.slide-subtitle {
font-size: 0.8rem;
padding: 6px 16px;
margin-bottom: 15px;
}
.slide-description {
font-size: 0.9rem;
line-height: 1.5;
margin-bottom: 30px;
}
.slide-actions {
gap: 12px;
flex-direction: column;
align-items: center;
}
.Premium-cta-btn {
padding: 14px 28px;
font-size: 0.9rem;
width: 100%;
max-width: 250px;
}
.carousel-nav {
width: 45px;
height: 45px;
}
.carousel-nav.prev {
left: 15px;
}
.carousel-nav.next {
right: 15px;
}
.stats-cards {
gap: 10px;
flex-wrap: wrap;
justify-content: center;
}
.stat-card {
padding: 12px;
min-width: 70px;
flex: 1;
max-width: 100px;
}
.stat-value {
font-size: 1.3rem;
}
.stat-label {
font-size: 0.8rem;
}
.indicator {
width: 30px;
height: 4px;
}
.slide-indicators {
bottom: 15px;
gap: 8px;
}
.progress-ring {
bottom: 15px;
width: 45px;
height: 45px;
}
.progress-text {
font-size: 0.7rem;
}
.floating-icons {
opacity: 0.6;
}
.floating-icon {
width: 40px;
height: 40px;
margin: 0 8px;
}
.content-wrapper {
justify-content: center;
align-items: center;
text-align: center;
padding: 20px 0;
}
.cosmic-orb,
.cosmic-nebula {
opacity: 0.2;
}
.carousel-particle {
opacity: 0.3;
}
}
@media (max-width: 480px) {
.Premium-carousel-container {
height: 100vh;
min-height: 450px;
}
.slide-title {
font-size: 1.8rem;
margin-bottom: 15px;
}
.slide-subtitle {
font-size: 0.7rem;
padding: 5px 12px;
margin-bottom: 12px;
}
.slide-description {
font-size: 0.8rem;
margin-bottom: 25px;
}
.Premium-cta-btn {
padding: 12px 24px;
font-size: 0.8rem;
max-width: 220px;
}
.carousel-nav {
width: 40px;
height: 40px;
}
.carousel-nav.prev {
left: 10px;
}
.carousel-nav.next {
right: 10px;
}
.stats-cards {
gap: 8px;
}
.stat-card {
padding: 10px;
min-width: 60px;
max-width: 80px;
}
.stat-value {
font-size: 1.1rem;
}
.stat-label {
font-size: 0.7rem;
}
.slide-indicators {
bottom: 10px;
gap: 6px;
}
.indicator {
width: 25px;
height: 3px;
}
.progress-ring {
bottom: 10px;
width: 40px;
height: 40px;
}
.progress-text {
font-size: 0.6rem;
}
.floating-icons {
opacity: 0.4;
}
.floating-icon {
width: 35px;
height: 35px;
margin: 0 6px;
}
}
@media (max-width: 360px) {
.Premium-carousel-container {
height: 100vh;
min-height: 400px;
}
.slide-title {
font-size: 1.6rem;
margin-bottom: 12px;
}
.slide-subtitle {
font-size: 0.6rem;
padding: 4px 10px;
margin-bottom: 10px;
}
.slide-description {
font-size: 0.7rem;
margin-bottom: 20px;
}
.Premium-cta-btn {
padding: 10px 20px;
font-size: 0.7rem;
max-width: 200px;
}
.carousel-nav {
width: 35px;
height: 35px;
}
.carousel-nav.prev {
left: 8px;
}
.carousel-nav.next {
right: 8px;
}
.stats-cards {
gap: 6px;
}
.stat-card {
padding: 8px;
min-width: 50px;
max-width: 70px;
}
.stat-value {
font-size: 1rem;
}
.stat-label {
font-size: 0.6rem;
}
.slide-indicators {
bottom: 8px;
gap: 4px;
}
.indicator {
width: 20px;
height: 2px;
}
.progress-ring {
bottom: 8px;
width: 35px;
height: 35px;
}
.progress-text {
font-size: 0.5rem;
}
.floating-icons {
opacity: 0.3;
}
.floating-icon {
width: 30px;
height: 30px;
margin: 0 4px;
}
}
@media (max-width: 768px) {
.carousel-slide {
display: flex;
align-items: center;
justify-content: center;
}
.slide-content {
width: 100%;
max-width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.content-wrapper {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.text-content {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.slide-actions {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.stats-cards {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.carousel-nav {
z-index: 100;
position: absolute;
}
.slide-indicators {
z-index: 100;
position: absolute;
}
.progress-ring {
z-index: 100;
position: absolute;
}
}
.carousel-slide {
will-change: transform, opacity;
}
.slide-image {
will-change: transform;
}
.cosmic-orb,
.cosmic-nebula {
will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
.carousel-particle,
.cosmic-orb,
.cosmic-nebula,
.floating-icon,
.btn-particle {
animation: none;
}
.slide-image {
animation: none;
}
}
.carousel-nav:focus,
.indicator:focus,
.Premium-cta-btn:focus {
outline: 2px solid rgba(102, 126, 234, 0.5);
outline-offset: 2px;
}
@media (max-width: 768px) {
.progress-ring {
left: auto;
right: 20px;
transform: none;
}
}
@media (max-width: 576px) {
.progress-ring {
right: 15px;
}
}
@media (max-width: 480px) {
.progress-ring {
right: 10px;
}
}
@media (max-width: 360px) {
.progress-ring {
right: 8px;
}
}