/* Device Slider Block Styles */

.device-slider-block {
    --device-slider-bg-color: #f5f5f5;
    --device-slider-text-color: #0a0f1c;
    --device-slider-spacing: medium;
    --device-slider-dots-color: #00d4aa;
    --device-slider-shadow-color: rgba(0, 0, 0, 0.15);
    --device-slider-animation-speed: medium;
    --accent-color: #00d4aa;
    
    background-color: var(--device-slider-bg-color);
    color: var(--device-slider-text-color);
    position: relative;
    /* Prevent unwanted animations and overlays */
    transform: none !important;
    animation: none !important;
}

/* Prevent any unwanted overlay effects */
.device-slider-block::before,
.device-slider-block::after {
    display: none !important;
}

/* Override any potential conflicting animations */
.device-slider-block.animate-in,
.device-slider-block:not(.animate-in) {
    transform: none !important;
    animation: none !important;
}

.device-slider-block.animate-in *,
.device-slider-block:not(.animate-in) * {
    transform: none !important;
    animation: none !important;
}

/* Spacing options */
.device-slider-block[style*="--device-slider-spacing: small"] {
    padding: 40px 0;
}

.device-slider-block[style*="--device-slider-spacing: medium"] {
    padding: 80px 0;
}

.device-slider-block[style*="--device-slider-spacing: large"] {
    padding: 120px 0;
}

.device-slider-heading {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--device-slider-text-color);
    line-height: 1.2;
}

.device-slider-subtext {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--device-slider-text-color);
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.device-slider-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.device-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 400px;
    position: relative;
    padding-bottom: 50px; /* Space for dots */
}

/* Device Slide Styles */
.device-slide {
    display: block;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* Prevent unwanted animations */
    animation: none !important;
}

.device-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

/* Remove hover effect since slides are not clickable */
.device-slide:hover {
    transform: translateX(0);
}

/* Prevent any unwanted animations from other CSS */
.device-slide * {
    animation: none !important;
}

/* Device Slide Content Layout */
.device-slide-content {
    display: flex;
    align-items: center;
    gap: 80px;
    width: 100%;
    pointer-events: none; /* Allow clicks to pass through to underlying elements */
}

/* Left Side - Device Mockup */
.device-mockup {
    flex: 0 0 auto;
    max-width: 600px;
    width: 50%;
    pointer-events: auto; /* Re-enable pointer events for interactive content */
}

.device-image,
.device-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.device-video {
    object-fit: cover;
}

/* Right Side - Content */
.device-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 50%;
    pointer-events: auto; /* Re-enable pointer events for interactive content */
}

/* Logo Styles */
.device-logo {
    margin-top: 0;
}

/* Content Styles */
.device-title {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--device-slider-text-color);
    margin: 0;
}

.device-description {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--device-slider-text-color);
    opacity: 0.8;
    margin: 0;
}

.device-logo {
    margin-top: 0;
}

.logo-image {
    height: 100px;
    width: auto;
    display: block;
    max-width: 100%;
}

/* Navigation Dots */
.device-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}



.device-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    pointer-events: auto; /* Ensure dots remain clickable */
}

.device-dot.active {
    background: var(--device-slider-dots-color);
    transform: scale(1.2);
}

.device-dot:hover {
    background: var(--device-slider-dots-color);
    opacity: 0.7;
}

/* Device Frame Styles */
.device-frame {
    max-width: 350px;
}

/* Animation for slides appearing - removed conflicting animations */

/* Responsive Design */
@media (max-width: 1024px) {
    .device-slider-wrapper {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .device-slide {
        position: relative;
        opacity: 1;
        transform: none;
    }
    
    .device-slide.active {
        transform: none;
    }
    
    .device-slide-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .device-mockup {
        max-width: 500px;
        width: 100%;
    }
    
    .device-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .device-slider-block {
        padding: 60px 0;
    }
    
    .device-slider-heading {
        font-size: 2.5rem;
    }
    
    .device-slider-subtext {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .device-slider-wrapper {
        gap: 20px;
        padding-bottom: 30px;
    }
    
    .device-slide {
        position: relative;
        max-width: 100%;
    }
    
    .device-slide-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .device-mockup {
        max-width: 350px;
        width: 100%;
        order: 1;
    }
    
    .device-content {
        width: 100%;
        order: 2;
        gap: 30px;
    }
    
    .device-title {
        font-size: 2.5rem;
    }
    
    .device-description {
        font-size: 1.125rem;
    }
    
    .logo-image {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .device-slider-block {
        padding: 40px 0;
    }
    
    .device-slider-heading {
        font-size: 2rem;
    }
    
    .device-slider-container {
        padding: 0 15px;
    }
    
    .device-slide {
        max-width: 280px;
    }
    
    .device-screen {
        padding: 15px;
    }
    
    .device-title {
        font-size: 1.1rem;
        margin: 30px 0 10px 0;
    }
    
    .device-description {
        font-size: 0.8rem;
    }
    
    .logo-image {
        height: 25px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .device-slide:hover {
        transform: scale(1);
    }
    
    .device-btn:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .device-screen {
        border: 2px solid white;
    }
    
    .device-dot {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .device-slide {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .device-slide.active {
        transform: none;
    }
    
    .device-slide:hover {
        transform: none;
    }
}
