/*
Theme Name: LamiPremium Custom
Description: Custom styles for LamiPremium architecture.
*/

/* 1. Base Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* 2. Global Reset & Typography */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 3. Material Symbols Settings */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* 4. Utility: Hide Scrollbar (Clean UI) */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 5. Utility: Dense Grid fallback */
.grid-dense {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
/* 
 * -----------------------------------------------------------------------------
 * ANIMATED TEXT CYCLE (Framer Motion Replica)
 * -----------------------------------------------------------------------------
 */
.cycle-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    vertical-align: bottom;
    position: relative;
    height: 1.2em; /* Matches line-height */
    transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1); /* "Apple" ease-out-expo */
}

.cycle-word {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px); /* Start below */
    filter: blur(8px);
    transition: 
        opacity 0.4s ease, 
        transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), 
        filter 0.4s ease;
    will-change: transform, opacity, filter;
}

/* State: Active (Visible) */
.cycle-word.active {
    position: relative; /* Takes up space */
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    z-index: 2;
}

/* State: Exiting (Leaving) */
.cycle-word.exit {
    position: absolute;
    opacity: 0;
    transform: translateY(20px); /* Drop down */
    filter: blur(8px);
    z-index: 1;
}

/* State: Entering (Waiting to drop in) */
.cycle-word.enter {
    position: absolute;
    opacity: 0;
    transform: translateY(-20px); /* Start above */
    filter: blur(8px);
}
/* 
 * -----------------------------------------------------------------------------
 * SHADCN / RADIX STYLE ANIMATIONS (Header Animations moved to css/header.css)
 * -----------------------------------------------------------------------------
 */
/* 
 * -----------------------------------------------------------------------------
 * COMPONENT: IMAGE COMPARISON SLIDER
 * -----------------------------------------------------------------------------
 */
.comparison-container {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none; /* Prevents scrolling while dragging on mobile */
}

.comparison-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.8);
    cursor: ew-resize;
    z-index: 20;
    transform: translateX(-50%);
}

.comparison-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparison-handle:active .comparison-circle,
.comparison-handle.dragging .comparison-circle {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 
 * -----------------------------------------------------------------------------
 * COMPONENT: FEATURE STEPS (Auto-Play)
 * -----------------------------------------------------------------------------
 */
.step-progress-bar {
    height: 100%;
    width: 2px;
    background-color: var(--color-accent);
    transform-origin: top;
    transform: scaleY(0);
}

.step-card {
    transition: opacity 0.5s ease;
}

.step-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 0;
}

.step-image.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10;
}/* 
 * -----------------------------------------------------------------------------
 * 3D CARD SWIPER (Hero Section)
 * -----------------------------------------------------------------------------
 */
.card-stack {
    position: relative;
    width: 300px; /* Base width */
    height: 400px; /* Base height */
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background-color: white;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
    overflow: hidden;
    transform-origin: center bottom;
    /* Default Stack Positions */
    z-index: 1;
    transform: translateY(0) scale(0.9);
    opacity: 0;
}

.card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Stack Logic (Up to 3 visible cards) */
.card-item:nth-last-child(1) {
    z-index: 3;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card-item:nth-last-child(2) {
    z-index: 2;
    opacity: 1;
    transform: translateY(15px) scale(0.95);
}

.card-item:nth-last-child(3) {
    z-index: 1;
    opacity: 1;
    transform: translateY(30px) scale(0.90);
}

/* Animation State: Swiping Out */
.card-item.swipe-out {
    animation: swipeOut 0.6s forwards cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

@keyframes swipeOut {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(300px) translateY(50px) rotate(20deg);
        opacity: 0;
    }
}

/*
 * -----------------------------------------------------------------------------
 * LAZY LOADING BLUR-UP EFFECT
 * -----------------------------------------------------------------------------
 */
img.lazy-image {
    transition: filter 0.5s ease-out;
}
img.lazy-image.blur-up {
    filter: blur(10px);
}
img.lazy-image.loaded {
    filter: blur(0);
}
