/* --- 1. CLASSIC CONTAINER & LAYOUT --- */
.crfxl-classic-container { position: relative; width: 100%; overflow: hidden; height: var(--desktop-height, 100vh); -webkit-user-select: none; user-select: none; }
.crfxl-classic-wrapper { position: absolute; width: 100%; height: 100%; top: 0; left: 0; overflow: hidden; }
.crfxl-classic-slide { position: absolute; width: 100%; height: 100%; opacity: 1; top: 0; left: 0; }
.crfxl-classic-slide.hidden { opacity: 0; }
.crfxl-classic-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.crfxl-classic-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; transition: background 0.3s; }

/* Overlays */
.crfxl-classic-container.overlay-light .crfxl-classic-overlay { background: rgba(0, 0, 0, 0.15); }
.crfxl-classic-container.overlay-medium .crfxl-classic-overlay { background: rgba(0, 0, 0, 0.3); }
.crfxl-classic-container.overlay-strong .crfxl-classic-overlay { background: rgba(0, 0, 0, 0.5); }

/* Content Positioning */
.crfxl-classic-content { position: absolute; z-index: 25; width: 90%; max-width: 800px; color: #fff; pointer-events: none; }
.crfxl-classic-content > * { opacity: 0; pointer-events: all; }
.crfxl-classic-container.placement-center .crfxl-classic-content { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.crfxl-classic-container.placement-left-center .crfxl-classic-content { top: 50%; left: 5rem; transform: translateY(-50%); text-align: left; max-width: 500px; }
.crfxl-classic-container.placement-right-center .crfxl-classic-content { top: 50%; right: 5rem; left: auto; transform: translateY(-50%); text-align: right; max-width: 500px; }

/* --- 2. TYPOGRAPHY (Base) --- */
.crfxl-preset-tagline { font-weight: 400; line-height: 1.4; display: block; margin-bottom: 20px; color:inherit; }
.crfxl-preset-title { font-weight: 700; line-height: 1.3; margin: 0 0 20px 0; padding: 0; color:inherit; }
.crfxl-preset-description { font-weight: 400; line-height: 1.6; margin-bottom: 25px; color:inherit; }

/* --- 3. ANIMATIONS --- */
.crfxl-classic-slide.active .crfxl-classic-content > * { transition-property: opacity, transform; transition-duration: 0.6s; transition-timing-function: ease-out; }
.crfxl-classic-slide.active .crfxl-classic-content .crfxl-classic-tagline { transition-delay: 0.5s; }
.crfxl-classic-slide.active .crfxl-classic-content .crfxl-preset-title { transition-delay: 0.6s; }
.crfxl-classic-slide.active .crfxl-classic-content .crfxl-classic-description { transition-delay: 0.7s; }
.crfxl-classic-slide.active .crfxl-classic-content .crfxl-classic-cta-wrapper { transition-delay: 0.9s; }
.crfxl-classic-container .animate-fade-in > * { transform: translateY(20px); }
.crfxl-classic-container .active .animate-fade-in > * { opacity: 1; transform: translateY(0); }

/* --- 4. TRANSITIONS --- */
/* Liquid */
.liquid-enter { clip-path: circle(0% at 50% 50%); animation: liquidIn 1s forwards ease; z-index: 2; }
.liquid-exit { animation: liquidOut 1s forwards ease; z-index: 1; }
@keyframes liquidIn { to { clip-path: circle(150% at 50% 50%); } }
@keyframes liquidOut { from { opacity: 1; } to { opacity: 0; } }

/* --- SLIDE TRANSITION (Restored) --- */
.slide-enter-next { transform: translateX(100%); animation: slideInNext 1s forwards ease; z-index: 2; }
.slide-enter-prev { transform: translateX(-100%); animation: slideInPrev 1s forwards ease; z-index: 2; }
.slide-exit-next { transform: translateX(0); animation: slideOutNext 1s forwards ease; z-index: 1; }
.slide-exit-prev { transform: translateX(0); animation: slideOutPrev 1s forwards ease; z-index: 1; }

@keyframes slideInNext { 0% { transform: translateX(100%); } 100% { transform: translateX(0%); } }
@keyframes slideInPrev { 0% { transform: translateX(-100%); } 100% { transform: translateX(0%); } }
@keyframes slideOutNext { 0% { transform: translateX(0%); } 100% { transform: translateX(-100%); } }
@keyframes slideOutPrev { 0% { transform: translateX(0%); } 100% { transform: translateX(100%); } }

/* Warp (Restored Original Logic) */
.warp-enter { animation: warpIn 1s forwards ease; z-index: 2; }
.warp-exit { animation: warpOut 1s forwards ease; z-index: 1; }
@keyframes warpIn { 
    0% { transform: scale(2) rotate(10deg); filter: blur(10px); opacity: 0; } 
    100% { transform: scale(1) rotate(0deg); filter: blur(0); opacity: 1; } 
}
@keyframes warpOut { 
    0% { opacity: 1; transform: scale(1); } 
    100% { opacity: 0; transform: scale(0.5) rotate(-10deg); filter: blur(10px); } 
}

/* --- 5. NAVIGATION --- */
.crfxl-btn { position: absolute; top: 50%; transform: translateY(-50%); cursor: pointer; border: none; background: none; width: 40px; height: 40px; z-index: 10; }
.crfxl-btn::before { content: ''; display: block; width: 12px; height: 12px; border-style: solid; border-color: #fff; border-width: 0 3px 3px 0; position: absolute; top: 50%; left: 50%; }
.crfxl-btn.crfxl-btn-prev { left: 1rem; }
.crfxl-btn.crfxl-btn-prev::before { transform: translate(-50%, -50%) rotate(135deg); }
.crfxl-btn.crfxl-btn-next { right: 1rem; }
.crfxl-btn.crfxl-btn-next::before { transform: translate(-50%, -50%) rotate(-45deg); }

.crfxl-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 20; }
.crfxl-dot { width: 12px; height: 12px; border-radius: 50%; border:none; background: rgba(255,255,255,0.5); cursor: pointer; padding:0; }
.crfxl-dot.crfxl-active { background: #fff; transform: scale(1.2); }

/* --- 6. ACCESSIBILITY HELPER (Hide Announcer) --- */
.crfxl-sr-announcer {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- 7. KEN BURNS (Combined with Warp) --- */
.crfxl-classic-slide.active img {
    animation: crfxl-kenburns 20s linear infinite alternate;
    transform-origin: center center;
}
@keyframes crfxl-kenburns {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.2); }
}

@media (max-width: 768px) {
  .crfxl-classic-container { height: var(--mobile-height, 70vh); }
  .crfxl-classic-container .crfxl-classic-content { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; text-align: center !important; }
}