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

:root {
    --bg-light-1: #f8f8f8;
    --bg-light-2: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --accent: #2098d1;
    --accent-hover: #1a7db0;
    --border-light: #e0e0e0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #cccccc 0%, #ffffff 40%, #e0e0e0 70%, #b8b8b8 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

header {
    text-align: center;
    padding: 2rem 0 3rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 100;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.main-content {
    flex: 1;
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
}

.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 70vh;
    max-height: 700px;
    min-height: 400px;
}

.carousel-track {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 3rem;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: absolute;
    left: 50%;
    top: 0;
}

.carousel-item {
    flex-shrink: 0;
    width: 500px;
    height: 500px;
    position: relative;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 500px;
    object-fit: contain;
    border-radius: 4px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.carousel-item:not(.center) {
    opacity: 0.3;
    transform: scale(0.65);
    filter: grayscale(30%);
}

.carousel-item.center {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
    filter: grayscale(0%);
}

.carousel-item:not(.center):hover {
    opacity: 0.5;
}

.carousel-item.center img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
                0 8px 20px rgba(0, 0, 0, 0.04);
}

.sidebar {
    position: absolute;
    bottom: 1rem;
    right: 17%;
    z-index: 20;
    pointer-events: none;
}

.sidebar-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 230px;
}

.detail-section {
    margin-bottom: 0.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section:first-child {
    margin-bottom: 0.625rem;
}

.detail-label {
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.3rem;
}

.detail-value {
    font-size: 0.64rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 300;
}

.image-counter {
    text-align: center;
    padding: 2rem 0 0;
    font-size: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.image-counter #currentIndex {
    color: var(--accent);
    font-weight: 500;
}

/* Loading state */
.carousel-item.loading {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel-item {
        width: 450px;
        height: 450px;
    }

    .sidebar {
        bottom: 1rem;
        right: 13%;
    }

    .sidebar-content {
        max-width: 200px;
        padding: 0.675rem 0.825rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header {
        padding: 1rem 0 0.5rem;
    }

    .main-content {
        align-items: flex-start;
        padding-top: 1rem;
    }

    .sidebar {
        bottom: 1rem;
        right: 7%;
    }

    .sidebar-content {
        max-width: 170px;
        padding: 0.6rem 0.725rem;
    }

    .detail-value {
        font-size: 0.56rem;
    }

    .carousel {
        height: 55vh;
        min-height: 300px;
    }

    .carousel-item {
        width: 350px;
        height: 350px;
    }

    .carousel-track {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    header {
        padding: 0.75rem 0 0.25rem;
    }

    header h1 {
        font-size: 1.2rem;
    }

    .main-content {
        padding-top: 0.5rem;
    }

    .carousel {
        height: 50vh;
        min-height: 280px;
    }

    .carousel-item {
        width: 280px;
        height: 280px;
    }

    .carousel-track {
        gap: 1.5rem;
    }

    .sidebar {
        bottom: 0.75rem;
        right: 4%;
    }

    .sidebar-content {
        max-width: 140px;
        padding: 0.5rem 0.625rem;
    }

    .detail-section {
        margin-bottom: 0.45rem;
    }
}

