* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Floating image button styles */
#super-btn {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1000;
    display: inline-block;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    width: 56px;
    height: 56px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

#super-btn:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
    transform: scale(1.07);
}

#super-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    overflow: hidden;
    scroll-behavior: smooth;
    margin: 0;
    padding: 20px 0;
}

.main-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    gap: 60px;
    align-items: center;
    justify-content: center;
}

.carousel-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.controls-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-left: 40px;
}

.carousel-container {
    width: 100%;
    max-width: 500px;
    height: 70vh;
    position: relative;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-container .nav-arrow {
    display: none;
}

.carousel-track {
    width: 450px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card {
    position: absolute;
    width: 400px;
    height: 225px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.center {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
}

.card.center img {
    filter: none;
}

.card.up-2 {
    z-index: 1;
    transform: translateY(-300px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.card.up-2 img {
    filter: grayscale(100%);
}

.card.up-1 {
    z-index: 5;
    transform: translateY(-150px) scale(0.9) translateZ(-100px);
    opacity: 0.9;
}

.card.up-1 img {
    filter: grayscale(100%);
}

.card.down-1 {
    z-index: 5;
    transform: translateY(150px) scale(0.9) translateZ(-100px);
    opacity: 0.9;
}

.card.down-1 img {
    filter: grayscale(100%);
}

.card.down-2 {
    z-index: 1;
    transform: translateY(300px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.card.down-2 img {
    filter: grayscale(100%);
}

.card.down-2 img {
    filter: grayscale(100%);
}

.card.hidden {
    opacity: 0;
    pointer-events: none;
}

.member-info {
    text-align: center;
    margin-top: 20px;
    transition: all 0.5s ease-out;
}

.member-name {
    color: rgb(8, 42, 123);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.member-name::before,
.member-name::after {
    content: "";
    position: absolute;
    top: 100%;
    width: 80px;
    height: 2px;
    background: rgb(8, 42, 123);
}

.member-name::before {
    left: -100px;
}

.member-name::after {
    right: -100px;
}

.member-role {
    color: #848696;
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 0;
    margin-top: -10px;
    position: relative;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(8, 42, 123, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgb(8, 42, 123);
    transform: scale(1.2);
}

.nav-arrow {
    position: relative;
    background: transparent;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    box-shadow: none;
}

.nav-arrow:hover {
    background: transparent;
    transform: scale(1.2);
    box-shadow: none;
    border-color: transparent;
}

.nav-arrow img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

.nav-arrow:hover img {
    filter: none;
    transform: scale(1.1);
}

.nav-arrow.up {
    transform: none;
}

.nav-arrow.down {
    transform: none;
}

.nav-controls {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(8, 42, 123, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: scrollFadeOut 5s ease-in-out forwards;
    font-weight: 500;
    line-height: 1;
}

.scroll-indicator span {
    font-size: 0.75rem;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
}

@keyframes scrollFadeOut {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
        visibility: hidden;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }

    .main-container {
        flex-direction: column;
        height: auto;
        gap: 20px;
        max-width: 100%;
    }

    .carousel-section {
        flex: none;
        width: 100%;
    }

    .controls-section {
        flex: none;
        width: 100%;
        padding-left: 0;
        gap: 20px;
    }

    .carousel-container {
        height: 60vh;
        max-width: 350px;
    }

    .carousel-container .nav-arrow {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 70px;
        height: 70px;
        margin: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .carousel-container .nav-arrow:hover {
        transform: translateX(-50%) scale(1.2);
        background: transparent;
        box-shadow: none;
    }

    .carousel-container .nav-arrow.up:hover {
        transform: translateX(-50%) scale(1.2);
    }

    .carousel-container .nav-arrow.down:hover {
        transform: translateX(-50%) scale(1.2);
    }

    .carousel-container .nav-arrow.up {
        top: 20px;
        transform: translateX(-50%);
    }

    .carousel-container .nav-arrow.down {
        bottom: 20px;
        transform: translateX(-50%);
    }

    .carousel-container .nav-arrow.up img {
        transform: rotate(-90deg);
        width: 50px;
        height: 50px;
    }

    .carousel-container .nav-arrow.down img {
        transform: rotate(90deg);
        width: 50px;
        height: 50px;
    }

    .nav-controls {
        display: none;
    }

    .card {
        width: 320px;
        height: 180px;
    }

    .carousel-track {
        width: 350px;
    }

    .card.up-2 {
        transform: translateY(-160px) scale(0.8) translateZ(-300px);
    }

    .card.up-1 {
        transform: translateY(-80px) scale(0.9) translateZ(-100px);
    }

    .card.down-1 {
        transform: translateY(80px) scale(0.9) translateZ(-100px);
    }

    .card.down-2 {
        transform: translateY(160px) scale(0.8) translateZ(-300px);
    }

    .member-name {
        font-size: 1.8rem;
    }

    .member-role {
        font-size: 1rem;
    }

    .member-name::before,
    .member-name::after {
        width: 40px;
    }

    .member-name::before {
        left: -60px;
    }

    .member-name::after {
        right: -60px;
    }

    .scroll-indicator {
        bottom: 20px;
        right: 20px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .scroll-indicator span {
        font-size: 0.7rem;
    }
}