/* Lundev Style Image Slider - Responsive Design */

/* Override existing hero styles */
.hero {
    height: 100vh !important;
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    background: linear-gradient(90deg, #462c61 0%, #5a3a7a 20%, #6b4a8a 35%, #8a5a9a 50%, #a86ba8 65%, #de4185 80%, #e85a9a 90%, #f06b9a 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* Hide existing hero elements */
.hero-background-image,
.hero::before,
.hero::after,
.center-focused-slider,
.slider-progress,
.slider-loading,
.slider-controls,
.slider-dots {
    display: none !important;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Hover state for auto-play pause indication */
.slider-container:hover {
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

#slide {
    width: max-content;
    margin-top: 50px;
    overflow: hidden;
    border-radius: 15px;
}

.item {
    width: 200px;
    height: 300px;
    background-position: 50% 50%;
    display: inline-block;
    transition: all 0.5s ease-in-out;
    background-size: cover;
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px #505050;
    opacity: 1;
}

.item.sliding {
    transition: all 0.3s ease-in-out;
}

.item:nth-child(1),
.item:nth-child(2) {
    left: 0;
    top: 0;
    transform: translate(0, 0);
    border-radius: 15px;
    width: 100%;
    height: 100%;
    box-shadow: none;
    overflow: hidden;
}

.item:nth-child(3) {
    left: calc(50% + 440px);
    opacity: 0.9;
}

.item:nth-child(4) {
    left: calc(50% + 220px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.item:nth-child(5) {
    left: calc(50% + 440px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.item:nth-child(n+6) {
    left: calc(50% + 660px);
    opacity: 0;
}

.item .content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    padding: 30px;
    color: #eee;
    transform: translate(0, -50%);
    display: none;
    font-family: system-ui;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.item:nth-child(2) .content {
    display: block;
    z-index: 11111;
}

.item .name {
    font-size: 40px;
    font-weight: bold;
    opacity: 0;
    animation: showcontent 1s ease-in-out 1 forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    color: #ffffff;
}

.item .des {
    margin: 20px 0;
    opacity: 0;
    animation: showcontent 1s ease-in-out 0.3s 1 forwards;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
    color: #ffffff;
}

.item button {
    padding: 10px 20px;
    border: none;
    opacity: 0;
    animation: showcontent 1s ease-in-out 0.6s 1 forwards;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.item button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

@keyframes showcontent {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
        filter: blur(0);
    }
}

.buttons {
    position: absolute;
    bottom: 30px;
    z-index: 222222;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #555;
    transition: 0.5s;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.buttons button:hover {
    background-color: #bac383;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.buttons button:active {
    transform: scale(0.95);
    background-color: #a8b373;
}

.buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .slider-container {
        max-width: 1400px;
        height: 700px;
        padding: 60px;
        border-radius: 25px;
    }
    
    #slide {
        border-radius: 20px;
    }
    
    .item:nth-child(1),
    .item:nth-child(2) {
        border-radius: 20px;
    }
    
    .item {
        width: 250px;
        height: 350px;
    }
    
    .item:nth-child(3) {
        left: calc(50% + 540px);
        opacity: 0.9;
    }
    
    .item:nth-child(4) {
        left: calc(50% + 270px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .item:nth-child(5) {
        left: calc(50% + 540px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .item:nth-child(n+6) {
        left: calc(50% + 810px);
        opacity: 0;
    }
    
    .item .content {
        left: 120px;
        width: 400px;
        padding: 40px;
    }
    
    .item .name {
        font-size: 50px;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    }
    
    .item .des {
        font-size: 18px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .buttons button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .slider-container {
        max-width: 1000px;
        height: 550px;
        padding: 40px;
    }
    
    .item {
        width: 180px;
        height: 280px;
    }
    
    .item:nth-child(3) {
        left: calc(50% + 400px);
        opacity: 0.9;
    }
    
    .item:nth-child(4) {
        left: calc(50% + 200px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .item:nth-child(5) {
        left: calc(50% + 400px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .item:nth-child(n+6) {
        left: calc(50% + 600px);
        opacity: 0;
    }
    
    .item .content {
        left: 80px;
        width: 280px;
    }
    
    .item .name {
        font-size: 35px;
    }
    
    .item .des {
        font-size: 16px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        padding: 20px;
        background: linear-gradient(90deg, #462c61 0%, #5a3a7a 20%, #6b4a8a 35%, #8a5a9a 50%, #a86ba8 65%, #de4185 80%, #e85a9a 90%, #f06b9a 100%) !important;
    }
    
    .slider-container {
        width: 100%;
        height: 500px;
        padding: 30px;
        margin: 0;
        border-radius: 15px;
    }
    
    #slide {
        border-radius: 12px;
    }
    
    .item:nth-child(1),
    .item:nth-child(2) {
        border-radius: 12px;
    }
    
    .item {
        width: 150px;
        height: 250px;
    }
    
    /* Hide side images on tablet - use opacity to maintain animation */
    .item:nth-child(3),
    .item:nth-child(4),
    .item:nth-child(5),
    .item:nth-child(n+6) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Hide content on tablet for better image visibility */
    .item .content {
        display: none !important;
    }
    
    .item .name {
        display: none !important;
    }
    
    .item .des {
        display: none !important;
    }
    
    .item button {
        display: none !important;
    }
    
    /* Hide navigation buttons on tablet - use swipe instead */
    .buttons {
        display: none !important;
    }
}

/* Mobile Large */
@media (max-width: 480px) {
    .hero {
        height: 100vh;
        padding: 10px;
        background: linear-gradient(90deg, #462c61 0%, #5a3a7a 20%, #6b4a8a 35%, #8a5a9a 50%, #a86ba8 65%, #de4185 80%, #e85a9a 90%, #f06b9a 100%) !important;
    }
    
    .slider-container {
        width: 100%;
        height: 400px;
        padding: 20px;
        border-radius: 10px;
    }
    
    #slide {
        border-radius: 8px;
    }
    
    .item:nth-child(1),
    .item:nth-child(2) {
        border-radius: 8px;
    }
    
    .item {
        width: 120px;
        height: 200px;
    }
    
    /* Hide side images on mobile large - use opacity to maintain animation */
    .item:nth-child(3),
    .item:nth-child(4),
    .item:nth-child(5),
    .item:nth-child(n+6) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Hide content on mobile for better image visibility */
    .item .content {
        display: none !important;
    }
    
    .item .name {
        display: none !important;
    }
    
    .item .des {
        display: none !important;
    }
    
    .item button {
        display: none !important;
    }
    
    /* Hide navigation buttons on mobile - use swipe instead */
    .buttons {
        display: none !important;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .hero {
        background: linear-gradient(90deg, #462c61 0%, #5a3a7a 20%, #6b4a8a 35%, #8a5a9a 50%, #a86ba8 65%, #de4185 80%, #e85a9a 90%, #f06b9a 100%) !important;
    }
    
    .slider-container {
        height: 350px;
        padding: 15px;
        border-radius: 8px;
    }
    
    #slide {
        border-radius: 6px;
    }
    
    .item:nth-child(1),
    .item:nth-child(2) {
        border-radius: 6px;
    }
    
    .item {
        width: 100px;
        height: 180px;
    }
    
    /* Hide side images on mobile small - use opacity to maintain animation */
    .item:nth-child(3),
    .item:nth-child(4),
    .item:nth-child(5),
    .item:nth-child(n+6) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Hide content on small mobile for better image visibility */
    .item .content {
        display: none !important;
    }
    
    .item .name {
        display: none !important;
    }
    
    .item .des {
        display: none !important;
    }
    
    .item button {
        display: none !important;
    }
    
    /* Hide navigation buttons on small mobile - use swipe instead */
    .buttons {
        display: none !important;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        background: linear-gradient(90deg, #462c61 0%, #5a3a7a 20%, #6b4a8a 35%, #8a5a9a 50%, #a86ba8 65%, #de4185 80%, #e85a9a 90%, #f06b9a 100%) !important;
    }
    
    .slider-container {
        height: 300px;
        padding: 20px;
    }
    
    .item {
        height: 150px;
    }
    
    /* Hide side images on landscape mobile - use opacity to maintain animation */
    .item:nth-child(3),
    .item:nth-child(4),
    .item:nth-child(5),
    .item:nth-child(n+6) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Hide content on landscape mobile for better image visibility */
    .item .content {
        display: none !important;
    }
    
    .item .name {
        display: none !important;
    }
    
    .item .des {
        display: none !important;
    }
    
    .item button {
        display: none !important;
    }
    
    /* Hide navigation buttons on landscape mobile - use swipe instead */
    .buttons {
        display: none !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .item {
        background-size: cover;
        background-repeat: no-repeat;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .item button {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .slider-container {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    
    .item {
        touch-action: manipulation;
    }
    
    /* Swipe indicator for mobile */
    .slider-container::after {
        content: "← Swipe to navigate →";
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.7);
        font-size: 12px;
        font-weight: 500;
        text-align: center;
        pointer-events: none;
        z-index: 1000;
    }
    
    /* Hide swipe indicator after 5 seconds */
    .slider-container.swipe-indicator-hidden::after {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .item {
        transition: none;
    }
    
    .item .name,
    .item .des,
    .item button {
        animation: none;
        opacity: 1;
    }
    
    .buttons button {
        transition: none;
    }
}

/* Additional Enhancements */

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Loading state for images */
.item {
    background-color: #f0f0f0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Image loading optimization - removed checker overlay */

/* Focus states for accessibility */
.buttons button:focus,
.item button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero {
        height: auto !important;
        background: white !important;
    }
    
    .slider-container {
        box-shadow: none !important;
        background: white !important;
    }
    
    .buttons {
        display: none !important;
    }
}
