@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4C84FF;
    --success-color: #10b981;
    --background-color: #0f0f1e;
    --text-primary: #fff;
    --text-secondary: #b0b0c0;
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 80%;
}

body {
    background: var(--background-color);
    min-height: 100vh;
    padding: 4rem 2rem;
}

.container {
    max-width: 130rem;
    margin: 0 auto;
}

h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 5rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Carousel Section */
.carousel-section {
    margin-bottom: 10rem;
}

.carousel-section h2 {
    font-size: 2.4rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

/* 3D Carousel */
.carousel-3d {
    position: relative;
    width: 100%;
    height: 60rem;
    perspective: 150rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d.products {
    height: 55rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel Item */
.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35rem;
    height: 45rem;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.products .carousel-item {
    width: 30rem;
    height: 40rem;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Position items in 3D circle */
.carousel-item {
    transform:
        translate(-50%, -50%)
        rotateY(calc(var(--i) * 60deg))
        translateZ(50rem);
}

.products .carousel-item {
    transform:
        translate(-50%, -50%)
        rotateY(calc(var(--i) * 72deg))
        translateZ(45rem);
}

/* Item Overlay */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.carousel-item:hover .item-overlay {
    transform: translateY(0);
}

.item-overlay h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.item-overlay p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Product Card Specific */
.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.price {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.buy-btn {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background: #3b72e8;
    transform: translateY(-2px);
}

/* Item Number */
.item-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background: rgba(76, 132, 255, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

/* Controls */
.carousel-controls {
    position: absolute;
    bottom: -8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 100;
}

.carousel-btn {
    width: 6rem;
    height: 6rem;
    background: rgba(76, 132, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(76, 132, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(76, 132, 255, 0.4);
    border-color: rgba(76, 132, 255, 0.6);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: -6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.2rem;
    z-index: 100;
}

.indicator {
    width: 1.2rem;
    height: 1.2rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--primary-color);
    width: 3rem;
    border-radius: 1rem;
}

/* Info Section */
.info-section {
    margin-top: 8rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 60rem;
    margin: 0 auto;
}

.info-card h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-card h3 i {
    color: var(--primary-color);
}

.info-card ul {
    list-style: none;
}

.info-card li {
    font-size: 1.6rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    padding-left: 2.5rem;
    position: relative;
}

.info-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .carousel-item {
        width: 30rem;
        height: 38rem;
        transform:
            translate(-50%, -50%)
            rotateY(calc(var(--i) * 60deg))
            translateZ(40rem);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 70%;
    }

    .carousel-3d {
        height: 50rem;
    }

    .carousel-item {
        width: 25rem;
        height: 32rem;
        transform:
            translate(-50%, -50%)
            rotateY(calc(var(--i) * 60deg))
            translateZ(35rem);
    }

    .products .carousel-item {
        width: 22rem;
        height: 30rem;
        transform:
            translate(-50%, -50%)
            rotateY(calc(var(--i) * 72deg))
            translateZ(30rem);
    }

    .carousel-controls {
        bottom: -6rem;
    }

    .carousel-btn {
        width: 5rem;
        height: 5rem;
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-section {
    animation: fadeIn 0.6s ease;
}
