:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    --instagram-color: #E4405F;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    /* background: var(--primary-gradient); */
    background: transparent;
    min-height: 100vh;
    padding: 2rem 0;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-heavy);
}

.slider-header {
    text-align: center;
    margin-bottom: 3rem;
}

.slider-title {
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.slider-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 400;
}

.slider-container {
    position: relative;
    max-width: 600px;
    height: 600px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.05); */
    /* animation: rotate-center 7.8s ease-in-out both; */
}

#slider img.active {
    opacity: 1;
    /* transform: scale(1); */
    /* animation: rotate-center 3.0s ease-in-out both; */
    /* animation: rotate-scale-down-diag-1 3s linear alternate-reverse both; */
    /* animation: Scale-In-Backward-Right 3s ease 0s normal forwards; */
    animation: Wobble-Bottom 3s ease 0s normal both;
}

@keyframes rotate-center {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-scale-down-diag-1 {
    0% {
        transform: scale(1) rotate3d(1, 1, 0, 0deg);
    }
    50% {
        transform: scale(0.5) rotate3d(1, 1, 0, -180deg);
    }
    100% {
        transform: scale(1) rotate3d(1, 1, 0, -360deg);
    }
}

@keyframes Scale-In-Backward-Right {
    0% {
        transform: scale(2);
        transform-origin: 0% 50%;
    }
    100% {
        transform: scale(1);
        transform-origin: 0% 50%;
    }
}

@keyframes Wobble-Bottom {
    0%,
    100% {
        transform: translateX(0%);
        transform-origin: 50% 50%;
    }
    15% {
        transform: translateX(-30px) rotate(-6deg);
    }
    30% {
        transform: translateX(15px) rotate(6deg);
    }
    45% {
        transform: translateX(-15px) rotate(-3.6deg);
    }
    60% {
        transform: translateX(9px) rotate(2.4deg);
    }
    75% {
        transform: translateX(-6px) rotate(-1.2deg);
    }
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    /* padding: 2rem; */
    color: white;
    z-index: 5;
}

.slide-caption {
    font-size: 1rem;
    /* line-height: 1.6; */
    padding: 7px;
    max-height: 100px;
    max-width: 100%;
    bottom: -16px;
    /* overflow-y: auto; */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0px 0px rgba(255, 255, 255, 0);
    position: relative;
    overflow: hidden;
}

.navigation-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
    z-index: 10;
}

.nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.nav-btn:active {
    transform: scale(0.95);
}

.instagram-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--instagram-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-light);
}

.instagram-link:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    color: var(--instagram-color);
}

.indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.indicator.active {
    background: #667eea;
    transform: scale(1.3);
}

.control-panel {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
}

.play-pause-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.play-pause-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 3px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 3px;
}

.slide-counter {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.error-message {
    text-align: center;
    color: #dc3545;
    font-size: 1.1rem;
    padding: 2rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 768px) {
    .slider-title {
        font-size: 2.2rem;
    }
    .slider-container {
        height: 450px;
        max-width: 100%;
    }
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .instagram-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .glass-container {
        margin: 0 1rem;
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 8.5s infinite;
}