/* ========================================
   3D HOLOGRAPHIC CARDS - MAIN STYLES
   ======================================== */

.holo-cards-wrapper {
    position: relative;
    width: 100%;
    padding: 1rem;
}

.holo-cards-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.holo-cards-viewport {
    position: relative;
    height: 40vh;
    min-height: 300px;
    overflow: visible;
    perspective: 2500px;
    transform-style: preserve-3d;
}

@media (min-width: 640px) {
    .holo-cards-viewport {
        height: 28vh;
        min-height: 200px;
    }
}

@media (min-width: 768px) {
    .holo-cards-viewport {
        height: 34vh;
        min-height: 250px;
    }
}

/* ========================================
   3D SCENE CONTAINER
   ======================================== */

.holo-cards-scene {
    position: absolute;
    inset: 0;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* ========================================
   CARD WRAPPER & POSITIONING
   ======================================== */

.holo-card-wrapper {
    position: absolute;
    inset: 0;
    display: block; /* JS handles positioning */
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    pointer-events: none;
}

/* CSS State classes removed - Handled by JS Engine */

/* ========================================
   MAIN CARD
   ======================================== */

.holo-card {
    position: relative;
    height: 68%;
    width: auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    backface-visibility: hidden;
    pointer-events: auto;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

@media (min-width: 640px) {
    .holo-card {
        height: 74%;
    }
}

@media (min-width: 768px) {
    .holo-card {
        height: 78%;
    }
}

.holo-card:hover {
    transform: translateY(-5px);
}

/* ========================================
   BORDER GLOW EFFECT
   ======================================== */

.holo-border-glow {
    display: none; /* Removed completely */
}

/* ========================================
   SCREEN SHINE EFFECT - DISABLED
   ======================================== */

.holo-screen-shine {
    display: none;
}

/* ========================================
   RAINBOW GRADIENT OVERLAY - DISABLED
   ======================================== */

.holo-rainbow-gradient {
    display: none;
}

/* ========================================
   CARD IMAGE
   ======================================== */

.holo-card-image {
    position: absolute;
    height: 100% !important;
    width: 100% !important;
    inset: 0;
    object-fit: cover;
    will-change: transform;
    display: block !important;
    border-radius: 12px;
    z-index: 5;
}

/* ========================================
   ALL OVERLAYS DISABLED - KEEP IMAGES NATURAL
   ======================================== */

.holo-overlay-color-dodge,
.holo-noise-texture,
.holo-spectrum-overlay,
.holo-radial-shine {
    display: none !important;
}

/* ========================================
   DARK GRADIENT (BOTTOM)
   ======================================== */

.holo-dark-gradient {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.2),
        transparent
    );
    pointer-events: none;
    z-index: 2;
}

/* ========================================
   VIGNETTE
   ======================================== */

.holo-vignette {
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(
        80% 70%,
        rgba(0, 0, 0, 0) 62%,
        rgba(0, 0, 0, 0.22) 100%
    );
    mix-blend-mode: multiply;
    z-index: 2;
}

/* ========================================
   CARD INFO (HOVER OVERLAY)
   ======================================== */

.holo-card-info {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    justify-content: center;
    pointer-events: none;
    transform-style: preserve-3d;
    transform-origin: center;
}

.holo-card-content {
    position: relative;
    height: 78%;
    aspect-ratio: 16/9;
    opacity: 0;
    transform: translateY(8px) translateZ(20px);
    transition: all 0.3s ease-out;
    transform-style: preserve-3d;
}

.holo-card-wrapper.active:hover .holo-card-content,
.holo-card:hover .holo-card-content,
.holo-card-wrapper.active .holo-card:hover .holo-card-content {
    opacity: 1;
    transform: translateY(0) translateZ(20px);
    pointer-events: auto; /* Allow interacting with links inside if needed */
}

/* Ensure the info container doesn't block mouse but allows children */
.holo-card-info {
    pointer-events: none;
}
.holo-info-inner {
    pointer-events: none; /* Text shouldn't block card hover */
}
.holo-title-row a, 
.holo-app-icon,
.holo-app-icon-absolute {
    pointer-events: auto; /* Re-enable for interactive elements */
}

.holo-info-inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0 0 12px 12px;
}

@media (min-width: 640px) {
    .holo-info-inner {
        padding: 0.75rem 1rem;
    }
}

@media (min-width: 768px) {
    .holo-info-inner {
        padding: 1rem 1.5rem;
    }
}

.holo-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.holo-card-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.holo-app-icon {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.holo-app-icon:hover {
    transform: scale(1.1) translateY(-2px);
}

.holo-app-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transform: translateZ(28px);
}


.holo-app-icon-absolute {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 60;
    pointer-events: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.holo-app-icon-absolute:hover {
    transform: scale(1.1) rotate(5deg);
}

.holo-app-icon-absolute img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.holo-icon-top-left {
    top: -60%; 
    left: 0;
}

.holo-icon-top-right {
    top: -60%;
    right: 0;
}

.holo-card-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   NAVIGATION (ARROWS & DOTS)
   ======================================== */

.holo-arrows-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.holo-arrow {
    position: relative;
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    padding: 10px;
    line-height: 1;
    z-index: 200;
}

.holo-arrow.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.holo-dots-container {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    z-index: 100;
}

.holo-dot {
    position: relative;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

.holo-dot:hover {
    background: rgba(255, 255, 255, 0.05);
}

.holo-dot:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.4);
    outline-offset: 2px;
}

.dot-inner {
    height: 8px;
    width: 8px;
    border-radius: 999px;
    background: rgba(156, 163, 175, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    transition: all 0.3s ease;
}

.holo-dot:hover .dot-inner {
    background: rgba(156, 163, 175, 0.8);
}

.holo-dot.active .dot-inner {
    width: 24px;
    background: rgb(139, 92, 246);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .holo-cards-viewport {
        height: 34vh;
        min-height: 250px;
    }
    
    .holo-card-title {
        font-size: 1.25rem;
    }
    
    .holo-card-desc {
        font-size: 0.75rem;
    }
    
    /* Ensure card fits container in mobile too */
    .holo-card {
        max-width: 95%;
    }

    .holo-info-inner {
        padding: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .holo-cards-viewport {
        height: 28vh;
        min-height: 200px;
    }
    
    .holo-card-title {
        font-size: 1.125rem;
    }
    
    .holo-app-icon img {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   ELEMENTOR EDITOR FIX
   ======================================== */

.elementor-editor-active .holo-card-wrapper {
    pointer-events: auto;
}

/* ========================================
   INLINE ICON ROTATOR STYLES
   ======================================== */

.inline-icon-rotator-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    font-weight: bold;
    line-height: 1.2;
    width: 100%;
}

.inline-icon-rotator-wrapper.text-center {
    justify-content: center;
}

.inline-icon-rotator-wrapper.text-right {
    justify-content: flex-end;
}

.inline-spacer {
    display: inline-block;
    vertical-align: middle;
    width: 64px; /* Default fallback */
    height: 64px;
    margin: 0 0.5rem;
    position: relative;
    transform: translateY(0.1em); 
}

.rotator-scene {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 800px;
    transform-style: preserve-3d;
}

.rotator-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    transform-origin: center center;
    /* Default state: Hidden/Rotated */
    transform: rotateY(90deg);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    pointer-events: none;
}

.rotator-item.active {
    transform: rotateY(0deg);
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.rotator-item.exit {
    transform: rotateY(-90deg);
    opacity: 0;
    z-index: 1;
}

/* SNAP CLASS for resetting position without animation */
.rotator-item.snap {
    transition: none !important;
}

.rotator-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.rotator-item:hover img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
