/* ═══════════════════════════════════════════════════════════════
   LOGO ROTATOR - Standalone CSS
   No conflicts with existing code
   ═══════════════════════════════════════════════════════════════ */

/* Unique namespace prefix: lr- (logo-rotator) */
.lr-container {
    --lr-bg: rgba(26, 26, 46, 0.92);
    --lr-card-bg: rgba(255, 255, 255, 0.05);
    --lr-text: #ffffff;
    --lr-accent: #1a73e8;
    --lr-radius: 16px;
    --lr-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --lr-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    width: 100%;
    box-sizing: border-box;
}

/* ─── Logo Rotator Wrapper ─────────────────────── */
.lr-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 220px;
    perspective: 1200px;
}

/* ─── Logo Cards ───────────────────────────────── */
.lr-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    background: var(--lr-card-bg);
    border-radius: var(--lr-radius);
    box-shadow: var(--lr-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transform: translate(-50%, -50%) scale(0.75);
    opacity: 0;
    transition: all var(--lr-transition);
    will-change: transform, opacity;
}

/* ─── Logo Images ──────────────────────────────── */
.lr-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

.lr-card:hover img {
    filter: brightness(1.3);
}

/* ─── Active Card Position ─────────────────────── */
.lr-card.lr-active {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    z-index: 3;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(26, 115, 232, 0.15);
}

/* ─── Previous Card Position ───────────────────── */
.lr-card.lr-prev {
    transform: translate(calc(-50% - 200px), -50%) scale(0.65) rotateY(15deg);
    opacity: 0.5;
    z-index: 2;
}

/* ─── Next Card Position ───────────────────────── */
.lr-card.lr-next {
    transform: translate(calc(-50% + 200px), -50%) scale(0.65) rotateY(-15deg);
    opacity: 0.5;
    z-index: 2;
}

/* ─── Section Title ────────────────────────────── */
.lr-title {
    text-align: center;
    margin-bottom: 20px;
}

.lr-title h3 {
    color: var(--lr-text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.lr-title p {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    margin: 0;
}

/* ─── Navigation Dots ──────────────────────────── */
.lr-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    position: relative;
    z-index: 10;
}

.lr-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.lr-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lr-dot.lr-dot-active {
    background: var(--lr-accent);
    box-shadow: 0 0 8px rgba(26, 115, 232, 0.6);
    transform: scale(1.2);
}

/* ─── Auto-flip Animation (pulse on active) ────── */
@keyframes lr-pulse {
    0%, 100% { 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                    0 0 60px rgba(26, 115, 232, 0.15);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                    0 0 80px rgba(26, 115, 232, 0.35);
    }
}

.lr-card.lr-active {
    animation: lr-pulse 3s ease-in-out infinite;
}

/* ─── Entrance Animation for Active Card ───────── */
@keyframes lr-enter-center {
    from {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

@keyframes lr-enter-left {
    from {
        transform: translate(calc(-50% - 300px), -50%) scale(0.4) rotateY(30deg);
        opacity: 0;
    }
    to {
        transform: translate(calc(-50% - 200px), -50%) scale(0.65) rotateY(15deg);
        opacity: 0.5;
    }
}

@keyframes lr-enter-right {
    from {
        transform: translate(calc(-50% + 300px), -50%) scale(0.4) rotateY(-30deg);
        opacity: 0;
    }
    to {
        transform: translate(calc(-50% + 200px), -50%) scale(0.65) rotateY(-15deg);
        opacity: 0.5;
    }
}

/* ─── Responsive Adjustments ───────────────────── */
@media (max-width: 600px) {
    .lr-wrapper {
        height: 180px;
    }
    
    .lr-card {
        width: 140px;
        height: 140px;
        padding: 15px;
    }
    
    .lr-card.lr-prev {
        transform: translate(calc(-50% - 140px), -50%) scale(0.55) rotateY(15deg);
    }
    
    .lr-card.lr-next {
        transform: translate(calc(-50% + 140px), -50%) scale(0.55) rotateY(-15deg);
    }
}

@media (max-width: 400px) {
    .lr-wrapper {
        height: 150px;
    }
    
    .lr-card {
        width: 110px;
        height: 110px;
        padding: 12px;
    }
    
    .lr-card.lr-prev {
        transform: translate(calc(-50% - 110px), -50%) scale(0.5) rotateY(15deg);
    }
    
    .lr-card.lr-next {
        transform: translate(calc(-50% + 110px), -50%) scale(0.5) rotateY(-15deg);
    }
}