* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* overflow: hidden; */
}

.carousel-container {
    position: relative;
    width: 80vw;
    height: calc(100dvh + 100px);
    /* background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #000000 100%); */
    overflow: hidden;
}

.carousel-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    perspective-origin: center center;
}

.cards-wrapper {
    position: relative;
    width: 280px;
    height: 400px;
    transform-style: preserve-3d;
}

.card {
    position: absolute;
    width: 280px;
    height: 470px;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.card:hover {
    /* transform: translateY(-5px) !important; */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.card-image {
    position: relative;
    height: 224px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.card:hover .card-image img {
    /* transform: scale(1.1); */
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 10;
}

.card-content {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
}

.card-content .portal-items {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .8rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 1.2rem 1rem;
}

.portal-items li i {
  width: 18px;
  /* border: 1px solid white; */
}

.portal-items li {
  color: azure;
  font-size: 10px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.card-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.card-rating {
    display: flex;
    gap: 4px;
}

.rating-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.card-button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-button:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* Navigation Controls */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    /* transform: translateY(-50%) scale(1.1); */
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-prev {
    left: 32px;
}

.nav-next {
    right: 32px;
}

/* Bottom Controls */
.bottom-controls {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.controls-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    padding: 12px 24px;
}

.indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.indicator:hover {
    /* transform: scale(1.25); */
}

.indicator.active {
    /* transform: scale(1.5); */
}

.autoplay-btn {
    padding: 8px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.autoplay-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hidden {
    display: none;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 50;
}

.progress-fill {
    height: 100%;
    transition: all 0.3s ease;
}

/* Background Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-3d {
        perspective: 800px;
    }
    
    .cards-wrapper {
        width: 240px;
        height: 320px;
    }
    
    .card {
        width: 240px;
        height: 320px;
    }
    
    .card-image {
        height: 160px;
    }
    
    .card-content {
        padding: 16px;
        height: 160px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .nav-prev {
        left: 16px;
    }
    
    .nav-next {
        right: 16px;
    }
}