* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f4f0 0%, #e8ddd4 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin-bottom: 30px;
}

.carousel-wrapper {
    width: 600px;
    height: 338px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    background: white;
}

.carousel-track {
    display: flex;
    width: 9000px; /* 600px * 8 cards */
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-card {
    width: 600px;
    height: 338px;
    overflow: hidden;
    position: relative;
}

.carousel-card img {
    width: 100%;
    height: 338px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.carousel-card:hover img {
    transform: scale(1.05);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.nav-button:hover {
    background: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-left {
    left: -22px;
}

.nav-right {
    right: -22px;
}

.nav-button svg {
    color: #8b7355;
    transition: color 0.3s ease;
}

.nav-button:hover svg {
    color: #6b5b47;
}

.carousel-indicators {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 115, 85, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #8b7355;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(139, 115, 85, 0.7);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 900px) {
    .carousel-container {
        padding: 0 50px;
    }
    
    .carousel-wrapper {
        width: 100%;
        max-width: 500px;
        height: 281px; /* Maintain 16:9 ratio */
    }
    
    .carousel-track {
        width: 4000px; /* 500px * 8 cards */
    }
    
    .carousel-card {
        width: 500px;
        height: 281px;
    }
    
    .carousel-card img {
        height: 281px;
    }
}

@media (max-width: 600px) {
    .carousel-wrapper {
        max-width: 400px;
        height: 225px; /* Maintain 16:9 ratio */
    }
    
    .carousel-track {
        width: 3200px; /* 400px * 8 cards */
    }
    
    .carousel-card {
        width: 400px;
        height: 225px;
    }
    
    .carousel-card img {
        height: 225px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        max-width: 320px;
        height: 180px; /* Maintain 16:9 ratio */
    }
    
    .carousel-track {
        width: 2560px; /* 320px * 8 cards */
    }
    
    .carousel-card {
        width: 320px;
        height: 180px;
    }
    
    .carousel-card img {
        height: 180px;
    }
    
    .nav-button {
        width: 35px;
        height: 35px;
    }
    
    .nav-left {
        left: -17px;
    }
    
    .nav-right {
        right: -17px;
    }
}

/* Animation classes */
.carousel-track.transitioning {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-container {
    animation: fadeIn 0.8s ease-out;
}

.carousel-indicators {
    animation: fadeIn 0.8s ease-out 0.2s both;
}